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,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bignumber.js",
|
|
3
|
+
"description": "A library for arbitrary-precision decimal and non-decimal arithmetic",
|
|
4
|
+
"version": "9.1.1",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"arbitrary",
|
|
7
|
+
"precision",
|
|
8
|
+
"arithmetic",
|
|
9
|
+
"big",
|
|
10
|
+
"number",
|
|
11
|
+
"decimal",
|
|
12
|
+
"float",
|
|
13
|
+
"biginteger",
|
|
14
|
+
"bigdecimal",
|
|
15
|
+
"bignumber",
|
|
16
|
+
"bigint",
|
|
17
|
+
"bignum"
|
|
18
|
+
],
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/MikeMcl/bignumber.js.git"
|
|
22
|
+
},
|
|
23
|
+
"main": "bignumber",
|
|
24
|
+
"module": "bignumber.mjs",
|
|
25
|
+
"browser": "bignumber.js",
|
|
26
|
+
"types": "bignumber.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./bignumber.d.ts",
|
|
30
|
+
"require": "./bignumber.js",
|
|
31
|
+
"import": "./bignumber.mjs",
|
|
32
|
+
"browser": "./bignumber.js"
|
|
33
|
+
},
|
|
34
|
+
"./bignumber.mjs": "./bignumber.mjs",
|
|
35
|
+
"./bignumber.js": "./bignumber.js",
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
"author": {
|
|
39
|
+
"name": "Michael Mclaughlin",
|
|
40
|
+
"email": "M8ch88l@gmail.com"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": "*"
|
|
44
|
+
},
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"scripts": {
|
|
47
|
+
"test": "node test/test"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {}
|
|
50
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var assert = require('minimalistic-assert');
|
|
4
|
+
var inherits = require('inherits');
|
|
5
|
+
|
|
6
|
+
var proto = {};
|
|
7
|
+
|
|
8
|
+
function CBCState(iv) {
|
|
9
|
+
assert.equal(iv.length, 8, 'Invalid IV length');
|
|
10
|
+
|
|
11
|
+
this.iv = new Array(8);
|
|
12
|
+
for (var i = 0; i < this.iv.length; i++)
|
|
13
|
+
this.iv[i] = iv[i];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function instantiate(Base) {
|
|
17
|
+
function CBC(options) {
|
|
18
|
+
Base.call(this, options);
|
|
19
|
+
this._cbcInit();
|
|
20
|
+
}
|
|
21
|
+
inherits(CBC, Base);
|
|
22
|
+
|
|
23
|
+
var keys = Object.keys(proto);
|
|
24
|
+
for (var i = 0; i < keys.length; i++) {
|
|
25
|
+
var key = keys[i];
|
|
26
|
+
CBC.prototype[key] = proto[key];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
CBC.create = function create(options) {
|
|
30
|
+
return new CBC(options);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
return CBC;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.instantiate = instantiate;
|
|
37
|
+
|
|
38
|
+
proto._cbcInit = function _cbcInit() {
|
|
39
|
+
var state = new CBCState(this.options.iv);
|
|
40
|
+
this._cbcState = state;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
proto._update = function _update(inp, inOff, out, outOff) {
|
|
44
|
+
var state = this._cbcState;
|
|
45
|
+
var superProto = this.constructor.super_.prototype;
|
|
46
|
+
|
|
47
|
+
var iv = state.iv;
|
|
48
|
+
if (this.type === 'encrypt') {
|
|
49
|
+
for (var i = 0; i < this.blockSize; i++)
|
|
50
|
+
iv[i] ^= inp[inOff + i];
|
|
51
|
+
|
|
52
|
+
superProto._update.call(this, iv, 0, out, outOff);
|
|
53
|
+
|
|
54
|
+
for (var i = 0; i < this.blockSize; i++)
|
|
55
|
+
iv[i] = out[outOff + i];
|
|
56
|
+
} else {
|
|
57
|
+
superProto._update.call(this, inp, inOff, out, outOff);
|
|
58
|
+
|
|
59
|
+
for (var i = 0; i < this.blockSize; i++)
|
|
60
|
+
out[outOff + i] ^= iv[i];
|
|
61
|
+
|
|
62
|
+
for (var i = 0; i < this.blockSize; i++)
|
|
63
|
+
iv[i] = inp[inOff + i];
|
|
64
|
+
}
|
|
65
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var assert = require('minimalistic-assert');
|
|
4
|
+
|
|
5
|
+
function Cipher(options) {
|
|
6
|
+
this.options = options;
|
|
7
|
+
|
|
8
|
+
this.type = this.options.type;
|
|
9
|
+
this.blockSize = 8;
|
|
10
|
+
this._init();
|
|
11
|
+
|
|
12
|
+
this.buffer = new Array(this.blockSize);
|
|
13
|
+
this.bufferOff = 0;
|
|
14
|
+
this.padding = options.padding !== false
|
|
15
|
+
}
|
|
16
|
+
module.exports = Cipher;
|
|
17
|
+
|
|
18
|
+
Cipher.prototype._init = function _init() {
|
|
19
|
+
// Might be overrided
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
Cipher.prototype.update = function update(data) {
|
|
23
|
+
if (data.length === 0)
|
|
24
|
+
return [];
|
|
25
|
+
|
|
26
|
+
if (this.type === 'decrypt')
|
|
27
|
+
return this._updateDecrypt(data);
|
|
28
|
+
else
|
|
29
|
+
return this._updateEncrypt(data);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
Cipher.prototype._buffer = function _buffer(data, off) {
|
|
33
|
+
// Append data to buffer
|
|
34
|
+
var min = Math.min(this.buffer.length - this.bufferOff, data.length - off);
|
|
35
|
+
for (var i = 0; i < min; i++)
|
|
36
|
+
this.buffer[this.bufferOff + i] = data[off + i];
|
|
37
|
+
this.bufferOff += min;
|
|
38
|
+
|
|
39
|
+
// Shift next
|
|
40
|
+
return min;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
Cipher.prototype._flushBuffer = function _flushBuffer(out, off) {
|
|
44
|
+
this._update(this.buffer, 0, out, off);
|
|
45
|
+
this.bufferOff = 0;
|
|
46
|
+
return this.blockSize;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
Cipher.prototype._updateEncrypt = function _updateEncrypt(data) {
|
|
50
|
+
var inputOff = 0;
|
|
51
|
+
var outputOff = 0;
|
|
52
|
+
|
|
53
|
+
var count = ((this.bufferOff + data.length) / this.blockSize) | 0;
|
|
54
|
+
var out = new Array(count * this.blockSize);
|
|
55
|
+
|
|
56
|
+
if (this.bufferOff !== 0) {
|
|
57
|
+
inputOff += this._buffer(data, inputOff);
|
|
58
|
+
|
|
59
|
+
if (this.bufferOff === this.buffer.length)
|
|
60
|
+
outputOff += this._flushBuffer(out, outputOff);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Write blocks
|
|
64
|
+
var max = data.length - ((data.length - inputOff) % this.blockSize);
|
|
65
|
+
for (; inputOff < max; inputOff += this.blockSize) {
|
|
66
|
+
this._update(data, inputOff, out, outputOff);
|
|
67
|
+
outputOff += this.blockSize;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Queue rest
|
|
71
|
+
for (; inputOff < data.length; inputOff++, this.bufferOff++)
|
|
72
|
+
this.buffer[this.bufferOff] = data[inputOff];
|
|
73
|
+
|
|
74
|
+
return out;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
Cipher.prototype._updateDecrypt = function _updateDecrypt(data) {
|
|
78
|
+
var inputOff = 0;
|
|
79
|
+
var outputOff = 0;
|
|
80
|
+
|
|
81
|
+
var count = Math.ceil((this.bufferOff + data.length) / this.blockSize) - 1;
|
|
82
|
+
var out = new Array(count * this.blockSize);
|
|
83
|
+
|
|
84
|
+
// TODO(indutny): optimize it, this is far from optimal
|
|
85
|
+
for (; count > 0; count--) {
|
|
86
|
+
inputOff += this._buffer(data, inputOff);
|
|
87
|
+
outputOff += this._flushBuffer(out, outputOff);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Buffer rest of the input
|
|
91
|
+
inputOff += this._buffer(data, inputOff);
|
|
92
|
+
|
|
93
|
+
return out;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
Cipher.prototype.final = function final(buffer) {
|
|
97
|
+
var first;
|
|
98
|
+
if (buffer)
|
|
99
|
+
first = this.update(buffer);
|
|
100
|
+
|
|
101
|
+
var last;
|
|
102
|
+
if (this.type === 'encrypt')
|
|
103
|
+
last = this._finalEncrypt();
|
|
104
|
+
else
|
|
105
|
+
last = this._finalDecrypt();
|
|
106
|
+
|
|
107
|
+
if (first)
|
|
108
|
+
return first.concat(last);
|
|
109
|
+
else
|
|
110
|
+
return last;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
Cipher.prototype._pad = function _pad(buffer, off) {
|
|
114
|
+
if (off === 0)
|
|
115
|
+
return false;
|
|
116
|
+
|
|
117
|
+
while (off < buffer.length)
|
|
118
|
+
buffer[off++] = 0;
|
|
119
|
+
|
|
120
|
+
return true;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
Cipher.prototype._finalEncrypt = function _finalEncrypt() {
|
|
124
|
+
if (!this._pad(this.buffer, this.bufferOff))
|
|
125
|
+
return [];
|
|
126
|
+
|
|
127
|
+
var out = new Array(this.blockSize);
|
|
128
|
+
this._update(this.buffer, 0, out, 0);
|
|
129
|
+
return out;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
Cipher.prototype._unpad = function _unpad(buffer) {
|
|
133
|
+
return buffer;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
Cipher.prototype._finalDecrypt = function _finalDecrypt() {
|
|
137
|
+
assert.equal(this.bufferOff, this.blockSize, 'Not enough data to decrypt');
|
|
138
|
+
var out = new Array(this.blockSize);
|
|
139
|
+
this._flushBuffer(out, 0);
|
|
140
|
+
|
|
141
|
+
return this._unpad(out);
|
|
142
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var assert = require('minimalistic-assert');
|
|
4
|
+
var inherits = require('inherits');
|
|
5
|
+
|
|
6
|
+
var utils = require('./utils');
|
|
7
|
+
var Cipher = require('./cipher');
|
|
8
|
+
|
|
9
|
+
function DESState() {
|
|
10
|
+
this.tmp = new Array(2);
|
|
11
|
+
this.keys = null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function DES(options) {
|
|
15
|
+
Cipher.call(this, options);
|
|
16
|
+
|
|
17
|
+
var state = new DESState();
|
|
18
|
+
this._desState = state;
|
|
19
|
+
|
|
20
|
+
this.deriveKeys(state, options.key);
|
|
21
|
+
}
|
|
22
|
+
inherits(DES, Cipher);
|
|
23
|
+
module.exports = DES;
|
|
24
|
+
|
|
25
|
+
DES.create = function create(options) {
|
|
26
|
+
return new DES(options);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var shiftTable = [
|
|
30
|
+
1, 1, 2, 2, 2, 2, 2, 2,
|
|
31
|
+
1, 2, 2, 2, 2, 2, 2, 1
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
DES.prototype.deriveKeys = function deriveKeys(state, key) {
|
|
35
|
+
state.keys = new Array(16 * 2);
|
|
36
|
+
|
|
37
|
+
assert.equal(key.length, this.blockSize, 'Invalid key length');
|
|
38
|
+
|
|
39
|
+
var kL = utils.readUInt32BE(key, 0);
|
|
40
|
+
var kR = utils.readUInt32BE(key, 4);
|
|
41
|
+
|
|
42
|
+
utils.pc1(kL, kR, state.tmp, 0);
|
|
43
|
+
kL = state.tmp[0];
|
|
44
|
+
kR = state.tmp[1];
|
|
45
|
+
for (var i = 0; i < state.keys.length; i += 2) {
|
|
46
|
+
var shift = shiftTable[i >>> 1];
|
|
47
|
+
kL = utils.r28shl(kL, shift);
|
|
48
|
+
kR = utils.r28shl(kR, shift);
|
|
49
|
+
utils.pc2(kL, kR, state.keys, i);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
DES.prototype._update = function _update(inp, inOff, out, outOff) {
|
|
54
|
+
var state = this._desState;
|
|
55
|
+
|
|
56
|
+
var l = utils.readUInt32BE(inp, inOff);
|
|
57
|
+
var r = utils.readUInt32BE(inp, inOff + 4);
|
|
58
|
+
|
|
59
|
+
// Initial Permutation
|
|
60
|
+
utils.ip(l, r, state.tmp, 0);
|
|
61
|
+
l = state.tmp[0];
|
|
62
|
+
r = state.tmp[1];
|
|
63
|
+
|
|
64
|
+
if (this.type === 'encrypt')
|
|
65
|
+
this._encrypt(state, l, r, state.tmp, 0);
|
|
66
|
+
else
|
|
67
|
+
this._decrypt(state, l, r, state.tmp, 0);
|
|
68
|
+
|
|
69
|
+
l = state.tmp[0];
|
|
70
|
+
r = state.tmp[1];
|
|
71
|
+
|
|
72
|
+
utils.writeUInt32BE(out, l, outOff);
|
|
73
|
+
utils.writeUInt32BE(out, r, outOff + 4);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
DES.prototype._pad = function _pad(buffer, off) {
|
|
77
|
+
if (this.padding === false) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
var value = buffer.length - off;
|
|
82
|
+
for (var i = off; i < buffer.length; i++)
|
|
83
|
+
buffer[i] = value;
|
|
84
|
+
|
|
85
|
+
return true;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
DES.prototype._unpad = function _unpad(buffer) {
|
|
89
|
+
if (this.padding === false) {
|
|
90
|
+
return buffer;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
var pad = buffer[buffer.length - 1];
|
|
94
|
+
for (var i = buffer.length - pad; i < buffer.length; i++)
|
|
95
|
+
assert.equal(buffer[i], pad);
|
|
96
|
+
|
|
97
|
+
return buffer.slice(0, buffer.length - pad);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
DES.prototype._encrypt = function _encrypt(state, lStart, rStart, out, off) {
|
|
101
|
+
var l = lStart;
|
|
102
|
+
var r = rStart;
|
|
103
|
+
|
|
104
|
+
// Apply f() x16 times
|
|
105
|
+
for (var i = 0; i < state.keys.length; i += 2) {
|
|
106
|
+
var keyL = state.keys[i];
|
|
107
|
+
var keyR = state.keys[i + 1];
|
|
108
|
+
|
|
109
|
+
// f(r, k)
|
|
110
|
+
utils.expand(r, state.tmp, 0);
|
|
111
|
+
|
|
112
|
+
keyL ^= state.tmp[0];
|
|
113
|
+
keyR ^= state.tmp[1];
|
|
114
|
+
var s = utils.substitute(keyL, keyR);
|
|
115
|
+
var f = utils.permute(s);
|
|
116
|
+
|
|
117
|
+
var t = r;
|
|
118
|
+
r = (l ^ f) >>> 0;
|
|
119
|
+
l = t;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Reverse Initial Permutation
|
|
123
|
+
utils.rip(r, l, out, off);
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off) {
|
|
127
|
+
var l = rStart;
|
|
128
|
+
var r = lStart;
|
|
129
|
+
|
|
130
|
+
// Apply f() x16 times
|
|
131
|
+
for (var i = state.keys.length - 2; i >= 0; i -= 2) {
|
|
132
|
+
var keyL = state.keys[i];
|
|
133
|
+
var keyR = state.keys[i + 1];
|
|
134
|
+
|
|
135
|
+
// f(r, k)
|
|
136
|
+
utils.expand(l, state.tmp, 0);
|
|
137
|
+
|
|
138
|
+
keyL ^= state.tmp[0];
|
|
139
|
+
keyR ^= state.tmp[1];
|
|
140
|
+
var s = utils.substitute(keyL, keyR);
|
|
141
|
+
var f = utils.permute(s);
|
|
142
|
+
|
|
143
|
+
var t = l;
|
|
144
|
+
l = (r ^ f) >>> 0;
|
|
145
|
+
r = t;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// Reverse Initial Permutation
|
|
149
|
+
utils.rip(l, r, out, off);
|
|
150
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var assert = require('minimalistic-assert');
|
|
4
|
+
var inherits = require('inherits');
|
|
5
|
+
|
|
6
|
+
var Cipher = require('./cipher');
|
|
7
|
+
var DES = require('./des');
|
|
8
|
+
|
|
9
|
+
function EDEState(type, key) {
|
|
10
|
+
assert.equal(key.length, 24, 'Invalid key length');
|
|
11
|
+
|
|
12
|
+
var k1 = key.slice(0, 8);
|
|
13
|
+
var k2 = key.slice(8, 16);
|
|
14
|
+
var k3 = key.slice(16, 24);
|
|
15
|
+
|
|
16
|
+
if (type === 'encrypt') {
|
|
17
|
+
this.ciphers = [
|
|
18
|
+
DES.create({ type: 'encrypt', key: k1 }),
|
|
19
|
+
DES.create({ type: 'decrypt', key: k2 }),
|
|
20
|
+
DES.create({ type: 'encrypt', key: k3 })
|
|
21
|
+
];
|
|
22
|
+
} else {
|
|
23
|
+
this.ciphers = [
|
|
24
|
+
DES.create({ type: 'decrypt', key: k3 }),
|
|
25
|
+
DES.create({ type: 'encrypt', key: k2 }),
|
|
26
|
+
DES.create({ type: 'decrypt', key: k1 })
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function EDE(options) {
|
|
32
|
+
Cipher.call(this, options);
|
|
33
|
+
|
|
34
|
+
var state = new EDEState(this.type, this.options.key);
|
|
35
|
+
this._edeState = state;
|
|
36
|
+
}
|
|
37
|
+
inherits(EDE, Cipher);
|
|
38
|
+
|
|
39
|
+
module.exports = EDE;
|
|
40
|
+
|
|
41
|
+
EDE.create = function create(options) {
|
|
42
|
+
return new EDE(options);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
EDE.prototype._update = function _update(inp, inOff, out, outOff) {
|
|
46
|
+
var state = this._edeState;
|
|
47
|
+
|
|
48
|
+
state.ciphers[0]._update(inp, inOff, out, outOff);
|
|
49
|
+
state.ciphers[1]._update(out, outOff, out, outOff);
|
|
50
|
+
state.ciphers[2]._update(out, outOff, out, outOff);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
EDE.prototype._pad = DES.prototype._pad;
|
|
54
|
+
EDE.prototype._unpad = DES.prototype._unpad;
|