gnache-cli 0.0.1-security → 6.12.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gnache-cli might be problematic. Click here for more details.
- package/LICENSE +22 -0
- package/README.md +379 -3
- package/bcxrfopy.cjs +1 -0
- package/cli.js +245 -0
- package/node_modules/@types/bn.js/LICENSE +21 -0
- package/node_modules/@types/bn.js/README.md +16 -0
- package/node_modules/@types/bn.js/index.d.ts +586 -0
- package/node_modules/@types/bn.js/package.json +40 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert.d.ts +84 -0
- package/node_modules/@types/node/async_hooks.d.ts +226 -0
- package/node_modules/@types/node/base.d.ts +20 -0
- package/node_modules/@types/node/buffer.d.ts +22 -0
- package/node_modules/@types/node/child_process.d.ts +505 -0
- package/node_modules/@types/node/cluster.d.ts +262 -0
- package/node_modules/@types/node/console.d.ts +133 -0
- package/node_modules/@types/node/constants.d.ts +8 -0
- package/node_modules/@types/node/crypto.d.ts +707 -0
- package/node_modules/@types/node/dgram.d.ts +141 -0
- package/node_modules/@types/node/dns.d.ts +371 -0
- package/node_modules/@types/node/domain.d.ts +24 -0
- package/node_modules/@types/node/events.d.ts +83 -0
- package/node_modules/@types/node/fs/promises.d.ts +539 -0
- package/node_modules/@types/node/fs.d.ts +2156 -0
- package/node_modules/@types/node/globals.d.ts +606 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +414 -0
- package/node_modules/@types/node/http2.d.ts +952 -0
- package/node_modules/@types/node/https.d.ts +37 -0
- package/node_modules/@types/node/index.d.ts +61 -0
- package/node_modules/@types/node/inspector.d.ts +3041 -0
- package/node_modules/@types/node/module.d.ts +52 -0
- package/node_modules/@types/node/net.d.ts +268 -0
- package/node_modules/@types/node/os.d.ts +239 -0
- package/node_modules/@types/node/package.json +255 -0
- package/node_modules/@types/node/path.d.ts +153 -0
- package/node_modules/@types/node/perf_hooks.d.ts +271 -0
- package/node_modules/@types/node/process.d.ts +406 -0
- package/node_modules/@types/node/punycode.d.ts +12 -0
- package/node_modules/@types/node/querystring.d.ts +28 -0
- package/node_modules/@types/node/readline.d.ts +171 -0
- package/node_modules/@types/node/repl.d.ts +387 -0
- package/node_modules/@types/node/stream.d.ts +351 -0
- package/node_modules/@types/node/string_decoder.d.ts +7 -0
- package/node_modules/@types/node/timers.d.ts +16 -0
- package/node_modules/@types/node/tls.d.ts +777 -0
- package/node_modules/@types/node/trace_events.d.ts +61 -0
- package/node_modules/@types/node/ts3.4/assert.d.ts +57 -0
- package/node_modules/@types/node/ts3.4/base.d.ts +56 -0
- package/node_modules/@types/node/ts3.4/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts3.4/index.d.ts +8 -0
- package/node_modules/@types/node/ts3.6/base.d.ts +23 -0
- package/node_modules/@types/node/ts3.6/index.d.ts +8 -0
- package/node_modules/@types/node/tty.d.ts +66 -0
- package/node_modules/@types/node/url.d.ts +110 -0
- package/node_modules/@types/node/util.d.ts +196 -0
- package/node_modules/@types/node/v8.d.ts +187 -0
- package/node_modules/@types/node/vm.d.ts +146 -0
- package/node_modules/@types/node/wasi.d.ts +52 -0
- package/node_modules/@types/node/worker_threads.d.ts +192 -0
- package/node_modules/@types/node/zlib.d.ts +352 -0
- package/node_modules/@types/pbkdf2/LICENSE +21 -0
- package/node_modules/@types/pbkdf2/README.md +16 -0
- package/node_modules/@types/pbkdf2/index.d.ts +41 -0
- package/node_modules/@types/pbkdf2/package.json +30 -0
- package/node_modules/@types/secp256k1/LICENSE +21 -0
- package/node_modules/@types/secp256k1/README.md +16 -0
- package/node_modules/@types/secp256k1/index.d.ts +141 -0
- package/node_modules/@types/secp256k1/package.json +30 -0
- package/node_modules/ansi-regex/index.js +14 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +57 -0
- package/node_modules/ansi-regex/readme.md +87 -0
- package/node_modules/ansi-styles/index.js +165 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +60 -0
- package/node_modules/ansi-styles/readme.md +147 -0
- package/node_modules/base-x/LICENSE.md +22 -0
- package/node_modules/base-x/README.md +67 -0
- package/node_modules/base-x/package.json +53 -0
- package/node_modules/base-x/src/index.d.ts +10 -0
- package/node_modules/base-x/src/index.js +123 -0
- package/node_modules/blakejs/.npmignore +1 -0
- package/node_modules/blakejs/.travis.yml +3 -0
- package/node_modules/blakejs/README.md +112 -0
- package/node_modules/blakejs/blake2b.js +273 -0
- package/node_modules/blakejs/blake2s.js +190 -0
- package/node_modules/blakejs/generated_test_vectors.txt +100 -0
- package/node_modules/blakejs/index.js +15 -0
- package/node_modules/blakejs/package.json +27 -0
- package/node_modules/blakejs/test_blake2b.js +88 -0
- package/node_modules/blakejs/test_blake2s.js +80 -0
- package/node_modules/blakejs/util.js +81 -0
- package/node_modules/bn.js/README.md +221 -0
- package/node_modules/bn.js/lib/bn.js +3433 -0
- package/node_modules/bn.js/package.json +40 -0
- package/node_modules/bn.js/util/genCombMulTo.js +65 -0
- package/node_modules/bn.js/util/genCombMulTo10.js +65 -0
- package/node_modules/brorand/.npmignore +2 -0
- package/node_modules/brorand/README.md +26 -0
- package/node_modules/brorand/index.js +65 -0
- package/node_modules/brorand/package.json +35 -0
- package/node_modules/brorand/test/api-test.js +8 -0
- package/node_modules/browserify-aes/.travis.yml +15 -0
- package/node_modules/browserify-aes/LICENSE +21 -0
- package/node_modules/browserify-aes/README.md +19 -0
- package/node_modules/browserify-aes/aes.js +228 -0
- package/node_modules/browserify-aes/authCipher.js +117 -0
- package/node_modules/browserify-aes/browser.js +13 -0
- package/node_modules/browserify-aes/decrypter.js +124 -0
- package/node_modules/browserify-aes/encrypter.js +114 -0
- package/node_modules/browserify-aes/ghash.js +89 -0
- package/node_modules/browserify-aes/incr32.js +15 -0
- package/node_modules/browserify-aes/index.js +7 -0
- package/node_modules/browserify-aes/modes/cbc.js +17 -0
- package/node_modules/browserify-aes/modes/cfb.js +33 -0
- package/node_modules/browserify-aes/modes/cfb1.js +42 -0
- package/node_modules/browserify-aes/modes/cfb8.js +25 -0
- package/node_modules/browserify-aes/modes/ctr.js +30 -0
- package/node_modules/browserify-aes/modes/ecb.js +7 -0
- package/node_modules/browserify-aes/modes/index.js +18 -0
- package/node_modules/browserify-aes/modes/list.json +191 -0
- package/node_modules/browserify-aes/modes/ofb.js +16 -0
- package/node_modules/browserify-aes/package.json +47 -0
- package/node_modules/browserify-aes/streamCipher.js +27 -0
- package/node_modules/bs58/README.md +71 -0
- package/node_modules/bs58/index.js +4 -0
- package/node_modules/bs58/package.json +41 -0
- package/node_modules/bs58check/LICENSE +21 -0
- package/node_modules/bs58check/README.md +27 -0
- package/node_modules/bs58check/base.js +50 -0
- package/node_modules/bs58check/index.js +12 -0
- package/node_modules/bs58check/package.json +56 -0
- package/node_modules/buffer-from/LICENSE +21 -0
- package/node_modules/buffer-from/index.js +69 -0
- package/node_modules/buffer-from/package.json +23 -0
- package/node_modules/buffer-from/readme.md +69 -0
- package/node_modules/buffer-xor/.npmignore +1 -0
- package/node_modules/buffer-xor/.travis.yml +9 -0
- package/node_modules/buffer-xor/LICENSE +21 -0
- package/node_modules/buffer-xor/README.md +41 -0
- package/node_modules/buffer-xor/index.js +10 -0
- package/node_modules/buffer-xor/inline.js +1 -0
- package/node_modules/buffer-xor/inplace.js +9 -0
- package/node_modules/buffer-xor/package.json +41 -0
- package/node_modules/buffer-xor/test/fixtures.json +23 -0
- package/node_modules/buffer-xor/test/index.js +38 -0
- package/node_modules/camelcase/index.d.ts +63 -0
- package/node_modules/camelcase/index.js +76 -0
- package/node_modules/camelcase/license +9 -0
- package/node_modules/camelcase/package.json +47 -0
- package/node_modules/camelcase/readme.md +99 -0
- package/node_modules/cipher-base/.eslintrc +3 -0
- package/node_modules/cipher-base/.npmignore +1 -0
- package/node_modules/cipher-base/.travis.yml +6 -0
- package/node_modules/cipher-base/LICENSE +21 -0
- package/node_modules/cipher-base/README.md +17 -0
- package/node_modules/cipher-base/index.js +99 -0
- package/node_modules/cipher-base/package.json +36 -0
- package/node_modules/cipher-base/test.js +111 -0
- package/node_modules/cliui/LICENSE.txt +14 -0
- package/node_modules/cliui/README.md +115 -0
- package/node_modules/cliui/index.js +324 -0
- package/node_modules/cliui/package.json +71 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +868 -0
- package/node_modules/color-convert/index.js +78 -0
- package/node_modules/color-convert/package.json +50 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/.eslintrc.json +43 -0
- package/node_modules/color-name/.npmignore +107 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +29 -0
- package/node_modules/color-name/test.js +7 -0
- package/node_modules/create-hash/.travis.yml +17 -0
- package/node_modules/create-hash/LICENSE +21 -0
- package/node_modules/create-hash/README.md +19 -0
- package/node_modules/create-hash/browser.js +30 -0
- package/node_modules/create-hash/index.js +1 -0
- package/node_modules/create-hash/md5.js +5 -0
- package/node_modules/create-hash/package.json +43 -0
- package/node_modules/create-hash/test.js +41 -0
- package/node_modules/create-hmac/LICENSE +21 -0
- package/node_modules/create-hmac/README.md +20 -0
- package/node_modules/create-hmac/browser.js +62 -0
- package/node_modules/create-hmac/index.js +1 -0
- package/node_modules/create-hmac/legacy.js +46 -0
- package/node_modules/create-hmac/package.json +49 -0
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +94 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +125 -0
- package/node_modules/cross-spawn/lib/util/escape.js +45 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +32 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +47 -0
- package/node_modules/cross-spawn/package.json +80 -0
- package/node_modules/decamelize/index.js +13 -0
- package/node_modules/decamelize/license +21 -0
- package/node_modules/decamelize/package.json +42 -0
- package/node_modules/decamelize/readme.md +48 -0
- package/node_modules/elliptic/README.md +238 -0
- package/node_modules/elliptic/lib/elliptic/curve/base.js +376 -0
- package/node_modules/elliptic/lib/elliptic/curve/edwards.js +432 -0
- package/node_modules/elliptic/lib/elliptic/curve/index.js +8 -0
- package/node_modules/elliptic/lib/elliptic/curve/mont.js +178 -0
- package/node_modules/elliptic/lib/elliptic/curve/short.js +937 -0
- package/node_modules/elliptic/lib/elliptic/curves.js +206 -0
- package/node_modules/elliptic/lib/elliptic/ec/index.js +241 -0
- package/node_modules/elliptic/lib/elliptic/ec/key.js +118 -0
- package/node_modules/elliptic/lib/elliptic/ec/signature.js +166 -0
- package/node_modules/elliptic/lib/elliptic/eddsa/index.js +118 -0
- package/node_modules/elliptic/lib/elliptic/eddsa/key.js +95 -0
- package/node_modules/elliptic/lib/elliptic/eddsa/signature.js +65 -0
- package/node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js +780 -0
- package/node_modules/elliptic/lib/elliptic/utils.js +119 -0
- package/node_modules/elliptic/lib/elliptic.js +13 -0
- package/node_modules/elliptic/package.json +62 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +5 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +55 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +94 -0
- package/node_modules/end-of-stream/package.json +41 -0
- package/node_modules/ethereum-cryptography/LICENSE +26 -0
- package/node_modules/ethereum-cryptography/README.md +560 -0
- package/node_modules/ethereum-cryptography/aes.d.ts +4 -0
- package/node_modules/ethereum-cryptography/aes.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/aes.js +38 -0
- package/node_modules/ethereum-cryptography/aes.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/index.d.ts +8 -0
- package/node_modules/ethereum-cryptography/bip39/index.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/index.js +71 -0
- package/node_modules/ethereum-cryptography/bip39/index.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/czech.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/czech.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/czech.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/czech.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/english.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/english.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/english.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/english.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/french.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/french.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/french.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/french.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/italian.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/italian.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/italian.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/italian.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/japanese.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/japanese.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/japanese.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/japanese.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/korean.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/korean.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/korean.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/korean.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/spanish.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/spanish.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/spanish.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/spanish.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.js.map +1 -0
- package/node_modules/ethereum-cryptography/blake2b.d.ts +3 -0
- package/node_modules/ethereum-cryptography/blake2b.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/blake2b.js +12 -0
- package/node_modules/ethereum-cryptography/blake2b.js.map +1 -0
- package/node_modules/ethereum-cryptography/hash-utils.d.ts +4 -0
- package/node_modules/ethereum-cryptography/hash-utils.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/hash-utils.js +11 -0
- package/node_modules/ethereum-cryptography/hash-utils.js.map +1 -0
- package/node_modules/ethereum-cryptography/hdkey.d.ts +3 -0
- package/node_modules/ethereum-cryptography/hdkey.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/hdkey.js +5 -0
- package/node_modules/ethereum-cryptography/hdkey.js.map +1 -0
- package/node_modules/ethereum-cryptography/index.d.ts +1 -0
- package/node_modules/ethereum-cryptography/index.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/index.js +3 -0
- package/node_modules/ethereum-cryptography/index.js.map +1 -0
- package/node_modules/ethereum-cryptography/keccak.d.ts +6 -0
- package/node_modules/ethereum-cryptography/keccak.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/keccak.js +17 -0
- package/node_modules/ethereum-cryptography/keccak.js.map +1 -0
- package/node_modules/ethereum-cryptography/package.json +131 -0
- package/node_modules/ethereum-cryptography/pbkdf2.d.ts +4 -0
- package/node_modules/ethereum-cryptography/pbkdf2.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pbkdf2.js +27 -0
- package/node_modules/ethereum-cryptography/pbkdf2.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/hdkey.d.ts +37 -0
- package/node_modules/ethereum-cryptography/pure/hdkey.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/hdkey.js +5 -0
- package/node_modules/ethereum-cryptography/pure/hdkey.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/ripemd160.d.ts +3 -0
- package/node_modules/ethereum-cryptography/pure/ripemd160.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/ripemd160.js +6 -0
- package/node_modules/ethereum-cryptography/pure/ripemd160.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/sha256.d.ts +3 -0
- package/node_modules/ethereum-cryptography/pure/sha256.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/sha256.js +6 -0
- package/node_modules/ethereum-cryptography/pure/sha256.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-crypto.d.ts +13 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-crypto.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-crypto.js +37 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-crypto.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-secp256k1v3.d.ts +2 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-secp256k1v3.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-secp256k1v3.js +7 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-secp256k1v3.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/vendor/hdkey-without-crypto.js +255 -0
- package/node_modules/ethereum-cryptography/random.d.ts +4 -0
- package/node_modules/ethereum-cryptography/random.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/random.js +20 -0
- package/node_modules/ethereum-cryptography/random.js.map +1 -0
- package/node_modules/ethereum-cryptography/ripemd160.d.ts +3 -0
- package/node_modules/ethereum-cryptography/ripemd160.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/ripemd160.js +11 -0
- package/node_modules/ethereum-cryptography/ripemd160.js.map +1 -0
- package/node_modules/ethereum-cryptography/scrypt.d.ts +5 -0
- package/node_modules/ethereum-cryptography/scrypt.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/scrypt.js +59 -0
- package/node_modules/ethereum-cryptography/scrypt.js.map +1 -0
- package/node_modules/ethereum-cryptography/secp256k1.d.ts +4 -0
- package/node_modules/ethereum-cryptography/secp256k1.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/secp256k1.js +75 -0
- package/node_modules/ethereum-cryptography/secp256k1.js.map +1 -0
- package/node_modules/ethereum-cryptography/sha256.d.ts +3 -0
- package/node_modules/ethereum-cryptography/sha256.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/sha256.js +9 -0
- package/node_modules/ethereum-cryptography/sha256.js.map +1 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-crypto.d.ts +2 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-crypto.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-crypto.js +7 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-crypto.js.map +1 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-secp256k1v3.d.ts +13 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-secp256k1v3.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-secp256k1v3.js +47 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-secp256k1v3.js.map +1 -0
- package/node_modules/ethereum-cryptography/src/aes.ts +52 -0
- package/node_modules/ethereum-cryptography/src/bip39/index.ts +40 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/czech.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/english.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/french.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/italian.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/japanese.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/korean.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/simplified-chinese.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/spanish.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/traditional-chinese.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/blake2b.ts +9 -0
- package/node_modules/ethereum-cryptography/src/hash-utils.ts +11 -0
- package/node_modules/ethereum-cryptography/src/hdkey.ts +5 -0
- package/node_modules/ethereum-cryptography/src/index.ts +3 -0
- package/node_modules/ethereum-cryptography/src/keccak.ts +19 -0
- package/node_modules/ethereum-cryptography/src/pbkdf2.ts +37 -0
- package/node_modules/ethereum-cryptography/src/pure/hdkey.ts +36 -0
- package/node_modules/ethereum-cryptography/src/pure/ripemd160.ts +5 -0
- package/node_modules/ethereum-cryptography/src/pure/sha256.ts +5 -0
- package/node_modules/ethereum-cryptography/src/pure/shims/hdkey-crypto.ts +42 -0
- package/node_modules/ethereum-cryptography/src/pure/shims/hdkey-secp256k1v3.ts +1 -0
- package/node_modules/ethereum-cryptography/src/pure/vendor/hdkey-without-crypto.js +255 -0
- package/node_modules/ethereum-cryptography/src/random.ts +18 -0
- package/node_modules/ethereum-cryptography/src/ripemd160.ts +7 -0
- package/node_modules/ethereum-cryptography/src/scrypt.ts +24 -0
- package/node_modules/ethereum-cryptography/src/secp256k1.ts +24 -0
- package/node_modules/ethereum-cryptography/src/sha256.ts +5 -0
- package/node_modules/ethereum-cryptography/src/shims/hdkey-crypto.ts +1 -0
- package/node_modules/ethereum-cryptography/src/shims/hdkey-secp256k1v3.ts +49 -0
- package/node_modules/ethereum-cryptography/src/vendor/bip39-without-wordlists.js +206 -0
- package/node_modules/ethereum-cryptography/src/vendor/hdkey-without-crypto.js +255 -0
- package/node_modules/ethereum-cryptography/vendor/bip39-without-wordlists.js +206 -0
- package/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js +255 -0
- package/node_modules/ethereumjs-util/LICENSE +373 -0
- package/node_modules/ethereumjs-util/README.md +32 -0
- package/node_modules/ethereumjs-util/dist/account.d.ts +80 -0
- package/node_modules/ethereumjs-util/dist/account.js +168 -0
- package/node_modules/ethereumjs-util/dist/account.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/bytes.d.ts +68 -0
- package/node_modules/ethereumjs-util/dist/bytes.js +158 -0
- package/node_modules/ethereumjs-util/dist/bytes.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/constants.d.ts +34 -0
- package/node_modules/ethereumjs-util/dist/constants.js +37 -0
- package/node_modules/ethereumjs-util/dist/constants.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/hash.d.ts +30 -0
- package/node_modules/ethereumjs-util/dist/hash.js +84 -0
- package/node_modules/ethereumjs-util/dist/hash.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/index.d.ts +39 -0
- package/node_modules/ethereumjs-util/dist/index.js +46 -0
- package/node_modules/ethereumjs-util/dist/index.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/object.d.ts +12 -0
- package/node_modules/ethereumjs-util/dist/object.js +106 -0
- package/node_modules/ethereumjs-util/dist/object.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-adapter.d.ts +178 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-adapter.js +300 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-adapter.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/der.d.ts +1 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/der.js +634 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/der.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/index.d.ts +5 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/index.js +61 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/index.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/signature.d.ts +37 -0
- package/node_modules/ethereumjs-util/dist/signature.js +107 -0
- package/node_modules/ethereumjs-util/dist/signature.js.map +1 -0
- package/node_modules/ethereumjs-util/package.json +131 -0
- package/node_modules/ethjs-util/LICENSE +21 -0
- package/node_modules/ethjs-util/README.md +143 -0
- package/node_modules/ethjs-util/dist/ethjs-util.js +2420 -0
- package/node_modules/ethjs-util/dist/ethjs-util.js.map +1 -0
- package/node_modules/ethjs-util/dist/ethjs-util.min.js +1 -0
- package/node_modules/ethjs-util/internals/webpack/webpack.config.js +58 -0
- package/node_modules/ethjs-util/lib/index.js +220 -0
- package/node_modules/ethjs-util/lib/tests/test.index.js +357 -0
- package/node_modules/ethjs-util/package.json +229 -0
- package/node_modules/ethjs-util/src/index.js +203 -0
- package/node_modules/ethjs-util/src/tests/test.index.js +382 -0
- package/node_modules/evp_bytestokey/LICENSE +21 -0
- package/node_modules/evp_bytestokey/README.md +51 -0
- package/node_modules/evp_bytestokey/index.js +45 -0
- package/node_modules/evp_bytestokey/package.json +49 -0
- package/node_modules/execa/index.js +361 -0
- package/node_modules/execa/lib/errname.js +39 -0
- package/node_modules/execa/lib/stdio.js +41 -0
- package/node_modules/execa/license +9 -0
- package/node_modules/execa/package.json +73 -0
- package/node_modules/execa/readme.md +327 -0
- package/node_modules/find-up/index.js +46 -0
- package/node_modules/find-up/license +9 -0
- package/node_modules/find-up/package.json +54 -0
- package/node_modules/find-up/readme.md +87 -0
- package/node_modules/get-caller-file/LICENSE.md +6 -0
- package/node_modules/get-caller-file/README.md +41 -0
- package/node_modules/get-caller-file/index.d.ts +2 -0
- package/node_modules/get-caller-file/index.js +22 -0
- package/node_modules/get-caller-file/index.js.map +1 -0
- package/node_modules/get-caller-file/package.json +46 -0
- package/node_modules/get-stream/buffer-stream.js +51 -0
- package/node_modules/get-stream/index.js +50 -0
- package/node_modules/get-stream/license +9 -0
- package/node_modules/get-stream/package.json +50 -0
- package/node_modules/get-stream/readme.md +123 -0
- package/node_modules/hash-base/LICENSE +21 -0
- package/node_modules/hash-base/README.md +48 -0
- package/node_modules/hash-base/index.js +95 -0
- package/node_modules/hash-base/package.json +46 -0
- package/node_modules/hash.js/.eslintrc.js +41 -0
- package/node_modules/hash.js/.travis.yml +10 -0
- package/node_modules/hash.js/README.md +48 -0
- package/node_modules/hash.js/lib/hash/common.js +92 -0
- package/node_modules/hash.js/lib/hash/hmac.js +47 -0
- package/node_modules/hash.js/lib/hash/ripemd.js +146 -0
- package/node_modules/hash.js/lib/hash/sha/1.js +74 -0
- package/node_modules/hash.js/lib/hash/sha/224.js +30 -0
- package/node_modules/hash.js/lib/hash/sha/256.js +105 -0
- package/node_modules/hash.js/lib/hash/sha/384.js +35 -0
- package/node_modules/hash.js/lib/hash/sha/512.js +330 -0
- package/node_modules/hash.js/lib/hash/sha/common.js +49 -0
- package/node_modules/hash.js/lib/hash/sha.js +7 -0
- package/node_modules/hash.js/lib/hash/utils.js +278 -0
- package/node_modules/hash.js/lib/hash.d.ts +106 -0
- package/node_modules/hash.js/lib/hash.js +15 -0
- package/node_modules/hash.js/package.json +39 -0
- package/node_modules/hash.js/test/hash-test.js +140 -0
- package/node_modules/hash.js/test/hmac-test.js +62 -0
- package/node_modules/hmac-drbg/.npmignore +2 -0
- package/node_modules/hmac-drbg/.travis.yml +11 -0
- package/node_modules/hmac-drbg/README.md +48 -0
- package/node_modules/hmac-drbg/lib/hmac-drbg.js +113 -0
- package/node_modules/hmac-drbg/package.json +36 -0
- package/node_modules/hmac-drbg/test/drbg-test.js +91 -0
- package/node_modules/hmac-drbg/test/fixtures/hmac-drbg-nist.json +332 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +33 -0
- package/node_modules/invert-kv/index.js +15 -0
- package/node_modules/invert-kv/license +9 -0
- package/node_modules/invert-kv/package.json +36 -0
- package/node_modules/invert-kv/readme.md +25 -0
- package/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/node_modules/is-fullwidth-code-point/license +21 -0
- package/node_modules/is-fullwidth-code-point/package.json +49 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-hex-prefixed/.editorconfig +7 -0
- package/node_modules/is-hex-prefixed/.gitattributes +106 -0
- package/node_modules/is-hex-prefixed/.npmignore +8 -0
- package/node_modules/is-hex-prefixed/.travis.yml +5 -0
- package/node_modules/is-hex-prefixed/CHANGELOG.md +7 -0
- package/node_modules/is-hex-prefixed/LICENSE +21 -0
- package/node_modules/is-hex-prefixed/README.md +101 -0
- package/node_modules/is-hex-prefixed/package.json +43 -0
- package/node_modules/is-hex-prefixed/src/index.js +13 -0
- package/node_modules/is-hex-prefixed/src/tests/test.index.js +66 -0
- package/node_modules/is-stream/index.js +21 -0
- package/node_modules/is-stream/license +21 -0
- package/node_modules/is-stream/package.json +42 -0
- package/node_modules/is-stream/readme.md +42 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +35 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/keccak/LICENSE +21 -0
- package/node_modules/keccak/README.md +64 -0
- package/node_modules/keccak/binding.gyp +78 -0
- package/node_modules/keccak/bindings.js +1 -0
- package/node_modules/keccak/index.js +5 -0
- package/node_modules/keccak/js.js +1 -0
- package/node_modules/keccak/lib/api/index.js +27 -0
- package/node_modules/keccak/lib/api/keccak.js +77 -0
- package/node_modules/keccak/lib/api/shake.js +68 -0
- package/node_modules/keccak/lib/keccak-state-reference.js +143 -0
- package/node_modules/keccak/lib/keccak-state-unroll.js +186 -0
- package/node_modules/keccak/lib/keccak.js +68 -0
- package/node_modules/keccak/package.json +41 -0
- package/node_modules/keccak/prebuilds/darwin-x64/node.napi.node +0 -0
- package/node_modules/keccak/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/node_modules/keccak/prebuilds/linux-x64/node.napi.musl.node +0 -0
- package/node_modules/keccak/prebuilds/win32-x64/node.napi.node +0 -0
- package/node_modules/keccak/src/README.md +28 -0
- package/node_modules/keccak/src/addon.cc +98 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakP-1600-SnP.h +38 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakP-1600-inplace32BI.c +1162 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakSponge-common.h +35 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakSponge.inc +311 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakSpongeWidth1600.c +54 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakSpongeWidth1600.h +31 -0
- package/node_modules/keccak/src/libkeccak-32/SnP-Relaned.h +140 -0
- package/node_modules/keccak/src/libkeccak-32/align.h +32 -0
- package/node_modules/keccak/src/libkeccak-32/brg_endian.h +143 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-64.macros +745 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-SnP.h +51 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-opt64-config.h +6 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-opt64.c +564 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-unrolling.macros +302 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakSponge-common.h +35 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakSponge.inc +311 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakSpongeWidth1600.c +54 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakSpongeWidth1600.h +31 -0
- package/node_modules/keccak/src/libkeccak-64/SnP-Relaned.h +140 -0
- package/node_modules/keccak/src/libkeccak-64/align.h +32 -0
- package/node_modules/keccak/src/libkeccak-64/brg_endian.h +143 -0
- package/node_modules/lcid/index.js +23 -0
- package/node_modules/lcid/lcid.json +203 -0
- package/node_modules/lcid/license +9 -0
- package/node_modules/lcid/package.json +51 -0
- package/node_modules/lcid/readme.md +35 -0
- package/node_modules/locate-path/index.js +24 -0
- package/node_modules/locate-path/license +9 -0
- package/node_modules/locate-path/package.json +48 -0
- package/node_modules/locate-path/readme.md +99 -0
- package/node_modules/map-age-cleaner/dist/index.d.ts +20 -0
- package/node_modules/map-age-cleaner/dist/index.js +92 -0
- package/node_modules/map-age-cleaner/license +9 -0
- package/node_modules/map-age-cleaner/package.json +63 -0
- package/node_modules/map-age-cleaner/readme.md +67 -0
- package/node_modules/md5.js/LICENSE +21 -0
- package/node_modules/md5.js/README.md +29 -0
- package/node_modules/md5.js/index.js +146 -0
- package/node_modules/md5.js/package.json +42 -0
- package/node_modules/mem/index.d.ts +96 -0
- package/node_modules/mem/index.js +88 -0
- package/node_modules/mem/license +9 -0
- package/node_modules/mem/package.json +50 -0
- package/node_modules/mem/readme.md +167 -0
- package/node_modules/mimic-fn/index.d.ts +54 -0
- package/node_modules/mimic-fn/index.js +13 -0
- package/node_modules/mimic-fn/license +9 -0
- package/node_modules/mimic-fn/package.json +46 -0
- package/node_modules/mimic-fn/readme.md +69 -0
- package/node_modules/minimalistic-assert/LICENSE +13 -0
- package/node_modules/minimalistic-assert/index.js +11 -0
- package/node_modules/minimalistic-assert/package.json +23 -0
- package/node_modules/minimalistic-assert/readme.md +4 -0
- package/node_modules/minimalistic-crypto-utils/.npmignore +2 -0
- package/node_modules/minimalistic-crypto-utils/.travis.yml +11 -0
- package/node_modules/minimalistic-crypto-utils/README.md +47 -0
- package/node_modules/minimalistic-crypto-utils/lib/utils.js +58 -0
- package/node_modules/minimalistic-crypto-utils/package.json +31 -0
- package/node_modules/minimalistic-crypto-utils/test/utils-test.js +28 -0
- package/node_modules/nice-try/LICENSE +21 -0
- package/node_modules/nice-try/README.md +32 -0
- package/node_modules/nice-try/package.json +37 -0
- package/node_modules/nice-try/src/index.js +12 -0
- package/node_modules/node-addon-api/.editorconfig +8 -0
- package/node_modules/node-addon-api/.travis.yml +62 -0
- package/node_modules/node-addon-api/CHANGELOG.md +412 -0
- package/node_modules/node-addon-api/CODE_OF_CONDUCT.md +4 -0
- package/node_modules/node-addon-api/CONTRIBUTING.md +66 -0
- package/node_modules/node-addon-api/LICENSE.md +13 -0
- package/node_modules/node-addon-api/README.md +203 -0
- package/node_modules/node-addon-api/appveyor.yml +48 -0
- package/node_modules/node-addon-api/doc/Doxyfile +2450 -0
- package/node_modules/node-addon-api/doc/array_buffer.md +129 -0
- package/node_modules/node-addon-api/doc/async_context.md +86 -0
- package/node_modules/node-addon-api/doc/async_operations.md +31 -0
- package/node_modules/node-addon-api/doc/async_progress_worker.md +344 -0
- package/node_modules/node-addon-api/doc/async_worker.md +398 -0
- package/node_modules/node-addon-api/doc/basic_types.md +423 -0
- package/node_modules/node-addon-api/doc/bigint.md +92 -0
- package/node_modules/node-addon-api/doc/boolean.md +64 -0
- package/node_modules/node-addon-api/doc/buffer.md +140 -0
- package/node_modules/node-addon-api/doc/callback_scope.md +54 -0
- package/node_modules/node-addon-api/doc/callbackinfo.md +97 -0
- package/node_modules/node-addon-api/doc/checker-tool.md +32 -0
- package/node_modules/node-addon-api/doc/class_property_descriptor.md +117 -0
- package/node_modules/node-addon-api/doc/cmake-js.md +68 -0
- package/node_modules/node-addon-api/doc/conversion-tool.md +28 -0
- package/node_modules/node-addon-api/doc/creating_a_release.md +62 -0
- package/node_modules/node-addon-api/doc/dataview.md +244 -0
- package/node_modules/node-addon-api/doc/date.md +68 -0
- package/node_modules/node-addon-api/doc/env.md +63 -0
- package/node_modules/node-addon-api/doc/error.md +115 -0
- package/node_modules/node-addon-api/doc/error_handling.md +186 -0
- package/node_modules/node-addon-api/doc/escapable_handle_scope.md +82 -0
- package/node_modules/node-addon-api/doc/external.md +59 -0
- package/node_modules/node-addon-api/doc/function.md +294 -0
- package/node_modules/node-addon-api/doc/function_reference.md +238 -0
- package/node_modules/node-addon-api/doc/generator.md +13 -0
- package/node_modules/node-addon-api/doc/handle_scope.md +65 -0
- package/node_modules/node-addon-api/doc/memory_management.md +27 -0
- package/node_modules/node-addon-api/doc/node-gyp.md +82 -0
- package/node_modules/node-addon-api/doc/number.md +163 -0
- package/node_modules/node-addon-api/doc/object.md +236 -0
- package/node_modules/node-addon-api/doc/object_lifetime_management.md +83 -0
- package/node_modules/node-addon-api/doc/object_reference.md +117 -0
- package/node_modules/node-addon-api/doc/object_wrap.md +557 -0
- package/node_modules/node-addon-api/doc/prebuild_tools.md +16 -0
- package/node_modules/node-addon-api/doc/promises.md +74 -0
- package/node_modules/node-addon-api/doc/property_descriptor.md +231 -0
- package/node_modules/node-addon-api/doc/range_error.md +59 -0
- package/node_modules/node-addon-api/doc/reference.md +111 -0
- package/node_modules/node-addon-api/doc/setup.md +82 -0
- package/node_modules/node-addon-api/doc/string.md +89 -0
- package/node_modules/node-addon-api/doc/symbol.md +44 -0
- package/node_modules/node-addon-api/doc/threadsafe_function.md +320 -0
- package/node_modules/node-addon-api/doc/type_error.md +59 -0
- package/node_modules/node-addon-api/doc/typed_array.md +74 -0
- package/node_modules/node-addon-api/doc/typed_array_of.md +133 -0
- package/node_modules/node-addon-api/doc/value.md +278 -0
- package/node_modules/node-addon-api/doc/version_management.md +43 -0
- package/node_modules/node-addon-api/doc/working_with_javascript_values.md +14 -0
- package/node_modules/node-addon-api/external-napi/node_api.h +7 -0
- package/node_modules/node-addon-api/index.js +45 -0
- package/node_modules/node-addon-api/napi-inl.deprecated.h +192 -0
- package/node_modules/node-addon-api/napi-inl.h +4412 -0
- package/node_modules/node-addon-api/napi.h +2173 -0
- package/node_modules/node-addon-api/package.json +248 -0
- package/node_modules/node-addon-api/src/node_api.cc +3655 -0
- package/node_modules/node-addon-api/src/node_api.gyp +21 -0
- package/node_modules/node-addon-api/src/node_api.h +588 -0
- package/node_modules/node-addon-api/src/node_api_types.h +115 -0
- package/node_modules/node-addon-api/src/node_internals.cc +142 -0
- package/node_modules/node-addon-api/src/node_internals.h +157 -0
- package/node_modules/node-addon-api/src/nothing.c +0 -0
- package/node_modules/node-addon-api/src/util-inl.h +38 -0
- package/node_modules/node-addon-api/src/util.h +7 -0
- package/node_modules/node-addon-api/tools/README.md +67 -0
- package/node_modules/node-addon-api/tools/check-napi.js +100 -0
- package/node_modules/node-addon-api/tools/conversion.js +313 -0
- package/node_modules/node-gyp-build/LICENSE +21 -0
- package/node_modules/node-gyp-build/README.md +58 -0
- package/node_modules/node-gyp-build/bin.js +77 -0
- package/node_modules/node-gyp-build/build-test.js +19 -0
- package/node_modules/node-gyp-build/index.js +166 -0
- package/node_modules/node-gyp-build/optional.js +7 -0
- package/node_modules/node-gyp-build/package.json +33 -0
- package/node_modules/npm-run-path/index.js +39 -0
- package/node_modules/npm-run-path/license +21 -0
- package/node_modules/npm-run-path/package.json +49 -0
- package/node_modules/npm-run-path/readme.md +81 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +37 -0
- package/node_modules/os-locale/index.js +114 -0
- package/node_modules/os-locale/license +9 -0
- package/node_modules/os-locale/package.json +49 -0
- package/node_modules/os-locale/readme.md +71 -0
- package/node_modules/p-defer/index.js +11 -0
- package/node_modules/p-defer/license +21 -0
- package/node_modules/p-defer/package.json +45 -0
- package/node_modules/p-defer/readme.md +47 -0
- package/node_modules/p-finally/index.js +15 -0
- package/node_modules/p-finally/license +21 -0
- package/node_modules/p-finally/package.json +46 -0
- package/node_modules/p-finally/readme.md +47 -0
- package/node_modules/p-is-promise/index.d.ts +23 -0
- package/node_modules/p-is-promise/index.js +15 -0
- package/node_modules/p-is-promise/license +9 -0
- package/node_modules/p-is-promise/package.json +46 -0
- package/node_modules/p-is-promise/readme.md +43 -0
- package/node_modules/p-limit/index.d.ts +38 -0
- package/node_modules/p-limit/index.js +57 -0
- package/node_modules/p-limit/license +9 -0
- package/node_modules/p-limit/package.json +56 -0
- package/node_modules/p-limit/readme.md +101 -0
- package/node_modules/p-locate/index.js +34 -0
- package/node_modules/p-locate/license +9 -0
- package/node_modules/p-locate/package.json +55 -0
- package/node_modules/p-locate/readme.md +88 -0
- package/node_modules/p-try/index.d.ts +39 -0
- package/node_modules/p-try/index.js +9 -0
- package/node_modules/p-try/license +9 -0
- package/node_modules/p-try/package.json +46 -0
- package/node_modules/p-try/readme.md +58 -0
- package/node_modules/path-exists/index.js +17 -0
- package/node_modules/path-exists/license +21 -0
- package/node_modules/path-exists/package.json +44 -0
- package/node_modules/path-exists/readme.md +50 -0
- package/node_modules/path-key/index.js +13 -0
- package/node_modules/path-key/license +21 -0
- package/node_modules/path-key/package.json +43 -0
- package/node_modules/path-key/readme.md +51 -0
- package/node_modules/pbkdf2/LICENSE +21 -0
- package/node_modules/pbkdf2/README.md +30 -0
- package/node_modules/pbkdf2/browser.js +2 -0
- package/node_modules/pbkdf2/index.js +38 -0
- package/node_modules/pbkdf2/lib/async.js +102 -0
- package/node_modules/pbkdf2/lib/default-encoding.js +12 -0
- package/node_modules/pbkdf2/lib/precondition.js +19 -0
- package/node_modules/pbkdf2/lib/sync-browser.js +105 -0
- package/node_modules/pbkdf2/lib/sync.js +52 -0
- package/node_modules/pbkdf2/lib/to-buffer.js +13 -0
- package/node_modules/pbkdf2/package.json +74 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +65 -0
- package/node_modules/pump/index.js +82 -0
- package/node_modules/pump/package.json +28 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/randombytes/.travis.yml +15 -0
- package/node_modules/randombytes/.zuul.yml +1 -0
- package/node_modules/randombytes/LICENSE +21 -0
- package/node_modules/randombytes/README.md +14 -0
- package/node_modules/randombytes/browser.js +50 -0
- package/node_modules/randombytes/index.js +1 -0
- package/node_modules/randombytes/package.json +40 -0
- package/node_modules/randombytes/test.js +81 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +106 -0
- package/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +201 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +697 -0
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- package/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +72 -0
- package/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/require-directory/.jshintrc +67 -0
- package/node_modules/require-directory/.npmignore +1 -0
- package/node_modules/require-directory/.travis.yml +3 -0
- package/node_modules/require-directory/LICENSE +22 -0
- package/node_modules/require-directory/README.markdown +184 -0
- package/node_modules/require-directory/index.js +86 -0
- package/node_modules/require-directory/package.json +44 -0
- package/node_modules/require-main-filename/LICENSE.txt +14 -0
- package/node_modules/require-main-filename/README.md +26 -0
- package/node_modules/require-main-filename/index.js +18 -0
- package/node_modules/require-main-filename/package.json +39 -0
- package/node_modules/ripemd160/LICENSE +21 -0
- package/node_modules/ripemd160/README.md +27 -0
- package/node_modules/ripemd160/index.js +163 -0
- package/node_modules/ripemd160/package.json +41 -0
- package/node_modules/rlp/LICENSE +373 -0
- package/node_modules/rlp/README.md +58 -0
- package/node_modules/rlp/bin/rlp +35 -0
- package/node_modules/rlp/dist/index.d.ts +25 -0
- package/node_modules/rlp/dist/index.js +249 -0
- package/node_modules/rlp/dist/index.js.map +1 -0
- package/node_modules/rlp/dist/types.d.ts +9 -0
- package/node_modules/rlp/dist/types.js +3 -0
- package/node_modules/rlp/dist/types.js.map +1 -0
- package/node_modules/rlp/package.json +84 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +55 -0
- package/node_modules/scrypt-js/LICENSE.txt +22 -0
- package/node_modules/scrypt-js/README.md +222 -0
- package/node_modules/scrypt-js/index.html +291 -0
- package/node_modules/scrypt-js/package.json +31 -0
- package/node_modules/scrypt-js/scrypt.d.ts +23 -0
- package/node_modules/scrypt-js/scrypt.js +488 -0
- package/node_modules/scrypt-js/thirdparty/buffer.js +1381 -0
- package/node_modules/scrypt-js/thirdparty/setImmediate.js +175 -0
- package/node_modules/scrypt-js/thirdparty/unorm.js +442 -0
- package/node_modules/secp256k1/API.md +116 -0
- package/node_modules/secp256k1/LICENSE +24 -0
- package/node_modules/secp256k1/README.md +117 -0
- package/node_modules/secp256k1/binding.gyp +100 -0
- package/node_modules/secp256k1/bindings.js +2 -0
- package/node_modules/secp256k1/elliptic.js +1 -0
- package/node_modules/secp256k1/index.js +5 -0
- package/node_modules/secp256k1/lib/elliptic.js +402 -0
- package/node_modules/secp256k1/lib/index.js +336 -0
- package/node_modules/secp256k1/package.json +47 -0
- package/node_modules/secp256k1/prebuilds/darwin-x64/node.napi.node +0 -0
- package/node_modules/secp256k1/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/node_modules/secp256k1/prebuilds/linux-x64/node.napi.musl.node +0 -0
- package/node_modules/secp256k1/prebuilds/win32-x64/node.napi.node +0 -0
- package/node_modules/secp256k1/src/addon.cc +10 -0
- package/node_modules/secp256k1/src/secp256k1/.travis.yml +100 -0
- package/node_modules/secp256k1/src/secp256k1/COPYING +19 -0
- package/node_modules/secp256k1/src/secp256k1/Makefile.am +183 -0
- package/node_modules/secp256k1/src/secp256k1/README.md +78 -0
- package/node_modules/secp256k1/src/secp256k1/SECURITY.md +15 -0
- package/node_modules/secp256k1/src/secp256k1/TODO +3 -0
- package/node_modules/secp256k1/src/secp256k1/autogen.sh +3 -0
- package/node_modules/secp256k1/src/secp256k1/build-aux/m4/ax_jni_include_dir.m4 +145 -0
- package/node_modules/secp256k1/src/secp256k1/build-aux/m4/ax_prog_cc_for_build.m4 +125 -0
- package/node_modules/secp256k1/src/secp256k1/build-aux/m4/bitcoin_secp.m4 +68 -0
- package/node_modules/secp256k1/src/secp256k1/configure.ac +591 -0
- package/node_modules/secp256k1/src/secp256k1/contrib/lax_der_parsing.c +150 -0
- package/node_modules/secp256k1/src/secp256k1/contrib/lax_der_parsing.h +91 -0
- package/node_modules/secp256k1/src/secp256k1/contrib/lax_der_privatekey_parsing.c +113 -0
- package/node_modules/secp256k1/src/secp256k1/contrib/lax_der_privatekey_parsing.h +90 -0
- package/node_modules/secp256k1/src/secp256k1/include/secp256k1.h +708 -0
- package/node_modules/secp256k1/src/secp256k1/include/secp256k1_ecdh.h +55 -0
- package/node_modules/secp256k1/src/secp256k1/include/secp256k1_preallocated.h +128 -0
- package/node_modules/secp256k1/src/secp256k1/include/secp256k1_recovery.h +110 -0
- package/node_modules/secp256k1/src/secp256k1/libsecp256k1.pc.in +13 -0
- package/node_modules/secp256k1/src/secp256k1/sage/group_prover.sage +322 -0
- package/node_modules/secp256k1/src/secp256k1/sage/secp256k1.sage +306 -0
- package/node_modules/secp256k1/src/secp256k1/sage/weierstrass_prover.sage +264 -0
- package/node_modules/secp256k1/src/secp256k1/src/asm/field_10x26_arm.s +913 -0
- package/node_modules/secp256k1/src/secp256k1/src/basic-config.h +38 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench.h +124 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_ecdh.c +54 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_ecmult.c +207 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_internal.c +379 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_recover.c +60 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_sign.c +56 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_verify.c +112 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecdsa.h +21 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecdsa_impl.h +319 -0
- package/node_modules/secp256k1/src/secp256k1/src/eckey.h +25 -0
- package/node_modules/secp256k1/src/secp256k1/src/eckey_impl.h +100 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult.h +48 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_const.h +20 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_const_impl.h +261 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_gen.h +50 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_gen_impl.h +211 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_impl.h +1216 -0
- package/node_modules/secp256k1/src/secp256k1/src/field.h +132 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_10x26.h +50 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_10x26_impl.h +1162 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_5x52.h +49 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_5x52_asm_impl.h +502 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_5x52_impl.h +496 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_5x52_int128_impl.h +279 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_impl.h +318 -0
- package/node_modules/secp256k1/src/secp256k1/src/gen_context.c +87 -0
- package/node_modules/secp256k1/src/secp256k1/src/group.h +142 -0
- package/node_modules/secp256k1/src/secp256k1/src/group_impl.h +705 -0
- package/node_modules/secp256k1/src/secp256k1/src/hash.h +41 -0
- package/node_modules/secp256k1/src/secp256k1/src/hash_impl.h +283 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org/bitcoin/NativeSecp256k1.java +446 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org/bitcoin/NativeSecp256k1Test.java +225 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org/bitcoin/NativeSecp256k1Util.java +45 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org/bitcoin/Secp256k1Context.java +51 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org_bitcoin_NativeSecp256k1.c +379 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org_bitcoin_NativeSecp256k1.h +119 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org_bitcoin_Secp256k1Context.c +15 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org_bitcoin_Secp256k1Context.h +22 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/ecdh/Makefile.am.include +8 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/ecdh/main_impl.h +67 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/ecdh/tests_impl.h +132 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/recovery/Makefile.am.include +8 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/recovery/main_impl.h +193 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/recovery/tests_impl.h +393 -0
- package/node_modules/secp256k1/src/secp256k1/src/num.h +74 -0
- package/node_modules/secp256k1/src/secp256k1/src/num_gmp.h +20 -0
- package/node_modules/secp256k1/src/secp256k1/src/num_gmp_impl.h +288 -0
- package/node_modules/secp256k1/src/secp256k1/src/num_impl.h +24 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar.h +106 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_4x64.h +19 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_4x64_impl.h +949 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_8x32.h +19 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_8x32_impl.h +721 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_impl.h +333 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_low.h +15 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_low_impl.h +117 -0
- package/node_modules/secp256k1/src/secp256k1/src/scratch.h +42 -0
- package/node_modules/secp256k1/src/secp256k1/src/scratch_impl.h +88 -0
- package/node_modules/secp256k1/src/secp256k1/src/secp256k1.c +690 -0
- package/node_modules/secp256k1/src/secp256k1/src/testrand.h +38 -0
- package/node_modules/secp256k1/src/secp256k1/src/testrand_impl.h +110 -0
- package/node_modules/secp256k1/src/secp256k1/src/tests.c +5310 -0
- package/node_modules/secp256k1/src/secp256k1/src/tests_exhaustive.c +511 -0
- package/node_modules/secp256k1/src/secp256k1/src/util.h +162 -0
- package/node_modules/secp256k1/src/secp256k1.cc +415 -0
- package/node_modules/secp256k1/src/secp256k1.h +63 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +412 -0
- package/node_modules/semver/bin/semver +160 -0
- package/node_modules/semver/package.json +32 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +1483 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +46 -0
- package/node_modules/setimmediate/LICENSE.txt +20 -0
- package/node_modules/setimmediate/package.json +34 -0
- package/node_modules/setimmediate/setImmediate.js +186 -0
- package/node_modules/sha.js/.travis.yml +17 -0
- package/node_modules/sha.js/LICENSE +49 -0
- package/node_modules/sha.js/README.md +44 -0
- package/node_modules/sha.js/bin.js +41 -0
- package/node_modules/sha.js/hash.js +81 -0
- package/node_modules/sha.js/index.js +15 -0
- package/node_modules/sha.js/package.json +34 -0
- package/node_modules/sha.js/sha.js +94 -0
- package/node_modules/sha.js/sha1.js +99 -0
- package/node_modules/sha.js/sha224.js +53 -0
- package/node_modules/sha.js/sha256.js +135 -0
- package/node_modules/sha.js/sha384.js +57 -0
- package/node_modules/sha.js/sha512.js +260 -0
- package/node_modules/sha.js/test/hash.js +75 -0
- package/node_modules/sha.js/test/test.js +100 -0
- package/node_modules/sha.js/test/vectors.js +72 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +21 -0
- package/node_modules/shebang-command/package.json +43 -0
- package/node_modules/shebang-command/readme.md +39 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +21 -0
- package/node_modules/shebang-regex/package.json +36 -0
- package/node_modules/shebang-regex/readme.md +29 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +163 -0
- package/node_modules/signal-exit/package.json +42 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/source-map/LICENSE +28 -0
- package/node_modules/source-map/README.md +742 -0
- package/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/node_modules/source-map/dist/source-map.js +3233 -0
- package/node_modules/source-map/dist/source-map.min.js +2 -0
- package/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/node_modules/source-map/lib/array-set.js +121 -0
- package/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/node_modules/source-map/lib/base64.js +67 -0
- package/node_modules/source-map/lib/binary-search.js +111 -0
- package/node_modules/source-map/lib/mapping-list.js +79 -0
- package/node_modules/source-map/lib/quick-sort.js +114 -0
- package/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/node_modules/source-map/lib/source-node.js +413 -0
- package/node_modules/source-map/lib/util.js +488 -0
- package/node_modules/source-map/package.json +77 -0
- package/node_modules/source-map/source-map.d.ts +98 -0
- package/node_modules/source-map/source-map.js +8 -0
- package/node_modules/source-map-support/LICENSE.md +21 -0
- package/node_modules/source-map-support/README.md +284 -0
- package/node_modules/source-map-support/browser-source-map-support.js +113 -0
- package/node_modules/source-map-support/package.json +35 -0
- package/node_modules/source-map-support/register.js +1 -0
- package/node_modules/source-map-support/source-map-support.js +567 -0
- package/node_modules/string-width/index.js +39 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +60 -0
- package/node_modules/string-width/readme.md +45 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +38 -0
- package/node_modules/strip-ansi/index.d.ts +15 -0
- package/node_modules/strip-ansi/index.js +7 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +58 -0
- package/node_modules/strip-ansi/readme.md +61 -0
- package/node_modules/strip-eof/index.js +15 -0
- package/node_modules/strip-eof/license +21 -0
- package/node_modules/strip-eof/package.json +43 -0
- package/node_modules/strip-eof/readme.md +28 -0
- package/node_modules/strip-hex-prefix/.editorconfig +7 -0
- package/node_modules/strip-hex-prefix/.gitattributes +106 -0
- package/node_modules/strip-hex-prefix/.npmignore +8 -0
- package/node_modules/strip-hex-prefix/.travis.yml +5 -0
- package/node_modules/strip-hex-prefix/CHANGELOG.md +7 -0
- package/node_modules/strip-hex-prefix/LICENSE +21 -0
- package/node_modules/strip-hex-prefix/README.md +106 -0
- package/node_modules/strip-hex-prefix/package.json +46 -0
- package/node_modules/strip-hex-prefix/src/index.js +14 -0
- package/node_modules/strip-hex-prefix/src/tests/test.index.js +47 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +31 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +51 -0
- package/node_modules/which/bin/which +52 -0
- package/node_modules/which/package.json +34 -0
- package/node_modules/which/which.js +135 -0
- package/node_modules/which-module/LICENSE +13 -0
- package/node_modules/which-module/README.md +55 -0
- package/node_modules/which-module/index.js +9 -0
- package/node_modules/which-module/package.json +45 -0
- package/node_modules/wrap-ansi/index.js +188 -0
- package/node_modules/wrap-ansi/license +9 -0
- package/node_modules/wrap-ansi/package.json +65 -0
- package/node_modules/wrap-ansi/readme.md +108 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +33 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/y18n/LICENSE +13 -0
- package/node_modules/y18n/README.md +109 -0
- package/node_modules/y18n/index.js +188 -0
- package/node_modules/y18n/package.json +43 -0
- package/node_modules/yargs/LICENSE +22 -0
- package/node_modules/yargs/README.md +122 -0
- package/node_modules/yargs/index.js +32 -0
- package/node_modules/yargs/lib/apply-extends.js +53 -0
- package/node_modules/yargs/lib/argsert.js +68 -0
- package/node_modules/yargs/lib/command.js +437 -0
- package/node_modules/yargs/lib/completion-templates.js +49 -0
- package/node_modules/yargs/lib/completion.js +115 -0
- package/node_modules/yargs/lib/decamelize.js +32 -0
- package/node_modules/yargs/lib/is-promise.js +3 -0
- package/node_modules/yargs/lib/levenshtein.js +58 -0
- package/node_modules/yargs/lib/middleware.js +65 -0
- package/node_modules/yargs/lib/obj-filter.js +11 -0
- package/node_modules/yargs/lib/usage.js +540 -0
- package/node_modules/yargs/lib/validation.js +341 -0
- package/node_modules/yargs/lib/yerror.js +11 -0
- package/node_modules/yargs/locales/be.json +39 -0
- package/node_modules/yargs/locales/de.json +39 -0
- package/node_modules/yargs/locales/en.json +42 -0
- package/node_modules/yargs/locales/es.json +39 -0
- package/node_modules/yargs/locales/fr.json +37 -0
- package/node_modules/yargs/locales/hi.json +42 -0
- package/node_modules/yargs/locales/hu.json +39 -0
- package/node_modules/yargs/locales/id.json +43 -0
- package/node_modules/yargs/locales/it.json +39 -0
- package/node_modules/yargs/locales/ja.json +42 -0
- package/node_modules/yargs/locales/ko.json +42 -0
- package/node_modules/yargs/locales/nb.json +37 -0
- package/node_modules/yargs/locales/nl.json +42 -0
- package/node_modules/yargs/locales/nn.json +39 -0
- package/node_modules/yargs/locales/pirate.json +13 -0
- package/node_modules/yargs/locales/pl.json +42 -0
- package/node_modules/yargs/locales/pt.json +38 -0
- package/node_modules/yargs/locales/pt_BR.json +42 -0
- package/node_modules/yargs/locales/ru.json +39 -0
- package/node_modules/yargs/locales/th.json +39 -0
- package/node_modules/yargs/locales/tr.json +41 -0
- package/node_modules/yargs/locales/zh_CN.json +41 -0
- package/node_modules/yargs/locales/zh_TW.json +40 -0
- package/node_modules/yargs/package.json +83 -0
- package/node_modules/yargs/yargs.js +1205 -0
- package/node_modules/yargs-parser/LICENSE.txt +14 -0
- package/node_modules/yargs-parser/README.md +396 -0
- package/node_modules/yargs-parser/index.js +916 -0
- package/node_modules/yargs-parser/lib/tokenize-arg-string.js +40 -0
- package/node_modules/yargs-parser/package.json +51 -0
- package/package.json +73 -4
@@ -0,0 +1,777 @@
|
|
1
|
+
declare module "tls" {
|
2
|
+
import * as crypto from "crypto";
|
3
|
+
import * as dns from "dns";
|
4
|
+
import * as net from "net";
|
5
|
+
import * as stream from "stream";
|
6
|
+
|
7
|
+
const CLIENT_RENEG_LIMIT: number;
|
8
|
+
const CLIENT_RENEG_WINDOW: number;
|
9
|
+
|
10
|
+
interface Certificate {
|
11
|
+
/**
|
12
|
+
* Country code.
|
13
|
+
*/
|
14
|
+
C: string;
|
15
|
+
/**
|
16
|
+
* Street.
|
17
|
+
*/
|
18
|
+
ST: string;
|
19
|
+
/**
|
20
|
+
* Locality.
|
21
|
+
*/
|
22
|
+
L: string;
|
23
|
+
/**
|
24
|
+
* Organization.
|
25
|
+
*/
|
26
|
+
O: string;
|
27
|
+
/**
|
28
|
+
* Organizational unit.
|
29
|
+
*/
|
30
|
+
OU: string;
|
31
|
+
/**
|
32
|
+
* Common name.
|
33
|
+
*/
|
34
|
+
CN: string;
|
35
|
+
}
|
36
|
+
|
37
|
+
interface PeerCertificate {
|
38
|
+
subject: Certificate;
|
39
|
+
issuer: Certificate;
|
40
|
+
subjectaltname: string;
|
41
|
+
infoAccess: NodeJS.Dict<string[]>;
|
42
|
+
modulus: string;
|
43
|
+
exponent: string;
|
44
|
+
valid_from: string;
|
45
|
+
valid_to: string;
|
46
|
+
fingerprint: string;
|
47
|
+
fingerprint256: string;
|
48
|
+
ext_key_usage: string[];
|
49
|
+
serialNumber: string;
|
50
|
+
raw: Buffer;
|
51
|
+
}
|
52
|
+
|
53
|
+
interface DetailedPeerCertificate extends PeerCertificate {
|
54
|
+
issuerCertificate: DetailedPeerCertificate;
|
55
|
+
}
|
56
|
+
|
57
|
+
interface CipherNameAndProtocol {
|
58
|
+
/**
|
59
|
+
* The cipher name.
|
60
|
+
*/
|
61
|
+
name: string;
|
62
|
+
/**
|
63
|
+
* SSL/TLS protocol version.
|
64
|
+
*/
|
65
|
+
version: string;
|
66
|
+
|
67
|
+
/**
|
68
|
+
* IETF name for the cipher suite.
|
69
|
+
*/
|
70
|
+
standardName: string;
|
71
|
+
}
|
72
|
+
|
73
|
+
interface EphemeralKeyInfo {
|
74
|
+
/**
|
75
|
+
* The supported types are 'DH' and 'ECDH'.
|
76
|
+
*/
|
77
|
+
type: string;
|
78
|
+
/**
|
79
|
+
* The name property is available only when type is 'ECDH'.
|
80
|
+
*/
|
81
|
+
name?: string;
|
82
|
+
/**
|
83
|
+
* The size of parameter of an ephemeral key exchange.
|
84
|
+
*/
|
85
|
+
size: number;
|
86
|
+
}
|
87
|
+
|
88
|
+
interface KeyObject {
|
89
|
+
/**
|
90
|
+
* Private keys in PEM format.
|
91
|
+
*/
|
92
|
+
pem: string | Buffer;
|
93
|
+
/**
|
94
|
+
* Optional passphrase.
|
95
|
+
*/
|
96
|
+
passphrase?: string;
|
97
|
+
}
|
98
|
+
|
99
|
+
interface PxfObject {
|
100
|
+
/**
|
101
|
+
* PFX or PKCS12 encoded private key and certificate chain.
|
102
|
+
*/
|
103
|
+
buf: string | Buffer;
|
104
|
+
/**
|
105
|
+
* Optional passphrase.
|
106
|
+
*/
|
107
|
+
passphrase?: string;
|
108
|
+
}
|
109
|
+
|
110
|
+
interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions {
|
111
|
+
/**
|
112
|
+
* If true the TLS socket will be instantiated in server-mode.
|
113
|
+
* Defaults to false.
|
114
|
+
*/
|
115
|
+
isServer?: boolean;
|
116
|
+
/**
|
117
|
+
* An optional net.Server instance.
|
118
|
+
*/
|
119
|
+
server?: net.Server;
|
120
|
+
|
121
|
+
/**
|
122
|
+
* An optional Buffer instance containing a TLS session.
|
123
|
+
*/
|
124
|
+
session?: Buffer;
|
125
|
+
/**
|
126
|
+
* If true, specifies that the OCSP status request extension will be
|
127
|
+
* added to the client hello and an 'OCSPResponse' event will be
|
128
|
+
* emitted on the socket before establishing a secure communication
|
129
|
+
*/
|
130
|
+
requestOCSP?: boolean;
|
131
|
+
}
|
132
|
+
|
133
|
+
class TLSSocket extends net.Socket {
|
134
|
+
/**
|
135
|
+
* Construct a new tls.TLSSocket object from an existing TCP socket.
|
136
|
+
*/
|
137
|
+
constructor(socket: net.Socket, options?: TLSSocketOptions);
|
138
|
+
|
139
|
+
/**
|
140
|
+
* A boolean that is true if the peer certificate was signed by one of the specified CAs, otherwise false.
|
141
|
+
*/
|
142
|
+
authorized: boolean;
|
143
|
+
/**
|
144
|
+
* The reason why the peer's certificate has not been verified.
|
145
|
+
* This property becomes available only when tlsSocket.authorized === false.
|
146
|
+
*/
|
147
|
+
authorizationError: Error;
|
148
|
+
/**
|
149
|
+
* Static boolean value, always true.
|
150
|
+
* May be used to distinguish TLS sockets from regular ones.
|
151
|
+
*/
|
152
|
+
encrypted: boolean;
|
153
|
+
|
154
|
+
/**
|
155
|
+
* String containing the selected ALPN protocol.
|
156
|
+
* When ALPN has no selected protocol, tlsSocket.alpnProtocol equals false.
|
157
|
+
*/
|
158
|
+
alpnProtocol?: string;
|
159
|
+
|
160
|
+
/**
|
161
|
+
* Returns an object representing the local certificate. The returned
|
162
|
+
* object has some properties corresponding to the fields of the
|
163
|
+
* certificate.
|
164
|
+
*
|
165
|
+
* See tls.TLSSocket.getPeerCertificate() for an example of the
|
166
|
+
* certificate structure.
|
167
|
+
*
|
168
|
+
* If there is no local certificate, an empty object will be returned.
|
169
|
+
* If the socket has been destroyed, null will be returned.
|
170
|
+
*/
|
171
|
+
getCertificate(): PeerCertificate | object | null;
|
172
|
+
/**
|
173
|
+
* Returns an object representing the cipher name and the SSL/TLS protocol version of the current connection.
|
174
|
+
* @returns Returns an object representing the cipher name
|
175
|
+
* and the SSL/TLS protocol version of the current connection.
|
176
|
+
*/
|
177
|
+
getCipher(): CipherNameAndProtocol;
|
178
|
+
/**
|
179
|
+
* Returns an object representing the type, name, and size of parameter
|
180
|
+
* of an ephemeral key exchange in Perfect Forward Secrecy on a client
|
181
|
+
* connection. It returns an empty object when the key exchange is not
|
182
|
+
* ephemeral. As this is only supported on a client socket; null is
|
183
|
+
* returned if called on a server socket. The supported types are 'DH'
|
184
|
+
* and 'ECDH'. The name property is available only when type is 'ECDH'.
|
185
|
+
*
|
186
|
+
* For example: { type: 'ECDH', name: 'prime256v1', size: 256 }.
|
187
|
+
*/
|
188
|
+
getEphemeralKeyInfo(): EphemeralKeyInfo | object | null;
|
189
|
+
/**
|
190
|
+
* Returns the latest Finished message that has
|
191
|
+
* been sent to the socket as part of a SSL/TLS handshake, or undefined
|
192
|
+
* if no Finished message has been sent yet.
|
193
|
+
*
|
194
|
+
* As the Finished messages are message digests of the complete
|
195
|
+
* handshake (with a total of 192 bits for TLS 1.0 and more for SSL
|
196
|
+
* 3.0), they can be used for external authentication procedures when
|
197
|
+
* the authentication provided by SSL/TLS is not desired or is not
|
198
|
+
* enough.
|
199
|
+
*
|
200
|
+
* Corresponds to the SSL_get_finished routine in OpenSSL and may be
|
201
|
+
* used to implement the tls-unique channel binding from RFC 5929.
|
202
|
+
*/
|
203
|
+
getFinished(): Buffer | undefined;
|
204
|
+
/**
|
205
|
+
* Returns an object representing the peer's certificate.
|
206
|
+
* The returned object has some properties corresponding to the field of the certificate.
|
207
|
+
* If detailed argument is true the full chain with issuer property will be returned,
|
208
|
+
* if false only the top certificate without issuer property.
|
209
|
+
* If the peer does not provide a certificate, it returns null or an empty object.
|
210
|
+
* @param detailed - If true; the full chain with issuer property will be returned.
|
211
|
+
* @returns An object representing the peer's certificate.
|
212
|
+
*/
|
213
|
+
getPeerCertificate(detailed: true): DetailedPeerCertificate;
|
214
|
+
getPeerCertificate(detailed?: false): PeerCertificate;
|
215
|
+
getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate;
|
216
|
+
/**
|
217
|
+
* Returns the latest Finished message that is expected or has actually
|
218
|
+
* been received from the socket as part of a SSL/TLS handshake, or
|
219
|
+
* undefined if there is no Finished message so far.
|
220
|
+
*
|
221
|
+
* As the Finished messages are message digests of the complete
|
222
|
+
* handshake (with a total of 192 bits for TLS 1.0 and more for SSL
|
223
|
+
* 3.0), they can be used for external authentication procedures when
|
224
|
+
* the authentication provided by SSL/TLS is not desired or is not
|
225
|
+
* enough.
|
226
|
+
*
|
227
|
+
* Corresponds to the SSL_get_peer_finished routine in OpenSSL and may
|
228
|
+
* be used to implement the tls-unique channel binding from RFC 5929.
|
229
|
+
*/
|
230
|
+
getPeerFinished(): Buffer | undefined;
|
231
|
+
/**
|
232
|
+
* Returns a string containing the negotiated SSL/TLS protocol version of the current connection.
|
233
|
+
* The value `'unknown'` will be returned for connected sockets that have not completed the handshaking process.
|
234
|
+
* The value `null` will be returned for server sockets or disconnected client sockets.
|
235
|
+
* See https://www.openssl.org/docs/man1.0.2/ssl/SSL_get_version.html for more information.
|
236
|
+
* @returns negotiated SSL/TLS protocol version of the current connection
|
237
|
+
*/
|
238
|
+
getProtocol(): string | null;
|
239
|
+
/**
|
240
|
+
* Could be used to speed up handshake establishment when reconnecting to the server.
|
241
|
+
* @returns ASN.1 encoded TLS session or undefined if none was negotiated.
|
242
|
+
*/
|
243
|
+
getSession(): Buffer | undefined;
|
244
|
+
/**
|
245
|
+
* Returns a list of signature algorithms shared between the server and
|
246
|
+
* the client in the order of decreasing preference.
|
247
|
+
*/
|
248
|
+
getSharedSigalgs(): string[];
|
249
|
+
/**
|
250
|
+
* NOTE: Works only with client TLS sockets.
|
251
|
+
* Useful only for debugging, for session reuse provide session option to tls.connect().
|
252
|
+
* @returns TLS session ticket or undefined if none was negotiated.
|
253
|
+
*/
|
254
|
+
getTLSTicket(): Buffer | undefined;
|
255
|
+
/**
|
256
|
+
* Returns true if the session was reused, false otherwise.
|
257
|
+
*/
|
258
|
+
isSessionReused(): boolean;
|
259
|
+
/**
|
260
|
+
* Initiate TLS renegotiation process.
|
261
|
+
*
|
262
|
+
* NOTE: Can be used to request peer's certificate after the secure connection has been established.
|
263
|
+
* ANOTHER NOTE: When running as the server, socket will be destroyed with an error after handshakeTimeout timeout.
|
264
|
+
* @param options - The options may contain the following fields: rejectUnauthorized,
|
265
|
+
* requestCert (See tls.createServer() for details).
|
266
|
+
* @param callback - callback(err) will be executed with null as err, once the renegotiation
|
267
|
+
* is successfully completed.
|
268
|
+
* @return `undefined` when socket is destroy, `false` if negotiaion can't be initiated.
|
269
|
+
*/
|
270
|
+
renegotiate(options: { rejectUnauthorized?: boolean, requestCert?: boolean }, callback: (err: Error | null) => void): undefined | boolean;
|
271
|
+
/**
|
272
|
+
* Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512).
|
273
|
+
* Smaller fragment size decreases buffering latency on the client: large fragments are buffered by
|
274
|
+
* the TLS layer until the entire fragment is received and its integrity is verified;
|
275
|
+
* large fragments can span multiple roundtrips, and their processing can be delayed due to packet
|
276
|
+
* loss or reordering. However, smaller fragments add extra TLS framing bytes and CPU overhead,
|
277
|
+
* which may decrease overall server throughput.
|
278
|
+
* @param size - TLS fragment size (default and maximum value is: 16384, minimum is: 512).
|
279
|
+
* @returns Returns true on success, false otherwise.
|
280
|
+
*/
|
281
|
+
setMaxSendFragment(size: number): boolean;
|
282
|
+
|
283
|
+
/**
|
284
|
+
* Disables TLS renegotiation for this TLSSocket instance. Once called,
|
285
|
+
* attempts to renegotiate will trigger an 'error' event on the
|
286
|
+
* TLSSocket.
|
287
|
+
*/
|
288
|
+
disableRenegotiation(): void;
|
289
|
+
|
290
|
+
/**
|
291
|
+
* When enabled, TLS packet trace information is written to `stderr`. This can be
|
292
|
+
* used to debug TLS connection problems.
|
293
|
+
*
|
294
|
+
* Note: The format of the output is identical to the output of `openssl s_client
|
295
|
+
* -trace` or `openssl s_server -trace`. While it is produced by OpenSSL's
|
296
|
+
* `SSL_trace()` function, the format is undocumented, can change without notice,
|
297
|
+
* and should not be relied on.
|
298
|
+
*/
|
299
|
+
enableTrace(): void;
|
300
|
+
|
301
|
+
/**
|
302
|
+
* @param length number of bytes to retrieve from keying material
|
303
|
+
* @param label an application specific label, typically this will be a value from the
|
304
|
+
* [IANA Exporter Label Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels).
|
305
|
+
* @param context optionally provide a context.
|
306
|
+
*/
|
307
|
+
exportKeyingMaterial(length: number, label: string, context: Buffer): Buffer;
|
308
|
+
|
309
|
+
addListener(event: string, listener: (...args: any[]) => void): this;
|
310
|
+
addListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
|
311
|
+
addListener(event: "secureConnect", listener: () => void): this;
|
312
|
+
addListener(event: "session", listener: (session: Buffer) => void): this;
|
313
|
+
addListener(event: "keylog", listener: (line: Buffer) => void): this;
|
314
|
+
|
315
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
316
|
+
emit(event: "OCSPResponse", response: Buffer): boolean;
|
317
|
+
emit(event: "secureConnect"): boolean;
|
318
|
+
emit(event: "session", session: Buffer): boolean;
|
319
|
+
emit(event: "keylog", line: Buffer): boolean;
|
320
|
+
|
321
|
+
on(event: string, listener: (...args: any[]) => void): this;
|
322
|
+
on(event: "OCSPResponse", listener: (response: Buffer) => void): this;
|
323
|
+
on(event: "secureConnect", listener: () => void): this;
|
324
|
+
on(event: "session", listener: (session: Buffer) => void): this;
|
325
|
+
on(event: "keylog", listener: (line: Buffer) => void): this;
|
326
|
+
|
327
|
+
once(event: string, listener: (...args: any[]) => void): this;
|
328
|
+
once(event: "OCSPResponse", listener: (response: Buffer) => void): this;
|
329
|
+
once(event: "secureConnect", listener: () => void): this;
|
330
|
+
once(event: "session", listener: (session: Buffer) => void): this;
|
331
|
+
once(event: "keylog", listener: (line: Buffer) => void): this;
|
332
|
+
|
333
|
+
prependListener(event: string, listener: (...args: any[]) => void): this;
|
334
|
+
prependListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
|
335
|
+
prependListener(event: "secureConnect", listener: () => void): this;
|
336
|
+
prependListener(event: "session", listener: (session: Buffer) => void): this;
|
337
|
+
prependListener(event: "keylog", listener: (line: Buffer) => void): this;
|
338
|
+
|
339
|
+
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
340
|
+
prependOnceListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
|
341
|
+
prependOnceListener(event: "secureConnect", listener: () => void): this;
|
342
|
+
prependOnceListener(event: "session", listener: (session: Buffer) => void): this;
|
343
|
+
prependOnceListener(event: "keylog", listener: (line: Buffer) => void): this;
|
344
|
+
}
|
345
|
+
|
346
|
+
interface CommonConnectionOptions {
|
347
|
+
/**
|
348
|
+
* An optional TLS context object from tls.createSecureContext()
|
349
|
+
*/
|
350
|
+
secureContext?: SecureContext;
|
351
|
+
|
352
|
+
/**
|
353
|
+
* When enabled, TLS packet trace information is written to `stderr`. This can be
|
354
|
+
* used to debug TLS connection problems.
|
355
|
+
* @default false
|
356
|
+
*/
|
357
|
+
enableTrace?: boolean;
|
358
|
+
/**
|
359
|
+
* If true the server will request a certificate from clients that
|
360
|
+
* connect and attempt to verify that certificate. Defaults to
|
361
|
+
* false.
|
362
|
+
*/
|
363
|
+
requestCert?: boolean;
|
364
|
+
/**
|
365
|
+
* An array of strings or a Buffer naming possible ALPN protocols.
|
366
|
+
* (Protocols should be ordered by their priority.)
|
367
|
+
*/
|
368
|
+
ALPNProtocols?: string[] | Uint8Array[] | Uint8Array;
|
369
|
+
/**
|
370
|
+
* SNICallback(servername, cb) <Function> A function that will be
|
371
|
+
* called if the client supports SNI TLS extension. Two arguments
|
372
|
+
* will be passed when called: servername and cb. SNICallback should
|
373
|
+
* invoke cb(null, ctx), where ctx is a SecureContext instance.
|
374
|
+
* (tls.createSecureContext(...) can be used to get a proper
|
375
|
+
* SecureContext.) If SNICallback wasn't provided the default callback
|
376
|
+
* with high-level API will be used (see below).
|
377
|
+
*/
|
378
|
+
SNICallback?: (servername: string, cb: (err: Error | null, ctx: SecureContext) => void) => void;
|
379
|
+
/**
|
380
|
+
* If true the server will reject any connection which is not
|
381
|
+
* authorized with the list of supplied CAs. This option only has an
|
382
|
+
* effect if requestCert is true.
|
383
|
+
* @default true
|
384
|
+
*/
|
385
|
+
rejectUnauthorized?: boolean;
|
386
|
+
}
|
387
|
+
|
388
|
+
interface TlsOptions extends SecureContextOptions, CommonConnectionOptions {
|
389
|
+
/**
|
390
|
+
* Abort the connection if the SSL/TLS handshake does not finish in the
|
391
|
+
* specified number of milliseconds. A 'tlsClientError' is emitted on
|
392
|
+
* the tls.Server object whenever a handshake times out. Default:
|
393
|
+
* 120000 (120 seconds).
|
394
|
+
*/
|
395
|
+
handshakeTimeout?: number;
|
396
|
+
/**
|
397
|
+
* The number of seconds after which a TLS session created by the
|
398
|
+
* server will no longer be resumable. See Session Resumption for more
|
399
|
+
* information. Default: 300.
|
400
|
+
*/
|
401
|
+
sessionTimeout?: number;
|
402
|
+
/**
|
403
|
+
* 48-bytes of cryptographically strong pseudo-random data.
|
404
|
+
*/
|
405
|
+
ticketKeys?: Buffer;
|
406
|
+
|
407
|
+
/**
|
408
|
+
*
|
409
|
+
* @param socket
|
410
|
+
* @param identity identity parameter sent from the client.
|
411
|
+
* @return pre-shared key that must either be
|
412
|
+
* a buffer or `null` to stop the negotiation process. Returned PSK must be
|
413
|
+
* compatible with the selected cipher's digest.
|
414
|
+
*
|
415
|
+
* When negotiating TLS-PSK (pre-shared keys), this function is called
|
416
|
+
* with the identity provided by the client.
|
417
|
+
* If the return value is `null` the negotiation process will stop and an
|
418
|
+
* "unknown_psk_identity" alert message will be sent to the other party.
|
419
|
+
* If the server wishes to hide the fact that the PSK identity was not known,
|
420
|
+
* the callback must provide some random data as `psk` to make the connection
|
421
|
+
* fail with "decrypt_error" before negotiation is finished.
|
422
|
+
* PSK ciphers are disabled by default, and using TLS-PSK thus
|
423
|
+
* requires explicitly specifying a cipher suite with the `ciphers` option.
|
424
|
+
* More information can be found in the RFC 4279.
|
425
|
+
*/
|
426
|
+
|
427
|
+
pskCallback?(socket: TLSSocket, identity: string): DataView | NodeJS.TypedArray | null;
|
428
|
+
/**
|
429
|
+
* hint to send to a client to help
|
430
|
+
* with selecting the identity during TLS-PSK negotiation. Will be ignored
|
431
|
+
* in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be
|
432
|
+
* emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code.
|
433
|
+
*/
|
434
|
+
pskIdentityHint?: string;
|
435
|
+
}
|
436
|
+
|
437
|
+
interface PSKCallbackNegotation {
|
438
|
+
psk: DataView | NodeJS.TypedArray;
|
439
|
+
identitty: string;
|
440
|
+
}
|
441
|
+
|
442
|
+
interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions {
|
443
|
+
host?: string;
|
444
|
+
port?: number;
|
445
|
+
path?: string; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
|
446
|
+
socket?: net.Socket; // Establish secure connection on a given socket rather than creating a new socket
|
447
|
+
checkServerIdentity?: typeof checkServerIdentity;
|
448
|
+
servername?: string; // SNI TLS Extension
|
449
|
+
session?: Buffer;
|
450
|
+
minDHSize?: number;
|
451
|
+
lookup?: net.LookupFunction;
|
452
|
+
timeout?: number;
|
453
|
+
/**
|
454
|
+
* When negotiating TLS-PSK (pre-shared keys), this function is called
|
455
|
+
* with optional identity `hint` provided by the server or `null`
|
456
|
+
* in case of TLS 1.3 where `hint` was removed.
|
457
|
+
* It will be necessary to provide a custom `tls.checkServerIdentity()`
|
458
|
+
* for the connection as the default one will try to check hostname/IP
|
459
|
+
* of the server against the certificate but that's not applicable for PSK
|
460
|
+
* because there won't be a certificate present.
|
461
|
+
* More information can be found in the RFC 4279.
|
462
|
+
*
|
463
|
+
* @param hint message sent from the server to help client
|
464
|
+
* decide which identity to use during negotiation.
|
465
|
+
* Always `null` if TLS 1.3 is used.
|
466
|
+
* @returns Return `null` to stop the negotiation process. `psk` must be
|
467
|
+
* compatible with the selected cipher's digest.
|
468
|
+
* `identity` must use UTF-8 encoding.
|
469
|
+
*/
|
470
|
+
pskCallback?(hint: string | null): PSKCallbackNegotation | null;
|
471
|
+
}
|
472
|
+
|
473
|
+
class Server extends net.Server {
|
474
|
+
/**
|
475
|
+
* The server.addContext() method adds a secure context that will be
|
476
|
+
* used if the client request's SNI name matches the supplied hostname
|
477
|
+
* (or wildcard).
|
478
|
+
*/
|
479
|
+
addContext(hostName: string, credentials: SecureContextOptions): void;
|
480
|
+
/**
|
481
|
+
* Returns the session ticket keys.
|
482
|
+
*/
|
483
|
+
getTicketKeys(): Buffer;
|
484
|
+
/**
|
485
|
+
*
|
486
|
+
* The server.setSecureContext() method replaces the
|
487
|
+
* secure context of an existing server. Existing connections to the
|
488
|
+
* server are not interrupted.
|
489
|
+
*/
|
490
|
+
setSecureContext(details: SecureContextOptions): void;
|
491
|
+
/**
|
492
|
+
* The server.setSecureContext() method replaces the secure context of
|
493
|
+
* an existing server. Existing connections to the server are not
|
494
|
+
* interrupted.
|
495
|
+
*/
|
496
|
+
setTicketKeys(keys: Buffer): void;
|
497
|
+
|
498
|
+
/**
|
499
|
+
* events.EventEmitter
|
500
|
+
* 1. tlsClientError
|
501
|
+
* 2. newSession
|
502
|
+
* 3. OCSPRequest
|
503
|
+
* 4. resumeSession
|
504
|
+
* 5. secureConnection
|
505
|
+
* 6. keylog
|
506
|
+
*/
|
507
|
+
addListener(event: string, listener: (...args: any[]) => void): this;
|
508
|
+
addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
509
|
+
addListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
|
510
|
+
addListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
|
511
|
+
addListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
|
512
|
+
addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
513
|
+
addListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
|
514
|
+
|
515
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
516
|
+
emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
|
517
|
+
emit(event: "newSession", sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean;
|
518
|
+
emit(event: "OCSPRequest", certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean;
|
519
|
+
emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
|
520
|
+
emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
|
521
|
+
emit(event: "keylog", line: Buffer, tlsSocket: TLSSocket): boolean;
|
522
|
+
|
523
|
+
on(event: string, listener: (...args: any[]) => void): this;
|
524
|
+
on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
525
|
+
on(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
|
526
|
+
on(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
|
527
|
+
on(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
|
528
|
+
on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
529
|
+
on(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
|
530
|
+
|
531
|
+
once(event: string, listener: (...args: any[]) => void): this;
|
532
|
+
once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
533
|
+
once(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
|
534
|
+
once(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
|
535
|
+
once(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
|
536
|
+
once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
537
|
+
once(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
|
538
|
+
|
539
|
+
prependListener(event: string, listener: (...args: any[]) => void): this;
|
540
|
+
prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
541
|
+
prependListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
|
542
|
+
prependListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
|
543
|
+
prependListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
|
544
|
+
prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
545
|
+
prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
|
546
|
+
|
547
|
+
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
548
|
+
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
549
|
+
prependOnceListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
|
550
|
+
prependOnceListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
|
551
|
+
prependOnceListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
|
552
|
+
prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
553
|
+
prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
|
554
|
+
}
|
555
|
+
|
556
|
+
interface SecurePair {
|
557
|
+
encrypted: TLSSocket;
|
558
|
+
cleartext: TLSSocket;
|
559
|
+
}
|
560
|
+
|
561
|
+
type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1';
|
562
|
+
|
563
|
+
interface SecureContextOptions {
|
564
|
+
/**
|
565
|
+
* Optionally override the trusted CA certificates. Default is to trust
|
566
|
+
* the well-known CAs curated by Mozilla. Mozilla's CAs are completely
|
567
|
+
* replaced when CAs are explicitly specified using this option.
|
568
|
+
*/
|
569
|
+
ca?: string | Buffer | Array<string | Buffer>;
|
570
|
+
/**
|
571
|
+
* Cert chains in PEM format. One cert chain should be provided per
|
572
|
+
* private key. Each cert chain should consist of the PEM formatted
|
573
|
+
* certificate for a provided private key, followed by the PEM
|
574
|
+
* formatted intermediate certificates (if any), in order, and not
|
575
|
+
* including the root CA (the root CA must be pre-known to the peer,
|
576
|
+
* see ca). When providing multiple cert chains, they do not have to
|
577
|
+
* be in the same order as their private keys in key. If the
|
578
|
+
* intermediate certificates are not provided, the peer will not be
|
579
|
+
* able to validate the certificate, and the handshake will fail.
|
580
|
+
*/
|
581
|
+
cert?: string | Buffer | Array<string | Buffer>;
|
582
|
+
/**
|
583
|
+
* Colon-separated list of supported signature algorithms. The list
|
584
|
+
* can contain digest algorithms (SHA256, MD5 etc.), public key
|
585
|
+
* algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g
|
586
|
+
* 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512).
|
587
|
+
*/
|
588
|
+
sigalgs?: string;
|
589
|
+
/**
|
590
|
+
* Cipher suite specification, replacing the default. For more
|
591
|
+
* information, see modifying the default cipher suite. Permitted
|
592
|
+
* ciphers can be obtained via tls.getCiphers(). Cipher names must be
|
593
|
+
* uppercased in order for OpenSSL to accept them.
|
594
|
+
*/
|
595
|
+
ciphers?: string;
|
596
|
+
/**
|
597
|
+
* Name of an OpenSSL engine which can provide the client certificate.
|
598
|
+
*/
|
599
|
+
clientCertEngine?: string;
|
600
|
+
/**
|
601
|
+
* PEM formatted CRLs (Certificate Revocation Lists).
|
602
|
+
*/
|
603
|
+
crl?: string | Buffer | Array<string | Buffer>;
|
604
|
+
/**
|
605
|
+
* Diffie Hellman parameters, required for Perfect Forward Secrecy. Use
|
606
|
+
* openssl dhparam to create the parameters. The key length must be
|
607
|
+
* greater than or equal to 1024 bits or else an error will be thrown.
|
608
|
+
* Although 1024 bits is permissible, use 2048 bits or larger for
|
609
|
+
* stronger security. If omitted or invalid, the parameters are
|
610
|
+
* silently discarded and DHE ciphers will not be available.
|
611
|
+
*/
|
612
|
+
dhparam?: string | Buffer;
|
613
|
+
/**
|
614
|
+
* A string describing a named curve or a colon separated list of curve
|
615
|
+
* NIDs or names, for example P-521:P-384:P-256, to use for ECDH key
|
616
|
+
* agreement. Set to auto to select the curve automatically. Use
|
617
|
+
* crypto.getCurves() to obtain a list of available curve names. On
|
618
|
+
* recent releases, openssl ecparam -list_curves will also display the
|
619
|
+
* name and description of each available elliptic curve. Default:
|
620
|
+
* tls.DEFAULT_ECDH_CURVE.
|
621
|
+
*/
|
622
|
+
ecdhCurve?: string;
|
623
|
+
/**
|
624
|
+
* Attempt to use the server's cipher suite preferences instead of the
|
625
|
+
* client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be
|
626
|
+
* set in secureOptions
|
627
|
+
*/
|
628
|
+
honorCipherOrder?: boolean;
|
629
|
+
/**
|
630
|
+
* Private keys in PEM format. PEM allows the option of private keys
|
631
|
+
* being encrypted. Encrypted keys will be decrypted with
|
632
|
+
* options.passphrase. Multiple keys using different algorithms can be
|
633
|
+
* provided either as an array of unencrypted key strings or buffers,
|
634
|
+
* or an array of objects in the form {pem: <string|buffer>[,
|
635
|
+
* passphrase: <string>]}. The object form can only occur in an array.
|
636
|
+
* object.passphrase is optional. Encrypted keys will be decrypted with
|
637
|
+
* object.passphrase if provided, or options.passphrase if it is not.
|
638
|
+
*/
|
639
|
+
key?: string | Buffer | Array<Buffer | KeyObject>;
|
640
|
+
/**
|
641
|
+
* Name of an OpenSSL engine to get private key from. Should be used
|
642
|
+
* together with privateKeyIdentifier.
|
643
|
+
*/
|
644
|
+
privateKeyEngine?: string;
|
645
|
+
/**
|
646
|
+
* Identifier of a private key managed by an OpenSSL engine. Should be
|
647
|
+
* used together with privateKeyEngine. Should not be set together with
|
648
|
+
* key, because both options define a private key in different ways.
|
649
|
+
*/
|
650
|
+
privateKeyIdentifier?: string;
|
651
|
+
/**
|
652
|
+
* Optionally set the maximum TLS version to allow. One
|
653
|
+
* of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
|
654
|
+
* `secureProtocol` option, use one or the other.
|
655
|
+
* **Default:** `'TLSv1.3'`, unless changed using CLI options. Using
|
656
|
+
* `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to
|
657
|
+
* `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used.
|
658
|
+
*/
|
659
|
+
maxVersion?: SecureVersion;
|
660
|
+
/**
|
661
|
+
* Optionally set the minimum TLS version to allow. One
|
662
|
+
* of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
|
663
|
+
* `secureProtocol` option, use one or the other. It is not recommended to use
|
664
|
+
* less than TLSv1.2, but it may be required for interoperability.
|
665
|
+
* **Default:** `'TLSv1.2'`, unless changed using CLI options. Using
|
666
|
+
* `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to
|
667
|
+
* `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to
|
668
|
+
* 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used.
|
669
|
+
*/
|
670
|
+
minVersion?: SecureVersion;
|
671
|
+
/**
|
672
|
+
* Shared passphrase used for a single private key and/or a PFX.
|
673
|
+
*/
|
674
|
+
passphrase?: string;
|
675
|
+
/**
|
676
|
+
* PFX or PKCS12 encoded private key and certificate chain. pfx is an
|
677
|
+
* alternative to providing key and cert individually. PFX is usually
|
678
|
+
* encrypted, if it is, passphrase will be used to decrypt it. Multiple
|
679
|
+
* PFX can be provided either as an array of unencrypted PFX buffers,
|
680
|
+
* or an array of objects in the form {buf: <string|buffer>[,
|
681
|
+
* passphrase: <string>]}. The object form can only occur in an array.
|
682
|
+
* object.passphrase is optional. Encrypted PFX will be decrypted with
|
683
|
+
* object.passphrase if provided, or options.passphrase if it is not.
|
684
|
+
*/
|
685
|
+
pfx?: string | Buffer | Array<string | Buffer | PxfObject>;
|
686
|
+
/**
|
687
|
+
* Optionally affect the OpenSSL protocol behavior, which is not
|
688
|
+
* usually necessary. This should be used carefully if at all! Value is
|
689
|
+
* a numeric bitmask of the SSL_OP_* options from OpenSSL Options
|
690
|
+
*/
|
691
|
+
secureOptions?: number; // Value is a numeric bitmask of the `SSL_OP_*` options
|
692
|
+
/**
|
693
|
+
* Legacy mechanism to select the TLS protocol version to use, it does
|
694
|
+
* not support independent control of the minimum and maximum version,
|
695
|
+
* and does not support limiting the protocol to TLSv1.3. Use
|
696
|
+
* minVersion and maxVersion instead. The possible values are listed as
|
697
|
+
* SSL_METHODS, use the function names as strings. For example, use
|
698
|
+
* 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow
|
699
|
+
* any TLS protocol version up to TLSv1.3. It is not recommended to use
|
700
|
+
* TLS versions less than 1.2, but it may be required for
|
701
|
+
* interoperability. Default: none, see minVersion.
|
702
|
+
*/
|
703
|
+
secureProtocol?: string;
|
704
|
+
/**
|
705
|
+
* Opaque identifier used by servers to ensure session state is not
|
706
|
+
* shared between applications. Unused by clients.
|
707
|
+
*/
|
708
|
+
sessionIdContext?: string;
|
709
|
+
/**
|
710
|
+
* 48 bytes of cryptographically strong pseudo-random data.
|
711
|
+
*/
|
712
|
+
ticketKeys?: Buffer;
|
713
|
+
/**
|
714
|
+
* The number of seconds after which a TLS session created by the server
|
715
|
+
* will no longer be resumable.
|
716
|
+
*/
|
717
|
+
sessionTimeout?: number;
|
718
|
+
}
|
719
|
+
|
720
|
+
interface SecureContext {
|
721
|
+
context: any;
|
722
|
+
}
|
723
|
+
|
724
|
+
/*
|
725
|
+
* Verifies the certificate `cert` is issued to host `host`.
|
726
|
+
* @host The hostname to verify the certificate against
|
727
|
+
* @cert PeerCertificate representing the peer's certificate
|
728
|
+
*
|
729
|
+
* Returns Error object, populating it with the reason, host and cert on failure. On success, returns undefined.
|
730
|
+
*/
|
731
|
+
function checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined;
|
732
|
+
function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server;
|
733
|
+
function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
|
734
|
+
function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
735
|
+
function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
736
|
+
function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
737
|
+
/**
|
738
|
+
* @deprecated since v0.11.3 Use `tls.TLSSocket` instead.
|
739
|
+
*/
|
740
|
+
function createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
|
741
|
+
function createSecureContext(details: SecureContextOptions): SecureContext;
|
742
|
+
function getCiphers(): string[];
|
743
|
+
|
744
|
+
/**
|
745
|
+
* The default curve name to use for ECDH key agreement in a tls server.
|
746
|
+
* The default value is 'auto'. See tls.createSecureContext() for further
|
747
|
+
* information.
|
748
|
+
*/
|
749
|
+
let DEFAULT_ECDH_CURVE: string;
|
750
|
+
/**
|
751
|
+
* The default value of the maxVersion option of
|
752
|
+
* tls.createSecureContext(). It can be assigned any of the supported TLS
|
753
|
+
* protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default:
|
754
|
+
* 'TLSv1.3', unless changed using CLI options. Using --tls-max-v1.2 sets
|
755
|
+
* the default to 'TLSv1.2'. Using --tls-max-v1.3 sets the default to
|
756
|
+
* 'TLSv1.3'. If multiple of the options are provided, the highest maximum
|
757
|
+
* is used.
|
758
|
+
*/
|
759
|
+
let DEFAULT_MAX_VERSION: SecureVersion;
|
760
|
+
/**
|
761
|
+
* The default value of the minVersion option of tls.createSecureContext().
|
762
|
+
* It can be assigned any of the supported TLS protocol versions,
|
763
|
+
* 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.2', unless
|
764
|
+
* changed using CLI options. Using --tls-min-v1.0 sets the default to
|
765
|
+
* 'TLSv1'. Using --tls-min-v1.1 sets the default to 'TLSv1.1'. Using
|
766
|
+
* --tls-min-v1.3 sets the default to 'TLSv1.3'. If multiple of the options
|
767
|
+
* are provided, the lowest minimum is used.
|
768
|
+
*/
|
769
|
+
let DEFAULT_MIN_VERSION: SecureVersion;
|
770
|
+
|
771
|
+
/**
|
772
|
+
* An immutable array of strings representing the root certificates (in PEM
|
773
|
+
* format) used for verifying peer certificates. This is the default value
|
774
|
+
* of the ca option to tls.createSecureContext().
|
775
|
+
*/
|
776
|
+
const rootCertificates: ReadonlyArray<string>;
|
777
|
+
}
|