reflex-search 1.2.0 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binary.js +5 -3
- package/node_modules/.bin/prettier +80 -0
- package/node_modules/.bin/rimraf +250 -0
- package/node_modules/.package-lock.json +548 -0
- package/node_modules/agent-base/README.md +145 -0
- package/node_modules/agent-base/dist/src/index.d.ts +78 -0
- package/node_modules/agent-base/dist/src/index.js +203 -0
- package/node_modules/agent-base/dist/src/index.js.map +1 -0
- package/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
- package/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/node_modules/agent-base/dist/src/promisify.js.map +1 -0
- package/node_modules/agent-base/package.json +64 -0
- package/node_modules/agent-base/src/index.ts +345 -0
- package/node_modules/agent-base/src/promisify.ts +33 -0
- package/node_modules/asynckit/LICENSE +21 -0
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +63 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/axios/CHANGELOG.md +1747 -0
- package/node_modules/axios/LICENSE +7 -0
- package/node_modules/axios/MIGRATION_GUIDE.md +877 -0
- package/node_modules/axios/README.md +2426 -0
- package/node_modules/axios/dist/axios.js +4892 -0
- package/node_modules/axios/dist/axios.js.map +1 -0
- package/node_modules/axios/dist/axios.min.js +5 -0
- package/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/axios/dist/browser/axios.cjs +4733 -0
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -0
- package/node_modules/axios/dist/esm/axios.js +4754 -0
- package/node_modules/axios/dist/esm/axios.js.map +1 -0
- package/node_modules/axios/dist/esm/axios.min.js +3 -0
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/axios/dist/node/axios.cjs +5469 -0
- package/node_modules/axios/dist/node/axios.cjs.map +1 -0
- package/node_modules/axios/index.d.cts +715 -0
- package/node_modules/axios/index.d.ts +734 -0
- package/node_modules/axios/index.js +45 -0
- package/node_modules/axios/lib/adapters/README.md +36 -0
- package/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/node_modules/axios/lib/adapters/fetch.js +473 -0
- package/node_modules/axios/lib/adapters/http.js +1312 -0
- package/node_modules/axios/lib/adapters/xhr.js +227 -0
- package/node_modules/axios/lib/axios.js +89 -0
- package/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/axios/lib/core/Axios.js +281 -0
- package/node_modules/axios/lib/core/AxiosError.js +176 -0
- package/node_modules/axios/lib/core/AxiosHeaders.js +348 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +72 -0
- package/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/axios/lib/core/buildFullPath.js +22 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +89 -0
- package/node_modules/axios/lib/core/mergeConfig.js +124 -0
- package/node_modules/axios/lib/core/settle.js +27 -0
- package/node_modules/axios/lib/core/transformData.js +28 -0
- package/node_modules/axios/lib/defaults/index.js +177 -0
- package/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/axios/lib/env/data.js +1 -0
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +61 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
- package/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/node_modules/axios/lib/helpers/bind.js +14 -0
- package/node_modules/axios/lib/helpers/buildURL.js +66 -0
- package/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +15 -0
- package/node_modules/axios/lib/helpers/composeSignals.js +57 -0
- package/node_modules/axios/lib/helpers/cookies.js +60 -0
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +100 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +97 -0
- package/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/node_modules/axios/lib/helpers/fromDataURI.js +66 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +69 -0
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +106 -0
- package/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +178 -0
- package/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/axios/lib/helpers/spread.js +28 -0
- package/node_modules/axios/lib/helpers/throttle.js +44 -0
- package/node_modules/axios/lib/helpers/toFormData.js +249 -0
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/node_modules/axios/lib/helpers/validator.js +112 -0
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/browser/index.js +13 -0
- package/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/node_modules/axios/lib/platform/index.js +7 -0
- package/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/node/index.js +37 -0
- package/node_modules/axios/lib/utils.js +932 -0
- package/node_modules/axios/package.json +185 -0
- package/node_modules/axios-proxy-builder/LICENSE +21 -0
- package/node_modules/axios-proxy-builder/README.md +36 -0
- package/node_modules/axios-proxy-builder/dist/index.d.ts +1 -0
- package/node_modules/axios-proxy-builder/dist/index.js +5 -0
- package/node_modules/axios-proxy-builder/dist/proxy-builder.d.ts +15 -0
- package/node_modules/axios-proxy-builder/dist/proxy-builder.js +40 -0
- package/node_modules/axios-proxy-builder/dist/proxy-builder.test.d.ts +1 -0
- package/node_modules/axios-proxy-builder/dist/proxy-builder.test.js +35 -0
- package/node_modules/axios-proxy-builder/dist/test-fixtures.d.ts +5 -0
- package/node_modules/axios-proxy-builder/dist/test-fixtures.js +8 -0
- package/node_modules/axios-proxy-builder/dist/utils.d.ts +1 -0
- package/node_modules/axios-proxy-builder/dist/utils.js +48 -0
- package/node_modules/axios-proxy-builder/dist/utils.test.d.ts +1 -0
- package/node_modules/axios-proxy-builder/dist/utils.test.js +51 -0
- package/node_modules/axios-proxy-builder/package.json +39 -0
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/README.md +57 -0
- package/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
- package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
- package/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/index.js.map +1 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/README.md +94 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts +6 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +201 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts +6 -0
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
- package/node_modules/brace-expansion/dist/esm/index.js +197 -0
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +64 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/clone/.npmignore +4 -0
- package/node_modules/clone/LICENSE +18 -0
- package/node_modules/clone/README.md +126 -0
- package/node_modules/clone/clone.iml +10 -0
- package/node_modules/clone/clone.js +166 -0
- package/node_modules/clone/package.json +51 -0
- package/node_modules/combined-stream/License +19 -0
- package/node_modules/combined-stream/Readme.md +138 -0
- package/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/node_modules/combined-stream/package.json +25 -0
- package/node_modules/combined-stream/yarn.lock +17 -0
- package/node_modules/console.table/LICENSE-MIT +22 -0
- package/node_modules/console.table/README.md +173 -0
- package/node_modules/console.table/bower.json +29 -0
- package/node_modules/console.table/dist/console.table.js +179 -0
- package/node_modules/console.table/dist/console.table.min.js +1 -0
- package/node_modules/console.table/index.js +179 -0
- package/node_modules/console.table/package.json +90 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/defaults/LICENSE +22 -0
- package/node_modules/defaults/README.md +39 -0
- package/node_modules/defaults/index.js +13 -0
- package/node_modules/defaults/package.json +33 -0
- package/node_modules/defaults/test.js +34 -0
- package/node_modules/delayed-stream/.npmignore +1 -0
- package/node_modules/delayed-stream/License +19 -0
- package/node_modules/delayed-stream/Makefile +7 -0
- package/node_modules/delayed-stream/Readme.md +141 -0
- package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/node_modules/delayed-stream/package.json +27 -0
- package/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/detect-libc/README.md +163 -0
- package/node_modules/detect-libc/index.d.ts +14 -0
- package/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/node_modules/detect-libc/lib/elf.js +39 -0
- package/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/node_modules/detect-libc/lib/process.js +24 -0
- package/node_modules/detect-libc/package.json +44 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/easy-table/.npmignore +3 -0
- package/node_modules/easy-table/HISTORY.md +53 -0
- package/node_modules/easy-table/README.md +226 -0
- package/node_modules/easy-table/package.json +23 -0
- package/node_modules/easy-table/table.js +445 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/node_modules/es-set-tostringtag/README.md +53 -0
- package/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/node_modules/es-set-tostringtag/index.js +35 -0
- package/node_modules/es-set-tostringtag/package.json +78 -0
- package/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +157 -0
- package/node_modules/follow-redirects/debug.js +15 -0
- package/node_modules/follow-redirects/http.js +1 -0
- package/node_modules/follow-redirects/https.js +1 -0
- package/node_modules/follow-redirects/index.js +709 -0
- package/node_modules/follow-redirects/package.json +58 -0
- package/node_modules/form-data/CHANGELOG.md +659 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md +355 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +4 -0
- package/node_modules/form-data/lib/form_data.js +494 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +82 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1177 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts +388 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts +76 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/node_modules/glob/dist/esm/glob.d.ts +388 -0
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/glob.js +243 -0
- package/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/node_modules/glob/dist/esm/ignore.d.ts +24 -0
- package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/node_modules/glob/dist/esm/index.d.ts +97 -0
- package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.js.map +1 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/index.min.js.map +7 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.d.ts +76 -0
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/pattern.js +215 -0
- package/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/node_modules/glob/dist/esm/processor.d.ts +59 -0
- package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/node_modules/glob/dist/esm/walker.d.ts +97 -0
- package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/node_modules/glob/package.json +101 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/has-tostringtag/.eslintrc +5 -0
- package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/node_modules/has-tostringtag/LICENSE +21 -0
- package/node_modules/has-tostringtag/README.md +46 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +8 -0
- package/node_modules/has-tostringtag/package.json +108 -0
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +8 -0
- package/node_modules/has-tostringtag/test/index.js +21 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/node_modules/has-tostringtag/test/tests.js +15 -0
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/https-proxy-agent/README.md +137 -0
- package/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
- package/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
- package/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/https-proxy-agent/package.json +56 -0
- package/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/lru-cache/README.md +383 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +1323 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +1589 -0
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts +1323 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.js +1585 -0
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/lru-cache/package.json +101 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +60 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +44 -0
- package/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/README.md +528 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/ast.d.ts +22 -0
- package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
- package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/index.d.ts +174 -0
- package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/node_modules/minimatch/dist/esm/ast.d.ts +22 -0
- package/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
- package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/node_modules/minimatch/dist/esm/index.d.ts +174 -0
- package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
- package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/node_modules/minimatch/package.json +73 -0
- package/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1018 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +82 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/package-json-from-dist/LICENSE.md +63 -0
- package/node_modules/package-json-from-dist/README.md +110 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +89 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
- package/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts +89 -0
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/package-json-from-dist/dist/esm/index.js +129 -0
- package/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
- package/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
- package/node_modules/package-json-from-dist/package.json +68 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/package.json +88 -0
- package/node_modules/prettier/LICENSE +7 -0
- package/node_modules/prettier/README.md +104 -0
- package/node_modules/prettier/THIRD-PARTY-NOTICES.md +6059 -0
- package/node_modules/prettier/bin/prettier.cjs +80 -0
- package/node_modules/prettier/doc.d.ts +254 -0
- package/node_modules/prettier/doc.js +1511 -0
- package/node_modules/prettier/doc.mjs +1480 -0
- package/node_modules/prettier/index.cjs +720 -0
- package/node_modules/prettier/index.d.ts +968 -0
- package/node_modules/prettier/index.mjs +18793 -0
- package/node_modules/prettier/internal/experimental-cli-worker.mjs +2841 -0
- package/node_modules/prettier/internal/experimental-cli.mjs +12790 -0
- package/node_modules/prettier/internal/legacy-cli.mjs +6229 -0
- package/node_modules/prettier/package.json +203 -0
- package/node_modules/prettier/plugins/acorn.d.ts +6 -0
- package/node_modules/prettier/plugins/acorn.js +16 -0
- package/node_modules/prettier/plugins/acorn.mjs +16 -0
- package/node_modules/prettier/plugins/angular.d.ts +8 -0
- package/node_modules/prettier/plugins/angular.js +4 -0
- package/node_modules/prettier/plugins/angular.mjs +4 -0
- package/node_modules/prettier/plugins/babel.d.ts +18 -0
- package/node_modules/prettier/plugins/babel.js +15 -0
- package/node_modules/prettier/plugins/babel.mjs +15 -0
- package/node_modules/prettier/plugins/estree.d.ts +6 -0
- package/node_modules/prettier/plugins/estree.js +44 -0
- package/node_modules/prettier/plugins/estree.mjs +44 -0
- package/node_modules/prettier/plugins/flow.d.ts +5 -0
- package/node_modules/prettier/plugins/flow.js +20 -0
- package/node_modules/prettier/plugins/flow.mjs +20 -0
- package/node_modules/prettier/plugins/glimmer.d.ts +9 -0
- package/node_modules/prettier/plugins/glimmer.js +37 -0
- package/node_modules/prettier/plugins/glimmer.mjs +37 -0
- package/node_modules/prettier/plugins/graphql.d.ts +9 -0
- package/node_modules/prettier/plugins/graphql.js +28 -0
- package/node_modules/prettier/plugins/graphql.mjs +28 -0
- package/node_modules/prettier/plugins/html.d.ts +13 -0
- package/node_modules/prettier/plugins/html.js +24 -0
- package/node_modules/prettier/plugins/html.mjs +24 -0
- package/node_modules/prettier/plugins/markdown.d.ts +11 -0
- package/node_modules/prettier/plugins/markdown.js +62 -0
- package/node_modules/prettier/plugins/markdown.mjs +62 -0
- package/node_modules/prettier/plugins/meriyah.d.ts +5 -0
- package/node_modules/prettier/plugins/meriyah.js +5 -0
- package/node_modules/prettier/plugins/meriyah.mjs +5 -0
- package/node_modules/prettier/plugins/postcss.d.ts +11 -0
- package/node_modules/prettier/plugins/postcss.js +61 -0
- package/node_modules/prettier/plugins/postcss.mjs +61 -0
- package/node_modules/prettier/plugins/typescript.d.ts +5 -0
- package/node_modules/prettier/plugins/typescript.js +21 -0
- package/node_modules/prettier/plugins/typescript.mjs +21 -0
- package/node_modules/prettier/plugins/yaml.d.ts +9 -0
- package/node_modules/prettier/plugins/yaml.js +159 -0
- package/node_modules/prettier/plugins/yaml.mjs +159 -0
- package/node_modules/prettier/standalone.d.ts +33 -0
- package/node_modules/prettier/standalone.js +29 -0
- package/node_modules/prettier/standalone.mjs +29 -0
- package/node_modules/proxy-from-env/LICENSE +20 -0
- package/node_modules/proxy-from-env/README.md +163 -0
- package/node_modules/proxy-from-env/index.cjs +105 -0
- package/node_modules/proxy-from-env/index.js +103 -0
- package/node_modules/proxy-from-env/package.json +43 -0
- package/node_modules/rimraf/LICENSE.md +55 -0
- package/node_modules/rimraf/README.md +255 -0
- package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/default-tmp.js +58 -0
- package/node_modules/rimraf/dist/commonjs/default-tmp.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/error.d.ts +6 -0
- package/node_modules/rimraf/dist/commonjs/error.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/error.js +10 -0
- package/node_modules/rimraf/dist/commonjs/error.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/fix-eperm.js +38 -0
- package/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/fs.d.ts +16 -0
- package/node_modules/rimraf/dist/commonjs/fs.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/fs.js +33 -0
- package/node_modules/rimraf/dist/commonjs/fs.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.js +24 -0
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/index.d.ts +50 -0
- package/node_modules/rimraf/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/index.js +84 -0
- package/node_modules/rimraf/dist/commonjs/index.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +34 -0
- package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/opt-arg.js +54 -0
- package/node_modules/rimraf/dist/commonjs/opt-arg.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/package.json +3 -0
- package/node_modules/rimraf/dist/commonjs/path-arg.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/path-arg.js +49 -0
- package/node_modules/rimraf/dist/commonjs/path-arg.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.js +19 -0
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +8 -0
- package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/retry-busy.js +65 -0
- package/node_modules/rimraf/dist/commonjs/retry-busy.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.js +8 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +138 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-native.js +24 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.js +102 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.js +159 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/use-native.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/use-native.js +18 -0
- package/node_modules/rimraf/dist/commonjs/use-native.js.map +1 -0
- package/node_modules/rimraf/dist/esm/bin.d.mts +3 -0
- package/node_modules/rimraf/dist/esm/bin.d.mts.map +1 -0
- package/node_modules/rimraf/dist/esm/bin.mjs +250 -0
- package/node_modules/rimraf/dist/esm/bin.mjs.map +1 -0
- package/node_modules/rimraf/dist/esm/default-tmp.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/default-tmp.js +55 -0
- package/node_modules/rimraf/dist/esm/default-tmp.js.map +1 -0
- package/node_modules/rimraf/dist/esm/error.d.ts +6 -0
- package/node_modules/rimraf/dist/esm/error.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/error.js +5 -0
- package/node_modules/rimraf/dist/esm/error.js.map +1 -0
- package/node_modules/rimraf/dist/esm/fix-eperm.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/fix-eperm.js +33 -0
- package/node_modules/rimraf/dist/esm/fix-eperm.js.map +1 -0
- package/node_modules/rimraf/dist/esm/fs.d.ts +16 -0
- package/node_modules/rimraf/dist/esm/fs.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/fs.js +18 -0
- package/node_modules/rimraf/dist/esm/fs.js.map +1 -0
- package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/ignore-enoent.js +19 -0
- package/node_modules/rimraf/dist/esm/ignore-enoent.js.map +1 -0
- package/node_modules/rimraf/dist/esm/index.d.ts +50 -0
- package/node_modules/rimraf/dist/esm/index.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/index.js +76 -0
- package/node_modules/rimraf/dist/esm/index.js.map +1 -0
- package/node_modules/rimraf/dist/esm/opt-arg.d.ts +34 -0
- package/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/opt-arg.js +47 -0
- package/node_modules/rimraf/dist/esm/opt-arg.js.map +1 -0
- package/node_modules/rimraf/dist/esm/package.json +3 -0
- package/node_modules/rimraf/dist/esm/path-arg.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/path-arg.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/path-arg.js +47 -0
- package/node_modules/rimraf/dist/esm/path-arg.js.map +1 -0
- package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/readdir-or-error.js +14 -0
- package/node_modules/rimraf/dist/esm/readdir-or-error.js.map +1 -0
- package/node_modules/rimraf/dist/esm/retry-busy.d.ts +8 -0
- package/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/retry-busy.js +60 -0
- package/node_modules/rimraf/dist/esm/retry-busy.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-manual.js +5 -0
- package/node_modules/rimraf/dist/esm/rimraf-manual.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.js +133 -0
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-native.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-native.js +19 -0
- package/node_modules/rimraf/dist/esm/rimraf-native.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-posix.js +97 -0
- package/node_modules/rimraf/dist/esm/rimraf-posix.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-windows.js +154 -0
- package/node_modules/rimraf/dist/esm/rimraf-windows.js.map +1 -0
- package/node_modules/rimraf/dist/esm/use-native.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/use-native.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/use-native.js +15 -0
- package/node_modules/rimraf/dist/esm/use-native.js.map +1 -0
- package/node_modules/rimraf/package.json +77 -0
- package/node_modules/tunnel/.idea/encodings.xml +6 -0
- package/node_modules/tunnel/.idea/modules.xml +8 -0
- package/node_modules/tunnel/.idea/node-tunnel.iml +12 -0
- package/node_modules/tunnel/.idea/vcs.xml +6 -0
- package/node_modules/tunnel/.idea/workspace.xml +797 -0
- package/node_modules/tunnel/.travis.yml +6 -0
- package/node_modules/tunnel/CHANGELOG.md +22 -0
- package/node_modules/tunnel/LICENSE +21 -0
- package/node_modules/tunnel/README.md +185 -0
- package/node_modules/tunnel/index.js +1 -0
- package/node_modules/tunnel/lib/tunnel.js +264 -0
- package/node_modules/tunnel/package.json +34 -0
- package/node_modules/wcwidth/.npmignore +1 -0
- package/node_modules/wcwidth/LICENSE +30 -0
- package/node_modules/wcwidth/Readme.md +33 -0
- package/node_modules/wcwidth/combining.js +50 -0
- package/node_modules/wcwidth/docs/index.md +65 -0
- package/node_modules/wcwidth/index.js +99 -0
- package/node_modules/wcwidth/package.json +42 -0
- package/node_modules/wcwidth/test/index.js +64 -0
- package/npm-shrinkwrap.json +272 -601
- package/package.json +7 -5
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import utils from '../utils.js';
|
|
4
|
+
import AxiosError from '../core/AxiosError.js';
|
|
5
|
+
// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
|
|
6
|
+
import PlatformFormData from '../platform/node/classes/FormData.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Determines if the given thing is a array or js object.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} thing - The object or array to be visited.
|
|
12
|
+
*
|
|
13
|
+
* @returns {boolean}
|
|
14
|
+
*/
|
|
15
|
+
function isVisitable(thing) {
|
|
16
|
+
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* It removes the brackets from the end of a string
|
|
21
|
+
*
|
|
22
|
+
* @param {string} key - The key of the parameter.
|
|
23
|
+
*
|
|
24
|
+
* @returns {string} the key without the brackets.
|
|
25
|
+
*/
|
|
26
|
+
function removeBrackets(key) {
|
|
27
|
+
return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* It takes a path, a key, and a boolean, and returns a string
|
|
32
|
+
*
|
|
33
|
+
* @param {string} path - The path to the current key.
|
|
34
|
+
* @param {string} key - The key of the current object being iterated over.
|
|
35
|
+
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
36
|
+
*
|
|
37
|
+
* @returns {string} The path to the current key.
|
|
38
|
+
*/
|
|
39
|
+
function renderKey(path, key, dots) {
|
|
40
|
+
if (!path) return key;
|
|
41
|
+
return path
|
|
42
|
+
.concat(key)
|
|
43
|
+
.map(function each(token, i) {
|
|
44
|
+
// eslint-disable-next-line no-param-reassign
|
|
45
|
+
token = removeBrackets(token);
|
|
46
|
+
return !dots && i ? '[' + token + ']' : token;
|
|
47
|
+
})
|
|
48
|
+
.join(dots ? '.' : '');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* If the array is an array and none of its elements are visitable, then it's a flat array.
|
|
53
|
+
*
|
|
54
|
+
* @param {Array<any>} arr - The array to check
|
|
55
|
+
*
|
|
56
|
+
* @returns {boolean}
|
|
57
|
+
*/
|
|
58
|
+
function isFlatArray(arr) {
|
|
59
|
+
return utils.isArray(arr) && !arr.some(isVisitable);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
|
|
63
|
+
return /^is[A-Z]/.test(prop);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Convert a data object to FormData
|
|
68
|
+
*
|
|
69
|
+
* @param {Object} obj
|
|
70
|
+
* @param {?Object} [formData]
|
|
71
|
+
* @param {?Object} [options]
|
|
72
|
+
* @param {Function} [options.visitor]
|
|
73
|
+
* @param {Boolean} [options.metaTokens = true]
|
|
74
|
+
* @param {Boolean} [options.dots = false]
|
|
75
|
+
* @param {?Boolean} [options.indexes = false]
|
|
76
|
+
*
|
|
77
|
+
* @returns {Object}
|
|
78
|
+
**/
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* It converts an object into a FormData object
|
|
82
|
+
*
|
|
83
|
+
* @param {Object<any, any>} obj - The object to convert to form data.
|
|
84
|
+
* @param {string} formData - The FormData object to append to.
|
|
85
|
+
* @param {Object<string, any>} options
|
|
86
|
+
*
|
|
87
|
+
* @returns
|
|
88
|
+
*/
|
|
89
|
+
function toFormData(obj, formData, options) {
|
|
90
|
+
if (!utils.isObject(obj)) {
|
|
91
|
+
throw new TypeError('target must be an object');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// eslint-disable-next-line no-param-reassign
|
|
95
|
+
formData = formData || new (PlatformFormData || FormData)();
|
|
96
|
+
|
|
97
|
+
// eslint-disable-next-line no-param-reassign
|
|
98
|
+
options = utils.toFlatObject(
|
|
99
|
+
options,
|
|
100
|
+
{
|
|
101
|
+
metaTokens: true,
|
|
102
|
+
dots: false,
|
|
103
|
+
indexes: false,
|
|
104
|
+
},
|
|
105
|
+
false,
|
|
106
|
+
function defined(option, source) {
|
|
107
|
+
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
108
|
+
return !utils.isUndefined(source[option]);
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
const metaTokens = options.metaTokens;
|
|
113
|
+
// eslint-disable-next-line no-use-before-define
|
|
114
|
+
const visitor = options.visitor || defaultVisitor;
|
|
115
|
+
const dots = options.dots;
|
|
116
|
+
const indexes = options.indexes;
|
|
117
|
+
const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
|
|
118
|
+
const maxDepth = options.maxDepth === undefined ? 100 : options.maxDepth;
|
|
119
|
+
const useBlob = _Blob && utils.isSpecCompliantForm(formData);
|
|
120
|
+
|
|
121
|
+
if (!utils.isFunction(visitor)) {
|
|
122
|
+
throw new TypeError('visitor must be a function');
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function convertValue(value) {
|
|
126
|
+
if (value === null) return '';
|
|
127
|
+
|
|
128
|
+
if (utils.isDate(value)) {
|
|
129
|
+
return value.toISOString();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (utils.isBoolean(value)) {
|
|
133
|
+
return value.toString();
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (!useBlob && utils.isBlob(value)) {
|
|
137
|
+
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
|
|
141
|
+
return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return value;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Default visitor.
|
|
149
|
+
*
|
|
150
|
+
* @param {*} value
|
|
151
|
+
* @param {String|Number} key
|
|
152
|
+
* @param {Array<String|Number>} path
|
|
153
|
+
* @this {FormData}
|
|
154
|
+
*
|
|
155
|
+
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
156
|
+
*/
|
|
157
|
+
function defaultVisitor(value, key, path) {
|
|
158
|
+
let arr = value;
|
|
159
|
+
|
|
160
|
+
if (utils.isReactNative(formData) && utils.isReactNativeBlob(value)) {
|
|
161
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (value && !path && typeof value === 'object') {
|
|
166
|
+
if (utils.endsWith(key, '{}')) {
|
|
167
|
+
// eslint-disable-next-line no-param-reassign
|
|
168
|
+
key = metaTokens ? key : key.slice(0, -2);
|
|
169
|
+
// eslint-disable-next-line no-param-reassign
|
|
170
|
+
value = JSON.stringify(value);
|
|
171
|
+
} else if (
|
|
172
|
+
(utils.isArray(value) && isFlatArray(value)) ||
|
|
173
|
+
((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value)))
|
|
174
|
+
) {
|
|
175
|
+
// eslint-disable-next-line no-param-reassign
|
|
176
|
+
key = removeBrackets(key);
|
|
177
|
+
|
|
178
|
+
arr.forEach(function each(el, index) {
|
|
179
|
+
!(utils.isUndefined(el) || el === null) &&
|
|
180
|
+
formData.append(
|
|
181
|
+
// eslint-disable-next-line no-nested-ternary
|
|
182
|
+
indexes === true
|
|
183
|
+
? renderKey([key], index, dots)
|
|
184
|
+
: indexes === null
|
|
185
|
+
? key
|
|
186
|
+
: key + '[]',
|
|
187
|
+
convertValue(el)
|
|
188
|
+
);
|
|
189
|
+
});
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (isVisitable(value)) {
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
199
|
+
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const stack = [];
|
|
204
|
+
|
|
205
|
+
const exposedHelpers = Object.assign(predicates, {
|
|
206
|
+
defaultVisitor,
|
|
207
|
+
convertValue,
|
|
208
|
+
isVisitable,
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
function build(value, path, depth = 0) {
|
|
212
|
+
if (utils.isUndefined(value)) return;
|
|
213
|
+
|
|
214
|
+
if (depth > maxDepth) {
|
|
215
|
+
throw new AxiosError(
|
|
216
|
+
'Object is too deeply nested (' + depth + ' levels). Max depth: ' + maxDepth,
|
|
217
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (stack.indexOf(value) !== -1) {
|
|
222
|
+
throw Error('Circular reference detected in ' + path.join('.'));
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
stack.push(value);
|
|
226
|
+
|
|
227
|
+
utils.forEach(value, function each(el, key) {
|
|
228
|
+
const result =
|
|
229
|
+
!(utils.isUndefined(el) || el === null) &&
|
|
230
|
+
visitor.call(formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
231
|
+
|
|
232
|
+
if (result === true) {
|
|
233
|
+
build(el, path ? path.concat(key) : [key], depth + 1);
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
stack.pop();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (!utils.isObject(obj)) {
|
|
241
|
+
throw new TypeError('data must be an object');
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
build(obj);
|
|
245
|
+
|
|
246
|
+
return formData;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export default toFormData;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import utils from '../utils.js';
|
|
4
|
+
import toFormData from './toFormData.js';
|
|
5
|
+
import platform from '../platform/index.js';
|
|
6
|
+
|
|
7
|
+
export default function toURLEncodedForm(data, options) {
|
|
8
|
+
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
9
|
+
visitor: function (value, key, path, helpers) {
|
|
10
|
+
if (platform.isNode && utils.isBuffer(value)) {
|
|
11
|
+
this.append(key, value.toString('base64'));
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return helpers.defaultVisitor.apply(this, arguments);
|
|
16
|
+
},
|
|
17
|
+
...options,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export const streamChunk = function* (chunk, chunkSize) {
|
|
2
|
+
let len = chunk.byteLength;
|
|
3
|
+
|
|
4
|
+
if (!chunkSize || len < chunkSize) {
|
|
5
|
+
yield chunk;
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let pos = 0;
|
|
10
|
+
let end;
|
|
11
|
+
|
|
12
|
+
while (pos < len) {
|
|
13
|
+
end = pos + chunkSize;
|
|
14
|
+
yield chunk.slice(pos, end);
|
|
15
|
+
pos = end;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const readBytes = async function* (iterable, chunkSize) {
|
|
20
|
+
for await (const chunk of readStream(iterable)) {
|
|
21
|
+
yield* streamChunk(chunk, chunkSize);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const readStream = async function* (stream) {
|
|
26
|
+
if (stream[Symbol.asyncIterator]) {
|
|
27
|
+
yield* stream;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const reader = stream.getReader();
|
|
32
|
+
try {
|
|
33
|
+
for (;;) {
|
|
34
|
+
const { done, value } = await reader.read();
|
|
35
|
+
if (done) {
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
yield value;
|
|
39
|
+
}
|
|
40
|
+
} finally {
|
|
41
|
+
await reader.cancel();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
46
|
+
const iterator = readBytes(stream, chunkSize);
|
|
47
|
+
|
|
48
|
+
let bytes = 0;
|
|
49
|
+
let done;
|
|
50
|
+
let _onFinish = (e) => {
|
|
51
|
+
if (!done) {
|
|
52
|
+
done = true;
|
|
53
|
+
onFinish && onFinish(e);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return new ReadableStream(
|
|
58
|
+
{
|
|
59
|
+
async pull(controller) {
|
|
60
|
+
try {
|
|
61
|
+
const { done, value } = await iterator.next();
|
|
62
|
+
|
|
63
|
+
if (done) {
|
|
64
|
+
_onFinish();
|
|
65
|
+
controller.close();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
let len = value.byteLength;
|
|
70
|
+
if (onProgress) {
|
|
71
|
+
let loadedBytes = (bytes += len);
|
|
72
|
+
onProgress(loadedBytes);
|
|
73
|
+
}
|
|
74
|
+
controller.enqueue(new Uint8Array(value));
|
|
75
|
+
} catch (err) {
|
|
76
|
+
_onFinish(err);
|
|
77
|
+
throw err;
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
cancel(reason) {
|
|
81
|
+
_onFinish(reason);
|
|
82
|
+
return iterator.return();
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
highWaterMark: 2,
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { VERSION } from '../env/data.js';
|
|
4
|
+
import AxiosError from '../core/AxiosError.js';
|
|
5
|
+
|
|
6
|
+
const validators = {};
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line func-names
|
|
9
|
+
['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {
|
|
10
|
+
validators[type] = function validator(thing) {
|
|
11
|
+
return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const deprecatedWarnings = {};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Transitional option validator
|
|
19
|
+
*
|
|
20
|
+
* @param {function|boolean?} validator - set to false if the transitional option has been removed
|
|
21
|
+
* @param {string?} version - deprecated version / removed since version
|
|
22
|
+
* @param {string?} message - some message with additional info
|
|
23
|
+
*
|
|
24
|
+
* @returns {function}
|
|
25
|
+
*/
|
|
26
|
+
validators.transitional = function transitional(validator, version, message) {
|
|
27
|
+
function formatMessage(opt, desc) {
|
|
28
|
+
return (
|
|
29
|
+
'[Axios v' +
|
|
30
|
+
VERSION +
|
|
31
|
+
"] Transitional option '" +
|
|
32
|
+
opt +
|
|
33
|
+
"'" +
|
|
34
|
+
desc +
|
|
35
|
+
(message ? '. ' + message : '')
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line func-names
|
|
40
|
+
return (value, opt, opts) => {
|
|
41
|
+
if (validator === false) {
|
|
42
|
+
throw new AxiosError(
|
|
43
|
+
formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
|
|
44
|
+
AxiosError.ERR_DEPRECATED
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (version && !deprecatedWarnings[opt]) {
|
|
49
|
+
deprecatedWarnings[opt] = true;
|
|
50
|
+
// eslint-disable-next-line no-console
|
|
51
|
+
console.warn(
|
|
52
|
+
formatMessage(
|
|
53
|
+
opt,
|
|
54
|
+
' has been deprecated since v' + version + ' and will be removed in the near future'
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return validator ? validator(value, opt, opts) : true;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
validators.spelling = function spelling(correctSpelling) {
|
|
64
|
+
return (value, opt) => {
|
|
65
|
+
// eslint-disable-next-line no-console
|
|
66
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
67
|
+
return true;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Assert object's properties type
|
|
73
|
+
*
|
|
74
|
+
* @param {object} options
|
|
75
|
+
* @param {object} schema
|
|
76
|
+
* @param {boolean?} allowUnknown
|
|
77
|
+
*
|
|
78
|
+
* @returns {object}
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
function assertOptions(options, schema, allowUnknown) {
|
|
82
|
+
if (typeof options !== 'object') {
|
|
83
|
+
throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
|
84
|
+
}
|
|
85
|
+
const keys = Object.keys(options);
|
|
86
|
+
let i = keys.length;
|
|
87
|
+
while (i-- > 0) {
|
|
88
|
+
const opt = keys[i];
|
|
89
|
+
// Use hasOwnProperty so a polluted Object.prototype.<opt> cannot supply
|
|
90
|
+
// a non-function validator and cause a TypeError.
|
|
91
|
+
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;
|
|
92
|
+
if (validator) {
|
|
93
|
+
const value = options[opt];
|
|
94
|
+
const result = value === undefined || validator(value, opt, options);
|
|
95
|
+
if (result !== true) {
|
|
96
|
+
throw new AxiosError(
|
|
97
|
+
'option ' + opt + ' must be ' + result,
|
|
98
|
+
AxiosError.ERR_BAD_OPTION_VALUE
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if (allowUnknown !== true) {
|
|
104
|
+
throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export default {
|
|
110
|
+
assertOptions,
|
|
111
|
+
validators,
|
|
112
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import URLSearchParams from './classes/URLSearchParams.js';
|
|
2
|
+
import FormData from './classes/FormData.js';
|
|
3
|
+
import Blob from './classes/Blob.js';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
isBrowser: true,
|
|
7
|
+
classes: {
|
|
8
|
+
URLSearchParams,
|
|
9
|
+
FormData,
|
|
10
|
+
Blob,
|
|
11
|
+
},
|
|
12
|
+
protocols: ['http', 'https', 'file', 'blob', 'url', 'data'],
|
|
13
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
2
|
+
|
|
3
|
+
const _navigator = (typeof navigator === 'object' && navigator) || undefined;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Determine if we're running in a standard browser environment
|
|
7
|
+
*
|
|
8
|
+
* This allows axios to run in a web worker, and react-native.
|
|
9
|
+
* Both environments support XMLHttpRequest, but not fully standard globals.
|
|
10
|
+
*
|
|
11
|
+
* web workers:
|
|
12
|
+
* typeof window -> undefined
|
|
13
|
+
* typeof document -> undefined
|
|
14
|
+
*
|
|
15
|
+
* react-native:
|
|
16
|
+
* navigator.product -> 'ReactNative'
|
|
17
|
+
* nativescript
|
|
18
|
+
* navigator.product -> 'NativeScript' or 'NS'
|
|
19
|
+
*
|
|
20
|
+
* @returns {boolean}
|
|
21
|
+
*/
|
|
22
|
+
const hasStandardBrowserEnv =
|
|
23
|
+
hasBrowserEnv &&
|
|
24
|
+
(!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Determine if we're running in a standard browser webWorker environment
|
|
28
|
+
*
|
|
29
|
+
* Although the `isStandardBrowserEnv` method indicates that
|
|
30
|
+
* `allows axios to run in a web worker`, the WebWorker will still be
|
|
31
|
+
* filtered out due to its judgment standard
|
|
32
|
+
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
33
|
+
* This leads to a problem when axios post `FormData` in webWorker
|
|
34
|
+
*/
|
|
35
|
+
const hasStandardBrowserWebWorkerEnv = (() => {
|
|
36
|
+
return (
|
|
37
|
+
typeof WorkerGlobalScope !== 'undefined' &&
|
|
38
|
+
// eslint-disable-next-line no-undef
|
|
39
|
+
self instanceof WorkerGlobalScope &&
|
|
40
|
+
typeof self.importScripts === 'function'
|
|
41
|
+
);
|
|
42
|
+
})();
|
|
43
|
+
|
|
44
|
+
const origin = (hasBrowserEnv && window.location.href) || 'http://localhost';
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
hasBrowserEnv,
|
|
48
|
+
hasStandardBrowserWebWorkerEnv,
|
|
49
|
+
hasStandardBrowserEnv,
|
|
50
|
+
_navigator as navigator,
|
|
51
|
+
origin,
|
|
52
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import crypto from 'crypto';
|
|
2
|
+
import URLSearchParams from './classes/URLSearchParams.js';
|
|
3
|
+
import FormData from './classes/FormData.js';
|
|
4
|
+
|
|
5
|
+
const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
|
6
|
+
|
|
7
|
+
const DIGIT = '0123456789';
|
|
8
|
+
|
|
9
|
+
const ALPHABET = {
|
|
10
|
+
DIGIT,
|
|
11
|
+
ALPHA,
|
|
12
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
16
|
+
let str = '';
|
|
17
|
+
const { length } = alphabet;
|
|
18
|
+
const randomValues = new Uint32Array(size);
|
|
19
|
+
crypto.randomFillSync(randomValues);
|
|
20
|
+
for (let i = 0; i < size; i++) {
|
|
21
|
+
str += alphabet[randomValues[i] % length];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return str;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
isNode: true,
|
|
29
|
+
classes: {
|
|
30
|
+
URLSearchParams,
|
|
31
|
+
FormData,
|
|
32
|
+
Blob: (typeof Blob !== 'undefined' && Blob) || null,
|
|
33
|
+
},
|
|
34
|
+
ALPHABET,
|
|
35
|
+
generateString,
|
|
36
|
+
protocols: ['http', 'https', 'file', 'data'],
|
|
37
|
+
};
|