reflex-search 1.2.0 → 1.4.0
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,709 @@
|
|
|
1
|
+
var url = require("url");
|
|
2
|
+
var URL = url.URL;
|
|
3
|
+
var http = require("http");
|
|
4
|
+
var https = require("https");
|
|
5
|
+
var Writable = require("stream").Writable;
|
|
6
|
+
var assert = require("assert");
|
|
7
|
+
var debug = require("./debug");
|
|
8
|
+
|
|
9
|
+
// Preventive platform detection
|
|
10
|
+
// istanbul ignore next
|
|
11
|
+
(function detectUnsupportedEnvironment() {
|
|
12
|
+
var looksLikeNode = typeof process !== "undefined";
|
|
13
|
+
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
14
|
+
var looksLikeV8 = isFunction(Error.captureStackTrace);
|
|
15
|
+
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
16
|
+
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
17
|
+
}
|
|
18
|
+
}());
|
|
19
|
+
|
|
20
|
+
// Whether to use the native URL object or the legacy url module
|
|
21
|
+
var useNativeURL = false;
|
|
22
|
+
try {
|
|
23
|
+
assert(new URL(""));
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// HTTP headers to drop across HTTP/HTTPS and domain boundaries
|
|
30
|
+
var sensitiveHeaders = [
|
|
31
|
+
"Authorization",
|
|
32
|
+
"Proxy-Authorization",
|
|
33
|
+
"Cookie",
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
// URL fields to preserve in copy operations
|
|
37
|
+
var preservedUrlFields = [
|
|
38
|
+
"auth",
|
|
39
|
+
"host",
|
|
40
|
+
"hostname",
|
|
41
|
+
"href",
|
|
42
|
+
"path",
|
|
43
|
+
"pathname",
|
|
44
|
+
"port",
|
|
45
|
+
"protocol",
|
|
46
|
+
"query",
|
|
47
|
+
"search",
|
|
48
|
+
"hash",
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
// Create handlers that pass events from native requests
|
|
52
|
+
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
53
|
+
var eventHandlers = Object.create(null);
|
|
54
|
+
events.forEach(function (event) {
|
|
55
|
+
eventHandlers[event] = function (arg1, arg2, arg3) {
|
|
56
|
+
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// Error types with codes
|
|
61
|
+
var InvalidUrlError = createErrorType(
|
|
62
|
+
"ERR_INVALID_URL",
|
|
63
|
+
"Invalid URL",
|
|
64
|
+
TypeError
|
|
65
|
+
);
|
|
66
|
+
var RedirectionError = createErrorType(
|
|
67
|
+
"ERR_FR_REDIRECTION_FAILURE",
|
|
68
|
+
"Redirected request failed"
|
|
69
|
+
);
|
|
70
|
+
var TooManyRedirectsError = createErrorType(
|
|
71
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
72
|
+
"Maximum number of redirects exceeded",
|
|
73
|
+
RedirectionError
|
|
74
|
+
);
|
|
75
|
+
var MaxBodyLengthExceededError = createErrorType(
|
|
76
|
+
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
77
|
+
"Request body larger than maxBodyLength limit"
|
|
78
|
+
);
|
|
79
|
+
var WriteAfterEndError = createErrorType(
|
|
80
|
+
"ERR_STREAM_WRITE_AFTER_END",
|
|
81
|
+
"write after end"
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
// istanbul ignore next
|
|
85
|
+
var destroy = Writable.prototype.destroy || noop;
|
|
86
|
+
|
|
87
|
+
// An HTTP(S) request that can be redirected
|
|
88
|
+
function RedirectableRequest(options, responseCallback) {
|
|
89
|
+
// Initialize the request
|
|
90
|
+
Writable.call(this);
|
|
91
|
+
this._sanitizeOptions(options);
|
|
92
|
+
this._options = options;
|
|
93
|
+
this._ended = false;
|
|
94
|
+
this._ending = false;
|
|
95
|
+
this._redirectCount = 0;
|
|
96
|
+
this._redirects = [];
|
|
97
|
+
this._requestBodyLength = 0;
|
|
98
|
+
this._requestBodyBuffers = [];
|
|
99
|
+
|
|
100
|
+
// Attach a callback if passed
|
|
101
|
+
if (responseCallback) {
|
|
102
|
+
this.on("response", responseCallback);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// React to responses of native requests
|
|
106
|
+
var self = this;
|
|
107
|
+
this._onNativeResponse = function (response) {
|
|
108
|
+
try {
|
|
109
|
+
self._processResponse(response);
|
|
110
|
+
}
|
|
111
|
+
catch (cause) {
|
|
112
|
+
self.emit("error", cause instanceof RedirectionError ?
|
|
113
|
+
cause : new RedirectionError({ cause: cause }));
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// Create filter for sensitive HTTP headers
|
|
118
|
+
this._headerFilter = new RegExp("^(?:" +
|
|
119
|
+
sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") +
|
|
120
|
+
")$", "i");
|
|
121
|
+
|
|
122
|
+
// Perform the first request
|
|
123
|
+
this._performRequest();
|
|
124
|
+
}
|
|
125
|
+
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
126
|
+
|
|
127
|
+
RedirectableRequest.prototype.abort = function () {
|
|
128
|
+
destroyRequest(this._currentRequest);
|
|
129
|
+
this._currentRequest.abort();
|
|
130
|
+
this.emit("abort");
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
RedirectableRequest.prototype.destroy = function (error) {
|
|
134
|
+
destroyRequest(this._currentRequest, error);
|
|
135
|
+
destroy.call(this, error);
|
|
136
|
+
return this;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// Writes buffered data to the current native request
|
|
140
|
+
RedirectableRequest.prototype.write = function (data, encoding, callback) {
|
|
141
|
+
// Writing is not allowed if end has been called
|
|
142
|
+
if (this._ending) {
|
|
143
|
+
throw new WriteAfterEndError();
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Validate input and shift parameters if necessary
|
|
147
|
+
if (!isString(data) && !isBuffer(data)) {
|
|
148
|
+
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
149
|
+
}
|
|
150
|
+
if (isFunction(encoding)) {
|
|
151
|
+
callback = encoding;
|
|
152
|
+
encoding = null;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// Ignore empty buffers, since writing them doesn't invoke the callback
|
|
156
|
+
// https://github.com/nodejs/node/issues/22066
|
|
157
|
+
if (data.length === 0) {
|
|
158
|
+
if (callback) {
|
|
159
|
+
callback();
|
|
160
|
+
}
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
// Only write when we don't exceed the maximum body length
|
|
164
|
+
if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {
|
|
165
|
+
this._requestBodyLength += data.length;
|
|
166
|
+
this._requestBodyBuffers.push({ data: data, encoding: encoding });
|
|
167
|
+
this._currentRequest.write(data, encoding, callback);
|
|
168
|
+
}
|
|
169
|
+
// Error when we exceed the maximum body length
|
|
170
|
+
else {
|
|
171
|
+
this.emit("error", new MaxBodyLengthExceededError());
|
|
172
|
+
this.abort();
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
// Ends the current native request
|
|
177
|
+
RedirectableRequest.prototype.end = function (data, encoding, callback) {
|
|
178
|
+
// Shift parameters if necessary
|
|
179
|
+
if (isFunction(data)) {
|
|
180
|
+
callback = data;
|
|
181
|
+
data = encoding = null;
|
|
182
|
+
}
|
|
183
|
+
else if (isFunction(encoding)) {
|
|
184
|
+
callback = encoding;
|
|
185
|
+
encoding = null;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Write data if needed and end
|
|
189
|
+
if (!data) {
|
|
190
|
+
this._ended = this._ending = true;
|
|
191
|
+
this._currentRequest.end(null, null, callback);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
var self = this;
|
|
195
|
+
var currentRequest = this._currentRequest;
|
|
196
|
+
this.write(data, encoding, function () {
|
|
197
|
+
self._ended = true;
|
|
198
|
+
currentRequest.end(null, null, callback);
|
|
199
|
+
});
|
|
200
|
+
this._ending = true;
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// Sets a header value on the current native request
|
|
205
|
+
RedirectableRequest.prototype.setHeader = function (name, value) {
|
|
206
|
+
this._options.headers[name] = value;
|
|
207
|
+
this._currentRequest.setHeader(name, value);
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
// Clears a header value on the current native request
|
|
211
|
+
RedirectableRequest.prototype.removeHeader = function (name) {
|
|
212
|
+
delete this._options.headers[name];
|
|
213
|
+
this._currentRequest.removeHeader(name);
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
// Global timeout for all underlying requests
|
|
217
|
+
RedirectableRequest.prototype.setTimeout = function (msecs, callback) {
|
|
218
|
+
var self = this;
|
|
219
|
+
|
|
220
|
+
// Destroys the socket on timeout
|
|
221
|
+
function destroyOnTimeout(socket) {
|
|
222
|
+
socket.setTimeout(msecs);
|
|
223
|
+
socket.removeListener("timeout", socket.destroy);
|
|
224
|
+
socket.addListener("timeout", socket.destroy);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Sets up a timer to trigger a timeout event
|
|
228
|
+
function startTimer(socket) {
|
|
229
|
+
if (self._timeout) {
|
|
230
|
+
clearTimeout(self._timeout);
|
|
231
|
+
}
|
|
232
|
+
self._timeout = setTimeout(function () {
|
|
233
|
+
self.emit("timeout");
|
|
234
|
+
clearTimer();
|
|
235
|
+
}, msecs);
|
|
236
|
+
destroyOnTimeout(socket);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// Stops a timeout from triggering
|
|
240
|
+
function clearTimer() {
|
|
241
|
+
// Clear the timeout
|
|
242
|
+
if (self._timeout) {
|
|
243
|
+
clearTimeout(self._timeout);
|
|
244
|
+
self._timeout = null;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Clean up all attached listeners
|
|
248
|
+
self.removeListener("abort", clearTimer);
|
|
249
|
+
self.removeListener("error", clearTimer);
|
|
250
|
+
self.removeListener("response", clearTimer);
|
|
251
|
+
self.removeListener("close", clearTimer);
|
|
252
|
+
if (callback) {
|
|
253
|
+
self.removeListener("timeout", callback);
|
|
254
|
+
}
|
|
255
|
+
if (!self.socket) {
|
|
256
|
+
self._currentRequest.removeListener("socket", startTimer);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Attach callback if passed
|
|
261
|
+
if (callback) {
|
|
262
|
+
this.on("timeout", callback);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// Start the timer if or when the socket is opened
|
|
266
|
+
if (this.socket) {
|
|
267
|
+
startTimer(this.socket);
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
this._currentRequest.once("socket", startTimer);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// Clean up on events
|
|
274
|
+
this.on("socket", destroyOnTimeout);
|
|
275
|
+
this.on("abort", clearTimer);
|
|
276
|
+
this.on("error", clearTimer);
|
|
277
|
+
this.on("response", clearTimer);
|
|
278
|
+
this.on("close", clearTimer);
|
|
279
|
+
|
|
280
|
+
return this;
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
// Proxy all other public ClientRequest methods
|
|
284
|
+
[
|
|
285
|
+
"flushHeaders", "getHeader",
|
|
286
|
+
"setNoDelay", "setSocketKeepAlive",
|
|
287
|
+
].forEach(function (method) {
|
|
288
|
+
RedirectableRequest.prototype[method] = function (a, b) {
|
|
289
|
+
return this._currentRequest[method](a, b);
|
|
290
|
+
};
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
// Proxy all public ClientRequest properties
|
|
294
|
+
["aborted", "connection", "socket"].forEach(function (property) {
|
|
295
|
+
Object.defineProperty(RedirectableRequest.prototype, property, {
|
|
296
|
+
get: function () { return this._currentRequest[property]; },
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
RedirectableRequest.prototype._sanitizeOptions = function (options) {
|
|
301
|
+
// Ensure headers are always present
|
|
302
|
+
if (!options.headers) {
|
|
303
|
+
options.headers = {};
|
|
304
|
+
}
|
|
305
|
+
if (!isArray(options.sensitiveHeaders)) {
|
|
306
|
+
options.sensitiveHeaders = [];
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// Since http.request treats host as an alias of hostname,
|
|
310
|
+
// but the url module interprets host as hostname plus port,
|
|
311
|
+
// eliminate the host property to avoid confusion.
|
|
312
|
+
if (options.host) {
|
|
313
|
+
// Use hostname if set, because it has precedence
|
|
314
|
+
if (!options.hostname) {
|
|
315
|
+
options.hostname = options.host;
|
|
316
|
+
}
|
|
317
|
+
delete options.host;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// Complete the URL object when necessary
|
|
321
|
+
if (!options.pathname && options.path) {
|
|
322
|
+
var searchPos = options.path.indexOf("?");
|
|
323
|
+
if (searchPos < 0) {
|
|
324
|
+
options.pathname = options.path;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
options.pathname = options.path.substring(0, searchPos);
|
|
328
|
+
options.search = options.path.substring(searchPos);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
// Executes the next native request (initial or redirect)
|
|
335
|
+
RedirectableRequest.prototype._performRequest = function () {
|
|
336
|
+
// Load the native protocol
|
|
337
|
+
var protocol = this._options.protocol;
|
|
338
|
+
var nativeProtocol = this._options.nativeProtocols[protocol];
|
|
339
|
+
if (!nativeProtocol) {
|
|
340
|
+
throw new TypeError("Unsupported protocol " + protocol);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// If specified, use the agent corresponding to the protocol
|
|
344
|
+
// (HTTP and HTTPS use different types of agents)
|
|
345
|
+
if (this._options.agents) {
|
|
346
|
+
var scheme = protocol.slice(0, -1);
|
|
347
|
+
this._options.agent = this._options.agents[scheme];
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// Create the native request and set up its event handlers
|
|
351
|
+
var request = this._currentRequest =
|
|
352
|
+
nativeProtocol.request(this._options, this._onNativeResponse);
|
|
353
|
+
request._redirectable = this;
|
|
354
|
+
for (var event of events) {
|
|
355
|
+
request.on(event, eventHandlers[event]);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// RFC7230§5.3.1: When making a request directly to an origin server, […]
|
|
359
|
+
// a client MUST send only the absolute path […] as the request-target.
|
|
360
|
+
this._currentUrl = /^\//.test(this._options.path) ?
|
|
361
|
+
url.format(this._options) :
|
|
362
|
+
// When making a request to a proxy, […]
|
|
363
|
+
// a client MUST send the target URI in absolute-form […].
|
|
364
|
+
this._options.path;
|
|
365
|
+
|
|
366
|
+
// End a redirected request
|
|
367
|
+
// (The first request must be ended explicitly with RedirectableRequest#end)
|
|
368
|
+
if (this._isRedirect) {
|
|
369
|
+
// Write the request entity and end
|
|
370
|
+
var i = 0;
|
|
371
|
+
var self = this;
|
|
372
|
+
var buffers = this._requestBodyBuffers;
|
|
373
|
+
(function writeNext(error) {
|
|
374
|
+
// Only write if this request has not been redirected yet
|
|
375
|
+
// istanbul ignore else
|
|
376
|
+
if (request === self._currentRequest) {
|
|
377
|
+
// Report any write errors
|
|
378
|
+
// istanbul ignore if
|
|
379
|
+
if (error) {
|
|
380
|
+
self.emit("error", error);
|
|
381
|
+
}
|
|
382
|
+
// Write the next buffer if there are still left
|
|
383
|
+
else if (i < buffers.length) {
|
|
384
|
+
var buffer = buffers[i++];
|
|
385
|
+
// istanbul ignore else
|
|
386
|
+
if (!request.finished) {
|
|
387
|
+
request.write(buffer.data, buffer.encoding, writeNext);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
// End the request if `end` has been called on us
|
|
391
|
+
else if (self._ended) {
|
|
392
|
+
request.end();
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}());
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
// Processes a response from the current native request
|
|
400
|
+
RedirectableRequest.prototype._processResponse = function (response) {
|
|
401
|
+
// Store the redirected response
|
|
402
|
+
var statusCode = response.statusCode;
|
|
403
|
+
if (this._options.trackRedirects) {
|
|
404
|
+
this._redirects.push({
|
|
405
|
+
url: this._currentUrl,
|
|
406
|
+
headers: response.headers,
|
|
407
|
+
statusCode: statusCode,
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// RFC7231§6.4: The 3xx (Redirection) class of status code indicates
|
|
412
|
+
// that further action needs to be taken by the user agent in order to
|
|
413
|
+
// fulfill the request. If a Location header field is provided,
|
|
414
|
+
// the user agent MAY automatically redirect its request to the URI
|
|
415
|
+
// referenced by the Location field value,
|
|
416
|
+
// even if the specific status code is not understood.
|
|
417
|
+
|
|
418
|
+
// If the response is not a redirect; return it as-is
|
|
419
|
+
var location = response.headers.location;
|
|
420
|
+
if (!location || this._options.followRedirects === false ||
|
|
421
|
+
statusCode < 300 || statusCode >= 400) {
|
|
422
|
+
response.responseUrl = this._currentUrl;
|
|
423
|
+
response.redirects = this._redirects;
|
|
424
|
+
this.emit("response", response);
|
|
425
|
+
|
|
426
|
+
// Clean up
|
|
427
|
+
this._requestBodyBuffers = [];
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// The response is a redirect, so abort the current request
|
|
432
|
+
destroyRequest(this._currentRequest);
|
|
433
|
+
// Discard the remainder of the response to avoid waiting for data
|
|
434
|
+
response.destroy();
|
|
435
|
+
|
|
436
|
+
// RFC7231§6.4: A client SHOULD detect and intervene
|
|
437
|
+
// in cyclical redirections (i.e., "infinite" redirection loops).
|
|
438
|
+
if (++this._redirectCount > this._options.maxRedirects) {
|
|
439
|
+
throw new TooManyRedirectsError();
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// Store the request headers if applicable
|
|
443
|
+
var requestHeaders;
|
|
444
|
+
var beforeRedirect = this._options.beforeRedirect;
|
|
445
|
+
if (beforeRedirect) {
|
|
446
|
+
requestHeaders = Object.assign({
|
|
447
|
+
// The Host header was set by nativeProtocol.request
|
|
448
|
+
Host: response.req.getHeader("host"),
|
|
449
|
+
}, this._options.headers);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// RFC7231§6.4: Automatic redirection needs to done with
|
|
453
|
+
// care for methods not known to be safe, […]
|
|
454
|
+
// RFC7231§6.4.2–3: For historical reasons, a user agent MAY change
|
|
455
|
+
// the request method from POST to GET for the subsequent request.
|
|
456
|
+
var method = this._options.method;
|
|
457
|
+
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" ||
|
|
458
|
+
// RFC7231§6.4.4: The 303 (See Other) status code indicates that
|
|
459
|
+
// the server is redirecting the user agent to a different resource […]
|
|
460
|
+
// A user agent can perform a retrieval request targeting that URI
|
|
461
|
+
// (a GET or HEAD request if using HTTP) […]
|
|
462
|
+
(statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
463
|
+
this._options.method = "GET";
|
|
464
|
+
// Drop a possible entity and headers related to it
|
|
465
|
+
this._requestBodyBuffers = [];
|
|
466
|
+
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// Drop the Host header, as the redirect might lead to a different host
|
|
470
|
+
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
471
|
+
|
|
472
|
+
// If the redirect is relative, carry over the host of the last request
|
|
473
|
+
var currentUrlParts = parseUrl(this._currentUrl);
|
|
474
|
+
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
475
|
+
var currentUrl = /^\w+:/.test(location) ? this._currentUrl :
|
|
476
|
+
url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
477
|
+
|
|
478
|
+
// Create the redirected request
|
|
479
|
+
var redirectUrl = resolveUrl(location, currentUrl);
|
|
480
|
+
debug("redirecting to", redirectUrl.href);
|
|
481
|
+
this._isRedirect = true;
|
|
482
|
+
spreadUrlObject(redirectUrl, this._options);
|
|
483
|
+
|
|
484
|
+
// Drop confidential headers when redirecting to a less secure protocol
|
|
485
|
+
// or to a different domain that is not a superdomain
|
|
486
|
+
if (redirectUrl.protocol !== currentUrlParts.protocol &&
|
|
487
|
+
redirectUrl.protocol !== "https:" ||
|
|
488
|
+
redirectUrl.host !== currentHost &&
|
|
489
|
+
!isSubdomain(redirectUrl.host, currentHost)) {
|
|
490
|
+
removeMatchingHeaders(this._headerFilter, this._options.headers);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// Evaluate the beforeRedirect callback
|
|
494
|
+
if (isFunction(beforeRedirect)) {
|
|
495
|
+
var responseDetails = {
|
|
496
|
+
headers: response.headers,
|
|
497
|
+
statusCode: statusCode,
|
|
498
|
+
};
|
|
499
|
+
var requestDetails = {
|
|
500
|
+
url: currentUrl,
|
|
501
|
+
method: method,
|
|
502
|
+
headers: requestHeaders,
|
|
503
|
+
};
|
|
504
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
505
|
+
this._sanitizeOptions(this._options);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// Perform the redirected request
|
|
509
|
+
this._performRequest();
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
// Wraps the key/value object of protocols with redirect functionality
|
|
513
|
+
function wrap(protocols) {
|
|
514
|
+
// Default settings
|
|
515
|
+
var exports = {
|
|
516
|
+
maxRedirects: 21,
|
|
517
|
+
maxBodyLength: 10 * 1024 * 1024,
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
// Wrap each protocol
|
|
521
|
+
var nativeProtocols = {};
|
|
522
|
+
Object.keys(protocols).forEach(function (scheme) {
|
|
523
|
+
var protocol = scheme + ":";
|
|
524
|
+
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
525
|
+
var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);
|
|
526
|
+
|
|
527
|
+
// Executes a request, following redirects
|
|
528
|
+
function request(input, options, callback) {
|
|
529
|
+
// Parse parameters, ensuring that input is an object
|
|
530
|
+
if (isURL(input)) {
|
|
531
|
+
input = spreadUrlObject(input);
|
|
532
|
+
}
|
|
533
|
+
else if (isString(input)) {
|
|
534
|
+
input = spreadUrlObject(parseUrl(input));
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
callback = options;
|
|
538
|
+
options = validateUrl(input);
|
|
539
|
+
input = { protocol: protocol };
|
|
540
|
+
}
|
|
541
|
+
if (isFunction(options)) {
|
|
542
|
+
callback = options;
|
|
543
|
+
options = null;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
// Set defaults
|
|
547
|
+
options = Object.assign({
|
|
548
|
+
maxRedirects: exports.maxRedirects,
|
|
549
|
+
maxBodyLength: exports.maxBodyLength,
|
|
550
|
+
}, input, options);
|
|
551
|
+
options.nativeProtocols = nativeProtocols;
|
|
552
|
+
if (!isString(options.host) && !isString(options.hostname)) {
|
|
553
|
+
options.hostname = "::1";
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
assert.equal(options.protocol, protocol, "protocol mismatch");
|
|
557
|
+
debug("options", options);
|
|
558
|
+
return new RedirectableRequest(options, callback);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
// Executes a GET request, following redirects
|
|
562
|
+
function get(input, options, callback) {
|
|
563
|
+
var wrappedRequest = wrappedProtocol.request(input, options, callback);
|
|
564
|
+
wrappedRequest.end();
|
|
565
|
+
return wrappedRequest;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// Expose the properties on the wrapped protocol
|
|
569
|
+
Object.defineProperties(wrappedProtocol, {
|
|
570
|
+
request: { value: request, configurable: true, enumerable: true, writable: true },
|
|
571
|
+
get: { value: get, configurable: true, enumerable: true, writable: true },
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
return exports;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
function noop() { /* empty */ }
|
|
578
|
+
|
|
579
|
+
function parseUrl(input) {
|
|
580
|
+
var parsed;
|
|
581
|
+
// istanbul ignore else
|
|
582
|
+
if (useNativeURL) {
|
|
583
|
+
parsed = new URL(input);
|
|
584
|
+
}
|
|
585
|
+
else {
|
|
586
|
+
// Ensure the URL is valid and absolute
|
|
587
|
+
parsed = validateUrl(url.parse(input));
|
|
588
|
+
if (!isString(parsed.protocol)) {
|
|
589
|
+
throw new InvalidUrlError({ input });
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
return parsed;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
function resolveUrl(relative, base) {
|
|
596
|
+
// istanbul ignore next
|
|
597
|
+
return useNativeURL ? new URL(relative, base) : parseUrl(url.resolve(base, relative));
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
function validateUrl(input) {
|
|
601
|
+
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
602
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
603
|
+
}
|
|
604
|
+
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
|
605
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
606
|
+
}
|
|
607
|
+
return input;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
function spreadUrlObject(urlObject, target) {
|
|
611
|
+
var spread = target || {};
|
|
612
|
+
for (var key of preservedUrlFields) {
|
|
613
|
+
spread[key] = urlObject[key];
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// Fix IPv6 hostname
|
|
617
|
+
if (spread.hostname.startsWith("[")) {
|
|
618
|
+
spread.hostname = spread.hostname.slice(1, -1);
|
|
619
|
+
}
|
|
620
|
+
// Ensure port is a number
|
|
621
|
+
if (spread.port !== "") {
|
|
622
|
+
spread.port = Number(spread.port);
|
|
623
|
+
}
|
|
624
|
+
// Concatenate path
|
|
625
|
+
spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;
|
|
626
|
+
|
|
627
|
+
return spread;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
function removeMatchingHeaders(regex, headers) {
|
|
631
|
+
var lastValue;
|
|
632
|
+
for (var header in headers) {
|
|
633
|
+
if (regex.test(header)) {
|
|
634
|
+
lastValue = headers[header];
|
|
635
|
+
delete headers[header];
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
return (lastValue === null || typeof lastValue === "undefined") ?
|
|
639
|
+
undefined : String(lastValue).trim();
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
function createErrorType(code, message, baseClass) {
|
|
643
|
+
// Create constructor
|
|
644
|
+
function CustomError(properties) {
|
|
645
|
+
// istanbul ignore else
|
|
646
|
+
if (isFunction(Error.captureStackTrace)) {
|
|
647
|
+
Error.captureStackTrace(this, this.constructor);
|
|
648
|
+
}
|
|
649
|
+
Object.assign(this, properties || {});
|
|
650
|
+
this.code = code;
|
|
651
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
// Attach constructor and set default properties
|
|
655
|
+
CustomError.prototype = new (baseClass || Error)();
|
|
656
|
+
Object.defineProperties(CustomError.prototype, {
|
|
657
|
+
constructor: {
|
|
658
|
+
value: CustomError,
|
|
659
|
+
enumerable: false,
|
|
660
|
+
},
|
|
661
|
+
name: {
|
|
662
|
+
value: "Error [" + code + "]",
|
|
663
|
+
enumerable: false,
|
|
664
|
+
},
|
|
665
|
+
});
|
|
666
|
+
return CustomError;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
function destroyRequest(request, error) {
|
|
670
|
+
for (var event of events) {
|
|
671
|
+
request.removeListener(event, eventHandlers[event]);
|
|
672
|
+
}
|
|
673
|
+
request.on("error", noop);
|
|
674
|
+
request.destroy(error);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
function isSubdomain(subdomain, domain) {
|
|
678
|
+
assert(isString(subdomain) && isString(domain));
|
|
679
|
+
var dot = subdomain.length - domain.length - 1;
|
|
680
|
+
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
function isArray(value) {
|
|
684
|
+
return value instanceof Array;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
function isString(value) {
|
|
688
|
+
return typeof value === "string" || value instanceof String;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
function isFunction(value) {
|
|
692
|
+
return typeof value === "function";
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
function isBuffer(value) {
|
|
696
|
+
return typeof value === "object" && ("length" in value);
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
function isURL(value) {
|
|
700
|
+
return URL && value instanceof URL;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
function escapeRegex(regex) {
|
|
704
|
+
return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
// Exports
|
|
708
|
+
module.exports = wrap({ http: http, https: https });
|
|
709
|
+
module.exports.wrap = wrap;
|