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,868 @@
|
|
1
|
+
/* MIT license */
|
2
|
+
var cssKeywords = require('color-name');
|
3
|
+
|
4
|
+
// NOTE: conversions should only return primitive values (i.e. arrays, or
|
5
|
+
// values that give correct `typeof` results).
|
6
|
+
// do not use box values types (i.e. Number(), String(), etc.)
|
7
|
+
|
8
|
+
var reverseKeywords = {};
|
9
|
+
for (var key in cssKeywords) {
|
10
|
+
if (cssKeywords.hasOwnProperty(key)) {
|
11
|
+
reverseKeywords[cssKeywords[key]] = key;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
var convert = module.exports = {
|
16
|
+
rgb: {channels: 3, labels: 'rgb'},
|
17
|
+
hsl: {channels: 3, labels: 'hsl'},
|
18
|
+
hsv: {channels: 3, labels: 'hsv'},
|
19
|
+
hwb: {channels: 3, labels: 'hwb'},
|
20
|
+
cmyk: {channels: 4, labels: 'cmyk'},
|
21
|
+
xyz: {channels: 3, labels: 'xyz'},
|
22
|
+
lab: {channels: 3, labels: 'lab'},
|
23
|
+
lch: {channels: 3, labels: 'lch'},
|
24
|
+
hex: {channels: 1, labels: ['hex']},
|
25
|
+
keyword: {channels: 1, labels: ['keyword']},
|
26
|
+
ansi16: {channels: 1, labels: ['ansi16']},
|
27
|
+
ansi256: {channels: 1, labels: ['ansi256']},
|
28
|
+
hcg: {channels: 3, labels: ['h', 'c', 'g']},
|
29
|
+
apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
|
30
|
+
gray: {channels: 1, labels: ['gray']}
|
31
|
+
};
|
32
|
+
|
33
|
+
// hide .channels and .labels properties
|
34
|
+
for (var model in convert) {
|
35
|
+
if (convert.hasOwnProperty(model)) {
|
36
|
+
if (!('channels' in convert[model])) {
|
37
|
+
throw new Error('missing channels property: ' + model);
|
38
|
+
}
|
39
|
+
|
40
|
+
if (!('labels' in convert[model])) {
|
41
|
+
throw new Error('missing channel labels property: ' + model);
|
42
|
+
}
|
43
|
+
|
44
|
+
if (convert[model].labels.length !== convert[model].channels) {
|
45
|
+
throw new Error('channel and label counts mismatch: ' + model);
|
46
|
+
}
|
47
|
+
|
48
|
+
var channels = convert[model].channels;
|
49
|
+
var labels = convert[model].labels;
|
50
|
+
delete convert[model].channels;
|
51
|
+
delete convert[model].labels;
|
52
|
+
Object.defineProperty(convert[model], 'channels', {value: channels});
|
53
|
+
Object.defineProperty(convert[model], 'labels', {value: labels});
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
convert.rgb.hsl = function (rgb) {
|
58
|
+
var r = rgb[0] / 255;
|
59
|
+
var g = rgb[1] / 255;
|
60
|
+
var b = rgb[2] / 255;
|
61
|
+
var min = Math.min(r, g, b);
|
62
|
+
var max = Math.max(r, g, b);
|
63
|
+
var delta = max - min;
|
64
|
+
var h;
|
65
|
+
var s;
|
66
|
+
var l;
|
67
|
+
|
68
|
+
if (max === min) {
|
69
|
+
h = 0;
|
70
|
+
} else if (r === max) {
|
71
|
+
h = (g - b) / delta;
|
72
|
+
} else if (g === max) {
|
73
|
+
h = 2 + (b - r) / delta;
|
74
|
+
} else if (b === max) {
|
75
|
+
h = 4 + (r - g) / delta;
|
76
|
+
}
|
77
|
+
|
78
|
+
h = Math.min(h * 60, 360);
|
79
|
+
|
80
|
+
if (h < 0) {
|
81
|
+
h += 360;
|
82
|
+
}
|
83
|
+
|
84
|
+
l = (min + max) / 2;
|
85
|
+
|
86
|
+
if (max === min) {
|
87
|
+
s = 0;
|
88
|
+
} else if (l <= 0.5) {
|
89
|
+
s = delta / (max + min);
|
90
|
+
} else {
|
91
|
+
s = delta / (2 - max - min);
|
92
|
+
}
|
93
|
+
|
94
|
+
return [h, s * 100, l * 100];
|
95
|
+
};
|
96
|
+
|
97
|
+
convert.rgb.hsv = function (rgb) {
|
98
|
+
var rdif;
|
99
|
+
var gdif;
|
100
|
+
var bdif;
|
101
|
+
var h;
|
102
|
+
var s;
|
103
|
+
|
104
|
+
var r = rgb[0] / 255;
|
105
|
+
var g = rgb[1] / 255;
|
106
|
+
var b = rgb[2] / 255;
|
107
|
+
var v = Math.max(r, g, b);
|
108
|
+
var diff = v - Math.min(r, g, b);
|
109
|
+
var diffc = function (c) {
|
110
|
+
return (v - c) / 6 / diff + 1 / 2;
|
111
|
+
};
|
112
|
+
|
113
|
+
if (diff === 0) {
|
114
|
+
h = s = 0;
|
115
|
+
} else {
|
116
|
+
s = diff / v;
|
117
|
+
rdif = diffc(r);
|
118
|
+
gdif = diffc(g);
|
119
|
+
bdif = diffc(b);
|
120
|
+
|
121
|
+
if (r === v) {
|
122
|
+
h = bdif - gdif;
|
123
|
+
} else if (g === v) {
|
124
|
+
h = (1 / 3) + rdif - bdif;
|
125
|
+
} else if (b === v) {
|
126
|
+
h = (2 / 3) + gdif - rdif;
|
127
|
+
}
|
128
|
+
if (h < 0) {
|
129
|
+
h += 1;
|
130
|
+
} else if (h > 1) {
|
131
|
+
h -= 1;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
return [
|
136
|
+
h * 360,
|
137
|
+
s * 100,
|
138
|
+
v * 100
|
139
|
+
];
|
140
|
+
};
|
141
|
+
|
142
|
+
convert.rgb.hwb = function (rgb) {
|
143
|
+
var r = rgb[0];
|
144
|
+
var g = rgb[1];
|
145
|
+
var b = rgb[2];
|
146
|
+
var h = convert.rgb.hsl(rgb)[0];
|
147
|
+
var w = 1 / 255 * Math.min(r, Math.min(g, b));
|
148
|
+
|
149
|
+
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
150
|
+
|
151
|
+
return [h, w * 100, b * 100];
|
152
|
+
};
|
153
|
+
|
154
|
+
convert.rgb.cmyk = function (rgb) {
|
155
|
+
var r = rgb[0] / 255;
|
156
|
+
var g = rgb[1] / 255;
|
157
|
+
var b = rgb[2] / 255;
|
158
|
+
var c;
|
159
|
+
var m;
|
160
|
+
var y;
|
161
|
+
var k;
|
162
|
+
|
163
|
+
k = Math.min(1 - r, 1 - g, 1 - b);
|
164
|
+
c = (1 - r - k) / (1 - k) || 0;
|
165
|
+
m = (1 - g - k) / (1 - k) || 0;
|
166
|
+
y = (1 - b - k) / (1 - k) || 0;
|
167
|
+
|
168
|
+
return [c * 100, m * 100, y * 100, k * 100];
|
169
|
+
};
|
170
|
+
|
171
|
+
/**
|
172
|
+
* See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
|
173
|
+
* */
|
174
|
+
function comparativeDistance(x, y) {
|
175
|
+
return (
|
176
|
+
Math.pow(x[0] - y[0], 2) +
|
177
|
+
Math.pow(x[1] - y[1], 2) +
|
178
|
+
Math.pow(x[2] - y[2], 2)
|
179
|
+
);
|
180
|
+
}
|
181
|
+
|
182
|
+
convert.rgb.keyword = function (rgb) {
|
183
|
+
var reversed = reverseKeywords[rgb];
|
184
|
+
if (reversed) {
|
185
|
+
return reversed;
|
186
|
+
}
|
187
|
+
|
188
|
+
var currentClosestDistance = Infinity;
|
189
|
+
var currentClosestKeyword;
|
190
|
+
|
191
|
+
for (var keyword in cssKeywords) {
|
192
|
+
if (cssKeywords.hasOwnProperty(keyword)) {
|
193
|
+
var value = cssKeywords[keyword];
|
194
|
+
|
195
|
+
// Compute comparative distance
|
196
|
+
var distance = comparativeDistance(rgb, value);
|
197
|
+
|
198
|
+
// Check if its less, if so set as closest
|
199
|
+
if (distance < currentClosestDistance) {
|
200
|
+
currentClosestDistance = distance;
|
201
|
+
currentClosestKeyword = keyword;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
return currentClosestKeyword;
|
207
|
+
};
|
208
|
+
|
209
|
+
convert.keyword.rgb = function (keyword) {
|
210
|
+
return cssKeywords[keyword];
|
211
|
+
};
|
212
|
+
|
213
|
+
convert.rgb.xyz = function (rgb) {
|
214
|
+
var r = rgb[0] / 255;
|
215
|
+
var g = rgb[1] / 255;
|
216
|
+
var b = rgb[2] / 255;
|
217
|
+
|
218
|
+
// assume sRGB
|
219
|
+
r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);
|
220
|
+
g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);
|
221
|
+
b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);
|
222
|
+
|
223
|
+
var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
|
224
|
+
var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
|
225
|
+
var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
|
226
|
+
|
227
|
+
return [x * 100, y * 100, z * 100];
|
228
|
+
};
|
229
|
+
|
230
|
+
convert.rgb.lab = function (rgb) {
|
231
|
+
var xyz = convert.rgb.xyz(rgb);
|
232
|
+
var x = xyz[0];
|
233
|
+
var y = xyz[1];
|
234
|
+
var z = xyz[2];
|
235
|
+
var l;
|
236
|
+
var a;
|
237
|
+
var b;
|
238
|
+
|
239
|
+
x /= 95.047;
|
240
|
+
y /= 100;
|
241
|
+
z /= 108.883;
|
242
|
+
|
243
|
+
x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
|
244
|
+
y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
|
245
|
+
z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
|
246
|
+
|
247
|
+
l = (116 * y) - 16;
|
248
|
+
a = 500 * (x - y);
|
249
|
+
b = 200 * (y - z);
|
250
|
+
|
251
|
+
return [l, a, b];
|
252
|
+
};
|
253
|
+
|
254
|
+
convert.hsl.rgb = function (hsl) {
|
255
|
+
var h = hsl[0] / 360;
|
256
|
+
var s = hsl[1] / 100;
|
257
|
+
var l = hsl[2] / 100;
|
258
|
+
var t1;
|
259
|
+
var t2;
|
260
|
+
var t3;
|
261
|
+
var rgb;
|
262
|
+
var val;
|
263
|
+
|
264
|
+
if (s === 0) {
|
265
|
+
val = l * 255;
|
266
|
+
return [val, val, val];
|
267
|
+
}
|
268
|
+
|
269
|
+
if (l < 0.5) {
|
270
|
+
t2 = l * (1 + s);
|
271
|
+
} else {
|
272
|
+
t2 = l + s - l * s;
|
273
|
+
}
|
274
|
+
|
275
|
+
t1 = 2 * l - t2;
|
276
|
+
|
277
|
+
rgb = [0, 0, 0];
|
278
|
+
for (var i = 0; i < 3; i++) {
|
279
|
+
t3 = h + 1 / 3 * -(i - 1);
|
280
|
+
if (t3 < 0) {
|
281
|
+
t3++;
|
282
|
+
}
|
283
|
+
if (t3 > 1) {
|
284
|
+
t3--;
|
285
|
+
}
|
286
|
+
|
287
|
+
if (6 * t3 < 1) {
|
288
|
+
val = t1 + (t2 - t1) * 6 * t3;
|
289
|
+
} else if (2 * t3 < 1) {
|
290
|
+
val = t2;
|
291
|
+
} else if (3 * t3 < 2) {
|
292
|
+
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
293
|
+
} else {
|
294
|
+
val = t1;
|
295
|
+
}
|
296
|
+
|
297
|
+
rgb[i] = val * 255;
|
298
|
+
}
|
299
|
+
|
300
|
+
return rgb;
|
301
|
+
};
|
302
|
+
|
303
|
+
convert.hsl.hsv = function (hsl) {
|
304
|
+
var h = hsl[0];
|
305
|
+
var s = hsl[1] / 100;
|
306
|
+
var l = hsl[2] / 100;
|
307
|
+
var smin = s;
|
308
|
+
var lmin = Math.max(l, 0.01);
|
309
|
+
var sv;
|
310
|
+
var v;
|
311
|
+
|
312
|
+
l *= 2;
|
313
|
+
s *= (l <= 1) ? l : 2 - l;
|
314
|
+
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
315
|
+
v = (l + s) / 2;
|
316
|
+
sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
|
317
|
+
|
318
|
+
return [h, sv * 100, v * 100];
|
319
|
+
};
|
320
|
+
|
321
|
+
convert.hsv.rgb = function (hsv) {
|
322
|
+
var h = hsv[0] / 60;
|
323
|
+
var s = hsv[1] / 100;
|
324
|
+
var v = hsv[2] / 100;
|
325
|
+
var hi = Math.floor(h) % 6;
|
326
|
+
|
327
|
+
var f = h - Math.floor(h);
|
328
|
+
var p = 255 * v * (1 - s);
|
329
|
+
var q = 255 * v * (1 - (s * f));
|
330
|
+
var t = 255 * v * (1 - (s * (1 - f)));
|
331
|
+
v *= 255;
|
332
|
+
|
333
|
+
switch (hi) {
|
334
|
+
case 0:
|
335
|
+
return [v, t, p];
|
336
|
+
case 1:
|
337
|
+
return [q, v, p];
|
338
|
+
case 2:
|
339
|
+
return [p, v, t];
|
340
|
+
case 3:
|
341
|
+
return [p, q, v];
|
342
|
+
case 4:
|
343
|
+
return [t, p, v];
|
344
|
+
case 5:
|
345
|
+
return [v, p, q];
|
346
|
+
}
|
347
|
+
};
|
348
|
+
|
349
|
+
convert.hsv.hsl = function (hsv) {
|
350
|
+
var h = hsv[0];
|
351
|
+
var s = hsv[1] / 100;
|
352
|
+
var v = hsv[2] / 100;
|
353
|
+
var vmin = Math.max(v, 0.01);
|
354
|
+
var lmin;
|
355
|
+
var sl;
|
356
|
+
var l;
|
357
|
+
|
358
|
+
l = (2 - s) * v;
|
359
|
+
lmin = (2 - s) * vmin;
|
360
|
+
sl = s * vmin;
|
361
|
+
sl /= (lmin <= 1) ? lmin : 2 - lmin;
|
362
|
+
sl = sl || 0;
|
363
|
+
l /= 2;
|
364
|
+
|
365
|
+
return [h, sl * 100, l * 100];
|
366
|
+
};
|
367
|
+
|
368
|
+
// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
|
369
|
+
convert.hwb.rgb = function (hwb) {
|
370
|
+
var h = hwb[0] / 360;
|
371
|
+
var wh = hwb[1] / 100;
|
372
|
+
var bl = hwb[2] / 100;
|
373
|
+
var ratio = wh + bl;
|
374
|
+
var i;
|
375
|
+
var v;
|
376
|
+
var f;
|
377
|
+
var n;
|
378
|
+
|
379
|
+
// wh + bl cant be > 1
|
380
|
+
if (ratio > 1) {
|
381
|
+
wh /= ratio;
|
382
|
+
bl /= ratio;
|
383
|
+
}
|
384
|
+
|
385
|
+
i = Math.floor(6 * h);
|
386
|
+
v = 1 - bl;
|
387
|
+
f = 6 * h - i;
|
388
|
+
|
389
|
+
if ((i & 0x01) !== 0) {
|
390
|
+
f = 1 - f;
|
391
|
+
}
|
392
|
+
|
393
|
+
n = wh + f * (v - wh); // linear interpolation
|
394
|
+
|
395
|
+
var r;
|
396
|
+
var g;
|
397
|
+
var b;
|
398
|
+
switch (i) {
|
399
|
+
default:
|
400
|
+
case 6:
|
401
|
+
case 0: r = v; g = n; b = wh; break;
|
402
|
+
case 1: r = n; g = v; b = wh; break;
|
403
|
+
case 2: r = wh; g = v; b = n; break;
|
404
|
+
case 3: r = wh; g = n; b = v; break;
|
405
|
+
case 4: r = n; g = wh; b = v; break;
|
406
|
+
case 5: r = v; g = wh; b = n; break;
|
407
|
+
}
|
408
|
+
|
409
|
+
return [r * 255, g * 255, b * 255];
|
410
|
+
};
|
411
|
+
|
412
|
+
convert.cmyk.rgb = function (cmyk) {
|
413
|
+
var c = cmyk[0] / 100;
|
414
|
+
var m = cmyk[1] / 100;
|
415
|
+
var y = cmyk[2] / 100;
|
416
|
+
var k = cmyk[3] / 100;
|
417
|
+
var r;
|
418
|
+
var g;
|
419
|
+
var b;
|
420
|
+
|
421
|
+
r = 1 - Math.min(1, c * (1 - k) + k);
|
422
|
+
g = 1 - Math.min(1, m * (1 - k) + k);
|
423
|
+
b = 1 - Math.min(1, y * (1 - k) + k);
|
424
|
+
|
425
|
+
return [r * 255, g * 255, b * 255];
|
426
|
+
};
|
427
|
+
|
428
|
+
convert.xyz.rgb = function (xyz) {
|
429
|
+
var x = xyz[0] / 100;
|
430
|
+
var y = xyz[1] / 100;
|
431
|
+
var z = xyz[2] / 100;
|
432
|
+
var r;
|
433
|
+
var g;
|
434
|
+
var b;
|
435
|
+
|
436
|
+
r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
|
437
|
+
g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
|
438
|
+
b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
|
439
|
+
|
440
|
+
// assume sRGB
|
441
|
+
r = r > 0.0031308
|
442
|
+
? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)
|
443
|
+
: r * 12.92;
|
444
|
+
|
445
|
+
g = g > 0.0031308
|
446
|
+
? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)
|
447
|
+
: g * 12.92;
|
448
|
+
|
449
|
+
b = b > 0.0031308
|
450
|
+
? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)
|
451
|
+
: b * 12.92;
|
452
|
+
|
453
|
+
r = Math.min(Math.max(0, r), 1);
|
454
|
+
g = Math.min(Math.max(0, g), 1);
|
455
|
+
b = Math.min(Math.max(0, b), 1);
|
456
|
+
|
457
|
+
return [r * 255, g * 255, b * 255];
|
458
|
+
};
|
459
|
+
|
460
|
+
convert.xyz.lab = function (xyz) {
|
461
|
+
var x = xyz[0];
|
462
|
+
var y = xyz[1];
|
463
|
+
var z = xyz[2];
|
464
|
+
var l;
|
465
|
+
var a;
|
466
|
+
var b;
|
467
|
+
|
468
|
+
x /= 95.047;
|
469
|
+
y /= 100;
|
470
|
+
z /= 108.883;
|
471
|
+
|
472
|
+
x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
|
473
|
+
y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
|
474
|
+
z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
|
475
|
+
|
476
|
+
l = (116 * y) - 16;
|
477
|
+
a = 500 * (x - y);
|
478
|
+
b = 200 * (y - z);
|
479
|
+
|
480
|
+
return [l, a, b];
|
481
|
+
};
|
482
|
+
|
483
|
+
convert.lab.xyz = function (lab) {
|
484
|
+
var l = lab[0];
|
485
|
+
var a = lab[1];
|
486
|
+
var b = lab[2];
|
487
|
+
var x;
|
488
|
+
var y;
|
489
|
+
var z;
|
490
|
+
|
491
|
+
y = (l + 16) / 116;
|
492
|
+
x = a / 500 + y;
|
493
|
+
z = y - b / 200;
|
494
|
+
|
495
|
+
var y2 = Math.pow(y, 3);
|
496
|
+
var x2 = Math.pow(x, 3);
|
497
|
+
var z2 = Math.pow(z, 3);
|
498
|
+
y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
|
499
|
+
x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
|
500
|
+
z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
|
501
|
+
|
502
|
+
x *= 95.047;
|
503
|
+
y *= 100;
|
504
|
+
z *= 108.883;
|
505
|
+
|
506
|
+
return [x, y, z];
|
507
|
+
};
|
508
|
+
|
509
|
+
convert.lab.lch = function (lab) {
|
510
|
+
var l = lab[0];
|
511
|
+
var a = lab[1];
|
512
|
+
var b = lab[2];
|
513
|
+
var hr;
|
514
|
+
var h;
|
515
|
+
var c;
|
516
|
+
|
517
|
+
hr = Math.atan2(b, a);
|
518
|
+
h = hr * 360 / 2 / Math.PI;
|
519
|
+
|
520
|
+
if (h < 0) {
|
521
|
+
h += 360;
|
522
|
+
}
|
523
|
+
|
524
|
+
c = Math.sqrt(a * a + b * b);
|
525
|
+
|
526
|
+
return [l, c, h];
|
527
|
+
};
|
528
|
+
|
529
|
+
convert.lch.lab = function (lch) {
|
530
|
+
var l = lch[0];
|
531
|
+
var c = lch[1];
|
532
|
+
var h = lch[2];
|
533
|
+
var a;
|
534
|
+
var b;
|
535
|
+
var hr;
|
536
|
+
|
537
|
+
hr = h / 360 * 2 * Math.PI;
|
538
|
+
a = c * Math.cos(hr);
|
539
|
+
b = c * Math.sin(hr);
|
540
|
+
|
541
|
+
return [l, a, b];
|
542
|
+
};
|
543
|
+
|
544
|
+
convert.rgb.ansi16 = function (args) {
|
545
|
+
var r = args[0];
|
546
|
+
var g = args[1];
|
547
|
+
var b = args[2];
|
548
|
+
var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization
|
549
|
+
|
550
|
+
value = Math.round(value / 50);
|
551
|
+
|
552
|
+
if (value === 0) {
|
553
|
+
return 30;
|
554
|
+
}
|
555
|
+
|
556
|
+
var ansi = 30
|
557
|
+
+ ((Math.round(b / 255) << 2)
|
558
|
+
| (Math.round(g / 255) << 1)
|
559
|
+
| Math.round(r / 255));
|
560
|
+
|
561
|
+
if (value === 2) {
|
562
|
+
ansi += 60;
|
563
|
+
}
|
564
|
+
|
565
|
+
return ansi;
|
566
|
+
};
|
567
|
+
|
568
|
+
convert.hsv.ansi16 = function (args) {
|
569
|
+
// optimization here; we already know the value and don't need to get
|
570
|
+
// it converted for us.
|
571
|
+
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
572
|
+
};
|
573
|
+
|
574
|
+
convert.rgb.ansi256 = function (args) {
|
575
|
+
var r = args[0];
|
576
|
+
var g = args[1];
|
577
|
+
var b = args[2];
|
578
|
+
|
579
|
+
// we use the extended greyscale palette here, with the exception of
|
580
|
+
// black and white. normal palette only has 4 greyscale shades.
|
581
|
+
if (r === g && g === b) {
|
582
|
+
if (r < 8) {
|
583
|
+
return 16;
|
584
|
+
}
|
585
|
+
|
586
|
+
if (r > 248) {
|
587
|
+
return 231;
|
588
|
+
}
|
589
|
+
|
590
|
+
return Math.round(((r - 8) / 247) * 24) + 232;
|
591
|
+
}
|
592
|
+
|
593
|
+
var ansi = 16
|
594
|
+
+ (36 * Math.round(r / 255 * 5))
|
595
|
+
+ (6 * Math.round(g / 255 * 5))
|
596
|
+
+ Math.round(b / 255 * 5);
|
597
|
+
|
598
|
+
return ansi;
|
599
|
+
};
|
600
|
+
|
601
|
+
convert.ansi16.rgb = function (args) {
|
602
|
+
var color = args % 10;
|
603
|
+
|
604
|
+
// handle greyscale
|
605
|
+
if (color === 0 || color === 7) {
|
606
|
+
if (args > 50) {
|
607
|
+
color += 3.5;
|
608
|
+
}
|
609
|
+
|
610
|
+
color = color / 10.5 * 255;
|
611
|
+
|
612
|
+
return [color, color, color];
|
613
|
+
}
|
614
|
+
|
615
|
+
var mult = (~~(args > 50) + 1) * 0.5;
|
616
|
+
var r = ((color & 1) * mult) * 255;
|
617
|
+
var g = (((color >> 1) & 1) * mult) * 255;
|
618
|
+
var b = (((color >> 2) & 1) * mult) * 255;
|
619
|
+
|
620
|
+
return [r, g, b];
|
621
|
+
};
|
622
|
+
|
623
|
+
convert.ansi256.rgb = function (args) {
|
624
|
+
// handle greyscale
|
625
|
+
if (args >= 232) {
|
626
|
+
var c = (args - 232) * 10 + 8;
|
627
|
+
return [c, c, c];
|
628
|
+
}
|
629
|
+
|
630
|
+
args -= 16;
|
631
|
+
|
632
|
+
var rem;
|
633
|
+
var r = Math.floor(args / 36) / 5 * 255;
|
634
|
+
var g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
635
|
+
var b = (rem % 6) / 5 * 255;
|
636
|
+
|
637
|
+
return [r, g, b];
|
638
|
+
};
|
639
|
+
|
640
|
+
convert.rgb.hex = function (args) {
|
641
|
+
var integer = ((Math.round(args[0]) & 0xFF) << 16)
|
642
|
+
+ ((Math.round(args[1]) & 0xFF) << 8)
|
643
|
+
+ (Math.round(args[2]) & 0xFF);
|
644
|
+
|
645
|
+
var string = integer.toString(16).toUpperCase();
|
646
|
+
return '000000'.substring(string.length) + string;
|
647
|
+
};
|
648
|
+
|
649
|
+
convert.hex.rgb = function (args) {
|
650
|
+
var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
651
|
+
if (!match) {
|
652
|
+
return [0, 0, 0];
|
653
|
+
}
|
654
|
+
|
655
|
+
var colorString = match[0];
|
656
|
+
|
657
|
+
if (match[0].length === 3) {
|
658
|
+
colorString = colorString.split('').map(function (char) {
|
659
|
+
return char + char;
|
660
|
+
}).join('');
|
661
|
+
}
|
662
|
+
|
663
|
+
var integer = parseInt(colorString, 16);
|
664
|
+
var r = (integer >> 16) & 0xFF;
|
665
|
+
var g = (integer >> 8) & 0xFF;
|
666
|
+
var b = integer & 0xFF;
|
667
|
+
|
668
|
+
return [r, g, b];
|
669
|
+
};
|
670
|
+
|
671
|
+
convert.rgb.hcg = function (rgb) {
|
672
|
+
var r = rgb[0] / 255;
|
673
|
+
var g = rgb[1] / 255;
|
674
|
+
var b = rgb[2] / 255;
|
675
|
+
var max = Math.max(Math.max(r, g), b);
|
676
|
+
var min = Math.min(Math.min(r, g), b);
|
677
|
+
var chroma = (max - min);
|
678
|
+
var grayscale;
|
679
|
+
var hue;
|
680
|
+
|
681
|
+
if (chroma < 1) {
|
682
|
+
grayscale = min / (1 - chroma);
|
683
|
+
} else {
|
684
|
+
grayscale = 0;
|
685
|
+
}
|
686
|
+
|
687
|
+
if (chroma <= 0) {
|
688
|
+
hue = 0;
|
689
|
+
} else
|
690
|
+
if (max === r) {
|
691
|
+
hue = ((g - b) / chroma) % 6;
|
692
|
+
} else
|
693
|
+
if (max === g) {
|
694
|
+
hue = 2 + (b - r) / chroma;
|
695
|
+
} else {
|
696
|
+
hue = 4 + (r - g) / chroma + 4;
|
697
|
+
}
|
698
|
+
|
699
|
+
hue /= 6;
|
700
|
+
hue %= 1;
|
701
|
+
|
702
|
+
return [hue * 360, chroma * 100, grayscale * 100];
|
703
|
+
};
|
704
|
+
|
705
|
+
convert.hsl.hcg = function (hsl) {
|
706
|
+
var s = hsl[1] / 100;
|
707
|
+
var l = hsl[2] / 100;
|
708
|
+
var c = 1;
|
709
|
+
var f = 0;
|
710
|
+
|
711
|
+
if (l < 0.5) {
|
712
|
+
c = 2.0 * s * l;
|
713
|
+
} else {
|
714
|
+
c = 2.0 * s * (1.0 - l);
|
715
|
+
}
|
716
|
+
|
717
|
+
if (c < 1.0) {
|
718
|
+
f = (l - 0.5 * c) / (1.0 - c);
|
719
|
+
}
|
720
|
+
|
721
|
+
return [hsl[0], c * 100, f * 100];
|
722
|
+
};
|
723
|
+
|
724
|
+
convert.hsv.hcg = function (hsv) {
|
725
|
+
var s = hsv[1] / 100;
|
726
|
+
var v = hsv[2] / 100;
|
727
|
+
|
728
|
+
var c = s * v;
|
729
|
+
var f = 0;
|
730
|
+
|
731
|
+
if (c < 1.0) {
|
732
|
+
f = (v - c) / (1 - c);
|
733
|
+
}
|
734
|
+
|
735
|
+
return [hsv[0], c * 100, f * 100];
|
736
|
+
};
|
737
|
+
|
738
|
+
convert.hcg.rgb = function (hcg) {
|
739
|
+
var h = hcg[0] / 360;
|
740
|
+
var c = hcg[1] / 100;
|
741
|
+
var g = hcg[2] / 100;
|
742
|
+
|
743
|
+
if (c === 0.0) {
|
744
|
+
return [g * 255, g * 255, g * 255];
|
745
|
+
}
|
746
|
+
|
747
|
+
var pure = [0, 0, 0];
|
748
|
+
var hi = (h % 1) * 6;
|
749
|
+
var v = hi % 1;
|
750
|
+
var w = 1 - v;
|
751
|
+
var mg = 0;
|
752
|
+
|
753
|
+
switch (Math.floor(hi)) {
|
754
|
+
case 0:
|
755
|
+
pure[0] = 1; pure[1] = v; pure[2] = 0; break;
|
756
|
+
case 1:
|
757
|
+
pure[0] = w; pure[1] = 1; pure[2] = 0; break;
|
758
|
+
case 2:
|
759
|
+
pure[0] = 0; pure[1] = 1; pure[2] = v; break;
|
760
|
+
case 3:
|
761
|
+
pure[0] = 0; pure[1] = w; pure[2] = 1; break;
|
762
|
+
case 4:
|
763
|
+
pure[0] = v; pure[1] = 0; pure[2] = 1; break;
|
764
|
+
default:
|
765
|
+
pure[0] = 1; pure[1] = 0; pure[2] = w;
|
766
|
+
}
|
767
|
+
|
768
|
+
mg = (1.0 - c) * g;
|
769
|
+
|
770
|
+
return [
|
771
|
+
(c * pure[0] + mg) * 255,
|
772
|
+
(c * pure[1] + mg) * 255,
|
773
|
+
(c * pure[2] + mg) * 255
|
774
|
+
];
|
775
|
+
};
|
776
|
+
|
777
|
+
convert.hcg.hsv = function (hcg) {
|
778
|
+
var c = hcg[1] / 100;
|
779
|
+
var g = hcg[2] / 100;
|
780
|
+
|
781
|
+
var v = c + g * (1.0 - c);
|
782
|
+
var f = 0;
|
783
|
+
|
784
|
+
if (v > 0.0) {
|
785
|
+
f = c / v;
|
786
|
+
}
|
787
|
+
|
788
|
+
return [hcg[0], f * 100, v * 100];
|
789
|
+
};
|
790
|
+
|
791
|
+
convert.hcg.hsl = function (hcg) {
|
792
|
+
var c = hcg[1] / 100;
|
793
|
+
var g = hcg[2] / 100;
|
794
|
+
|
795
|
+
var l = g * (1.0 - c) + 0.5 * c;
|
796
|
+
var s = 0;
|
797
|
+
|
798
|
+
if (l > 0.0 && l < 0.5) {
|
799
|
+
s = c / (2 * l);
|
800
|
+
} else
|
801
|
+
if (l >= 0.5 && l < 1.0) {
|
802
|
+
s = c / (2 * (1 - l));
|
803
|
+
}
|
804
|
+
|
805
|
+
return [hcg[0], s * 100, l * 100];
|
806
|
+
};
|
807
|
+
|
808
|
+
convert.hcg.hwb = function (hcg) {
|
809
|
+
var c = hcg[1] / 100;
|
810
|
+
var g = hcg[2] / 100;
|
811
|
+
var v = c + g * (1.0 - c);
|
812
|
+
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
813
|
+
};
|
814
|
+
|
815
|
+
convert.hwb.hcg = function (hwb) {
|
816
|
+
var w = hwb[1] / 100;
|
817
|
+
var b = hwb[2] / 100;
|
818
|
+
var v = 1 - b;
|
819
|
+
var c = v - w;
|
820
|
+
var g = 0;
|
821
|
+
|
822
|
+
if (c < 1) {
|
823
|
+
g = (v - c) / (1 - c);
|
824
|
+
}
|
825
|
+
|
826
|
+
return [hwb[0], c * 100, g * 100];
|
827
|
+
};
|
828
|
+
|
829
|
+
convert.apple.rgb = function (apple) {
|
830
|
+
return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
|
831
|
+
};
|
832
|
+
|
833
|
+
convert.rgb.apple = function (rgb) {
|
834
|
+
return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
|
835
|
+
};
|
836
|
+
|
837
|
+
convert.gray.rgb = function (args) {
|
838
|
+
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
839
|
+
};
|
840
|
+
|
841
|
+
convert.gray.hsl = convert.gray.hsv = function (args) {
|
842
|
+
return [0, 0, args[0]];
|
843
|
+
};
|
844
|
+
|
845
|
+
convert.gray.hwb = function (gray) {
|
846
|
+
return [0, 100, gray[0]];
|
847
|
+
};
|
848
|
+
|
849
|
+
convert.gray.cmyk = function (gray) {
|
850
|
+
return [0, 0, 0, gray[0]];
|
851
|
+
};
|
852
|
+
|
853
|
+
convert.gray.lab = function (gray) {
|
854
|
+
return [gray[0], 0, 0];
|
855
|
+
};
|
856
|
+
|
857
|
+
convert.gray.hex = function (gray) {
|
858
|
+
var val = Math.round(gray[0] / 100 * 255) & 0xFF;
|
859
|
+
var integer = (val << 16) + (val << 8) + val;
|
860
|
+
|
861
|
+
var string = integer.toString(16).toUpperCase();
|
862
|
+
return '000000'.substring(string.length) + string;
|
863
|
+
};
|
864
|
+
|
865
|
+
convert.rgb.gray = function (rgb) {
|
866
|
+
var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
867
|
+
return [val / 255 * 100];
|
868
|
+
};
|