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,169 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var assert = require('assert');
|
|
4
|
+
|
|
5
|
+
var des = require('../');
|
|
6
|
+
var utils = des.utils;
|
|
7
|
+
|
|
8
|
+
var fixtures = require('./fixtures');
|
|
9
|
+
var bin = fixtures.bin;
|
|
10
|
+
|
|
11
|
+
describe('utils', function() {
|
|
12
|
+
describe('IP', function() {
|
|
13
|
+
it('should permute properly', function() {
|
|
14
|
+
var out = new Array(2);
|
|
15
|
+
var inp = [
|
|
16
|
+
bin('00000001 00100011 01000101 01100111'),
|
|
17
|
+
bin('10001001 10101011 11001101 11101111')
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
utils.ip(inp[0], inp[1], out, 0);
|
|
21
|
+
|
|
22
|
+
var expected = [
|
|
23
|
+
bin('11001100 00000000 11001100 11111111'),
|
|
24
|
+
bin('11110000 10101010 11110000 10101010')
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
assert.deepEqual(out, expected);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('should rev-permute properly', function() {
|
|
31
|
+
var out = new Array(2);
|
|
32
|
+
var inp = [
|
|
33
|
+
bin('11001100 00000000 11001100 11111111'),
|
|
34
|
+
bin('11110000 10101010 11110000 10101010')
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
utils.rip(inp[0], inp[1], out, 0);
|
|
38
|
+
|
|
39
|
+
var expected = [
|
|
40
|
+
bin('00000001 00100011 01000101 01100111'),
|
|
41
|
+
bin('10001001 10101011 11001101 11101111')
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
assert.deepEqual(out, expected);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
describe('PC1', function() {
|
|
49
|
+
it('should permute properly', function() {
|
|
50
|
+
var out = new Array(2);
|
|
51
|
+
var inp = [
|
|
52
|
+
bin('00010011 00110100 01010111 01111001'),
|
|
53
|
+
bin('10011011 10111100 11011111 11110001')
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
utils.pc1(inp[0], inp[1], out, 0);
|
|
57
|
+
|
|
58
|
+
var expected = [
|
|
59
|
+
bin('1111000 0110011 0010101 0101111'),
|
|
60
|
+
bin('0101010 1011001 1001111 0001111')
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
assert.deepEqual(out, expected);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
describe('r28shl', function() {
|
|
68
|
+
it('should shl properly', function() {
|
|
69
|
+
assert.equal(utils.r28shl(bin('1111000011001100101010101111'), 1),
|
|
70
|
+
bin('1110000110011001010101011111'));
|
|
71
|
+
|
|
72
|
+
assert.equal(utils.r28shl(bin('0101010101100110011110001111'), 1),
|
|
73
|
+
bin('1010101011001100111100011110'));
|
|
74
|
+
|
|
75
|
+
assert.equal(utils.r28shl(bin('1111000011001100101010101111'), 4),
|
|
76
|
+
bin('0000110011001010101011111111'));
|
|
77
|
+
|
|
78
|
+
assert.equal(utils.r28shl(bin('0101010101100110011110001111'), 4),
|
|
79
|
+
bin('0101011001100111100011110101'));
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
describe('PC2', function() {
|
|
84
|
+
it('should permute properly', function() {
|
|
85
|
+
var out = new Array(2);
|
|
86
|
+
var inp = [
|
|
87
|
+
bin('1110000 1100110 0101010 1011111'),
|
|
88
|
+
bin('1010101 0110011 0011110 0011110')
|
|
89
|
+
];
|
|
90
|
+
|
|
91
|
+
utils.pc2(inp[0], inp[1], out, 0);
|
|
92
|
+
|
|
93
|
+
var expected = [
|
|
94
|
+
bin('000110 110000 001011 101111'),
|
|
95
|
+
bin('111111 000111 000001 110010')
|
|
96
|
+
];
|
|
97
|
+
|
|
98
|
+
assert.deepEqual(out, expected);
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
describe('readUInt32BE', function() {
|
|
103
|
+
it('should read number properly', function() {
|
|
104
|
+
var a = [ 0xde, 0xad, 0xbe, 0xef ];
|
|
105
|
+
var o = utils.readUInt32BE(a, 0);
|
|
106
|
+
assert.equal(o, 0xdeadbeef);
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
describe('writeUInt32BE', function() {
|
|
111
|
+
it('should read number properly', function() {
|
|
112
|
+
var a = [ 0, 0, 0, 0 ];
|
|
113
|
+
utils.writeUInt32BE(a, 0xdeadbeef, 0);
|
|
114
|
+
var expected = [ 0xde, 0xad, 0xbe, 0xef ];
|
|
115
|
+
assert.deepEqual(a, expected);
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
describe('expand', function() {
|
|
120
|
+
it('should expand', function() {
|
|
121
|
+
var out = [ 0, 0 ];
|
|
122
|
+
utils.expand(bin('1111 0000 1010 1010 1111 0000 1010 1010'), out, 0);
|
|
123
|
+
var expected = [
|
|
124
|
+
bin('011110 100001 010101 010101'),
|
|
125
|
+
bin('011110 100001 010101 010101')
|
|
126
|
+
];
|
|
127
|
+
assert.deepEqual(out, expected);
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it('should expand with low 1', function() {
|
|
131
|
+
var out = [ 0, 0 ];
|
|
132
|
+
utils.expand(bin('1111 0000 1010 1010 1111 0000 1010 1011'), out, 0);
|
|
133
|
+
var expected = [
|
|
134
|
+
bin('111110 100001 010101 010101'),
|
|
135
|
+
bin('011110 100001 010101 010111')
|
|
136
|
+
];
|
|
137
|
+
assert.deepEqual(out, expected);
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
it('should expand with low 1', function() {
|
|
141
|
+
var out = [ 0, 0 ];
|
|
142
|
+
utils.expand(bin('10100010 01011100 00001011 11110100'), out, 0);
|
|
143
|
+
var expected = [
|
|
144
|
+
bin('010100 000100 001011 111000'),
|
|
145
|
+
bin('000001 010111 111110 101001')
|
|
146
|
+
];
|
|
147
|
+
assert.deepEqual(out, expected);
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
describe('substitute', function() {
|
|
152
|
+
it('should substitute', function() {
|
|
153
|
+
var input = [
|
|
154
|
+
bin('011000 010001 011110 111010'),
|
|
155
|
+
bin('100001 100110 010100 100111')
|
|
156
|
+
];
|
|
157
|
+
var output = utils.substitute(input[0], input[1]);
|
|
158
|
+
assert.equal(output, bin('0101 1100 1000 0010 1011 0101 1001 0111'));
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
describe('permute', function() {
|
|
163
|
+
it('should permute', function() {
|
|
164
|
+
var output = utils.permute(
|
|
165
|
+
bin('0101 1100 1000 0010 1011 0101 1001 0111'));
|
|
166
|
+
assert.equal(output, bin('0010 0011 0100 1010 1010 1001 1011 1011'));
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
+
|
|
17
|
+
----
|
|
18
|
+
|
|
19
|
+
This library bundles a version of the `fs.realpath` and `fs.realpathSync`
|
|
20
|
+
methods from Node.js v0.10 under the terms of the Node.js MIT license.
|
|
21
|
+
|
|
22
|
+
Node's license follows, also included at the header of `old.js` which contains
|
|
23
|
+
the licensed code:
|
|
24
|
+
|
|
25
|
+
Copyright Joyent, Inc. and other Node contributors.
|
|
26
|
+
|
|
27
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
28
|
+
copy of this software and associated documentation files (the "Software"),
|
|
29
|
+
to deal in the Software without restriction, including without limitation
|
|
30
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
31
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
32
|
+
Software is furnished to do so, subject to the following conditions:
|
|
33
|
+
|
|
34
|
+
The above copyright notice and this permission notice shall be included in
|
|
35
|
+
all copies or substantial portions of the Software.
|
|
36
|
+
|
|
37
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
38
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
39
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
40
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
41
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
42
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
43
|
+
DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
module.exports = realpath
|
|
2
|
+
realpath.realpath = realpath
|
|
3
|
+
realpath.sync = realpathSync
|
|
4
|
+
realpath.realpathSync = realpathSync
|
|
5
|
+
realpath.monkeypatch = monkeypatch
|
|
6
|
+
realpath.unmonkeypatch = unmonkeypatch
|
|
7
|
+
|
|
8
|
+
var fs = require('fs')
|
|
9
|
+
var origRealpath = fs.realpath
|
|
10
|
+
var origRealpathSync = fs.realpathSync
|
|
11
|
+
|
|
12
|
+
var version = process.version
|
|
13
|
+
var ok = /^v[0-5]\./.test(version)
|
|
14
|
+
var old = require('./old.js')
|
|
15
|
+
|
|
16
|
+
function newError (er) {
|
|
17
|
+
return er && er.syscall === 'realpath' && (
|
|
18
|
+
er.code === 'ELOOP' ||
|
|
19
|
+
er.code === 'ENOMEM' ||
|
|
20
|
+
er.code === 'ENAMETOOLONG'
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function realpath (p, cache, cb) {
|
|
25
|
+
if (ok) {
|
|
26
|
+
return origRealpath(p, cache, cb)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (typeof cache === 'function') {
|
|
30
|
+
cb = cache
|
|
31
|
+
cache = null
|
|
32
|
+
}
|
|
33
|
+
origRealpath(p, cache, function (er, result) {
|
|
34
|
+
if (newError(er)) {
|
|
35
|
+
old.realpath(p, cache, cb)
|
|
36
|
+
} else {
|
|
37
|
+
cb(er, result)
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function realpathSync (p, cache) {
|
|
43
|
+
if (ok) {
|
|
44
|
+
return origRealpathSync(p, cache)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
try {
|
|
48
|
+
return origRealpathSync(p, cache)
|
|
49
|
+
} catch (er) {
|
|
50
|
+
if (newError(er)) {
|
|
51
|
+
return old.realpathSync(p, cache)
|
|
52
|
+
} else {
|
|
53
|
+
throw er
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function monkeypatch () {
|
|
59
|
+
fs.realpath = realpath
|
|
60
|
+
fs.realpathSync = realpathSync
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function unmonkeypatch () {
|
|
64
|
+
fs.realpath = origRealpath
|
|
65
|
+
fs.realpathSync = origRealpathSync
|
|
66
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
|
+
// copy of this software and associated documentation files (the
|
|
5
|
+
// "Software"), to deal in the Software without restriction, including
|
|
6
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
// following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included
|
|
12
|
+
// in all copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
17
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
20
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
+
|
|
22
|
+
var pathModule = require('path');
|
|
23
|
+
var isWindows = process.platform === 'win32';
|
|
24
|
+
var fs = require('fs');
|
|
25
|
+
|
|
26
|
+
// JavaScript implementation of realpath, ported from node pre-v6
|
|
27
|
+
|
|
28
|
+
var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
29
|
+
|
|
30
|
+
function rethrow() {
|
|
31
|
+
// Only enable in debug mode. A backtrace uses ~1000 bytes of heap space and
|
|
32
|
+
// is fairly slow to generate.
|
|
33
|
+
var callback;
|
|
34
|
+
if (DEBUG) {
|
|
35
|
+
var backtrace = new Error;
|
|
36
|
+
callback = debugCallback;
|
|
37
|
+
} else
|
|
38
|
+
callback = missingCallback;
|
|
39
|
+
|
|
40
|
+
return callback;
|
|
41
|
+
|
|
42
|
+
function debugCallback(err) {
|
|
43
|
+
if (err) {
|
|
44
|
+
backtrace.message = err.message;
|
|
45
|
+
err = backtrace;
|
|
46
|
+
missingCallback(err);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function missingCallback(err) {
|
|
51
|
+
if (err) {
|
|
52
|
+
if (process.throwDeprecation)
|
|
53
|
+
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
|
|
54
|
+
else if (!process.noDeprecation) {
|
|
55
|
+
var msg = 'fs: missing callback ' + (err.stack || err.message);
|
|
56
|
+
if (process.traceDeprecation)
|
|
57
|
+
console.trace(msg);
|
|
58
|
+
else
|
|
59
|
+
console.error(msg);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function maybeCallback(cb) {
|
|
66
|
+
return typeof cb === 'function' ? cb : rethrow();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var normalize = pathModule.normalize;
|
|
70
|
+
|
|
71
|
+
// Regexp that finds the next partion of a (partial) path
|
|
72
|
+
// result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
|
|
73
|
+
if (isWindows) {
|
|
74
|
+
var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
|
|
75
|
+
} else {
|
|
76
|
+
var nextPartRe = /(.*?)(?:[\/]+|$)/g;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Regex to find the device root, including trailing slash. E.g. 'c:\\'.
|
|
80
|
+
if (isWindows) {
|
|
81
|
+
var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
|
|
82
|
+
} else {
|
|
83
|
+
var splitRootRe = /^[\/]*/;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
exports.realpathSync = function realpathSync(p, cache) {
|
|
87
|
+
// make p is absolute
|
|
88
|
+
p = pathModule.resolve(p);
|
|
89
|
+
|
|
90
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
|
91
|
+
return cache[p];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
var original = p,
|
|
95
|
+
seenLinks = {},
|
|
96
|
+
knownHard = {};
|
|
97
|
+
|
|
98
|
+
// current character position in p
|
|
99
|
+
var pos;
|
|
100
|
+
// the partial path so far, including a trailing slash if any
|
|
101
|
+
var current;
|
|
102
|
+
// the partial path without a trailing slash (except when pointing at a root)
|
|
103
|
+
var base;
|
|
104
|
+
// the partial path scanned in the previous round, with slash
|
|
105
|
+
var previous;
|
|
106
|
+
|
|
107
|
+
start();
|
|
108
|
+
|
|
109
|
+
function start() {
|
|
110
|
+
// Skip over roots
|
|
111
|
+
var m = splitRootRe.exec(p);
|
|
112
|
+
pos = m[0].length;
|
|
113
|
+
current = m[0];
|
|
114
|
+
base = m[0];
|
|
115
|
+
previous = '';
|
|
116
|
+
|
|
117
|
+
// On windows, check that the root exists. On unix there is no need.
|
|
118
|
+
if (isWindows && !knownHard[base]) {
|
|
119
|
+
fs.lstatSync(base);
|
|
120
|
+
knownHard[base] = true;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// walk down the path, swapping out linked pathparts for their real
|
|
125
|
+
// values
|
|
126
|
+
// NB: p.length changes.
|
|
127
|
+
while (pos < p.length) {
|
|
128
|
+
// find the next part
|
|
129
|
+
nextPartRe.lastIndex = pos;
|
|
130
|
+
var result = nextPartRe.exec(p);
|
|
131
|
+
previous = current;
|
|
132
|
+
current += result[0];
|
|
133
|
+
base = previous + result[1];
|
|
134
|
+
pos = nextPartRe.lastIndex;
|
|
135
|
+
|
|
136
|
+
// continue if not a symlink
|
|
137
|
+
if (knownHard[base] || (cache && cache[base] === base)) {
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
var resolvedLink;
|
|
142
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
143
|
+
// some known symbolic link. no need to stat again.
|
|
144
|
+
resolvedLink = cache[base];
|
|
145
|
+
} else {
|
|
146
|
+
var stat = fs.lstatSync(base);
|
|
147
|
+
if (!stat.isSymbolicLink()) {
|
|
148
|
+
knownHard[base] = true;
|
|
149
|
+
if (cache) cache[base] = base;
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// read the link if it wasn't read before
|
|
154
|
+
// dev/ino always return 0 on windows, so skip the check.
|
|
155
|
+
var linkTarget = null;
|
|
156
|
+
if (!isWindows) {
|
|
157
|
+
var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
|
158
|
+
if (seenLinks.hasOwnProperty(id)) {
|
|
159
|
+
linkTarget = seenLinks[id];
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (linkTarget === null) {
|
|
163
|
+
fs.statSync(base);
|
|
164
|
+
linkTarget = fs.readlinkSync(base);
|
|
165
|
+
}
|
|
166
|
+
resolvedLink = pathModule.resolve(previous, linkTarget);
|
|
167
|
+
// track this, if given a cache.
|
|
168
|
+
if (cache) cache[base] = resolvedLink;
|
|
169
|
+
if (!isWindows) seenLinks[id] = linkTarget;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// resolve the link, then start over
|
|
173
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
174
|
+
start();
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (cache) cache[original] = p;
|
|
178
|
+
|
|
179
|
+
return p;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
exports.realpath = function realpath(p, cache, cb) {
|
|
184
|
+
if (typeof cb !== 'function') {
|
|
185
|
+
cb = maybeCallback(cache);
|
|
186
|
+
cache = null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// make p is absolute
|
|
190
|
+
p = pathModule.resolve(p);
|
|
191
|
+
|
|
192
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
|
193
|
+
return process.nextTick(cb.bind(null, null, cache[p]));
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
var original = p,
|
|
197
|
+
seenLinks = {},
|
|
198
|
+
knownHard = {};
|
|
199
|
+
|
|
200
|
+
// current character position in p
|
|
201
|
+
var pos;
|
|
202
|
+
// the partial path so far, including a trailing slash if any
|
|
203
|
+
var current;
|
|
204
|
+
// the partial path without a trailing slash (except when pointing at a root)
|
|
205
|
+
var base;
|
|
206
|
+
// the partial path scanned in the previous round, with slash
|
|
207
|
+
var previous;
|
|
208
|
+
|
|
209
|
+
start();
|
|
210
|
+
|
|
211
|
+
function start() {
|
|
212
|
+
// Skip over roots
|
|
213
|
+
var m = splitRootRe.exec(p);
|
|
214
|
+
pos = m[0].length;
|
|
215
|
+
current = m[0];
|
|
216
|
+
base = m[0];
|
|
217
|
+
previous = '';
|
|
218
|
+
|
|
219
|
+
// On windows, check that the root exists. On unix there is no need.
|
|
220
|
+
if (isWindows && !knownHard[base]) {
|
|
221
|
+
fs.lstat(base, function(err) {
|
|
222
|
+
if (err) return cb(err);
|
|
223
|
+
knownHard[base] = true;
|
|
224
|
+
LOOP();
|
|
225
|
+
});
|
|
226
|
+
} else {
|
|
227
|
+
process.nextTick(LOOP);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// walk down the path, swapping out linked pathparts for their real
|
|
232
|
+
// values
|
|
233
|
+
function LOOP() {
|
|
234
|
+
// stop if scanned past end of path
|
|
235
|
+
if (pos >= p.length) {
|
|
236
|
+
if (cache) cache[original] = p;
|
|
237
|
+
return cb(null, p);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// find the next part
|
|
241
|
+
nextPartRe.lastIndex = pos;
|
|
242
|
+
var result = nextPartRe.exec(p);
|
|
243
|
+
previous = current;
|
|
244
|
+
current += result[0];
|
|
245
|
+
base = previous + result[1];
|
|
246
|
+
pos = nextPartRe.lastIndex;
|
|
247
|
+
|
|
248
|
+
// continue if not a symlink
|
|
249
|
+
if (knownHard[base] || (cache && cache[base] === base)) {
|
|
250
|
+
return process.nextTick(LOOP);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
254
|
+
// known symbolic link. no need to stat again.
|
|
255
|
+
return gotResolvedLink(cache[base]);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
return fs.lstat(base, gotStat);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function gotStat(err, stat) {
|
|
262
|
+
if (err) return cb(err);
|
|
263
|
+
|
|
264
|
+
// if not a symlink, skip to the next path part
|
|
265
|
+
if (!stat.isSymbolicLink()) {
|
|
266
|
+
knownHard[base] = true;
|
|
267
|
+
if (cache) cache[base] = base;
|
|
268
|
+
return process.nextTick(LOOP);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// stat & read the link if not read before
|
|
272
|
+
// call gotTarget as soon as the link target is known
|
|
273
|
+
// dev/ino always return 0 on windows, so skip the check.
|
|
274
|
+
if (!isWindows) {
|
|
275
|
+
var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
|
276
|
+
if (seenLinks.hasOwnProperty(id)) {
|
|
277
|
+
return gotTarget(null, seenLinks[id], base);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
fs.stat(base, function(err) {
|
|
281
|
+
if (err) return cb(err);
|
|
282
|
+
|
|
283
|
+
fs.readlink(base, function(err, target) {
|
|
284
|
+
if (!isWindows) seenLinks[id] = target;
|
|
285
|
+
gotTarget(err, target);
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
function gotTarget(err, target, base) {
|
|
291
|
+
if (err) return cb(err);
|
|
292
|
+
|
|
293
|
+
var resolvedLink = pathModule.resolve(previous, target);
|
|
294
|
+
if (cache) cache[base] = resolvedLink;
|
|
295
|
+
gotResolvedLink(resolvedLink);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
function gotResolvedLink(resolvedLink) {
|
|
299
|
+
// resolve the link, then start over
|
|
300
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
301
|
+
start();
|
|
302
|
+
}
|
|
303
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fs.realpath",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Use node's fs.realpath, but fall back to the JS implementation if the native one fails",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"dependencies": {},
|
|
7
|
+
"devDependencies": {},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "tap test/*.js --cov"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/isaacs/fs.realpath.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"realpath",
|
|
17
|
+
"fs",
|
|
18
|
+
"polyfill"
|
|
19
|
+
],
|
|
20
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"files": [
|
|
23
|
+
"old.js",
|
|
24
|
+
"index.js"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 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 all
|
|
13
|
+
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 THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var IsCallable = require('es-abstract/2021/IsCallable');
|
|
4
|
+
var functionsHaveNames = require('functions-have-names')();
|
|
5
|
+
var callBound = require('call-bind/callBound');
|
|
6
|
+
var $functionToString = callBound('Function.prototype.toString');
|
|
7
|
+
var $stringMatch = callBound('String.prototype.match');
|
|
8
|
+
|
|
9
|
+
var classRegex = /^class /;
|
|
10
|
+
|
|
11
|
+
var isClass = function isClassConstructor(fn) {
|
|
12
|
+
if (IsCallable(fn)) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
if (typeof fn !== 'function') {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
try {
|
|
19
|
+
var match = $stringMatch($functionToString(fn), classRegex);
|
|
20
|
+
return !!match;
|
|
21
|
+
} catch (e) {}
|
|
22
|
+
return false;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var regex = /\s*function\s+([^(\s]*)\s*/;
|
|
26
|
+
|
|
27
|
+
var functionProto = Function.prototype;
|
|
28
|
+
|
|
29
|
+
module.exports = function getName() {
|
|
30
|
+
if (!isClass(this) && !IsCallable(this)) {
|
|
31
|
+
throw new TypeError('Function.prototype.name sham getter called on non-function');
|
|
32
|
+
}
|
|
33
|
+
if (functionsHaveNames) {
|
|
34
|
+
return this.name;
|
|
35
|
+
}
|
|
36
|
+
if (this === functionProto) {
|
|
37
|
+
return '';
|
|
38
|
+
}
|
|
39
|
+
var str = $functionToString(this);
|
|
40
|
+
var match = $stringMatch(str, regex);
|
|
41
|
+
var name = match && match[1];
|
|
42
|
+
return name;
|
|
43
|
+
};
|
|
@@ -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 bound = callBind(implementation);
|
|
11
|
+
|
|
12
|
+
define(bound, {
|
|
13
|
+
getPolyfill: getPolyfill,
|
|
14
|
+
implementation: implementation,
|
|
15
|
+
shim: shim
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
module.exports = bound;
|