From d0da20e18bf39cd98c1a2773e3a08e8e320d6450 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Mon, 17 Jul 2023 14:08:41 +0200 Subject: Updated includes/jobs/PKFronters.php and added 147 files (automated) --- .../axios/lib/platform/browser/classes/Blob.js | 3 + .../axios/lib/platform/browser/classes/FormData.js | 3 + .../platform/browser/classes/URLSearchParams.js | 4 ++ .../axios/lib/platform/browser/index.js | 64 ++++++++++++++++++++++ .../node_modules/axios/lib/platform/index.js | 3 + .../axios/lib/platform/node/classes/FormData.js | 3 + .../lib/platform/node/classes/URLSearchParams.js | 4 ++ .../node_modules/axios/lib/platform/node/index.js | 12 ++++ 8 files changed, 96 insertions(+) create mode 100644 includes/external/signal/node_modules/axios/lib/platform/browser/classes/Blob.js create mode 100644 includes/external/signal/node_modules/axios/lib/platform/browser/classes/FormData.js create mode 100644 includes/external/signal/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js create mode 100644 includes/external/signal/node_modules/axios/lib/platform/browser/index.js create mode 100644 includes/external/signal/node_modules/axios/lib/platform/index.js create mode 100644 includes/external/signal/node_modules/axios/lib/platform/node/classes/FormData.js create mode 100644 includes/external/signal/node_modules/axios/lib/platform/node/classes/URLSearchParams.js create mode 100644 includes/external/signal/node_modules/axios/lib/platform/node/index.js (limited to 'includes/external/signal/node_modules/axios/lib/platform') diff --git a/includes/external/signal/node_modules/axios/lib/platform/browser/classes/Blob.js b/includes/external/signal/node_modules/axios/lib/platform/browser/classes/Blob.js new file mode 100644 index 0000000..6c506c4 --- /dev/null +++ b/includes/external/signal/node_modules/axios/lib/platform/browser/classes/Blob.js @@ -0,0 +1,3 @@ +'use strict' + +export default typeof Blob !== 'undefined' ? Blob : null diff --git a/includes/external/signal/node_modules/axios/lib/platform/browser/classes/FormData.js b/includes/external/signal/node_modules/axios/lib/platform/browser/classes/FormData.js new file mode 100644 index 0000000..f36d31b --- /dev/null +++ b/includes/external/signal/node_modules/axios/lib/platform/browser/classes/FormData.js @@ -0,0 +1,3 @@ +'use strict'; + +export default typeof FormData !== 'undefined' ? FormData : null; diff --git a/includes/external/signal/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js b/includes/external/signal/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js new file mode 100644 index 0000000..b7dae95 --- /dev/null +++ b/includes/external/signal/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js @@ -0,0 +1,4 @@ +'use strict'; + +import AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js'; +export default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams; diff --git a/includes/external/signal/node_modules/axios/lib/platform/browser/index.js b/includes/external/signal/node_modules/axios/lib/platform/browser/index.js new file mode 100644 index 0000000..4d2203f --- /dev/null +++ b/includes/external/signal/node_modules/axios/lib/platform/browser/index.js @@ -0,0 +1,64 @@ +import URLSearchParams from './classes/URLSearchParams.js' +import FormData from './classes/FormData.js' +import Blob from './classes/Blob.js' + +/** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + * + * @returns {boolean} + */ +const isStandardBrowserEnv = (() => { + let product; + if (typeof navigator !== 'undefined' && ( + (product = navigator.product) === 'ReactNative' || + product === 'NativeScript' || + product === 'NS') + ) { + return false; + } + + return typeof window !== 'undefined' && typeof document !== 'undefined'; +})(); + +/** + * Determine if we're running in a standard browser webWorker environment + * + * Although the `isStandardBrowserEnv` method indicates that + * `allows axios to run in a web worker`, the WebWorker will still be + * filtered out due to its judgment standard + * `typeof window !== 'undefined' && typeof document !== 'undefined'`. + * This leads to a problem when axios post `FormData` in webWorker + */ + const isStandardBrowserWebWorkerEnv = (() => { + return ( + typeof WorkerGlobalScope !== 'undefined' && + // eslint-disable-next-line no-undef + self instanceof WorkerGlobalScope && + typeof self.importScripts === 'function' + ); +})(); + + +export default { + isBrowser: true, + classes: { + URLSearchParams, + FormData, + Blob + }, + isStandardBrowserEnv, + isStandardBrowserWebWorkerEnv, + protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] +}; diff --git a/includes/external/signal/node_modules/axios/lib/platform/index.js b/includes/external/signal/node_modules/axios/lib/platform/index.js new file mode 100644 index 0000000..5e9d005 --- /dev/null +++ b/includes/external/signal/node_modules/axios/lib/platform/index.js @@ -0,0 +1,3 @@ +import platform from './node/index.js'; + +export {platform as default} diff --git a/includes/external/signal/node_modules/axios/lib/platform/node/classes/FormData.js b/includes/external/signal/node_modules/axios/lib/platform/node/classes/FormData.js new file mode 100644 index 0000000..b07f947 --- /dev/null +++ b/includes/external/signal/node_modules/axios/lib/platform/node/classes/FormData.js @@ -0,0 +1,3 @@ +import FormData from 'form-data'; + +export default FormData; diff --git a/includes/external/signal/node_modules/axios/lib/platform/node/classes/URLSearchParams.js b/includes/external/signal/node_modules/axios/lib/platform/node/classes/URLSearchParams.js new file mode 100644 index 0000000..fba5842 --- /dev/null +++ b/includes/external/signal/node_modules/axios/lib/platform/node/classes/URLSearchParams.js @@ -0,0 +1,4 @@ +'use strict'; + +import url from 'url'; +export default url.URLSearchParams; diff --git a/includes/external/signal/node_modules/axios/lib/platform/node/index.js b/includes/external/signal/node_modules/axios/lib/platform/node/index.js new file mode 100644 index 0000000..aef514a --- /dev/null +++ b/includes/external/signal/node_modules/axios/lib/platform/node/index.js @@ -0,0 +1,12 @@ +import URLSearchParams from './classes/URLSearchParams.js' +import FormData from './classes/FormData.js' + +export default { + isNode: true, + classes: { + URLSearchParams, + FormData, + Blob: typeof Blob !== 'undefined' && Blob || null + }, + protocols: [ 'http', 'https', 'file', 'data' ] +}; -- cgit