@corellium/corellium-cli 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/.gitlab-ci.yml +17 -3
- package/README.md +7 -0
- package/coverage/cobertura-coverage.xml +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/node_modules/@babel/cli/LICENSE +22 -0
- package/node_modules/@babel/cli/README.md +19 -0
- package/node_modules/@babel/cli/bin/babel-external-helpers.js +3 -0
- package/node_modules/@babel/cli/bin/babel.js +3 -0
- package/node_modules/@babel/cli/index.js +1 -0
- package/node_modules/@babel/cli/lib/babel/dir.js +285 -0
- package/node_modules/@babel/cli/lib/babel/file.js +273 -0
- package/node_modules/@babel/cli/lib/babel/index.js +20 -0
- package/node_modules/@babel/cli/lib/babel/options.js +285 -0
- package/node_modules/@babel/cli/lib/babel/util.js +181 -0
- package/node_modules/@babel/cli/lib/babel/watcher.js +162 -0
- package/node_modules/@babel/cli/lib/babel-external-helpers.js +43 -0
- package/node_modules/@babel/cli/node_modules/commander/CHANGELOG.md +436 -0
- package/node_modules/@babel/cli/node_modules/commander/LICENSE +22 -0
- package/node_modules/@babel/cli/node_modules/commander/Readme.md +713 -0
- package/node_modules/@babel/cli/node_modules/commander/index.js +1649 -0
- package/node_modules/@babel/cli/node_modules/commander/package.json +41 -0
- package/node_modules/@babel/cli/node_modules/commander/typings/index.d.ts +311 -0
- package/node_modules/@babel/cli/node_modules/make-dir/index.d.ts +39 -0
- package/node_modules/@babel/cli/node_modules/make-dir/index.js +139 -0
- package/node_modules/@babel/cli/node_modules/make-dir/license +9 -0
- package/node_modules/@babel/cli/node_modules/make-dir/package.json +59 -0
- package/node_modules/@babel/cli/node_modules/make-dir/readme.md +123 -0
- package/node_modules/@babel/cli/node_modules/pify/index.js +68 -0
- package/node_modules/@babel/cli/node_modules/pify/license +9 -0
- package/node_modules/@babel/cli/node_modules/pify/package.json +51 -0
- package/node_modules/@babel/cli/node_modules/pify/readme.md +145 -0
- package/node_modules/@babel/cli/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/@babel/cli/node_modules/semver/LICENSE +15 -0
- package/node_modules/@babel/cli/node_modules/semver/README.md +412 -0
- package/node_modules/@babel/cli/node_modules/semver/bin/semver +160 -0
- package/node_modules/@babel/cli/node_modules/semver/package.json +28 -0
- package/node_modules/@babel/cli/node_modules/semver/range.bnf +16 -0
- package/node_modules/@babel/cli/node_modules/semver/semver.js +1483 -0
- package/node_modules/@babel/cli/node_modules/slash/index.js +11 -0
- package/node_modules/@babel/cli/node_modules/slash/license +9 -0
- package/node_modules/@babel/cli/node_modules/slash/package.json +34 -0
- package/node_modules/@babel/cli/node_modules/slash/readme.md +44 -0
- package/node_modules/@babel/cli/package.json +55 -0
- package/node_modules/@corellium/client-api/README.md +209 -0
- package/node_modules/@corellium/client-api/dist/ApiClient.js +780 -0
- package/node_modules/@corellium/client-api/dist/api/CorelliumApi.js +1744 -0
- package/node_modules/@corellium/client-api/dist/index.js +295 -0
- package/node_modules/@corellium/client-api/dist/model/ApiConflictError.js +114 -0
- package/node_modules/@corellium/client-api/dist/model/ApiError.js +101 -0
- package/node_modules/@corellium/client-api/dist/model/ApiNotFoundError.js +111 -0
- package/node_modules/@corellium/client-api/dist/model/ApiToken.js +78 -0
- package/node_modules/@corellium/client-api/dist/model/Bit.js +50 -0
- package/node_modules/@corellium/client-api/dist/model/Credentials.js +91 -0
- package/node_modules/@corellium/client-api/dist/model/Firmware.js +208 -0
- package/node_modules/@corellium/client-api/dist/model/GpioStateDefinition.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/Image.js +249 -0
- package/node_modules/@corellium/client-api/dist/model/Instance.js +313 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceBootOptions.js +134 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceConsoleEndpoint.js +76 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceCreateOptions.js +224 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceNetmonState.js +75 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceReturn.js +92 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceServices.js +77 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceStartOptions.js +76 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceState.js +64 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceStopOptions.js +76 -0
- package/node_modules/@corellium/client-api/dist/model/Model.js +165 -0
- package/node_modules/@corellium/client-api/dist/model/ModelSoftware.js +122 -0
- package/node_modules/@corellium/client-api/dist/model/PeripheralsData.js +147 -0
- package/node_modules/@corellium/client-api/dist/model/Project.js +122 -0
- package/node_modules/@corellium/client-api/dist/model/ProjectQuota.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/ProjectSettings.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/ProjectUsage.js +102 -0
- package/node_modules/@corellium/client-api/dist/model/Snapshot.js +145 -0
- package/node_modules/@corellium/client-api/dist/model/SnapshotCreationOptions.js +79 -0
- package/node_modules/@corellium/client-api/dist/model/SnapshotStatus.js +84 -0
- package/node_modules/@corellium/client-api/dist/model/Token.js +88 -0
- package/node_modules/@corellium/client-api/dist/model/UserError.js +114 -0
- package/node_modules/@corellium/client-api/dist/model/V1SetStateBody.js +80 -0
- package/node_modules/@corellium/client-api/dist/model/VolumeOptions.js +94 -0
- package/node_modules/@corellium/client-api/dist/model/VpnDefinition.js +84 -0
- package/node_modules/@corellium/client-api/package.json +46 -0
- package/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +242 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +250 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- package/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- package/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- package/node_modules/@jridgewell/sourcemap-codec/README.md +200 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +164 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +175 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +6 -0
- package/node_modules/@jridgewell/sourcemap-codec/package.json +75 -0
- package/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +198 -0
- package/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/node_modules/@jridgewell/trace-mapping/README.md +252 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +552 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +566 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
- package/node_modules/@jridgewell/trace-mapping/package.json +75 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/README.md +3 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/build-chokidar.sh +30 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/dist/main.js +2086 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/package.json +36 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/types.d.ts +191 -0
- package/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +55 -0
- package/node_modules/ansi-regex/readme.md +78 -0
- package/node_modules/ansi-styles/index.d.ts +345 -0
- package/node_modules/ansi-styles/index.js +163 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +56 -0
- package/node_modules/ansi-styles/readme.md +152 -0
- package/node_modules/anymatch/LICENSE +15 -0
- package/node_modules/anymatch/README.md +87 -0
- package/node_modules/anymatch/index.d.ts +19 -0
- package/node_modules/anymatch/index.js +104 -0
- package/node_modules/anymatch/package.json +48 -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 +943 -0
- package/node_modules/axios/LICENSE +19 -0
- package/node_modules/axios/README.md +991 -0
- package/node_modules/axios/SECURITY.md +5 -0
- package/node_modules/axios/UPGRADE_GUIDE.md +168 -0
- package/node_modules/axios/dist/axios.js +2595 -0
- package/node_modules/axios/dist/axios.map +1 -0
- package/node_modules/axios/dist/axios.min.js +3 -0
- package/node_modules/axios/dist/axios.min.map +1 -0
- package/node_modules/axios/index.d.ts +254 -0
- package/node_modules/axios/index.js +1 -0
- package/node_modules/axios/lib/adapters/README.md +37 -0
- package/node_modules/axios/lib/adapters/http.js +424 -0
- package/node_modules/axios/lib/adapters/xhr.js +222 -0
- package/node_modules/axios/lib/axios.js +64 -0
- package/node_modules/axios/lib/cancel/CancelToken.js +119 -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 +160 -0
- package/node_modules/axios/lib/core/AxiosError.js +86 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +54 -0
- package/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/axios/lib/core/buildFullPath.js +20 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +87 -0
- package/node_modules/axios/lib/core/mergeConfig.js +100 -0
- package/node_modules/axios/lib/core/settle.js +25 -0
- package/node_modules/axios/lib/core/transformData.js +22 -0
- package/node_modules/axios/lib/defaults/env/FormData.js +2 -0
- package/node_modules/axios/lib/defaults/index.js +146 -0
- package/node_modules/axios/lib/defaults/transitional.js +7 -0
- package/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/axios/lib/env/data.js +3 -0
- package/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/axios/lib/helpers/bind.js +11 -0
- package/node_modules/axios/lib/helpers/buildURL.js +70 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +14 -0
- package/node_modules/axios/lib/helpers/cookies.js +53 -0
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +13 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/spread.js +27 -0
- package/node_modules/axios/lib/helpers/toFormData.js +72 -0
- package/node_modules/axios/lib/helpers/validator.js +86 -0
- package/node_modules/axios/lib/utils.js +470 -0
- package/node_modules/axios/package.json +87 -0
- package/node_modules/axios/tsconfig.json +14 -0
- package/node_modules/axios/tslint.json +6 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +97 -0
- package/node_modules/balanced-match/index.js +62 -0
- package/node_modules/balanced-match/package.json +48 -0
- package/node_modules/binary-extensions/binary-extensions.json +260 -0
- package/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/node_modules/binary-extensions/index.d.ts +14 -0
- package/node_modules/binary-extensions/index.js +1 -0
- package/node_modules/binary-extensions/license +9 -0
- package/node_modules/binary-extensions/package.json +38 -0
- package/node_modules/binary-extensions/readme.md +41 -0
- package/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/brace-expansion/index.js +201 -0
- package/node_modules/brace-expansion/package.json +47 -0
- package/node_modules/braces/CHANGELOG.md +184 -0
- package/node_modules/braces/LICENSE +21 -0
- package/node_modules/braces/README.md +593 -0
- package/node_modules/braces/index.js +170 -0
- package/node_modules/braces/lib/compile.js +57 -0
- package/node_modules/braces/lib/constants.js +57 -0
- package/node_modules/braces/lib/expand.js +113 -0
- package/node_modules/braces/lib/parse.js +333 -0
- package/node_modules/braces/lib/stringify.js +32 -0
- package/node_modules/braces/lib/utils.js +112 -0
- package/node_modules/braces/package.json +77 -0
- package/node_modules/call-bind/.eslintignore +1 -0
- package/node_modules/call-bind/.eslintrc +17 -0
- package/node_modules/call-bind/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind/.nycrc +13 -0
- package/node_modules/call-bind/CHANGELOG.md +42 -0
- package/node_modules/call-bind/LICENSE +21 -0
- package/node_modules/call-bind/README.md +2 -0
- package/node_modules/call-bind/callBound.js +15 -0
- package/node_modules/call-bind/index.js +47 -0
- package/node_modules/call-bind/package.json +80 -0
- package/node_modules/call-bind/test/callBound.js +55 -0
- package/node_modules/call-bind/test/index.js +66 -0
- package/node_modules/chokidar/LICENSE +21 -0
- package/node_modules/chokidar/README.md +308 -0
- package/node_modules/chokidar/index.js +973 -0
- package/node_modules/chokidar/lib/constants.js +65 -0
- package/node_modules/chokidar/lib/fsevents-handler.js +524 -0
- package/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/node_modules/chokidar/package.json +85 -0
- package/node_modules/chokidar/types/index.d.ts +188 -0
- package/node_modules/cliui/CHANGELOG.md +121 -0
- package/node_modules/cliui/LICENSE.txt +14 -0
- package/node_modules/cliui/README.md +141 -0
- package/node_modules/cliui/build/index.cjs +302 -0
- package/node_modules/cliui/build/lib/index.js +287 -0
- package/node_modules/cliui/build/lib/string-utils.js +27 -0
- package/node_modules/cliui/index.mjs +13 -0
- package/node_modules/cliui/package.json +83 -0
- package/node_modules/color-convert/CHANGELOG.md +54 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +839 -0
- package/node_modules/color-convert/index.js +81 -0
- package/node_modules/color-convert/package.json +48 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +28 -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/component-emitter/History.md +75 -0
- package/node_modules/component-emitter/LICENSE +24 -0
- package/node_modules/component-emitter/Readme.md +74 -0
- package/node_modules/component-emitter/index.js +175 -0
- package/node_modules/component-emitter/package.json +27 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +43 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/convert-source-map/LICENSE +23 -0
- package/node_modules/convert-source-map/README.md +120 -0
- package/node_modules/convert-source-map/index.js +136 -0
- package/node_modules/convert-source-map/package.json +44 -0
- package/node_modules/cookiejar/LICENSE +9 -0
- package/node_modules/cookiejar/cookiejar.js +276 -0
- package/node_modules/cookiejar/package.json +26 -0
- package/node_modules/cookiejar/readme.md +60 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +59 -0
- package/node_modules/debug/src/browser.js +269 -0
- package/node_modules/debug/src/common.js +274 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -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/dotenv/CHANGELOG.md +356 -0
- package/node_modules/dotenv/LICENSE +23 -0
- package/node_modules/dotenv/README.md +408 -0
- package/node_modules/dotenv/config.d.ts +1 -0
- package/node_modules/dotenv/config.js +9 -0
- package/node_modules/dotenv/lib/cli-options.js +11 -0
- package/node_modules/dotenv/lib/env-options.js +20 -0
- package/node_modules/dotenv/lib/main.d.ts +73 -0
- package/node_modules/dotenv/lib/main.js +109 -0
- package/node_modules/dotenv/package.json +56 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +50 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/escalade/dist/index.js +22 -0
- package/node_modules/escalade/dist/index.mjs +22 -0
- package/node_modules/escalade/index.d.ts +3 -0
- package/node_modules/escalade/license +9 -0
- package/node_modules/escalade/package.json +61 -0
- package/node_modules/escalade/readme.md +211 -0
- package/node_modules/escalade/sync/index.d.ts +2 -0
- package/node_modules/escalade/sync/index.js +18 -0
- package/node_modules/escalade/sync/index.mjs +18 -0
- package/node_modules/fast-safe-stringify/.travis.yml +8 -0
- package/node_modules/fast-safe-stringify/CHANGELOG.md +17 -0
- package/node_modules/fast-safe-stringify/LICENSE +23 -0
- package/node_modules/fast-safe-stringify/benchmark.js +137 -0
- package/node_modules/fast-safe-stringify/index.d.ts +23 -0
- package/node_modules/fast-safe-stringify/index.js +229 -0
- package/node_modules/fast-safe-stringify/package.json +46 -0
- package/node_modules/fast-safe-stringify/readme.md +170 -0
- package/node_modules/fast-safe-stringify/test-stable.js +404 -0
- package/node_modules/fast-safe-stringify/test.js +397 -0
- package/node_modules/fill-range/LICENSE +21 -0
- package/node_modules/fill-range/README.md +237 -0
- package/node_modules/fill-range/index.js +249 -0
- package/node_modules/fill-range/package.json +69 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +155 -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 +598 -0
- package/node_modules/follow-redirects/package.json +59 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md.bak +358 -0
- package/node_modules/form-data/Readme.md +358 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +2 -0
- package/node_modules/form-data/lib/form_data.js +501 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +68 -0
- package/node_modules/formidable/LICENSE +7 -0
- package/node_modules/formidable/Readme.md +448 -0
- package/node_modules/formidable/lib/file.js +81 -0
- package/node_modules/formidable/lib/incoming_form.js +564 -0
- package/node_modules/formidable/lib/index.js +3 -0
- package/node_modules/formidable/lib/json_parser.js +30 -0
- package/node_modules/formidable/lib/multipart_parser.js +332 -0
- package/node_modules/formidable/lib/octet_parser.js +20 -0
- package/node_modules/formidable/lib/querystring_parser.js +27 -0
- package/node_modules/formidable/package.json +29 -0
- package/node_modules/fs-readdir-recursive/LICENSE +22 -0
- package/node_modules/fs-readdir-recursive/README.md +61 -0
- package/node_modules/fs-readdir-recursive/index.js +29 -0
- package/node_modules/fs-readdir-recursive/package.json +26 -0
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +26 -0
- package/node_modules/function-bind/.editorconfig +20 -0
- package/node_modules/function-bind/.eslintrc +15 -0
- package/node_modules/function-bind/.jscs.json +176 -0
- package/node_modules/function-bind/.npmignore +22 -0
- package/node_modules/function-bind/.travis.yml +168 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +48 -0
- package/node_modules/function-bind/implementation.js +52 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +63 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-caller-file/LICENSE.md +6 -0
- package/node_modules/get-caller-file/README.md +41 -0
- package/node_modules/get-caller-file/index.d.ts +2 -0
- package/node_modules/get-caller-file/index.js +22 -0
- package/node_modules/get-caller-file/index.js.map +1 -0
- package/node_modules/get-caller-file/package.json +42 -0
- package/node_modules/get-intrinsic/.eslintrc +37 -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 +91 -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 +334 -0
- package/node_modules/get-intrinsic/package.json +88 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/glob/LICENSE +21 -0
- package/node_modules/glob/README.md +378 -0
- package/node_modules/glob/common.js +238 -0
- package/node_modules/glob/glob.js +790 -0
- package/node_modules/glob/package.json +55 -0
- package/node_modules/glob/sync.js +486 -0
- package/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/node_modules/glob-parent/LICENSE +15 -0
- package/node_modules/glob-parent/README.md +137 -0
- package/node_modules/glob-parent/index.js +42 -0
- package/node_modules/glob-parent/package.json +48 -0
- package/node_modules/has/LICENSE-MIT +22 -0
- package/node_modules/has/README.md +18 -0
- package/node_modules/has/package.json +48 -0
- package/node_modules/has/src/index.js +5 -0
- package/node_modules/has/test/index.js +10 -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 +75 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.js +13 -0
- package/node_modules/has-symbols/package.json +101 -0
- package/node_modules/has-symbols/shams.js +42 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +28 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +28 -0
- package/node_modules/has-symbols/test/tests.js +56 -0
- package/node_modules/inflight/LICENSE +15 -0
- package/node_modules/inflight/README.md +37 -0
- package/node_modules/inflight/inflight.js +54 -0
- package/node_modules/inflight/package.json +29 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/is-binary-path/index.d.ts +17 -0
- package/node_modules/is-binary-path/index.js +7 -0
- package/node_modules/is-binary-path/license +9 -0
- package/node_modules/is-binary-path/package.json +40 -0
- package/node_modules/is-binary-path/readme.md +34 -0
- package/node_modules/is-extglob/LICENSE +21 -0
- package/node_modules/is-extglob/README.md +107 -0
- package/node_modules/is-extglob/index.js +20 -0
- package/node_modules/is-extglob/package.json +69 -0
- package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/node_modules/is-fullwidth-code-point/license +9 -0
- package/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-glob/LICENSE +21 -0
- package/node_modules/is-glob/README.md +206 -0
- package/node_modules/is-glob/index.js +150 -0
- package/node_modules/is-glob/package.json +81 -0
- package/node_modules/is-number/LICENSE +21 -0
- package/node_modules/is-number/README.md +187 -0
- package/node_modules/is-number/index.js +18 -0
- package/node_modules/is-number/package.json +82 -0
- package/node_modules/lru-cache/LICENSE +15 -0
- package/node_modules/lru-cache/README.md +166 -0
- package/node_modules/lru-cache/index.js +334 -0
- package/node_modules/lru-cache/package.json +34 -0
- package/node_modules/methods/HISTORY.md +29 -0
- package/node_modules/methods/LICENSE +24 -0
- package/node_modules/methods/README.md +51 -0
- package/node_modules/methods/index.js +69 -0
- package/node_modules/methods/package.json +36 -0
- package/node_modules/mime/CHANGELOG.md +296 -0
- package/node_modules/mime/LICENSE +21 -0
- package/node_modules/mime/Mime.js +97 -0
- package/node_modules/mime/README.md +187 -0
- package/node_modules/mime/cli.js +46 -0
- package/node_modules/mime/index.js +4 -0
- package/node_modules/mime/lite.js +4 -0
- package/node_modules/mime/package.json +52 -0
- package/node_modules/mime/types/other.js +1 -0
- package/node_modules/mime/types/standard.js +1 -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 +15 -0
- package/node_modules/minimatch/README.md +230 -0
- package/node_modules/minimatch/minimatch.js +947 -0
- package/node_modules/minimatch/package.json +33 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +37 -0
- package/node_modules/ms/readme.md +60 -0
- package/node_modules/multi-progress/.gitattributes +17 -0
- package/node_modules/multi-progress/CHANGELOG.md +56 -0
- package/node_modules/multi-progress/LICENSE.txt +21 -0
- package/node_modules/multi-progress/multi-progress.js +98 -0
- package/node_modules/multi-progress/package.json +28 -0
- package/node_modules/multi-progress/readme.md +33 -0
- package/node_modules/normalize-path/LICENSE +21 -0
- package/node_modules/normalize-path/README.md +127 -0
- package/node_modules/normalize-path/index.js +35 -0
- package/node_modules/normalize-path/package.json +77 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/CHANGELOG.md +360 -0
- package/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/object-inspect/index.js +512 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +94 -0
- package/node_modules/object-inspect/readme.markdown +86 -0
- package/node_modules/object-inspect/test/bigint.js +58 -0
- package/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/node_modules/object-inspect/test/circular.js +16 -0
- package/node_modules/object-inspect/test/deep.js +12 -0
- package/node_modules/object-inspect/test/element.js +53 -0
- package/node_modules/object-inspect/test/err.js +48 -0
- package/node_modules/object-inspect/test/fakes.js +29 -0
- package/node_modules/object-inspect/test/fn.js +76 -0
- package/node_modules/object-inspect/test/has.js +15 -0
- package/node_modules/object-inspect/test/holes.js +15 -0
- package/node_modules/object-inspect/test/indent-option.js +271 -0
- package/node_modules/object-inspect/test/inspect.js +139 -0
- package/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/node_modules/object-inspect/test/number.js +58 -0
- package/node_modules/object-inspect/test/quoteStyle.js +17 -0
- package/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/node_modules/object-inspect/test/undef.js +12 -0
- package/node_modules/object-inspect/test/values.js +211 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/path-is-absolute/index.js +20 -0
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +43 -0
- package/node_modules/path-is-absolute/readme.md +59 -0
- package/node_modules/picomatch/CHANGELOG.md +136 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +708 -0
- package/node_modules/picomatch/index.js +3 -0
- package/node_modules/picomatch/lib/constants.js +179 -0
- package/node_modules/picomatch/lib/parse.js +1091 -0
- package/node_modules/picomatch/lib/picomatch.js +342 -0
- package/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/picomatch/lib/utils.js +64 -0
- package/node_modules/picomatch/package.json +81 -0
- package/node_modules/progress/CHANGELOG.md +115 -0
- package/node_modules/progress/LICENSE +22 -0
- package/node_modules/progress/Makefile +8 -0
- package/node_modules/progress/Readme.md +146 -0
- package/node_modules/progress/index.js +1 -0
- package/node_modules/progress/lib/node-progress.js +236 -0
- package/node_modules/progress/package.json +26 -0
- package/node_modules/qs/.editorconfig +43 -0
- package/node_modules/qs/.eslintrc +38 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +546 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +625 -0
- package/node_modules/qs/dist/qs.js +2054 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +263 -0
- package/node_modules/qs/lib/stringify.js +326 -0
- package/node_modules/qs/lib/utils.js +252 -0
- package/node_modules/qs/package.json +77 -0
- package/node_modules/qs/test/parse.js +855 -0
- package/node_modules/qs/test/stringify.js +909 -0
- package/node_modules/qs/test/utils.js +136 -0
- package/node_modules/readdirp/LICENSE +21 -0
- package/node_modules/readdirp/README.md +122 -0
- package/node_modules/readdirp/index.d.ts +43 -0
- package/node_modules/readdirp/index.js +287 -0
- package/node_modules/readdirp/package.json +122 -0
- package/node_modules/require-directory/.jshintrc +67 -0
- package/node_modules/require-directory/.npmignore +1 -0
- package/node_modules/require-directory/.travis.yml +3 -0
- package/node_modules/require-directory/LICENSE +22 -0
- package/node_modules/require-directory/README.markdown +184 -0
- package/node_modules/require-directory/index.js +86 -0
- package/node_modules/require-directory/package.json +40 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +568 -0
- package/node_modules/semver/bin/semver.js +183 -0
- package/node_modules/semver/classes/comparator.js +136 -0
- package/node_modules/semver/classes/index.js +5 -0
- package/node_modules/semver/classes/range.js +519 -0
- package/node_modules/semver/classes/semver.js +287 -0
- package/node_modules/semver/functions/clean.js +6 -0
- package/node_modules/semver/functions/cmp.js +52 -0
- package/node_modules/semver/functions/coerce.js +52 -0
- package/node_modules/semver/functions/compare-build.js +7 -0
- package/node_modules/semver/functions/compare-loose.js +3 -0
- package/node_modules/semver/functions/compare.js +5 -0
- package/node_modules/semver/functions/diff.js +23 -0
- package/node_modules/semver/functions/eq.js +3 -0
- package/node_modules/semver/functions/gt.js +3 -0
- package/node_modules/semver/functions/gte.js +3 -0
- package/node_modules/semver/functions/inc.js +18 -0
- package/node_modules/semver/functions/lt.js +3 -0
- package/node_modules/semver/functions/lte.js +3 -0
- package/node_modules/semver/functions/major.js +3 -0
- package/node_modules/semver/functions/minor.js +3 -0
- package/node_modules/semver/functions/neq.js +3 -0
- package/node_modules/semver/functions/parse.js +33 -0
- package/node_modules/semver/functions/patch.js +3 -0
- package/node_modules/semver/functions/prerelease.js +6 -0
- package/node_modules/semver/functions/rcompare.js +3 -0
- package/node_modules/semver/functions/rsort.js +3 -0
- package/node_modules/semver/functions/satisfies.js +10 -0
- package/node_modules/semver/functions/sort.js +3 -0
- package/node_modules/semver/functions/valid.js +6 -0
- package/node_modules/semver/index.js +48 -0
- package/node_modules/semver/internal/constants.js +17 -0
- package/node_modules/semver/internal/debug.js +9 -0
- package/node_modules/semver/internal/identifiers.js +23 -0
- package/node_modules/semver/internal/parse-options.js +11 -0
- package/node_modules/semver/internal/re.js +182 -0
- package/node_modules/semver/package.json +75 -0
- package/node_modules/semver/preload.js +2 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/ranges/gtr.js +4 -0
- package/node_modules/semver/ranges/intersects.js +7 -0
- package/node_modules/semver/ranges/ltr.js +4 -0
- package/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/node_modules/semver/ranges/min-version.js +61 -0
- package/node_modules/semver/ranges/outside.js +80 -0
- package/node_modules/semver/ranges/simplify.js +47 -0
- package/node_modules/semver/ranges/subset.js +244 -0
- package/node_modules/semver/ranges/to-comparators.js +8 -0
- package/node_modules/semver/ranges/valid.js +11 -0
- package/node_modules/side-channel/.eslintignore +1 -0
- package/node_modules/side-channel/.eslintrc +11 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +65 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +2 -0
- package/node_modules/side-channel/index.js +124 -0
- package/node_modules/side-channel/package.json +67 -0
- package/node_modules/side-channel/test/index.js +78 -0
- package/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/string-width/index.js +47 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +56 -0
- package/node_modules/string-width/readme.md +50 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +31 -0
- package/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +54 -0
- package/node_modules/strip-ansi/readme.md +46 -0
- package/node_modules/superagent/.browserslistrc +5 -0
- package/node_modules/superagent/.dist.babelrc +10 -0
- package/node_modules/superagent/.dist.eslintrc +35 -0
- package/node_modules/superagent/.editorconfig +9 -0
- package/node_modules/superagent/.gitattributes +1 -0
- package/node_modules/superagent/.lib.babelrc +11 -0
- package/node_modules/superagent/.lib.eslintrc +24 -0
- package/node_modules/superagent/.remarkignore +3 -0
- package/node_modules/superagent/.zuul.yml +16 -0
- package/node_modules/superagent/CONTRIBUTING.md +7 -0
- package/node_modules/superagent/HISTORY.md +692 -0
- package/node_modules/superagent/LICENSE +22 -0
- package/node_modules/superagent/Makefile +60 -0
- package/node_modules/superagent/README.md +266 -0
- package/node_modules/superagent/dist/superagent.js +2418 -0
- package/node_modules/superagent/dist/superagent.min.js +1 -0
- package/node_modules/superagent/docs/head.html +11 -0
- package/node_modules/superagent/docs/images/bg.png +0 -0
- package/node_modules/superagent/docs/index.md +736 -0
- package/node_modules/superagent/docs/style.css +87 -0
- package/node_modules/superagent/docs/tail.html +36 -0
- package/node_modules/superagent/docs/test.html +5072 -0
- package/node_modules/superagent/index.html +47 -0
- package/node_modules/superagent/lib/agent-base.js +42 -0
- package/node_modules/superagent/lib/client.js +1020 -0
- package/node_modules/superagent/lib/is-object.js +17 -0
- package/node_modules/superagent/lib/node/agent.js +113 -0
- package/node_modules/superagent/lib/node/http2wrapper.js +218 -0
- package/node_modules/superagent/lib/node/index.js +1376 -0
- package/node_modules/superagent/lib/node/parsers/image.js +13 -0
- package/node_modules/superagent/lib/node/parsers/index.js +12 -0
- package/node_modules/superagent/lib/node/parsers/json.js +26 -0
- package/node_modules/superagent/lib/node/parsers/text.js +11 -0
- package/node_modules/superagent/lib/node/parsers/urlencoded.js +22 -0
- package/node_modules/superagent/lib/node/response.js +126 -0
- package/node_modules/superagent/lib/node/unzip.js +72 -0
- package/node_modules/superagent/lib/request-base.js +757 -0
- package/node_modules/superagent/lib/response-base.js +131 -0
- package/node_modules/superagent/lib/utils.js +71 -0
- package/node_modules/superagent/node_modules/form-data/License +19 -0
- package/node_modules/superagent/node_modules/form-data/README.md.bak +356 -0
- package/node_modules/superagent/node_modules/form-data/Readme.md +356 -0
- package/node_modules/superagent/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/superagent/node_modules/form-data/lib/browser.js +2 -0
- package/node_modules/superagent/node_modules/form-data/lib/form_data.js +498 -0
- package/node_modules/superagent/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/superagent/node_modules/form-data/package.json +68 -0
- package/node_modules/superagent/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/superagent/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/superagent/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/superagent/node_modules/readable-stream/README.md +106 -0
- package/node_modules/superagent/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/superagent/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/superagent/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_transform.js +201 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_writable.js +697 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/superagent/node_modules/readable-stream/package.json +68 -0
- package/node_modules/superagent/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/superagent/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/superagent/package.json +222 -0
- package/node_modules/to-regex-range/LICENSE +21 -0
- package/node_modules/to-regex-range/README.md +305 -0
- package/node_modules/to-regex-range/index.js +288 -0
- package/node_modules/to-regex-range/package.json +88 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/uuid/CHANGELOG.md +229 -0
- package/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/uuid/README.md +505 -0
- package/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/uuid/dist/rng-browser.js +26 -0
- package/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/uuid/dist/stringify.js +39 -0
- package/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/uuid/dist/v35.js +78 -0
- package/node_modules/uuid/dist/v4.js +37 -0
- package/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/uuid/package.json +135 -0
- package/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/wrap-ansi/index.js +216 -0
- package/node_modules/wrap-ansi/license +9 -0
- package/node_modules/wrap-ansi/package.json +62 -0
- package/node_modules/wrap-ansi/readme.md +91 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/y18n/CHANGELOG.md +100 -0
- package/node_modules/y18n/LICENSE +13 -0
- package/node_modules/y18n/README.md +127 -0
- package/node_modules/y18n/build/index.cjs +203 -0
- package/node_modules/y18n/build/lib/cjs.js +6 -0
- package/node_modules/y18n/build/lib/index.js +174 -0
- package/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
- package/node_modules/y18n/index.mjs +8 -0
- package/node_modules/y18n/package.json +70 -0
- package/node_modules/yallist/LICENSE +15 -0
- package/node_modules/yallist/README.md +204 -0
- package/node_modules/yallist/iterator.js +8 -0
- package/node_modules/yallist/package.json +29 -0
- package/node_modules/yallist/yallist.js +426 -0
- package/node_modules/yargs/LICENSE +21 -0
- package/node_modules/yargs/README.md +204 -0
- package/node_modules/yargs/browser.mjs +7 -0
- package/node_modules/yargs/build/index.cjs +1 -0
- package/node_modules/yargs/build/lib/argsert.js +62 -0
- package/node_modules/yargs/build/lib/command.js +447 -0
- package/node_modules/yargs/build/lib/completion-templates.js +48 -0
- package/node_modules/yargs/build/lib/completion.js +236 -0
- package/node_modules/yargs/build/lib/middleware.js +88 -0
- package/node_modules/yargs/build/lib/parse-command.js +32 -0
- package/node_modules/yargs/build/lib/typings/common-types.js +9 -0
- package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
- package/node_modules/yargs/build/lib/usage.js +579 -0
- package/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
- package/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
- package/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
- package/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
- package/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
- package/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
- package/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
- package/node_modules/yargs/build/lib/utils/which-module.js +10 -0
- package/node_modules/yargs/build/lib/validation.js +305 -0
- package/node_modules/yargs/build/lib/yargs-factory.js +1497 -0
- package/node_modules/yargs/build/lib/yerror.js +9 -0
- package/node_modules/yargs/helpers/helpers.mjs +10 -0
- package/node_modules/yargs/helpers/index.js +14 -0
- package/node_modules/yargs/helpers/package.json +3 -0
- package/node_modules/yargs/index.cjs +53 -0
- package/node_modules/yargs/index.mjs +8 -0
- package/node_modules/yargs/lib/platform-shims/browser.mjs +95 -0
- package/node_modules/yargs/lib/platform-shims/esm.mjs +73 -0
- package/node_modules/yargs/locales/be.json +46 -0
- package/node_modules/yargs/locales/de.json +46 -0
- package/node_modules/yargs/locales/en.json +51 -0
- package/node_modules/yargs/locales/es.json +46 -0
- package/node_modules/yargs/locales/fi.json +49 -0
- package/node_modules/yargs/locales/fr.json +53 -0
- package/node_modules/yargs/locales/hi.json +49 -0
- package/node_modules/yargs/locales/hu.json +46 -0
- package/node_modules/yargs/locales/id.json +50 -0
- package/node_modules/yargs/locales/it.json +46 -0
- package/node_modules/yargs/locales/ja.json +51 -0
- package/node_modules/yargs/locales/ko.json +49 -0
- package/node_modules/yargs/locales/nb.json +44 -0
- package/node_modules/yargs/locales/nl.json +49 -0
- package/node_modules/yargs/locales/nn.json +44 -0
- package/node_modules/yargs/locales/pirate.json +13 -0
- package/node_modules/yargs/locales/pl.json +49 -0
- package/node_modules/yargs/locales/pt.json +45 -0
- package/node_modules/yargs/locales/pt_BR.json +48 -0
- package/node_modules/yargs/locales/ru.json +51 -0
- package/node_modules/yargs/locales/th.json +46 -0
- package/node_modules/yargs/locales/tr.json +48 -0
- package/node_modules/yargs/locales/uk_UA.json +51 -0
- package/node_modules/yargs/locales/uz.json +52 -0
- package/node_modules/yargs/locales/zh_CN.json +48 -0
- package/node_modules/yargs/locales/zh_TW.json +51 -0
- package/node_modules/yargs/package.json +123 -0
- package/node_modules/yargs/yargs +9 -0
- package/node_modules/yargs/yargs.mjs +10 -0
- package/node_modules/yargs-parser/CHANGELOG.md +287 -0
- package/node_modules/yargs-parser/LICENSE.txt +14 -0
- package/node_modules/yargs-parser/README.md +518 -0
- package/node_modules/yargs-parser/browser.js +29 -0
- package/node_modules/yargs-parser/build/index.cjs +1048 -0
- package/node_modules/yargs-parser/build/lib/index.js +60 -0
- package/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
- package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
- package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
- package/node_modules/yargs-parser/build/lib/yargs-parser.js +1045 -0
- package/node_modules/yargs-parser/package.json +88 -0
- package/package.json +1 -1
- package/src/clients/Client.js +3 -0
- package/src/commands/mast/download-report.js +9 -2
@@ -0,0 +1,757 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Module of mixed-in functions shared between node and client code
|
7
|
+
*/
|
8
|
+
var isObject = require('./is-object');
|
9
|
+
/**
|
10
|
+
* Expose `RequestBase`.
|
11
|
+
*/
|
12
|
+
|
13
|
+
|
14
|
+
module.exports = RequestBase;
|
15
|
+
/**
|
16
|
+
* Initialize a new `RequestBase`.
|
17
|
+
*
|
18
|
+
* @api public
|
19
|
+
*/
|
20
|
+
|
21
|
+
function RequestBase(obj) {
|
22
|
+
if (obj) return mixin(obj);
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* Mixin the prototype properties.
|
26
|
+
*
|
27
|
+
* @param {Object} obj
|
28
|
+
* @return {Object}
|
29
|
+
* @api private
|
30
|
+
*/
|
31
|
+
|
32
|
+
|
33
|
+
function mixin(obj) {
|
34
|
+
for (var key in RequestBase.prototype) {
|
35
|
+
if (Object.prototype.hasOwnProperty.call(RequestBase.prototype, key)) obj[key] = RequestBase.prototype[key];
|
36
|
+
}
|
37
|
+
|
38
|
+
return obj;
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Clear previous timeout.
|
42
|
+
*
|
43
|
+
* @return {Request} for chaining
|
44
|
+
* @api public
|
45
|
+
*/
|
46
|
+
|
47
|
+
|
48
|
+
RequestBase.prototype.clearTimeout = function () {
|
49
|
+
clearTimeout(this._timer);
|
50
|
+
clearTimeout(this._responseTimeoutTimer);
|
51
|
+
clearTimeout(this._uploadTimeoutTimer);
|
52
|
+
delete this._timer;
|
53
|
+
delete this._responseTimeoutTimer;
|
54
|
+
delete this._uploadTimeoutTimer;
|
55
|
+
return this;
|
56
|
+
};
|
57
|
+
/**
|
58
|
+
* Override default response body parser
|
59
|
+
*
|
60
|
+
* This function will be called to convert incoming data into request.body
|
61
|
+
*
|
62
|
+
* @param {Function}
|
63
|
+
* @api public
|
64
|
+
*/
|
65
|
+
|
66
|
+
|
67
|
+
RequestBase.prototype.parse = function (fn) {
|
68
|
+
this._parser = fn;
|
69
|
+
return this;
|
70
|
+
};
|
71
|
+
/**
|
72
|
+
* Set format of binary response body.
|
73
|
+
* In browser valid formats are 'blob' and 'arraybuffer',
|
74
|
+
* which return Blob and ArrayBuffer, respectively.
|
75
|
+
*
|
76
|
+
* In Node all values result in Buffer.
|
77
|
+
*
|
78
|
+
* Examples:
|
79
|
+
*
|
80
|
+
* req.get('/')
|
81
|
+
* .responseType('blob')
|
82
|
+
* .end(callback);
|
83
|
+
*
|
84
|
+
* @param {String} val
|
85
|
+
* @return {Request} for chaining
|
86
|
+
* @api public
|
87
|
+
*/
|
88
|
+
|
89
|
+
|
90
|
+
RequestBase.prototype.responseType = function (val) {
|
91
|
+
this._responseType = val;
|
92
|
+
return this;
|
93
|
+
};
|
94
|
+
/**
|
95
|
+
* Override default request body serializer
|
96
|
+
*
|
97
|
+
* This function will be called to convert data set via .send or .attach into payload to send
|
98
|
+
*
|
99
|
+
* @param {Function}
|
100
|
+
* @api public
|
101
|
+
*/
|
102
|
+
|
103
|
+
|
104
|
+
RequestBase.prototype.serialize = function (fn) {
|
105
|
+
this._serializer = fn;
|
106
|
+
return this;
|
107
|
+
};
|
108
|
+
/**
|
109
|
+
* Set timeouts.
|
110
|
+
*
|
111
|
+
* - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.
|
112
|
+
* - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.
|
113
|
+
* - upload is the time since last bit of data was sent or received. This timeout works only if deadline timeout is off
|
114
|
+
*
|
115
|
+
* Value of 0 or false means no timeout.
|
116
|
+
*
|
117
|
+
* @param {Number|Object} ms or {response, deadline}
|
118
|
+
* @return {Request} for chaining
|
119
|
+
* @api public
|
120
|
+
*/
|
121
|
+
|
122
|
+
|
123
|
+
RequestBase.prototype.timeout = function (options) {
|
124
|
+
if (!options || _typeof(options) !== 'object') {
|
125
|
+
this._timeout = options;
|
126
|
+
this._responseTimeout = 0;
|
127
|
+
this._uploadTimeout = 0;
|
128
|
+
return this;
|
129
|
+
}
|
130
|
+
|
131
|
+
for (var option in options) {
|
132
|
+
if (Object.prototype.hasOwnProperty.call(options, option)) {
|
133
|
+
switch (option) {
|
134
|
+
case 'deadline':
|
135
|
+
this._timeout = options.deadline;
|
136
|
+
break;
|
137
|
+
|
138
|
+
case 'response':
|
139
|
+
this._responseTimeout = options.response;
|
140
|
+
break;
|
141
|
+
|
142
|
+
case 'upload':
|
143
|
+
this._uploadTimeout = options.upload;
|
144
|
+
break;
|
145
|
+
|
146
|
+
default:
|
147
|
+
console.warn('Unknown timeout option', option);
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
return this;
|
153
|
+
};
|
154
|
+
/**
|
155
|
+
* Set number of retry attempts on error.
|
156
|
+
*
|
157
|
+
* Failed requests will be retried 'count' times if timeout or err.code >= 500.
|
158
|
+
*
|
159
|
+
* @param {Number} count
|
160
|
+
* @param {Function} [fn]
|
161
|
+
* @return {Request} for chaining
|
162
|
+
* @api public
|
163
|
+
*/
|
164
|
+
|
165
|
+
|
166
|
+
RequestBase.prototype.retry = function (count, fn) {
|
167
|
+
// Default to 1 if no count passed or true
|
168
|
+
if (arguments.length === 0 || count === true) count = 1;
|
169
|
+
if (count <= 0) count = 0;
|
170
|
+
this._maxRetries = count;
|
171
|
+
this._retries = 0;
|
172
|
+
this._retryCallback = fn;
|
173
|
+
return this;
|
174
|
+
};
|
175
|
+
|
176
|
+
var ERROR_CODES = ['ECONNRESET', 'ETIMEDOUT', 'EADDRINFO', 'ESOCKETTIMEDOUT'];
|
177
|
+
/**
|
178
|
+
* Determine if a request should be retried.
|
179
|
+
* (Borrowed from segmentio/superagent-retry)
|
180
|
+
*
|
181
|
+
* @param {Error} err an error
|
182
|
+
* @param {Response} [res] response
|
183
|
+
* @returns {Boolean} if segment should be retried
|
184
|
+
*/
|
185
|
+
|
186
|
+
RequestBase.prototype._shouldRetry = function (err, res) {
|
187
|
+
if (!this._maxRetries || this._retries++ >= this._maxRetries) {
|
188
|
+
return false;
|
189
|
+
}
|
190
|
+
|
191
|
+
if (this._retryCallback) {
|
192
|
+
try {
|
193
|
+
var override = this._retryCallback(err, res);
|
194
|
+
|
195
|
+
if (override === true) return true;
|
196
|
+
if (override === false) return false; // undefined falls back to defaults
|
197
|
+
} catch (err_) {
|
198
|
+
console.error(err_);
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
if (res && res.status && res.status >= 500 && res.status !== 501) return true;
|
203
|
+
|
204
|
+
if (err) {
|
205
|
+
if (err.code && ERROR_CODES.includes(err.code)) return true; // Superagent timeout
|
206
|
+
|
207
|
+
if (err.timeout && err.code === 'ECONNABORTED') return true;
|
208
|
+
if (err.crossDomain) return true;
|
209
|
+
}
|
210
|
+
|
211
|
+
return false;
|
212
|
+
};
|
213
|
+
/**
|
214
|
+
* Retry request
|
215
|
+
*
|
216
|
+
* @return {Request} for chaining
|
217
|
+
* @api private
|
218
|
+
*/
|
219
|
+
|
220
|
+
|
221
|
+
RequestBase.prototype._retry = function () {
|
222
|
+
this.clearTimeout(); // node
|
223
|
+
|
224
|
+
if (this.req) {
|
225
|
+
this.req = null;
|
226
|
+
this.req = this.request();
|
227
|
+
}
|
228
|
+
|
229
|
+
this._aborted = false;
|
230
|
+
this.timedout = false;
|
231
|
+
this.timedoutError = null;
|
232
|
+
return this._end();
|
233
|
+
};
|
234
|
+
/**
|
235
|
+
* Promise support
|
236
|
+
*
|
237
|
+
* @param {Function} resolve
|
238
|
+
* @param {Function} [reject]
|
239
|
+
* @return {Request}
|
240
|
+
*/
|
241
|
+
|
242
|
+
|
243
|
+
RequestBase.prototype.then = function (resolve, reject) {
|
244
|
+
var _this = this;
|
245
|
+
|
246
|
+
if (!this._fullfilledPromise) {
|
247
|
+
var self = this;
|
248
|
+
|
249
|
+
if (this._endCalled) {
|
250
|
+
console.warn('Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises');
|
251
|
+
}
|
252
|
+
|
253
|
+
this._fullfilledPromise = new Promise(function (resolve, reject) {
|
254
|
+
self.on('abort', function () {
|
255
|
+
if (_this._maxRetries && _this._maxRetries > _this._retries) {
|
256
|
+
return;
|
257
|
+
}
|
258
|
+
|
259
|
+
if (_this.timedout && _this.timedoutError) {
|
260
|
+
reject(_this.timedoutError);
|
261
|
+
return;
|
262
|
+
}
|
263
|
+
|
264
|
+
var err = new Error('Aborted');
|
265
|
+
err.code = 'ABORTED';
|
266
|
+
err.status = _this.status;
|
267
|
+
err.method = _this.method;
|
268
|
+
err.url = _this.url;
|
269
|
+
reject(err);
|
270
|
+
});
|
271
|
+
self.end(function (err, res) {
|
272
|
+
if (err) reject(err);else resolve(res);
|
273
|
+
});
|
274
|
+
});
|
275
|
+
}
|
276
|
+
|
277
|
+
return this._fullfilledPromise.then(resolve, reject);
|
278
|
+
};
|
279
|
+
|
280
|
+
RequestBase.prototype.catch = function (cb) {
|
281
|
+
return this.then(undefined, cb);
|
282
|
+
};
|
283
|
+
/**
|
284
|
+
* Allow for extension
|
285
|
+
*/
|
286
|
+
|
287
|
+
|
288
|
+
RequestBase.prototype.use = function (fn) {
|
289
|
+
fn(this);
|
290
|
+
return this;
|
291
|
+
};
|
292
|
+
|
293
|
+
RequestBase.prototype.ok = function (cb) {
|
294
|
+
if (typeof cb !== 'function') throw new Error('Callback required');
|
295
|
+
this._okCallback = cb;
|
296
|
+
return this;
|
297
|
+
};
|
298
|
+
|
299
|
+
RequestBase.prototype._isResponseOK = function (res) {
|
300
|
+
if (!res) {
|
301
|
+
return false;
|
302
|
+
}
|
303
|
+
|
304
|
+
if (this._okCallback) {
|
305
|
+
return this._okCallback(res);
|
306
|
+
}
|
307
|
+
|
308
|
+
return res.status >= 200 && res.status < 300;
|
309
|
+
};
|
310
|
+
/**
|
311
|
+
* Get request header `field`.
|
312
|
+
* Case-insensitive.
|
313
|
+
*
|
314
|
+
* @param {String} field
|
315
|
+
* @return {String}
|
316
|
+
* @api public
|
317
|
+
*/
|
318
|
+
|
319
|
+
|
320
|
+
RequestBase.prototype.get = function (field) {
|
321
|
+
return this._header[field.toLowerCase()];
|
322
|
+
};
|
323
|
+
/**
|
324
|
+
* Get case-insensitive header `field` value.
|
325
|
+
* This is a deprecated internal API. Use `.get(field)` instead.
|
326
|
+
*
|
327
|
+
* (getHeader is no longer used internally by the superagent code base)
|
328
|
+
*
|
329
|
+
* @param {String} field
|
330
|
+
* @return {String}
|
331
|
+
* @api private
|
332
|
+
* @deprecated
|
333
|
+
*/
|
334
|
+
|
335
|
+
|
336
|
+
RequestBase.prototype.getHeader = RequestBase.prototype.get;
|
337
|
+
/**
|
338
|
+
* Set header `field` to `val`, or multiple fields with one object.
|
339
|
+
* Case-insensitive.
|
340
|
+
*
|
341
|
+
* Examples:
|
342
|
+
*
|
343
|
+
* req.get('/')
|
344
|
+
* .set('Accept', 'application/json')
|
345
|
+
* .set('X-API-Key', 'foobar')
|
346
|
+
* .end(callback);
|
347
|
+
*
|
348
|
+
* req.get('/')
|
349
|
+
* .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })
|
350
|
+
* .end(callback);
|
351
|
+
*
|
352
|
+
* @param {String|Object} field
|
353
|
+
* @param {String} val
|
354
|
+
* @return {Request} for chaining
|
355
|
+
* @api public
|
356
|
+
*/
|
357
|
+
|
358
|
+
RequestBase.prototype.set = function (field, val) {
|
359
|
+
if (isObject(field)) {
|
360
|
+
for (var key in field) {
|
361
|
+
if (Object.prototype.hasOwnProperty.call(field, key)) this.set(key, field[key]);
|
362
|
+
}
|
363
|
+
|
364
|
+
return this;
|
365
|
+
}
|
366
|
+
|
367
|
+
this._header[field.toLowerCase()] = val;
|
368
|
+
this.header[field] = val;
|
369
|
+
return this;
|
370
|
+
};
|
371
|
+
/**
|
372
|
+
* Remove header `field`.
|
373
|
+
* Case-insensitive.
|
374
|
+
*
|
375
|
+
* Example:
|
376
|
+
*
|
377
|
+
* req.get('/')
|
378
|
+
* .unset('User-Agent')
|
379
|
+
* .end(callback);
|
380
|
+
*
|
381
|
+
* @param {String} field field name
|
382
|
+
*/
|
383
|
+
|
384
|
+
|
385
|
+
RequestBase.prototype.unset = function (field) {
|
386
|
+
delete this._header[field.toLowerCase()];
|
387
|
+
delete this.header[field];
|
388
|
+
return this;
|
389
|
+
};
|
390
|
+
/**
|
391
|
+
* Write the field `name` and `val`, or multiple fields with one object
|
392
|
+
* for "multipart/form-data" request bodies.
|
393
|
+
*
|
394
|
+
* ``` js
|
395
|
+
* request.post('/upload')
|
396
|
+
* .field('foo', 'bar')
|
397
|
+
* .end(callback);
|
398
|
+
*
|
399
|
+
* request.post('/upload')
|
400
|
+
* .field({ foo: 'bar', baz: 'qux' })
|
401
|
+
* .end(callback);
|
402
|
+
* ```
|
403
|
+
*
|
404
|
+
* @param {String|Object} name name of field
|
405
|
+
* @param {String|Blob|File|Buffer|fs.ReadStream} val value of field
|
406
|
+
* @return {Request} for chaining
|
407
|
+
* @api public
|
408
|
+
*/
|
409
|
+
|
410
|
+
|
411
|
+
RequestBase.prototype.field = function (name, val) {
|
412
|
+
// name should be either a string or an object.
|
413
|
+
if (name === null || undefined === name) {
|
414
|
+
throw new Error('.field(name, val) name can not be empty');
|
415
|
+
}
|
416
|
+
|
417
|
+
if (this._data) {
|
418
|
+
throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");
|
419
|
+
}
|
420
|
+
|
421
|
+
if (isObject(name)) {
|
422
|
+
for (var key in name) {
|
423
|
+
if (Object.prototype.hasOwnProperty.call(name, key)) this.field(key, name[key]);
|
424
|
+
}
|
425
|
+
|
426
|
+
return this;
|
427
|
+
}
|
428
|
+
|
429
|
+
if (Array.isArray(val)) {
|
430
|
+
for (var i in val) {
|
431
|
+
if (Object.prototype.hasOwnProperty.call(val, i)) this.field(name, val[i]);
|
432
|
+
}
|
433
|
+
|
434
|
+
return this;
|
435
|
+
} // val should be defined now
|
436
|
+
|
437
|
+
|
438
|
+
if (val === null || undefined === val) {
|
439
|
+
throw new Error('.field(name, val) val can not be empty');
|
440
|
+
}
|
441
|
+
|
442
|
+
if (typeof val === 'boolean') {
|
443
|
+
val = String(val);
|
444
|
+
}
|
445
|
+
|
446
|
+
this._getFormData().append(name, val);
|
447
|
+
|
448
|
+
return this;
|
449
|
+
};
|
450
|
+
/**
|
451
|
+
* Abort the request, and clear potential timeout.
|
452
|
+
*
|
453
|
+
* @return {Request} request
|
454
|
+
* @api public
|
455
|
+
*/
|
456
|
+
|
457
|
+
|
458
|
+
RequestBase.prototype.abort = function () {
|
459
|
+
if (this._aborted) {
|
460
|
+
return this;
|
461
|
+
}
|
462
|
+
|
463
|
+
this._aborted = true;
|
464
|
+
if (this.xhr) this.xhr.abort(); // browser
|
465
|
+
|
466
|
+
if (this.req) this.req.abort(); // node
|
467
|
+
|
468
|
+
this.clearTimeout();
|
469
|
+
this.emit('abort');
|
470
|
+
return this;
|
471
|
+
};
|
472
|
+
|
473
|
+
RequestBase.prototype._auth = function (user, pass, options, base64Encoder) {
|
474
|
+
switch (options.type) {
|
475
|
+
case 'basic':
|
476
|
+
this.set('Authorization', "Basic ".concat(base64Encoder("".concat(user, ":").concat(pass))));
|
477
|
+
break;
|
478
|
+
|
479
|
+
case 'auto':
|
480
|
+
this.username = user;
|
481
|
+
this.password = pass;
|
482
|
+
break;
|
483
|
+
|
484
|
+
case 'bearer':
|
485
|
+
// usage would be .auth(accessToken, { type: 'bearer' })
|
486
|
+
this.set('Authorization', "Bearer ".concat(user));
|
487
|
+
break;
|
488
|
+
|
489
|
+
default:
|
490
|
+
break;
|
491
|
+
}
|
492
|
+
|
493
|
+
return this;
|
494
|
+
};
|
495
|
+
/**
|
496
|
+
* Enable transmission of cookies with x-domain requests.
|
497
|
+
*
|
498
|
+
* Note that for this to work the origin must not be
|
499
|
+
* using "Access-Control-Allow-Origin" with a wildcard,
|
500
|
+
* and also must set "Access-Control-Allow-Credentials"
|
501
|
+
* to "true".
|
502
|
+
*
|
503
|
+
* @api public
|
504
|
+
*/
|
505
|
+
|
506
|
+
|
507
|
+
RequestBase.prototype.withCredentials = function (on) {
|
508
|
+
// This is browser-only functionality. Node side is no-op.
|
509
|
+
if (on === undefined) on = true;
|
510
|
+
this._withCredentials = on;
|
511
|
+
return this;
|
512
|
+
};
|
513
|
+
/**
|
514
|
+
* Set the max redirects to `n`. Does nothing in browser XHR implementation.
|
515
|
+
*
|
516
|
+
* @param {Number} n
|
517
|
+
* @return {Request} for chaining
|
518
|
+
* @api public
|
519
|
+
*/
|
520
|
+
|
521
|
+
|
522
|
+
RequestBase.prototype.redirects = function (n) {
|
523
|
+
this._maxRedirects = n;
|
524
|
+
return this;
|
525
|
+
};
|
526
|
+
/**
|
527
|
+
* Maximum size of buffered response body, in bytes. Counts uncompressed size.
|
528
|
+
* Default 200MB.
|
529
|
+
*
|
530
|
+
* @param {Number} n number of bytes
|
531
|
+
* @return {Request} for chaining
|
532
|
+
*/
|
533
|
+
|
534
|
+
|
535
|
+
RequestBase.prototype.maxResponseSize = function (n) {
|
536
|
+
if (typeof n !== 'number') {
|
537
|
+
throw new TypeError('Invalid argument');
|
538
|
+
}
|
539
|
+
|
540
|
+
this._maxResponseSize = n;
|
541
|
+
return this;
|
542
|
+
};
|
543
|
+
/**
|
544
|
+
* Convert to a plain javascript object (not JSON string) of scalar properties.
|
545
|
+
* Note as this method is designed to return a useful non-this value,
|
546
|
+
* it cannot be chained.
|
547
|
+
*
|
548
|
+
* @return {Object} describing method, url, and data of this request
|
549
|
+
* @api public
|
550
|
+
*/
|
551
|
+
|
552
|
+
|
553
|
+
RequestBase.prototype.toJSON = function () {
|
554
|
+
return {
|
555
|
+
method: this.method,
|
556
|
+
url: this.url,
|
557
|
+
data: this._data,
|
558
|
+
headers: this._header
|
559
|
+
};
|
560
|
+
};
|
561
|
+
/**
|
562
|
+
* Send `data` as the request body, defaulting the `.type()` to "json" when
|
563
|
+
* an object is given.
|
564
|
+
*
|
565
|
+
* Examples:
|
566
|
+
*
|
567
|
+
* // manual json
|
568
|
+
* request.post('/user')
|
569
|
+
* .type('json')
|
570
|
+
* .send('{"name":"tj"}')
|
571
|
+
* .end(callback)
|
572
|
+
*
|
573
|
+
* // auto json
|
574
|
+
* request.post('/user')
|
575
|
+
* .send({ name: 'tj' })
|
576
|
+
* .end(callback)
|
577
|
+
*
|
578
|
+
* // manual x-www-form-urlencoded
|
579
|
+
* request.post('/user')
|
580
|
+
* .type('form')
|
581
|
+
* .send('name=tj')
|
582
|
+
* .end(callback)
|
583
|
+
*
|
584
|
+
* // auto x-www-form-urlencoded
|
585
|
+
* request.post('/user')
|
586
|
+
* .type('form')
|
587
|
+
* .send({ name: 'tj' })
|
588
|
+
* .end(callback)
|
589
|
+
*
|
590
|
+
* // defaults to x-www-form-urlencoded
|
591
|
+
* request.post('/user')
|
592
|
+
* .send('name=tobi')
|
593
|
+
* .send('species=ferret')
|
594
|
+
* .end(callback)
|
595
|
+
*
|
596
|
+
* @param {String|Object} data
|
597
|
+
* @return {Request} for chaining
|
598
|
+
* @api public
|
599
|
+
*/
|
600
|
+
// eslint-disable-next-line complexity
|
601
|
+
|
602
|
+
|
603
|
+
RequestBase.prototype.send = function (data) {
|
604
|
+
var isObj = isObject(data);
|
605
|
+
var type = this._header['content-type'];
|
606
|
+
|
607
|
+
if (this._formData) {
|
608
|
+
throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");
|
609
|
+
}
|
610
|
+
|
611
|
+
if (isObj && !this._data) {
|
612
|
+
if (Array.isArray(data)) {
|
613
|
+
this._data = [];
|
614
|
+
} else if (!this._isHost(data)) {
|
615
|
+
this._data = {};
|
616
|
+
}
|
617
|
+
} else if (data && this._data && this._isHost(this._data)) {
|
618
|
+
throw new Error("Can't merge these send calls");
|
619
|
+
} // merge
|
620
|
+
|
621
|
+
|
622
|
+
if (isObj && isObject(this._data)) {
|
623
|
+
for (var key in data) {
|
624
|
+
if (Object.prototype.hasOwnProperty.call(data, key)) this._data[key] = data[key];
|
625
|
+
}
|
626
|
+
} else if (typeof data === 'string') {
|
627
|
+
// default to x-www-form-urlencoded
|
628
|
+
if (!type) this.type('form');
|
629
|
+
type = this._header['content-type'];
|
630
|
+
|
631
|
+
if (type === 'application/x-www-form-urlencoded') {
|
632
|
+
this._data = this._data ? "".concat(this._data, "&").concat(data) : data;
|
633
|
+
} else {
|
634
|
+
this._data = (this._data || '') + data;
|
635
|
+
}
|
636
|
+
} else {
|
637
|
+
this._data = data;
|
638
|
+
}
|
639
|
+
|
640
|
+
if (!isObj || this._isHost(data)) {
|
641
|
+
return this;
|
642
|
+
} // default to json
|
643
|
+
|
644
|
+
|
645
|
+
if (!type) this.type('json');
|
646
|
+
return this;
|
647
|
+
};
|
648
|
+
/**
|
649
|
+
* Sort `querystring` by the sort function
|
650
|
+
*
|
651
|
+
*
|
652
|
+
* Examples:
|
653
|
+
*
|
654
|
+
* // default order
|
655
|
+
* request.get('/user')
|
656
|
+
* .query('name=Nick')
|
657
|
+
* .query('search=Manny')
|
658
|
+
* .sortQuery()
|
659
|
+
* .end(callback)
|
660
|
+
*
|
661
|
+
* // customized sort function
|
662
|
+
* request.get('/user')
|
663
|
+
* .query('name=Nick')
|
664
|
+
* .query('search=Manny')
|
665
|
+
* .sortQuery(function(a, b){
|
666
|
+
* return a.length - b.length;
|
667
|
+
* })
|
668
|
+
* .end(callback)
|
669
|
+
*
|
670
|
+
*
|
671
|
+
* @param {Function} sort
|
672
|
+
* @return {Request} for chaining
|
673
|
+
* @api public
|
674
|
+
*/
|
675
|
+
|
676
|
+
|
677
|
+
RequestBase.prototype.sortQuery = function (sort) {
|
678
|
+
// _sort default to true but otherwise can be a function or boolean
|
679
|
+
this._sort = typeof sort === 'undefined' ? true : sort;
|
680
|
+
return this;
|
681
|
+
};
|
682
|
+
/**
|
683
|
+
* Compose querystring to append to req.url
|
684
|
+
*
|
685
|
+
* @api private
|
686
|
+
*/
|
687
|
+
|
688
|
+
|
689
|
+
RequestBase.prototype._finalizeQueryString = function () {
|
690
|
+
var query = this._query.join('&');
|
691
|
+
|
692
|
+
if (query) {
|
693
|
+
this.url += (this.url.includes('?') ? '&' : '?') + query;
|
694
|
+
}
|
695
|
+
|
696
|
+
this._query.length = 0; // Makes the call idempotent
|
697
|
+
|
698
|
+
if (this._sort) {
|
699
|
+
var index = this.url.indexOf('?');
|
700
|
+
|
701
|
+
if (index >= 0) {
|
702
|
+
var queryArr = this.url.slice(index + 1).split('&');
|
703
|
+
|
704
|
+
if (typeof this._sort === 'function') {
|
705
|
+
queryArr.sort(this._sort);
|
706
|
+
} else {
|
707
|
+
queryArr.sort();
|
708
|
+
}
|
709
|
+
|
710
|
+
this.url = this.url.slice(0, index) + '?' + queryArr.join('&');
|
711
|
+
}
|
712
|
+
}
|
713
|
+
}; // For backwards compat only
|
714
|
+
|
715
|
+
|
716
|
+
RequestBase.prototype._appendQueryString = function () {
|
717
|
+
console.warn('Unsupported');
|
718
|
+
};
|
719
|
+
/**
|
720
|
+
* Invoke callback with timeout error.
|
721
|
+
*
|
722
|
+
* @api private
|
723
|
+
*/
|
724
|
+
|
725
|
+
|
726
|
+
RequestBase.prototype._timeoutError = function (reason, timeout, errno) {
|
727
|
+
if (this._aborted) {
|
728
|
+
return;
|
729
|
+
}
|
730
|
+
|
731
|
+
var err = new Error("".concat(reason + timeout, "ms exceeded"));
|
732
|
+
err.timeout = timeout;
|
733
|
+
err.code = 'ECONNABORTED';
|
734
|
+
err.errno = errno;
|
735
|
+
this.timedout = true;
|
736
|
+
this.timedoutError = err;
|
737
|
+
this.abort();
|
738
|
+
this.callback(err);
|
739
|
+
};
|
740
|
+
|
741
|
+
RequestBase.prototype._setTimeouts = function () {
|
742
|
+
var self = this; // deadline
|
743
|
+
|
744
|
+
if (this._timeout && !this._timer) {
|
745
|
+
this._timer = setTimeout(function () {
|
746
|
+
self._timeoutError('Timeout of ', self._timeout, 'ETIME');
|
747
|
+
}, this._timeout);
|
748
|
+
} // response timeout
|
749
|
+
|
750
|
+
|
751
|
+
if (this._responseTimeout && !this._responseTimeoutTimer) {
|
752
|
+
this._responseTimeoutTimer = setTimeout(function () {
|
753
|
+
self._timeoutError('Response timeout of ', self._responseTimeout, 'ETIMEDOUT');
|
754
|
+
}, this._responseTimeout);
|
755
|
+
}
|
756
|
+
};
|
757
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXF1ZXN0LWJhc2UuanMiXSwibmFtZXMiOlsiaXNPYmplY3QiLCJyZXF1aXJlIiwibW9kdWxlIiwiZXhwb3J0cyIsIlJlcXVlc3RCYXNlIiwib2JqIiwibWl4aW4iLCJrZXkiLCJwcm90b3R5cGUiLCJPYmplY3QiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJjbGVhclRpbWVvdXQiLCJfdGltZXIiLCJfcmVzcG9uc2VUaW1lb3V0VGltZXIiLCJfdXBsb2FkVGltZW91dFRpbWVyIiwicGFyc2UiLCJmbiIsIl9wYXJzZXIiLCJyZXNwb25zZVR5cGUiLCJ2YWwiLCJfcmVzcG9uc2VUeXBlIiwic2VyaWFsaXplIiwiX3NlcmlhbGl6ZXIiLCJ0aW1lb3V0Iiwib3B0aW9ucyIsIl90aW1lb3V0IiwiX3Jlc3BvbnNlVGltZW91dCIsIl91cGxvYWRUaW1lb3V0Iiwib3B0aW9uIiwiZGVhZGxpbmUiLCJyZXNwb25zZSIsInVwbG9hZCIsImNvbnNvbGUiLCJ3YXJuIiwicmV0cnkiLCJjb3VudCIsImFyZ3VtZW50cyIsImxlbmd0aCIsIl9tYXhSZXRyaWVzIiwiX3JldHJpZXMiLCJfcmV0cnlDYWxsYmFjayIsIkVSUk9SX0NPREVTIiwiX3Nob3VsZFJldHJ5IiwiZXJyIiwicmVzIiwib3ZlcnJpZGUiLCJlcnJfIiwiZXJyb3IiLCJzdGF0dXMiLCJjb2RlIiwiaW5jbHVkZXMiLCJjcm9zc0RvbWFpbiIsIl9yZXRyeSIsInJlcSIsInJlcXVlc3QiLCJfYWJvcnRlZCIsInRpbWVkb3V0IiwidGltZWRvdXRFcnJvciIs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