apipost-cli 1.0.9 → 1.0.13
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/README.md +4 -0
- package/dist/37.index.js +452 -0
- package/dist/841.index.js +6984 -0
- package/dist/action.js +4 -0
- package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortController.d.ts +85 -0
- package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortSignal.d.ts +80 -0
- package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/index.d.ts +3 -0
- package/dist/apipost-cli/node_modules/@azure/core-auth/types/3.1/core-auth.d.ts +229 -0
- package/dist/apipost-cli/node_modules/@azure/core-client/types/3.1/core-client.d.ts +900 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/core-paging.d.ts +77 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/samples-dev/getPagedAsyncIteratorSample.d.ts +2 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/getPagedAsyncIterator.d.ts +10 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/index.d.ts +3 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/models.d.ts +69 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/test/getPagedAsyncIterator.spec.d.ts +2 -0
- package/dist/apipost-cli/node_modules/@azure/core-rest-pipeline/types/3.1/core-rest-pipeline.d.ts +1114 -0
- package/dist/apipost-cli/node_modules/@azure/core-util/types/3.1/core-util.d.ts +112 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/buffer.d.ts +2351 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/crypto.d.ts +3961 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/events.d.ts +724 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs.d.ts +4043 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/https.d.ts +441 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/module.d.ts +116 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/net.d.ts +886 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/os.d.ts +477 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/process.d.ts +1485 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/tty.d.ts +205 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/url.d.ts +901 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/dist/apipost-cli/node_modules/bignumber.js/LICENCE.md +26 -0
- package/dist/apipost-cli/node_modules/bignumber.js/bignumber.d.ts +1831 -0
- package/dist/apipost-cli/node_modules/bignumber.js/bignumber.js +2926 -0
- package/dist/apipost-cli/node_modules/bignumber.js/bignumber.mjs +2889 -0
- package/dist/apipost-cli/node_modules/bignumber.js/doc/API.html +2249 -0
- package/dist/apipost-cli/node_modules/bignumber.js/package.json +50 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/cbc.js +65 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/cipher.js +142 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/des.js +150 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/ede.js +54 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/utils.js +256 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des.js +7 -0
- package/dist/apipost-cli/node_modules/des.js/package.json +33 -0
- package/dist/apipost-cli/node_modules/des.js/test/cbc-test.js +73 -0
- package/dist/apipost-cli/node_modules/des.js/test/des-test.js +139 -0
- package/dist/apipost-cli/node_modules/des.js/test/ede-test.js +106 -0
- package/dist/apipost-cli/node_modules/des.js/test/fixtures.js +5 -0
- package/dist/apipost-cli/node_modules/des.js/test/utils-test.js +169 -0
- package/dist/apipost-cli/node_modules/fs.realpath/LICENSE +43 -0
- package/dist/apipost-cli/node_modules/fs.realpath/index.js +66 -0
- package/dist/apipost-cli/node_modules/fs.realpath/old.js +303 -0
- package/dist/apipost-cli/node_modules/fs.realpath/package.json +26 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/auto.js +3 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/helpers/functionsHaveNames.js +5 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/implementation.js +43 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/index.js +18 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/package.json +80 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/polyfill.js +7 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/shim.js +35 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/implementation.js +20 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/index.js +23 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/shimmed.js +21 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/tests.js +60 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/uglified.js +17 -0
- package/dist/apipost-cli/node_modules/lodash.camelcase/LICENSE +47 -0
- package/dist/apipost-cli/node_modules/lodash.camelcase/index.js +599 -0
- package/dist/apipost-cli/node_modules/lodash.camelcase/package.json +17 -0
- package/dist/apipost-cli/node_modules/lodash.memoize/LICENSE +47 -0
- package/dist/apipost-cli/node_modules/lodash.memoize/index.js +676 -0
- package/dist/apipost-cli/node_modules/lodash.memoize/package.json +17 -0
- package/dist/apipost-cli/node_modules/lodash.uniq/LICENSE +47 -0
- package/dist/apipost-cli/node_modules/lodash.uniq/index.js +896 -0
- package/dist/apipost-cli/node_modules/lodash.uniq/package.json +17 -0
- package/dist/apipost-cli/node_modules/moment/ts3.1-typings/moment.d.ts +785 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/LICENSE +20 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/Makefile +36 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.d.ts +192 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.js +377 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/package.json +30 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/getParameterString.js +21 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/mocha.opts +4 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/oauth_body_hash.js +141 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/consumer.js +14 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/last_ampersand.js +55 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values.js +54 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values_qs.js +50 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/nonce_length.js +44 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/parameter_seperator.js +102 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/realm.js +51 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/signature_method.js +36 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/bitbucket.js +88 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/flickr.js +196 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/openbank.js +61 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/twitter.js +183 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/twitter_sample_data.js +94 -0
- package/dist/apipost-cli/node_modules/object.assign/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/object.assign/auto.js +3 -0
- package/dist/apipost-cli/node_modules/object.assign/dist/browser.js +944 -0
- package/dist/apipost-cli/node_modules/object.assign/hasSymbols.js +43 -0
- package/dist/apipost-cli/node_modules/object.assign/implementation.js +46 -0
- package/dist/apipost-cli/node_modules/object.assign/index.js +22 -0
- package/dist/apipost-cli/node_modules/object.assign/package.json +96 -0
- package/dist/apipost-cli/node_modules/object.assign/polyfill.js +55 -0
- package/dist/apipost-cli/node_modules/object.assign/shim.js +14 -0
- package/dist/apipost-cli/node_modules/object.assign/test/implementation.js +19 -0
- package/dist/apipost-cli/node_modules/object.assign/test/index.js +17 -0
- package/dist/apipost-cli/node_modules/object.assign/test/native.js +49 -0
- package/dist/apipost-cli/node_modules/object.assign/test/ses-compat.js +12 -0
- package/dist/apipost-cli/node_modules/object.assign/test/shimmed.js +52 -0
- package/dist/apipost-cli/node_modules/object.assign/test/tests.js +232 -0
- package/dist/apipost-cli/node_modules/object.assign/test.html +18458 -0
- package/dist/apipost-cli/node_modules/promise.series/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/promise.series/index.js +10 -0
- package/dist/apipost-cli/node_modules/promise.series/package.json +34 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/LICENSE +22 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/auto.js +3 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/implementation.js +42 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/index.js +18 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/package.json +100 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/polyfill.js +36 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/shim.js +26 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/implementation.js +20 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/index.js +17 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/shimmed.js +48 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/tests.js +143 -0
- package/dist/apipost-cli/node_modules/resolve.exports/dist/index.js +1 -0
- package/dist/apipost-cli/node_modules/resolve.exports/dist/index.mjs +1 -0
- package/dist/apipost-cli/node_modules/resolve.exports/index.d.ts +100 -0
- package/dist/apipost-cli/node_modules/resolve.exports/license +21 -0
- package/dist/apipost-cli/node_modules/resolve.exports/package.json +50 -0
- package/dist/apipost-cli/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/auto.js +3 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/implementation.js +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/index.js +23 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/package.json +101 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/polyfill.js +19 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/shim.js +14 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/test/implementation.js +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/test/index.js +17 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/test/shimmed.js +36 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/test/tests.js +45 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/auto.js +3 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/implementation.js +15 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/index.js +23 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/package.json +79 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/polyfill.js +15 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/shim.js +14 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/test/implementation.js +20 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/test/index.js +17 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/test/shimmed.js +36 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/test/tests.js +31 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/auto.js +3 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/implementation.js +15 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/index.js +23 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/package.json +79 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/polyfill.js +15 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/shim.js +14 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/implementation.js +20 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/index.js +18 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/shimmed.js +36 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/tests.js +31 -0
- package/dist/apipost-cli/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +771 -0
- package/dist/apipost-http-schema.json +129 -0
- package/dist/bridge.js +1010 -0
- package/dist/build/Release/cpufeatures.node +0 -0
- package/dist/esprima.js +3756 -0
- package/dist/events.js +977 -0
- package/dist/index.js +565958 -0
- package/dist/index1.js +26 -0
- package/dist/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
- package/dist/module.js +34 -0
- package/dist/pagent.exe +0 -0
- package/dist/setup-node-sandbox.js +461 -0
- package/dist/setup-sandbox.js +545 -0
- package/dist/snappy.darwin-arm64.node +0 -0
- package/dist/xdg-open +1066 -0
- package/package.json +13 -4
- package/apipost-reports/apipost-reports-2024-01-06 15:16:30.html +0 -750
- package/bin/cli.js +0 -231
- package/bin/template.js +0 -803
- /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.html" +0 -0
- /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.json" +0 -0
package/README.md
CHANGED
|
@@ -19,6 +19,10 @@ npm install -g apipost-cli
|
|
|
19
19
|
apipost run 'https://v7-api-test.apipost.cc/api/cli/open?type=single&id=7e58e858-c1ce-4c97-a0bf-5c0a559d9422&token=pnaoakyf4ivnqmi905sj82e0j60y0w6l' -r json,html -n 2
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
```console
|
|
23
|
+
apipost run data.json -r json,html -n 2
|
|
24
|
+
```
|
|
25
|
+
|
|
22
26
|
## Options type:Object
|
|
23
27
|
|
|
24
28
|
```
|
package/dist/37.index.js
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.id = 37;
|
|
3
|
+
exports.ids = [37];
|
|
4
|
+
exports.modules = {
|
|
5
|
+
|
|
6
|
+
/***/ 94037:
|
|
7
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
/* harmony export */ "toFormData": () => (/* binding */ toFormData)
|
|
12
|
+
/* harmony export */ });
|
|
13
|
+
/* harmony import */ var fetch_blob_from_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52185);
|
|
14
|
+
/* harmony import */ var formdata_polyfill_esm_min_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68010);
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
let s = 0;
|
|
19
|
+
const S = {
|
|
20
|
+
START_BOUNDARY: s++,
|
|
21
|
+
HEADER_FIELD_START: s++,
|
|
22
|
+
HEADER_FIELD: s++,
|
|
23
|
+
HEADER_VALUE_START: s++,
|
|
24
|
+
HEADER_VALUE: s++,
|
|
25
|
+
HEADER_VALUE_ALMOST_DONE: s++,
|
|
26
|
+
HEADERS_ALMOST_DONE: s++,
|
|
27
|
+
PART_DATA_START: s++,
|
|
28
|
+
PART_DATA: s++,
|
|
29
|
+
END: s++
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
let f = 1;
|
|
33
|
+
const F = {
|
|
34
|
+
PART_BOUNDARY: f,
|
|
35
|
+
LAST_BOUNDARY: f *= 2
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const LF = 10;
|
|
39
|
+
const CR = 13;
|
|
40
|
+
const SPACE = 32;
|
|
41
|
+
const HYPHEN = 45;
|
|
42
|
+
const COLON = 58;
|
|
43
|
+
const A = 97;
|
|
44
|
+
const Z = 122;
|
|
45
|
+
|
|
46
|
+
const lower = c => c | 0x20;
|
|
47
|
+
|
|
48
|
+
const noop = () => {};
|
|
49
|
+
|
|
50
|
+
class MultipartParser {
|
|
51
|
+
/**
|
|
52
|
+
* @param {string} boundary
|
|
53
|
+
*/
|
|
54
|
+
constructor(boundary) {
|
|
55
|
+
this.index = 0;
|
|
56
|
+
this.flags = 0;
|
|
57
|
+
|
|
58
|
+
this.onHeaderEnd = noop;
|
|
59
|
+
this.onHeaderField = noop;
|
|
60
|
+
this.onHeadersEnd = noop;
|
|
61
|
+
this.onHeaderValue = noop;
|
|
62
|
+
this.onPartBegin = noop;
|
|
63
|
+
this.onPartData = noop;
|
|
64
|
+
this.onPartEnd = noop;
|
|
65
|
+
|
|
66
|
+
this.boundaryChars = {};
|
|
67
|
+
|
|
68
|
+
boundary = '\r\n--' + boundary;
|
|
69
|
+
const ui8a = new Uint8Array(boundary.length);
|
|
70
|
+
for (let i = 0; i < boundary.length; i++) {
|
|
71
|
+
ui8a[i] = boundary.charCodeAt(i);
|
|
72
|
+
this.boundaryChars[ui8a[i]] = true;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
this.boundary = ui8a;
|
|
76
|
+
this.lookbehind = new Uint8Array(this.boundary.length + 8);
|
|
77
|
+
this.state = S.START_BOUNDARY;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @param {Uint8Array} data
|
|
82
|
+
*/
|
|
83
|
+
write(data) {
|
|
84
|
+
let i = 0;
|
|
85
|
+
const length_ = data.length;
|
|
86
|
+
let previousIndex = this.index;
|
|
87
|
+
let {lookbehind, boundary, boundaryChars, index, state, flags} = this;
|
|
88
|
+
const boundaryLength = this.boundary.length;
|
|
89
|
+
const boundaryEnd = boundaryLength - 1;
|
|
90
|
+
const bufferLength = data.length;
|
|
91
|
+
let c;
|
|
92
|
+
let cl;
|
|
93
|
+
|
|
94
|
+
const mark = name => {
|
|
95
|
+
this[name + 'Mark'] = i;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const clear = name => {
|
|
99
|
+
delete this[name + 'Mark'];
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const callback = (callbackSymbol, start, end, ui8a) => {
|
|
103
|
+
if (start === undefined || start !== end) {
|
|
104
|
+
this[callbackSymbol](ui8a && ui8a.subarray(start, end));
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const dataCallback = (name, clear) => {
|
|
109
|
+
const markSymbol = name + 'Mark';
|
|
110
|
+
if (!(markSymbol in this)) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (clear) {
|
|
115
|
+
callback(name, this[markSymbol], i, data);
|
|
116
|
+
delete this[markSymbol];
|
|
117
|
+
} else {
|
|
118
|
+
callback(name, this[markSymbol], data.length, data);
|
|
119
|
+
this[markSymbol] = 0;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
for (i = 0; i < length_; i++) {
|
|
124
|
+
c = data[i];
|
|
125
|
+
|
|
126
|
+
switch (state) {
|
|
127
|
+
case S.START_BOUNDARY:
|
|
128
|
+
if (index === boundary.length - 2) {
|
|
129
|
+
if (c === HYPHEN) {
|
|
130
|
+
flags |= F.LAST_BOUNDARY;
|
|
131
|
+
} else if (c !== CR) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
index++;
|
|
136
|
+
break;
|
|
137
|
+
} else if (index - 1 === boundary.length - 2) {
|
|
138
|
+
if (flags & F.LAST_BOUNDARY && c === HYPHEN) {
|
|
139
|
+
state = S.END;
|
|
140
|
+
flags = 0;
|
|
141
|
+
} else if (!(flags & F.LAST_BOUNDARY) && c === LF) {
|
|
142
|
+
index = 0;
|
|
143
|
+
callback('onPartBegin');
|
|
144
|
+
state = S.HEADER_FIELD_START;
|
|
145
|
+
} else {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (c !== boundary[index + 2]) {
|
|
153
|
+
index = -2;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (c === boundary[index + 2]) {
|
|
157
|
+
index++;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
break;
|
|
161
|
+
case S.HEADER_FIELD_START:
|
|
162
|
+
state = S.HEADER_FIELD;
|
|
163
|
+
mark('onHeaderField');
|
|
164
|
+
index = 0;
|
|
165
|
+
// falls through
|
|
166
|
+
case S.HEADER_FIELD:
|
|
167
|
+
if (c === CR) {
|
|
168
|
+
clear('onHeaderField');
|
|
169
|
+
state = S.HEADERS_ALMOST_DONE;
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
index++;
|
|
174
|
+
if (c === HYPHEN) {
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (c === COLON) {
|
|
179
|
+
if (index === 1) {
|
|
180
|
+
// empty header field
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
dataCallback('onHeaderField', true);
|
|
185
|
+
state = S.HEADER_VALUE_START;
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
cl = lower(c);
|
|
190
|
+
if (cl < A || cl > Z) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
break;
|
|
195
|
+
case S.HEADER_VALUE_START:
|
|
196
|
+
if (c === SPACE) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
mark('onHeaderValue');
|
|
201
|
+
state = S.HEADER_VALUE;
|
|
202
|
+
// falls through
|
|
203
|
+
case S.HEADER_VALUE:
|
|
204
|
+
if (c === CR) {
|
|
205
|
+
dataCallback('onHeaderValue', true);
|
|
206
|
+
callback('onHeaderEnd');
|
|
207
|
+
state = S.HEADER_VALUE_ALMOST_DONE;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
break;
|
|
211
|
+
case S.HEADER_VALUE_ALMOST_DONE:
|
|
212
|
+
if (c !== LF) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
state = S.HEADER_FIELD_START;
|
|
217
|
+
break;
|
|
218
|
+
case S.HEADERS_ALMOST_DONE:
|
|
219
|
+
if (c !== LF) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
callback('onHeadersEnd');
|
|
224
|
+
state = S.PART_DATA_START;
|
|
225
|
+
break;
|
|
226
|
+
case S.PART_DATA_START:
|
|
227
|
+
state = S.PART_DATA;
|
|
228
|
+
mark('onPartData');
|
|
229
|
+
// falls through
|
|
230
|
+
case S.PART_DATA:
|
|
231
|
+
previousIndex = index;
|
|
232
|
+
|
|
233
|
+
if (index === 0) {
|
|
234
|
+
// boyer-moore derrived algorithm to safely skip non-boundary data
|
|
235
|
+
i += boundaryEnd;
|
|
236
|
+
while (i < bufferLength && !(data[i] in boundaryChars)) {
|
|
237
|
+
i += boundaryLength;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
i -= boundaryEnd;
|
|
241
|
+
c = data[i];
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (index < boundary.length) {
|
|
245
|
+
if (boundary[index] === c) {
|
|
246
|
+
if (index === 0) {
|
|
247
|
+
dataCallback('onPartData', true);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
index++;
|
|
251
|
+
} else {
|
|
252
|
+
index = 0;
|
|
253
|
+
}
|
|
254
|
+
} else if (index === boundary.length) {
|
|
255
|
+
index++;
|
|
256
|
+
if (c === CR) {
|
|
257
|
+
// CR = part boundary
|
|
258
|
+
flags |= F.PART_BOUNDARY;
|
|
259
|
+
} else if (c === HYPHEN) {
|
|
260
|
+
// HYPHEN = end boundary
|
|
261
|
+
flags |= F.LAST_BOUNDARY;
|
|
262
|
+
} else {
|
|
263
|
+
index = 0;
|
|
264
|
+
}
|
|
265
|
+
} else if (index - 1 === boundary.length) {
|
|
266
|
+
if (flags & F.PART_BOUNDARY) {
|
|
267
|
+
index = 0;
|
|
268
|
+
if (c === LF) {
|
|
269
|
+
// unset the PART_BOUNDARY flag
|
|
270
|
+
flags &= ~F.PART_BOUNDARY;
|
|
271
|
+
callback('onPartEnd');
|
|
272
|
+
callback('onPartBegin');
|
|
273
|
+
state = S.HEADER_FIELD_START;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
} else if (flags & F.LAST_BOUNDARY) {
|
|
277
|
+
if (c === HYPHEN) {
|
|
278
|
+
callback('onPartEnd');
|
|
279
|
+
state = S.END;
|
|
280
|
+
flags = 0;
|
|
281
|
+
} else {
|
|
282
|
+
index = 0;
|
|
283
|
+
}
|
|
284
|
+
} else {
|
|
285
|
+
index = 0;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (index > 0) {
|
|
290
|
+
// when matching a possible boundary, keep a lookbehind reference
|
|
291
|
+
// in case it turns out to be a false lead
|
|
292
|
+
lookbehind[index - 1] = c;
|
|
293
|
+
} else if (previousIndex > 0) {
|
|
294
|
+
// if our boundary turned out to be rubbish, the captured lookbehind
|
|
295
|
+
// belongs to partData
|
|
296
|
+
const _lookbehind = new Uint8Array(lookbehind.buffer, lookbehind.byteOffset, lookbehind.byteLength);
|
|
297
|
+
callback('onPartData', 0, previousIndex, _lookbehind);
|
|
298
|
+
previousIndex = 0;
|
|
299
|
+
mark('onPartData');
|
|
300
|
+
|
|
301
|
+
// reconsider the current character even so it interrupted the sequence
|
|
302
|
+
// it could be the beginning of a new sequence
|
|
303
|
+
i--;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
break;
|
|
307
|
+
case S.END:
|
|
308
|
+
break;
|
|
309
|
+
default:
|
|
310
|
+
throw new Error(`Unexpected state entered: ${state}`);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
dataCallback('onHeaderField');
|
|
315
|
+
dataCallback('onHeaderValue');
|
|
316
|
+
dataCallback('onPartData');
|
|
317
|
+
|
|
318
|
+
// Update properties for the next call
|
|
319
|
+
this.index = index;
|
|
320
|
+
this.state = state;
|
|
321
|
+
this.flags = flags;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
end() {
|
|
325
|
+
if ((this.state === S.HEADER_FIELD_START && this.index === 0) ||
|
|
326
|
+
(this.state === S.PART_DATA && this.index === this.boundary.length)) {
|
|
327
|
+
this.onPartEnd();
|
|
328
|
+
} else if (this.state !== S.END) {
|
|
329
|
+
throw new Error('MultipartParser.end(): stream ended unexpectedly');
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function _fileName(headerValue) {
|
|
335
|
+
// matches either a quoted-string or a token (RFC 2616 section 19.5.1)
|
|
336
|
+
const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
337
|
+
if (!m) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
const match = m[2] || m[3] || '';
|
|
342
|
+
let filename = match.slice(match.lastIndexOf('\\') + 1);
|
|
343
|
+
filename = filename.replace(/%22/g, '"');
|
|
344
|
+
filename = filename.replace(/&#(\d{4});/g, (m, code) => {
|
|
345
|
+
return String.fromCharCode(code);
|
|
346
|
+
});
|
|
347
|
+
return filename;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
async function toFormData(Body, ct) {
|
|
351
|
+
if (!/multipart/i.test(ct)) {
|
|
352
|
+
throw new TypeError('Failed to fetch');
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
const m = ct.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
|
|
356
|
+
|
|
357
|
+
if (!m) {
|
|
358
|
+
throw new TypeError('no or bad content-type header, no multipart boundary');
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
const parser = new MultipartParser(m[1] || m[2]);
|
|
362
|
+
|
|
363
|
+
let headerField;
|
|
364
|
+
let headerValue;
|
|
365
|
+
let entryValue;
|
|
366
|
+
let entryName;
|
|
367
|
+
let contentType;
|
|
368
|
+
let filename;
|
|
369
|
+
const entryChunks = [];
|
|
370
|
+
const formData = new formdata_polyfill_esm_min_js__WEBPACK_IMPORTED_MODULE_1__/* .FormData */ .Ct();
|
|
371
|
+
|
|
372
|
+
const onPartData = ui8a => {
|
|
373
|
+
entryValue += decoder.decode(ui8a, {stream: true});
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
const appendToFile = ui8a => {
|
|
377
|
+
entryChunks.push(ui8a);
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
const appendFileToFormData = () => {
|
|
381
|
+
const file = new fetch_blob_from_js__WEBPACK_IMPORTED_MODULE_0__/* .File */ .$B(entryChunks, filename, {type: contentType});
|
|
382
|
+
formData.append(entryName, file);
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
const appendEntryToFormData = () => {
|
|
386
|
+
formData.append(entryName, entryValue);
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
const decoder = new TextDecoder('utf-8');
|
|
390
|
+
decoder.decode();
|
|
391
|
+
|
|
392
|
+
parser.onPartBegin = function () {
|
|
393
|
+
parser.onPartData = onPartData;
|
|
394
|
+
parser.onPartEnd = appendEntryToFormData;
|
|
395
|
+
|
|
396
|
+
headerField = '';
|
|
397
|
+
headerValue = '';
|
|
398
|
+
entryValue = '';
|
|
399
|
+
entryName = '';
|
|
400
|
+
contentType = '';
|
|
401
|
+
filename = null;
|
|
402
|
+
entryChunks.length = 0;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
parser.onHeaderField = function (ui8a) {
|
|
406
|
+
headerField += decoder.decode(ui8a, {stream: true});
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
parser.onHeaderValue = function (ui8a) {
|
|
410
|
+
headerValue += decoder.decode(ui8a, {stream: true});
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
parser.onHeaderEnd = function () {
|
|
414
|
+
headerValue += decoder.decode();
|
|
415
|
+
headerField = headerField.toLowerCase();
|
|
416
|
+
|
|
417
|
+
if (headerField === 'content-disposition') {
|
|
418
|
+
// matches either a quoted-string or a token (RFC 2616 section 19.5.1)
|
|
419
|
+
const m = headerValue.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
|
|
420
|
+
|
|
421
|
+
if (m) {
|
|
422
|
+
entryName = m[2] || m[3] || '';
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
filename = _fileName(headerValue);
|
|
426
|
+
|
|
427
|
+
if (filename) {
|
|
428
|
+
parser.onPartData = appendToFile;
|
|
429
|
+
parser.onPartEnd = appendFileToFormData;
|
|
430
|
+
}
|
|
431
|
+
} else if (headerField === 'content-type') {
|
|
432
|
+
contentType = headerValue;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
headerValue = '';
|
|
436
|
+
headerField = '';
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
for await (const chunk of Body) {
|
|
440
|
+
parser.write(chunk);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
parser.end();
|
|
444
|
+
|
|
445
|
+
return formData;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
/***/ })
|
|
450
|
+
|
|
451
|
+
};
|
|
452
|
+
;
|