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,494 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var CombinedStream = require('combined-stream');
|
|
4
|
+
var util = require('util');
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var http = require('http');
|
|
7
|
+
var https = require('https');
|
|
8
|
+
var parseUrl = require('url').parse;
|
|
9
|
+
var fs = require('fs');
|
|
10
|
+
var Stream = require('stream').Stream;
|
|
11
|
+
var crypto = require('crypto');
|
|
12
|
+
var mime = require('mime-types');
|
|
13
|
+
var asynckit = require('asynckit');
|
|
14
|
+
var setToStringTag = require('es-set-tostringtag');
|
|
15
|
+
var hasOwn = require('hasown');
|
|
16
|
+
var populate = require('./populate.js');
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create readable "multipart/form-data" streams.
|
|
20
|
+
* Can be used to submit forms
|
|
21
|
+
* and file uploads to other web applications.
|
|
22
|
+
*
|
|
23
|
+
* @constructor
|
|
24
|
+
* @param {object} options - Properties to be added/overriden for FormData and CombinedStream
|
|
25
|
+
*/
|
|
26
|
+
function FormData(options) {
|
|
27
|
+
if (!(this instanceof FormData)) {
|
|
28
|
+
return new FormData(options);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
this._overheadLength = 0;
|
|
32
|
+
this._valueLength = 0;
|
|
33
|
+
this._valuesToMeasure = [];
|
|
34
|
+
|
|
35
|
+
CombinedStream.call(this);
|
|
36
|
+
|
|
37
|
+
options = options || {}; // eslint-disable-line no-param-reassign
|
|
38
|
+
for (var option in options) { // eslint-disable-line no-restricted-syntax
|
|
39
|
+
this[option] = options[option];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// make it a Stream
|
|
44
|
+
util.inherits(FormData, CombinedStream);
|
|
45
|
+
|
|
46
|
+
FormData.LINE_BREAK = '\r\n';
|
|
47
|
+
FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
|
|
48
|
+
|
|
49
|
+
FormData.prototype.append = function (field, value, options) {
|
|
50
|
+
options = options || {}; // eslint-disable-line no-param-reassign
|
|
51
|
+
|
|
52
|
+
// allow filename as single option
|
|
53
|
+
if (typeof options === 'string') {
|
|
54
|
+
options = { filename: options }; // eslint-disable-line no-param-reassign
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
var append = CombinedStream.prototype.append.bind(this);
|
|
58
|
+
|
|
59
|
+
// all that streamy business can't handle numbers
|
|
60
|
+
if (typeof value === 'number' || value == null) {
|
|
61
|
+
value = String(value); // eslint-disable-line no-param-reassign
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// https://github.com/felixge/node-form-data/issues/38
|
|
65
|
+
if (Array.isArray(value)) {
|
|
66
|
+
/*
|
|
67
|
+
* Please convert your array into string
|
|
68
|
+
* the way web server expects it
|
|
69
|
+
*/
|
|
70
|
+
this._error(new Error('Arrays are not supported.'));
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var header = this._multiPartHeader(field, value, options);
|
|
75
|
+
var footer = this._multiPartFooter();
|
|
76
|
+
|
|
77
|
+
append(header);
|
|
78
|
+
append(value);
|
|
79
|
+
append(footer);
|
|
80
|
+
|
|
81
|
+
// pass along options.knownLength
|
|
82
|
+
this._trackLength(header, value, options);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
FormData.prototype._trackLength = function (header, value, options) {
|
|
86
|
+
var valueLength = 0;
|
|
87
|
+
|
|
88
|
+
/*
|
|
89
|
+
* used w/ getLengthSync(), when length is known.
|
|
90
|
+
* e.g. for streaming directly from a remote server,
|
|
91
|
+
* w/ a known file a size, and not wanting to wait for
|
|
92
|
+
* incoming file to finish to get its size.
|
|
93
|
+
*/
|
|
94
|
+
if (options.knownLength != null) {
|
|
95
|
+
valueLength += Number(options.knownLength);
|
|
96
|
+
} else if (Buffer.isBuffer(value)) {
|
|
97
|
+
valueLength = value.length;
|
|
98
|
+
} else if (typeof value === 'string') {
|
|
99
|
+
valueLength = Buffer.byteLength(value);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
this._valueLength += valueLength;
|
|
103
|
+
|
|
104
|
+
// @check why add CRLF? does this account for custom/multiple CRLFs?
|
|
105
|
+
this._overheadLength += Buffer.byteLength(header) + FormData.LINE_BREAK.length;
|
|
106
|
+
|
|
107
|
+
// empty or either doesn't have path or not an http response or not a stream
|
|
108
|
+
if (!value || (!value.path && !(value.readable && hasOwn(value, 'httpVersion')) && !(value instanceof Stream))) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// no need to bother with the length
|
|
113
|
+
if (!options.knownLength) {
|
|
114
|
+
this._valuesToMeasure.push(value);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
FormData.prototype._lengthRetriever = function (value, callback) {
|
|
119
|
+
if (hasOwn(value, 'fd')) {
|
|
120
|
+
// take read range into a account
|
|
121
|
+
// `end` = Infinity –> read file till the end
|
|
122
|
+
//
|
|
123
|
+
// TODO: Looks like there is bug in Node fs.createReadStream
|
|
124
|
+
// it doesn't respect `end` options without `start` options
|
|
125
|
+
// Fix it when node fixes it.
|
|
126
|
+
// https://github.com/joyent/node/issues/7819
|
|
127
|
+
if (value.end != undefined && value.end != Infinity && value.start != undefined) {
|
|
128
|
+
// when end specified
|
|
129
|
+
// no need to calculate range
|
|
130
|
+
// inclusive, starts with 0
|
|
131
|
+
callback(null, value.end + 1 - (value.start ? value.start : 0)); // eslint-disable-line callback-return
|
|
132
|
+
|
|
133
|
+
// not that fast snoopy
|
|
134
|
+
} else {
|
|
135
|
+
// still need to fetch file size from fs
|
|
136
|
+
fs.stat(value.path, function (err, stat) {
|
|
137
|
+
if (err) {
|
|
138
|
+
callback(err);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// update final size based on the range options
|
|
143
|
+
var fileSize = stat.size - (value.start ? value.start : 0);
|
|
144
|
+
callback(null, fileSize);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// or http response
|
|
149
|
+
} else if (hasOwn(value, 'httpVersion')) {
|
|
150
|
+
callback(null, Number(value.headers['content-length'])); // eslint-disable-line callback-return
|
|
151
|
+
|
|
152
|
+
// or request stream http://github.com/mikeal/request
|
|
153
|
+
} else if (hasOwn(value, 'httpModule')) {
|
|
154
|
+
// wait till response come back
|
|
155
|
+
value.on('response', function (response) {
|
|
156
|
+
value.pause();
|
|
157
|
+
callback(null, Number(response.headers['content-length']));
|
|
158
|
+
});
|
|
159
|
+
value.resume();
|
|
160
|
+
|
|
161
|
+
// something else
|
|
162
|
+
} else {
|
|
163
|
+
callback('Unknown stream'); // eslint-disable-line callback-return
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
FormData.prototype._multiPartHeader = function (field, value, options) {
|
|
168
|
+
/*
|
|
169
|
+
* custom header specified (as string)?
|
|
170
|
+
* it becomes responsible for boundary
|
|
171
|
+
* (e.g. to handle extra CRLFs on .NET servers)
|
|
172
|
+
*/
|
|
173
|
+
if (typeof options.header === 'string') {
|
|
174
|
+
return options.header;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
var contentDisposition = this._getContentDisposition(value, options);
|
|
178
|
+
var contentType = this._getContentType(value, options);
|
|
179
|
+
|
|
180
|
+
var contents = '';
|
|
181
|
+
var headers = {
|
|
182
|
+
// add custom disposition as third element or keep it two elements if not
|
|
183
|
+
'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
|
|
184
|
+
// if no content type. allow it to be empty array
|
|
185
|
+
'Content-Type': [].concat(contentType || [])
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
// allow custom headers.
|
|
189
|
+
if (typeof options.header === 'object') {
|
|
190
|
+
populate(headers, options.header);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
var header;
|
|
194
|
+
for (var prop in headers) { // eslint-disable-line no-restricted-syntax
|
|
195
|
+
if (hasOwn(headers, prop)) {
|
|
196
|
+
header = headers[prop];
|
|
197
|
+
|
|
198
|
+
// skip nullish headers.
|
|
199
|
+
if (header == null) {
|
|
200
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// convert all headers to arrays.
|
|
204
|
+
if (!Array.isArray(header)) {
|
|
205
|
+
header = [header];
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// add non-empty headers.
|
|
209
|
+
if (header.length) {
|
|
210
|
+
contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
FormData.prototype._getContentDisposition = function (value, options) { // eslint-disable-line consistent-return
|
|
219
|
+
var filename;
|
|
220
|
+
|
|
221
|
+
if (typeof options.filepath === 'string') {
|
|
222
|
+
// custom filepath for relative paths
|
|
223
|
+
filename = path.normalize(options.filepath).replace(/\\/g, '/');
|
|
224
|
+
} else if (options.filename || (value && (value.name || value.path))) {
|
|
225
|
+
/*
|
|
226
|
+
* custom filename take precedence
|
|
227
|
+
* formidable and the browser add a name property
|
|
228
|
+
* fs- and request- streams have path property
|
|
229
|
+
*/
|
|
230
|
+
filename = path.basename(options.filename || (value && (value.name || value.path)));
|
|
231
|
+
} else if (value && value.readable && hasOwn(value, 'httpVersion')) {
|
|
232
|
+
// or try http response
|
|
233
|
+
filename = path.basename(value.client._httpMessage.path || '');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (filename) {
|
|
237
|
+
return 'filename="' + filename + '"';
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
FormData.prototype._getContentType = function (value, options) {
|
|
242
|
+
// use custom content-type above all
|
|
243
|
+
var contentType = options.contentType;
|
|
244
|
+
|
|
245
|
+
// or try `name` from formidable, browser
|
|
246
|
+
if (!contentType && value && value.name) {
|
|
247
|
+
contentType = mime.lookup(value.name);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// or try `path` from fs-, request- streams
|
|
251
|
+
if (!contentType && value && value.path) {
|
|
252
|
+
contentType = mime.lookup(value.path);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// or if it's http-reponse
|
|
256
|
+
if (!contentType && value && value.readable && hasOwn(value, 'httpVersion')) {
|
|
257
|
+
contentType = value.headers['content-type'];
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// or guess it from the filepath or filename
|
|
261
|
+
if (!contentType && (options.filepath || options.filename)) {
|
|
262
|
+
contentType = mime.lookup(options.filepath || options.filename);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// fallback to the default content type if `value` is not simple value
|
|
266
|
+
if (!contentType && value && typeof value === 'object') {
|
|
267
|
+
contentType = FormData.DEFAULT_CONTENT_TYPE;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return contentType;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
FormData.prototype._multiPartFooter = function () {
|
|
274
|
+
return function (next) {
|
|
275
|
+
var footer = FormData.LINE_BREAK;
|
|
276
|
+
|
|
277
|
+
var lastPart = this._streams.length === 0;
|
|
278
|
+
if (lastPart) {
|
|
279
|
+
footer += this._lastBoundary();
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
next(footer);
|
|
283
|
+
}.bind(this);
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
FormData.prototype._lastBoundary = function () {
|
|
287
|
+
return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
FormData.prototype.getHeaders = function (userHeaders) {
|
|
291
|
+
var header;
|
|
292
|
+
var formHeaders = {
|
|
293
|
+
'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
for (header in userHeaders) { // eslint-disable-line no-restricted-syntax
|
|
297
|
+
if (hasOwn(userHeaders, header)) {
|
|
298
|
+
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
return formHeaders;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
FormData.prototype.setBoundary = function (boundary) {
|
|
306
|
+
if (typeof boundary !== 'string') {
|
|
307
|
+
throw new TypeError('FormData boundary must be a string');
|
|
308
|
+
}
|
|
309
|
+
this._boundary = boundary;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
FormData.prototype.getBoundary = function () {
|
|
313
|
+
if (!this._boundary) {
|
|
314
|
+
this._generateBoundary();
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
return this._boundary;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
FormData.prototype.getBuffer = function () {
|
|
321
|
+
var dataBuffer = new Buffer.alloc(0); // eslint-disable-line new-cap
|
|
322
|
+
var boundary = this.getBoundary();
|
|
323
|
+
|
|
324
|
+
// Create the form content. Add Line breaks to the end of data.
|
|
325
|
+
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
326
|
+
if (typeof this._streams[i] !== 'function') {
|
|
327
|
+
// Add content to the buffer.
|
|
328
|
+
if (Buffer.isBuffer(this._streams[i])) {
|
|
329
|
+
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
|
330
|
+
} else {
|
|
331
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// Add break after content.
|
|
335
|
+
if (typeof this._streams[i] !== 'string' || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
|
336
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData.LINE_BREAK)]);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// Add the footer and return the Buffer object.
|
|
342
|
+
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
FormData.prototype._generateBoundary = function () {
|
|
346
|
+
// This generates a 50 character boundary similar to those used by Firefox.
|
|
347
|
+
|
|
348
|
+
// They are optimized for boyer-moore parsing.
|
|
349
|
+
this._boundary = '--------------------------' + crypto.randomBytes(12).toString('hex');
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
// Note: getLengthSync DOESN'T calculate streams length
|
|
353
|
+
// As workaround one can calculate file size manually and add it as knownLength option
|
|
354
|
+
FormData.prototype.getLengthSync = function () {
|
|
355
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
356
|
+
|
|
357
|
+
// Don't get confused, there are 3 "internal" streams for each keyval pair so it basically checks if there is any value added to the form
|
|
358
|
+
if (this._streams.length) {
|
|
359
|
+
knownLength += this._lastBoundary().length;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// https://github.com/form-data/form-data/issues/40
|
|
363
|
+
if (!this.hasKnownLength()) {
|
|
364
|
+
/*
|
|
365
|
+
* Some async length retrievers are present
|
|
366
|
+
* therefore synchronous length calculation is false.
|
|
367
|
+
* Please use getLength(callback) to get proper length
|
|
368
|
+
*/
|
|
369
|
+
this._error(new Error('Cannot calculate proper length in synchronous way.'));
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
return knownLength;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
// Public API to check if length of added values is known
|
|
376
|
+
// https://github.com/form-data/form-data/issues/196
|
|
377
|
+
// https://github.com/form-data/form-data/issues/262
|
|
378
|
+
FormData.prototype.hasKnownLength = function () {
|
|
379
|
+
var hasKnownLength = true;
|
|
380
|
+
|
|
381
|
+
if (this._valuesToMeasure.length) {
|
|
382
|
+
hasKnownLength = false;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
return hasKnownLength;
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
FormData.prototype.getLength = function (cb) {
|
|
389
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
390
|
+
|
|
391
|
+
if (this._streams.length) {
|
|
392
|
+
knownLength += this._lastBoundary().length;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (!this._valuesToMeasure.length) {
|
|
396
|
+
process.nextTick(cb.bind(this, null, knownLength));
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function (err, values) {
|
|
401
|
+
if (err) {
|
|
402
|
+
cb(err);
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
values.forEach(function (length) {
|
|
407
|
+
knownLength += length;
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
cb(null, knownLength);
|
|
411
|
+
});
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
FormData.prototype.submit = function (params, cb) {
|
|
415
|
+
var request;
|
|
416
|
+
var options;
|
|
417
|
+
var defaults = { method: 'post' };
|
|
418
|
+
|
|
419
|
+
// parse provided url if it's string or treat it as options object
|
|
420
|
+
if (typeof params === 'string') {
|
|
421
|
+
params = parseUrl(params); // eslint-disable-line no-param-reassign
|
|
422
|
+
/* eslint sort-keys: 0 */
|
|
423
|
+
options = populate({
|
|
424
|
+
port: params.port,
|
|
425
|
+
path: params.pathname,
|
|
426
|
+
host: params.hostname,
|
|
427
|
+
protocol: params.protocol
|
|
428
|
+
}, defaults);
|
|
429
|
+
} else { // use custom params
|
|
430
|
+
options = populate(params, defaults);
|
|
431
|
+
// if no port provided use default one
|
|
432
|
+
if (!options.port) {
|
|
433
|
+
options.port = options.protocol === 'https:' ? 443 : 80;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// put that good code in getHeaders to some use
|
|
438
|
+
options.headers = this.getHeaders(params.headers);
|
|
439
|
+
|
|
440
|
+
// https if specified, fallback to http in any other case
|
|
441
|
+
if (options.protocol === 'https:') {
|
|
442
|
+
request = https.request(options);
|
|
443
|
+
} else {
|
|
444
|
+
request = http.request(options);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
// get content length and fire away
|
|
448
|
+
this.getLength(function (err, length) {
|
|
449
|
+
if (err && err !== 'Unknown stream') {
|
|
450
|
+
this._error(err);
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
// add content length
|
|
455
|
+
if (length) {
|
|
456
|
+
request.setHeader('Content-Length', length);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
this.pipe(request);
|
|
460
|
+
if (cb) {
|
|
461
|
+
var onResponse;
|
|
462
|
+
|
|
463
|
+
var callback = function (error, responce) {
|
|
464
|
+
request.removeListener('error', callback);
|
|
465
|
+
request.removeListener('response', onResponse);
|
|
466
|
+
|
|
467
|
+
return cb.call(this, error, responce);
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
onResponse = callback.bind(this, null);
|
|
471
|
+
|
|
472
|
+
request.on('error', callback);
|
|
473
|
+
request.on('response', onResponse);
|
|
474
|
+
}
|
|
475
|
+
}.bind(this));
|
|
476
|
+
|
|
477
|
+
return request;
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
FormData.prototype._error = function (err) {
|
|
481
|
+
if (!this.error) {
|
|
482
|
+
this.error = err;
|
|
483
|
+
this.pause();
|
|
484
|
+
this.emit('error', err);
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
FormData.prototype.toString = function () {
|
|
489
|
+
return '[object FormData]';
|
|
490
|
+
};
|
|
491
|
+
setToStringTag(FormData.prototype, 'FormData');
|
|
492
|
+
|
|
493
|
+
// Public API
|
|
494
|
+
module.exports = FormData;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Felix Geisendörfer <felix@debuggable.com> (http://debuggable.com/)",
|
|
3
|
+
"name": "form-data",
|
|
4
|
+
"description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.",
|
|
5
|
+
"version": "4.0.5",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git://github.com/form-data/form-data.git"
|
|
9
|
+
},
|
|
10
|
+
"main": "./lib/form_data",
|
|
11
|
+
"browser": "./lib/browser",
|
|
12
|
+
"typings": "./index.d.ts",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"pretest": "npm run lint",
|
|
15
|
+
"pretests-only": "rimraf coverage test/tmp",
|
|
16
|
+
"tests-only": "istanbul cover test/run.js",
|
|
17
|
+
"posttests-only": "istanbul report lcov text",
|
|
18
|
+
"test": "npm run tests-only",
|
|
19
|
+
"posttest": "npx npm@'>=10.2' audit --production",
|
|
20
|
+
"lint": "eslint --ext=js,mjs .",
|
|
21
|
+
"report": "istanbul report lcov text",
|
|
22
|
+
"ci-lint": "is-node-modern 8 && npm run lint || is-node-not-modern 8",
|
|
23
|
+
"ci-test": "npm run tests-only && npm run browser && npm run report",
|
|
24
|
+
"predebug": "rimraf coverage test/tmp",
|
|
25
|
+
"debug": "verbose=1 ./test/run.js",
|
|
26
|
+
"browser": "browserify -t browserify-istanbul test/run-browser.js | obake --coverage",
|
|
27
|
+
"check": "istanbul check-coverage coverage/coverage*.json",
|
|
28
|
+
"files": "pkgfiles --sort=name",
|
|
29
|
+
"get-version": "node -e \"console.log(require('./package.json').version)\"",
|
|
30
|
+
"update-readme": "sed -i.bak 's/\\/master\\.svg/\\/v'$(npm --silent run get-version)'.svg/g' README.md",
|
|
31
|
+
"postupdate-readme": "mv README.md.bak READ.ME.md.bak",
|
|
32
|
+
"restore-readme": "mv READ.ME.md.bak README.md",
|
|
33
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
34
|
+
"prepack": "npm run update-readme",
|
|
35
|
+
"postpack": "npm run restore-readme",
|
|
36
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
37
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">= 6"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"asynckit": "^0.4.0",
|
|
44
|
+
"combined-stream": "^1.0.8",
|
|
45
|
+
"es-set-tostringtag": "^2.1.0",
|
|
46
|
+
"hasown": "^2.0.2",
|
|
47
|
+
"mime-types": "^2.1.12"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@ljharb/eslint-config": "^21.4.0",
|
|
51
|
+
"auto-changelog": "^2.5.0",
|
|
52
|
+
"browserify": "^13.3.0",
|
|
53
|
+
"browserify-istanbul": "^2.0.0",
|
|
54
|
+
"coveralls": "^3.1.1",
|
|
55
|
+
"cross-spawn": "^6.0.6",
|
|
56
|
+
"eslint": "^8.57.1",
|
|
57
|
+
"fake": "^0.2.2",
|
|
58
|
+
"far": "^0.0.7",
|
|
59
|
+
"formidable": "^1.2.6",
|
|
60
|
+
"in-publish": "^2.0.1",
|
|
61
|
+
"is-node-modern": "^1.0.0",
|
|
62
|
+
"istanbul": "^0.4.5",
|
|
63
|
+
"js-randomness-predictor": "^1.5.5",
|
|
64
|
+
"obake": "^0.1.2",
|
|
65
|
+
"pkgfiles": "^2.3.2",
|
|
66
|
+
"pre-commit": "^1.2.2",
|
|
67
|
+
"puppeteer": "^1.20.0",
|
|
68
|
+
"request": "~2.87.0",
|
|
69
|
+
"rimraf": "^2.7.1",
|
|
70
|
+
"semver": "^6.3.1",
|
|
71
|
+
"tape": "^5.9.0"
|
|
72
|
+
},
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"auto-changelog": {
|
|
75
|
+
"output": "CHANGELOG.md",
|
|
76
|
+
"template": "keepachangelog",
|
|
77
|
+
"unreleased": false,
|
|
78
|
+
"commitLimit": false,
|
|
79
|
+
"backfillLimit": false,
|
|
80
|
+
"hideCredit": true
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
|
|
4
|
+
"extends": "@ljharb",
|
|
5
|
+
|
|
6
|
+
"rules": {
|
|
7
|
+
"func-name-matching": 0,
|
|
8
|
+
"indent": [2, 4],
|
|
9
|
+
"no-new-func": [1],
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
"overrides": [
|
|
13
|
+
{
|
|
14
|
+
"files": "test/**",
|
|
15
|
+
"rules": {
|
|
16
|
+
"max-lines-per-function": 0,
|
|
17
|
+
"strict": [0]
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [ljharb]
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: npm/function-bind
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|