apipost-cli 1.0.8 → 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/bin/cli.js +0 -216
- 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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) EGOIST <0x142857@gmail.com> (github.com/egoist)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
module.exports = function (tasks, initial) {
|
|
4
|
+
if (!Array.isArray(tasks)) {
|
|
5
|
+
return Promise.reject(new TypeError('promise.series only accepts an array of functions'))
|
|
6
|
+
}
|
|
7
|
+
return tasks.reduce((current, next) => {
|
|
8
|
+
return current.then(next)
|
|
9
|
+
}, Promise.resolve(initial))
|
|
10
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "promise.series",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Run Promise in series.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "egoist/promise.series",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "EGOIST",
|
|
9
|
+
"email": "0x142857@gmail.com",
|
|
10
|
+
"url": "github.com/egoist"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=0.12"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"promise",
|
|
23
|
+
"series",
|
|
24
|
+
"sequence"
|
|
25
|
+
],
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"ava": "latest",
|
|
28
|
+
"xo": "latest"
|
|
29
|
+
},
|
|
30
|
+
"xo": {
|
|
31
|
+
"semicolon": false,
|
|
32
|
+
"space": 2
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2014 Jordan Harband
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
22
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var functionsHaveConfigurableNames = require('functions-have-names').functionsHaveConfigurableNames();
|
|
4
|
+
|
|
5
|
+
var $Object = Object;
|
|
6
|
+
var $TypeError = TypeError;
|
|
7
|
+
|
|
8
|
+
module.exports = function flags() {
|
|
9
|
+
if (this != null && this !== $Object(this)) {
|
|
10
|
+
throw new $TypeError('RegExp.prototype.flags getter called on non-object');
|
|
11
|
+
}
|
|
12
|
+
var result = '';
|
|
13
|
+
if (this.hasIndices) {
|
|
14
|
+
result += 'd';
|
|
15
|
+
}
|
|
16
|
+
if (this.global) {
|
|
17
|
+
result += 'g';
|
|
18
|
+
}
|
|
19
|
+
if (this.ignoreCase) {
|
|
20
|
+
result += 'i';
|
|
21
|
+
}
|
|
22
|
+
if (this.multiline) {
|
|
23
|
+
result += 'm';
|
|
24
|
+
}
|
|
25
|
+
if (this.dotAll) {
|
|
26
|
+
result += 's';
|
|
27
|
+
}
|
|
28
|
+
if (this.unicode) {
|
|
29
|
+
result += 'u';
|
|
30
|
+
}
|
|
31
|
+
if (this.unicodeSets) {
|
|
32
|
+
result += 'v';
|
|
33
|
+
}
|
|
34
|
+
if (this.sticky) {
|
|
35
|
+
result += 'y';
|
|
36
|
+
}
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
if (functionsHaveConfigurableNames && Object.defineProperty) {
|
|
41
|
+
Object.defineProperty(module.exports, 'name', { value: 'get flags' });
|
|
42
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var define = require('define-properties');
|
|
4
|
+
var callBind = require('call-bind');
|
|
5
|
+
|
|
6
|
+
var implementation = require('./implementation');
|
|
7
|
+
var getPolyfill = require('./polyfill');
|
|
8
|
+
var shim = require('./shim');
|
|
9
|
+
|
|
10
|
+
var flagsBound = callBind(getPolyfill());
|
|
11
|
+
|
|
12
|
+
define(flagsBound, {
|
|
13
|
+
getPolyfill: getPolyfill,
|
|
14
|
+
implementation: implementation,
|
|
15
|
+
shim: shim
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
module.exports = flagsBound;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "regexp.prototype.flags",
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
5
|
+
"funding": {
|
|
6
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
7
|
+
},
|
|
8
|
+
"description": "ES6 spec-compliant RegExp.prototype.flags shim.",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"main": "index.js",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
13
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
14
|
+
"prepublishOnly": "safe-publish-latest",
|
|
15
|
+
"pretest": "npm run lint",
|
|
16
|
+
"test": "npm run tests-only",
|
|
17
|
+
"posttest": "aud --production",
|
|
18
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
19
|
+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
|
|
20
|
+
"lint": "eslint --ext=js,mjs .",
|
|
21
|
+
"postlint": "es-shim-api --bound",
|
|
22
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
23
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git://github.com/es-shims/RegExp.prototype.flags.git"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"RegExp.prototype.flags",
|
|
31
|
+
"regex",
|
|
32
|
+
"regular expression",
|
|
33
|
+
"ES6",
|
|
34
|
+
"shim",
|
|
35
|
+
"flag",
|
|
36
|
+
"flags",
|
|
37
|
+
"regexp",
|
|
38
|
+
"RegExp#flags",
|
|
39
|
+
"polyfill",
|
|
40
|
+
"es-shim API"
|
|
41
|
+
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"call-bind": "^1.0.2",
|
|
44
|
+
"define-properties": "^1.2.0",
|
|
45
|
+
"functions-have-names": "^1.2.3"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@es-shims/api": "^2.3.1",
|
|
49
|
+
"@ljharb/eslint-config": "^21.0.1",
|
|
50
|
+
"aud": "^2.0.2",
|
|
51
|
+
"auto-changelog": "^2.4.0",
|
|
52
|
+
"available-regexp-flags": "^1.0.1",
|
|
53
|
+
"covert": "^1.1.1",
|
|
54
|
+
"eclint": "^2.8.1",
|
|
55
|
+
"eslint": "=8.8.0",
|
|
56
|
+
"for-each": "^0.3.3",
|
|
57
|
+
"has": "^1.0.3",
|
|
58
|
+
"has-strict-mode": "^1.0.1",
|
|
59
|
+
"in-publish": "^2.0.1",
|
|
60
|
+
"npmignore": "^0.3.0",
|
|
61
|
+
"nyc": "^10.3.2",
|
|
62
|
+
"object-inspect": "^1.12.3",
|
|
63
|
+
"safe-publish-latest": "^2.0.0",
|
|
64
|
+
"tape": "^5.6.3"
|
|
65
|
+
},
|
|
66
|
+
"testling": {
|
|
67
|
+
"files": "test/index.js",
|
|
68
|
+
"browsers": [
|
|
69
|
+
"iexplore/9.0..latest",
|
|
70
|
+
"firefox/4.0..6.0",
|
|
71
|
+
"firefox/15.0..latest",
|
|
72
|
+
"firefox/nightly",
|
|
73
|
+
"chrome/4.0..10.0",
|
|
74
|
+
"chrome/20.0..latest",
|
|
75
|
+
"chrome/canary",
|
|
76
|
+
"opera/11.6..latest",
|
|
77
|
+
"opera/next",
|
|
78
|
+
"safari/5.0..latest",
|
|
79
|
+
"ipad/6.0..latest",
|
|
80
|
+
"iphone/6.0..latest",
|
|
81
|
+
"android-browser/4.2"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"engines": {
|
|
85
|
+
"node": ">= 0.4"
|
|
86
|
+
},
|
|
87
|
+
"auto-changelog": {
|
|
88
|
+
"output": "CHANGELOG.md",
|
|
89
|
+
"template": "keepachangelog",
|
|
90
|
+
"unreleased": false,
|
|
91
|
+
"commitLimit": false,
|
|
92
|
+
"backfillLimit": false,
|
|
93
|
+
"hideCredit": true
|
|
94
|
+
},
|
|
95
|
+
"publishConfig": {
|
|
96
|
+
"ignore": [
|
|
97
|
+
".github/workflows"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var implementation = require('./implementation');
|
|
4
|
+
|
|
5
|
+
var supportsDescriptors = require('define-properties').supportsDescriptors;
|
|
6
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
7
|
+
|
|
8
|
+
module.exports = function getPolyfill() {
|
|
9
|
+
if (supportsDescriptors && (/a/mig).flags === 'gim') {
|
|
10
|
+
var descriptor = $gOPD(RegExp.prototype, 'flags');
|
|
11
|
+
if (
|
|
12
|
+
descriptor
|
|
13
|
+
&& typeof descriptor.get === 'function'
|
|
14
|
+
&& typeof RegExp.prototype.dotAll === 'boolean'
|
|
15
|
+
&& typeof RegExp.prototype.hasIndices === 'boolean'
|
|
16
|
+
) {
|
|
17
|
+
/* eslint getter-return: 0 */
|
|
18
|
+
var calls = '';
|
|
19
|
+
var o = {};
|
|
20
|
+
Object.defineProperty(o, 'hasIndices', {
|
|
21
|
+
get: function () {
|
|
22
|
+
calls += 'd';
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(o, 'sticky', {
|
|
26
|
+
get: function () {
|
|
27
|
+
calls += 'y';
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
if (calls === 'dy') {
|
|
31
|
+
return descriptor.get;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return implementation;
|
|
36
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var supportsDescriptors = require('define-properties').supportsDescriptors;
|
|
4
|
+
var getPolyfill = require('./polyfill');
|
|
5
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var defineProperty = Object.defineProperty;
|
|
7
|
+
var TypeErr = TypeError;
|
|
8
|
+
var getProto = Object.getPrototypeOf;
|
|
9
|
+
var regex = /a/;
|
|
10
|
+
|
|
11
|
+
module.exports = function shimFlags() {
|
|
12
|
+
if (!supportsDescriptors || !getProto) {
|
|
13
|
+
throw new TypeErr('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
|
|
14
|
+
}
|
|
15
|
+
var polyfill = getPolyfill();
|
|
16
|
+
var proto = getProto(regex);
|
|
17
|
+
var descriptor = gOPD(proto, 'flags');
|
|
18
|
+
if (!descriptor || descriptor.get !== polyfill) {
|
|
19
|
+
defineProperty(proto, 'flags', {
|
|
20
|
+
configurable: true,
|
|
21
|
+
enumerable: false,
|
|
22
|
+
get: polyfill
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return polyfill;
|
|
26
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var flags = require('../implementation');
|
|
4
|
+
var callBind = require('call-bind');
|
|
5
|
+
var test = require('tape');
|
|
6
|
+
var hasStrictMode = require('has-strict-mode')();
|
|
7
|
+
var runTests = require('./tests');
|
|
8
|
+
|
|
9
|
+
test('as a function', function (t) {
|
|
10
|
+
t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
|
|
11
|
+
/* eslint no-useless-call: 0 */
|
|
12
|
+
st['throws'](function () { flags.call(undefined); }, TypeError, 'undefined is not an object');
|
|
13
|
+
st['throws'](function () { flags.call(null); }, TypeError, 'null is not an object');
|
|
14
|
+
st.end();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
runTests(callBind(flags), t);
|
|
18
|
+
|
|
19
|
+
t.end();
|
|
20
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var flags = require('../');
|
|
4
|
+
var test = require('tape');
|
|
5
|
+
var runTests = require('./tests');
|
|
6
|
+
|
|
7
|
+
test('as a function', function (t) {
|
|
8
|
+
t.test('bad array/this value', function (st) {
|
|
9
|
+
st['throws'](function () { flags(undefined); }, TypeError, 'undefined is not an object');
|
|
10
|
+
st['throws'](function () { flags(null); }, TypeError, 'null is not an object');
|
|
11
|
+
st.end();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
runTests(flags, t);
|
|
15
|
+
|
|
16
|
+
t.end();
|
|
17
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../auto');
|
|
4
|
+
|
|
5
|
+
var test = require('tape');
|
|
6
|
+
var defineProperties = require('define-properties');
|
|
7
|
+
var callBind = require('call-bind');
|
|
8
|
+
|
|
9
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var functionsHaveNames = require('functions-have-names')();
|
|
11
|
+
var functionsHaveConfigurableNames = require('functions-have-names').functionsHaveConfigurableNames();
|
|
12
|
+
var hasStrictMode = require('has-strict-mode')();
|
|
13
|
+
|
|
14
|
+
var runTests = require('./tests');
|
|
15
|
+
|
|
16
|
+
test('shimmed', function (t) {
|
|
17
|
+
var descriptor = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags');
|
|
18
|
+
|
|
19
|
+
t.equal(descriptor.get.length, 0, 'RegExp#flags getter has a length of 0');
|
|
20
|
+
|
|
21
|
+
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
|
|
22
|
+
st.equal(descriptor.get.name, functionsHaveConfigurableNames ? 'get flags' : 'flags', 'RegExp#flags getter has name "get flags" (or "flags" if function names are not configurable)');
|
|
23
|
+
st.end();
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
|
|
27
|
+
et.equal(false, isEnumerable.call(RegExp.prototype, 'flags'), 'RegExp#flags is not enumerable');
|
|
28
|
+
et.end();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
|
|
32
|
+
st['throws'](function () { return descriptor.get.call(undefined); }, TypeError, 'undefined is not an object');
|
|
33
|
+
st['throws'](function () { return descriptor.get.call(null); }, TypeError, 'null is not an object');
|
|
34
|
+
st.end();
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
t.test('has the correct descriptor', function (st) {
|
|
38
|
+
st.equal(descriptor.configurable, true);
|
|
39
|
+
st.equal(descriptor.enumerable, false);
|
|
40
|
+
st.equal(typeof descriptor.get, 'function');
|
|
41
|
+
st.equal(descriptor.set, undefined);
|
|
42
|
+
st.end();
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
runTests(callBind(descriptor.get), t);
|
|
46
|
+
|
|
47
|
+
t.end();
|
|
48
|
+
});
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var has = require('has');
|
|
4
|
+
var inspect = require('object-inspect');
|
|
5
|
+
var supportsDescriptors = require('define-properties').supportsDescriptors;
|
|
6
|
+
|
|
7
|
+
var forEach = require('for-each');
|
|
8
|
+
var availableFlags = require('available-regexp-flags');
|
|
9
|
+
var regexProperties = require('available-regexp-flags/properties');
|
|
10
|
+
|
|
11
|
+
var sortedFlags = availableFlags.slice().sort(function (a, b) { return a.localeCompare(b); }).join('');
|
|
12
|
+
|
|
13
|
+
var getRegexLiteral = function (stringRegex) {
|
|
14
|
+
try {
|
|
15
|
+
// eslint-disable-next-line no-new-func
|
|
16
|
+
return Function('return ' + stringRegex + ';')();
|
|
17
|
+
} catch (e) { /**/ }
|
|
18
|
+
return null;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
module.exports = function runTests(flags, t) {
|
|
22
|
+
t.equal(flags(/a/g), 'g', 'flags(/a/g) !== "g"');
|
|
23
|
+
t.equal(flags(/a/gmi), 'gim', 'flags(/a/gmi) !== "gim"');
|
|
24
|
+
t.equal(flags(new RegExp('a', 'gmi')), 'gim', 'flags(new RegExp("a", "gmi")) !== "gim"');
|
|
25
|
+
t.equal(flags(/a/), '', 'flags(/a/) !== ""');
|
|
26
|
+
t.equal(flags(new RegExp('a')), '', 'flags(new RegExp("a")) !== ""');
|
|
27
|
+
|
|
28
|
+
forEach(availableFlags, function (flag) {
|
|
29
|
+
var property = regexProperties[flag];
|
|
30
|
+
t.test(property + ' flag', function (st) {
|
|
31
|
+
st.equal(flags(getRegexLiteral('/a/' + flag)), flag, 'flags(/a/' + flag + ') !== ' + inspect(flag));
|
|
32
|
+
st.equal(flags(new RegExp('a', flag)), flag, 'flags(new RegExp("a", ' + inspect(flag) + ')) !== ' + inspect(flag));
|
|
33
|
+
st.end();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
t.test('sorting', function (st) {
|
|
38
|
+
st.equal(flags(/a/gim), 'gim', 'flags(/a/gim) !== "gim"');
|
|
39
|
+
st.equal(flags(/a/mig), 'gim', 'flags(/a/mig) !== "gim"');
|
|
40
|
+
st.equal(flags(/a/mgi), 'gim', 'flags(/a/mgi) !== "gim"');
|
|
41
|
+
if (has(RegExp.prototype, 'sticky')) {
|
|
42
|
+
st.equal(flags(getRegexLiteral('/a/gyim')), 'gimy', 'flags(/a/gyim) !== "gimy"');
|
|
43
|
+
}
|
|
44
|
+
if (has(RegExp.prototype, 'unicode')) {
|
|
45
|
+
st.equal(flags(getRegexLiteral('/a/ugmi')), 'gimu', 'flags(/a/ugmi) !== "gimu"');
|
|
46
|
+
}
|
|
47
|
+
if (has(RegExp.prototype, 'dotAll')) {
|
|
48
|
+
st.equal(flags(getRegexLiteral('/a/sgmi')), 'gims', 'flags(/a/sgmi) !== "gims"');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
var randomFlags = availableFlags.slice().sort(function () { return Math.random() > 0.5 ? 1 : -1; }).join('').replace('v', '');
|
|
52
|
+
st.equal(
|
|
53
|
+
flags(getRegexLiteral('/a/' + randomFlags)),
|
|
54
|
+
sortedFlags.replace('v', ''),
|
|
55
|
+
'random: flags(/a/' + randomFlags + ') === ' + inspect(sortedFlags)
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
st.end();
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
t.test('basic examples', function (st) {
|
|
62
|
+
st.equal(flags(/a/g), 'g', '(/a/g).flags !== "g"');
|
|
63
|
+
st.equal(flags(/a/gmi), 'gim', '(/a/gmi).flags !== "gim"');
|
|
64
|
+
st.equal(flags(new RegExp('a', 'gmi')), 'gim', 'new RegExp("a", "gmi").flags !== "gim"');
|
|
65
|
+
st.equal(flags(/a/), '', '(/a/).flags !== ""');
|
|
66
|
+
st.equal(flags(new RegExp('a')), '', 'new RegExp("a").flags !== ""');
|
|
67
|
+
|
|
68
|
+
st.end();
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
t.test('generic flags', function (st) {
|
|
72
|
+
st.equal(flags({}), '');
|
|
73
|
+
st.equal(flags({ ignoreCase: true }), 'i');
|
|
74
|
+
st.equal(flags({ dotAll: 1, global: 0, sticky: 1, unicode: 1 }), 'suy');
|
|
75
|
+
st.equal(flags({ __proto__: { multiline: true } }), 'm');
|
|
76
|
+
|
|
77
|
+
var obj = {};
|
|
78
|
+
forEach(availableFlags, function (flag) {
|
|
79
|
+
if (flag !== 'v') {
|
|
80
|
+
obj[regexProperties[flag]] = true;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
st.equal(flags(obj), sortedFlags.replace('v', ''), 'an object with every available flag: ' + sortedFlags);
|
|
84
|
+
|
|
85
|
+
st.end();
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
t.test('throws properly', function (st) {
|
|
89
|
+
var nonObjects = ['', false, true, 42, NaN, null, undefined];
|
|
90
|
+
st.plan(nonObjects.length);
|
|
91
|
+
var throwsOnNonObject = function (nonObject) {
|
|
92
|
+
st['throws'](flags.bind(null, nonObject), TypeError, inspect(nonObject) + ' is not an Object');
|
|
93
|
+
};
|
|
94
|
+
nonObjects.forEach(throwsOnNonObject);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
t.test('getters', { skip: !supportsDescriptors }, function (st) {
|
|
98
|
+
/* eslint getter-return: 0 */
|
|
99
|
+
var calls = '';
|
|
100
|
+
var re = {};
|
|
101
|
+
Object.defineProperty(re, 'hasIndices', {
|
|
102
|
+
get: function () {
|
|
103
|
+
calls += 'd';
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(re, 'global', {
|
|
107
|
+
get: function () {
|
|
108
|
+
calls += 'g';
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(re, 'ignoreCase', {
|
|
112
|
+
get: function () {
|
|
113
|
+
calls += 'i';
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(re, 'multiline', {
|
|
117
|
+
get: function () {
|
|
118
|
+
calls += 'm';
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(re, 'dotAll', {
|
|
122
|
+
get: function () {
|
|
123
|
+
calls += 's';
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(re, 'unicode', {
|
|
127
|
+
get: function () {
|
|
128
|
+
calls += 'u';
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(re, 'sticky', {
|
|
132
|
+
get: function () {
|
|
133
|
+
calls += 'y';
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
flags(re);
|
|
138
|
+
|
|
139
|
+
st.equal(calls, 'dgimsuy', 'getters are called in expected order');
|
|
140
|
+
|
|
141
|
+
st.end();
|
|
142
|
+
});
|
|
143
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(void 0===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)).exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n]}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r}(s,u),s}function r(e,n,r){if(e===n||"."===n)return".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return"#"===f[0]?f:o||!r?"./"===f.slice(0,2)?f:"./"+f:f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return[...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function i(e,n={}){let t,i=0,o=n.browser,f=n.fields||["module","main"],s="string"==typeof o;for(o&&!f.includes("browser")&&(f.unshift("browser"),s&&(o=r(e.name,o,!0)));i<f.length;i++)if(t=e[f[i]]){if("string"==typeof t);else{if("object"!=typeof t||"browser"!=f[i])continue;if(s&&(t=t[o],null==t))return o}return"string"==typeof t?"./"+t.replace(/^\.?\//,""):t}}function o(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n(e.name,o,r||".",t)}}function f(e,r,t){if(e.imports)return n(e.name,e.imports,r,t)}function s(e,n,t){return"#"===(n=r(e.name,n||"."))[0]?f(e,n,t):o(e,n,t)}exports.exports=o;exports.imports=f;exports.legacy=i;exports.resolve=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(void 0===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)).exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n]}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r}(s,u),s}function r(e,n,r){if(e===n||"."===n)return".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return"#"===f[0]?f:o||!r?"./"===f.slice(0,2)?f:"./"+f:f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return[...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function i(e,n={}){let t,i=0,o=n.browser,f=n.fields||["module","main"],s="string"==typeof o;for(o&&!f.includes("browser")&&(f.unshift("browser"),s&&(o=r(e.name,o,!0)));i<f.length;i++)if(t=e[f[i]]){if("string"==typeof t);else{if("object"!=typeof t||"browser"!=f[i])continue;if(s&&(t=t[o],null==t))return o}return"string"==typeof t?"./"+t.replace(/^\.?\//,""):t}}function o(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n(e.name,o,r||".",t)}}function f(e,r,t){if(e.imports)return n(e.name,e.imports,r,t)}function s(e,n,t){return"#"===(n=r(e.name,n||"."))[0]?f(e,n,t):o(e,n,t)}export{o as exports,f as imports,i as legacy,s as resolve};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export type Options = {
|
|
2
|
+
/**
|
|
3
|
+
* When true, adds the "browser" conditions.
|
|
4
|
+
* Otherwise the "node" condition is enabled.
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
browser?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Any custom conditions to match.
|
|
10
|
+
* @note Array order does not matter. Priority is determined by the key-order of conditions defined within a package's imports/exports mapping.
|
|
11
|
+
* @default []
|
|
12
|
+
*/
|
|
13
|
+
conditions?: readonly string[];
|
|
14
|
+
/**
|
|
15
|
+
* When true, adds the "require" condition.
|
|
16
|
+
* Otherwise the "import" condition is enabled.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
require?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Prevents "require", "import", "browser", and/or "node" conditions from being added automatically.
|
|
22
|
+
* When enabled, only `options.conditions` are added alongside the "default" condition.
|
|
23
|
+
* @important Enabling this deviates from Node.js default behavior.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
unsafe?: boolean;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function resolve<T=Package>(pkg: T, entry?: string, options?: Options): Imports.Output | Exports.Output | void;
|
|
30
|
+
export function imports<T=Package>(pkg: T, entry?: string, options?: Options): Imports.Output | void;
|
|
31
|
+
export function exports<T=Package>(pkg: T, target: string, options?: Options): Exports.Output | void;
|
|
32
|
+
|
|
33
|
+
export function legacy<T=Package>(pkg: T, options: { browser: true, fields?: readonly string[] }): Browser | void;
|
|
34
|
+
export function legacy<T=Package>(pkg: T, options: { browser: string, fields?: readonly string[] }): string | false | void;
|
|
35
|
+
export function legacy<T=Package>(pkg: T, options: { browser: false, fields?: readonly string[] }): string | void;
|
|
36
|
+
export function legacy<T=Package>(pkg: T, options?: {
|
|
37
|
+
browser?: boolean | string;
|
|
38
|
+
fields?: readonly string[];
|
|
39
|
+
}): Browser | string;
|
|
40
|
+
|
|
41
|
+
// ---
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A resolve condition
|
|
45
|
+
* @example "node", "default", "production"
|
|
46
|
+
*/
|
|
47
|
+
export type Condition = string;
|
|
48
|
+
|
|
49
|
+
/** An internal file path */
|
|
50
|
+
export type Path = `./${string}`;
|
|
51
|
+
|
|
52
|
+
export type Imports = {
|
|
53
|
+
[entry: Imports.Entry]: Imports.Value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export namespace Imports {
|
|
57
|
+
export type Entry = `#${string}`;
|
|
58
|
+
|
|
59
|
+
type External = string;
|
|
60
|
+
|
|
61
|
+
/** strings are dependency names OR internal paths */
|
|
62
|
+
export type Value = External | Path | null | {
|
|
63
|
+
[c: Condition]: Value;
|
|
64
|
+
} | Value[];
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
export type Output = Array<External|Path>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type Exports = Path | {
|
|
71
|
+
[path: Exports.Entry]: Exports.Value;
|
|
72
|
+
[cond: Condition]: Exports.Value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export namespace Exports {
|
|
76
|
+
/** Allows "." and "./{name}" */
|
|
77
|
+
export type Entry = `.${string}`;
|
|
78
|
+
|
|
79
|
+
/** strings must be internal paths */
|
|
80
|
+
export type Value = Path | null | {
|
|
81
|
+
[c: Condition]: Value;
|
|
82
|
+
} | Value[];
|
|
83
|
+
|
|
84
|
+
export type Output = Path[];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type Package = {
|
|
88
|
+
name: string;
|
|
89
|
+
version?: string;
|
|
90
|
+
module?: string;
|
|
91
|
+
main?: string;
|
|
92
|
+
imports?: Imports;
|
|
93
|
+
exports?: Exports;
|
|
94
|
+
browser?: Browser;
|
|
95
|
+
[key: string]: any;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type Browser = string[] | string | {
|
|
99
|
+
[file: Path | string]: string | false;
|
|
100
|
+
}
|