wiki-plugin-allyabase 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +165 -0
- package/client/allyabase.js +58 -0
- package/factory.json +5 -0
- package/package.json +31 -0
- package/server/contracts.js +256 -0
- package/server/feeds.js +27 -0
- package/server/inventory.js +82 -0
- package/server/server.js +13 -0
- package/test/node_modules/.bin/_mocha +10 -0
- package/test/node_modules/.bin/flat +42 -0
- package/test/node_modules/.bin/glob +270 -0
- package/test/node_modules/.bin/he +148 -0
- package/test/node_modules/.bin/js-yaml +126 -0
- package/test/node_modules/.bin/mime +46 -0
- package/test/node_modules/.bin/mocha +142 -0
- package/test/node_modules/.bin/node-which +52 -0
- package/test/node_modules/.bin/uuid +2 -0
- package/test/node_modules/.package-lock.json +1984 -0
- package/test/node_modules/@isaacs/cliui/LICENSE.txt +14 -0
- package/test/node_modules/@isaacs/cliui/README.md +143 -0
- package/test/node_modules/@isaacs/cliui/build/index.cjs +317 -0
- package/test/node_modules/@isaacs/cliui/build/index.d.cts +43 -0
- package/test/node_modules/@isaacs/cliui/build/lib/index.js +302 -0
- package/test/node_modules/@isaacs/cliui/index.mjs +14 -0
- package/test/node_modules/@isaacs/cliui/package.json +86 -0
- package/test/node_modules/@noble/curves/LICENSE +21 -0
- package/test/node_modules/@noble/curves/README.md +1031 -0
- package/test/node_modules/@noble/curves/_shortw_utils.d.ts +62 -0
- package/test/node_modules/@noble/curves/_shortw_utils.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/_shortw_utils.js +21 -0
- package/test/node_modules/@noble/curves/_shortw_utils.js.map +1 -0
- package/test/node_modules/@noble/curves/abstract/bls.d.ts +122 -0
- package/test/node_modules/@noble/curves/abstract/bls.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/abstract/bls.js +288 -0
- package/test/node_modules/@noble/curves/abstract/bls.js.map +1 -0
- package/test/node_modules/@noble/curves/abstract/curve.d.ts +70 -0
- package/test/node_modules/@noble/curves/abstract/curve.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/abstract/curve.js +160 -0
- package/test/node_modules/@noble/curves/abstract/curve.js.map +1 -0
- package/test/node_modules/@noble/curves/abstract/edwards.d.ts +89 -0
- package/test/node_modules/@noble/curves/abstract/edwards.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/abstract/edwards.js +428 -0
- package/test/node_modules/@noble/curves/abstract/edwards.js.map +1 -0
- package/test/node_modules/@noble/curves/abstract/hash-to-curve.d.ts +58 -0
- package/test/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/abstract/hash-to-curve.js +180 -0
- package/test/node_modules/@noble/curves/abstract/hash-to-curve.js.map +1 -0
- package/test/node_modules/@noble/curves/abstract/modular.d.ts +123 -0
- package/test/node_modules/@noble/curves/abstract/modular.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/abstract/modular.js +439 -0
- package/test/node_modules/@noble/curves/abstract/modular.js.map +1 -0
- package/test/node_modules/@noble/curves/abstract/montgomery.d.ts +26 -0
- package/test/node_modules/@noble/curves/abstract/montgomery.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/abstract/montgomery.js +158 -0
- package/test/node_modules/@noble/curves/abstract/montgomery.js.map +1 -0
- package/test/node_modules/@noble/curves/abstract/poseidon.d.ts +30 -0
- package/test/node_modules/@noble/curves/abstract/poseidon.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/abstract/poseidon.js +113 -0
- package/test/node_modules/@noble/curves/abstract/poseidon.js.map +1 -0
- package/test/node_modules/@noble/curves/abstract/utils.d.ts +94 -0
- package/test/node_modules/@noble/curves/abstract/utils.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/abstract/utils.js +313 -0
- package/test/node_modules/@noble/curves/abstract/utils.js.map +1 -0
- package/test/node_modules/@noble/curves/abstract/weierstrass.d.ts +236 -0
- package/test/node_modules/@noble/curves/abstract/weierstrass.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/abstract/weierstrass.js +1069 -0
- package/test/node_modules/@noble/curves/abstract/weierstrass.js.map +1 -0
- package/test/node_modules/@noble/curves/bls12-381.d.ts +67 -0
- package/test/node_modules/@noble/curves/bls12-381.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/bls12-381.js +1232 -0
- package/test/node_modules/@noble/curves/bls12-381.js.map +1 -0
- package/test/node_modules/@noble/curves/bn254.d.ts +9 -0
- package/test/node_modules/@noble/curves/bn254.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/bn254.js +26 -0
- package/test/node_modules/@noble/curves/bn254.js.map +1 -0
- package/test/node_modules/@noble/curves/ed25519.d.ts +78 -0
- package/test/node_modules/@noble/curves/ed25519.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/ed25519.js +446 -0
- package/test/node_modules/@noble/curves/ed25519.js.map +1 -0
- package/test/node_modules/@noble/curves/ed448.d.ts +67 -0
- package/test/node_modules/@noble/curves/ed448.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/ed448.js +406 -0
- package/test/node_modules/@noble/curves/ed448.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/_shortw_utils.d.ts +62 -0
- package/test/node_modules/@noble/curves/esm/_shortw_utils.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/_shortw_utils.js +17 -0
- package/test/node_modules/@noble/curves/esm/_shortw_utils.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/bls.d.ts +122 -0
- package/test/node_modules/@noble/curves/esm/abstract/bls.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/bls.js +285 -0
- package/test/node_modules/@noble/curves/esm/abstract/bls.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/curve.d.ts +70 -0
- package/test/node_modules/@noble/curves/esm/abstract/curve.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/curve.js +156 -0
- package/test/node_modules/@noble/curves/esm/abstract/curve.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/edwards.d.ts +89 -0
- package/test/node_modules/@noble/curves/esm/abstract/edwards.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/edwards.js +425 -0
- package/test/node_modules/@noble/curves/esm/abstract/edwards.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts +58 -0
- package/test/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/hash-to-curve.js +173 -0
- package/test/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/modular.d.ts +123 -0
- package/test/node_modules/@noble/curves/esm/abstract/modular.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/modular.js +416 -0
- package/test/node_modules/@noble/curves/esm/abstract/modular.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/montgomery.d.ts +26 -0
- package/test/node_modules/@noble/curves/esm/abstract/montgomery.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/montgomery.js +155 -0
- package/test/node_modules/@noble/curves/esm/abstract/montgomery.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/poseidon.d.ts +30 -0
- package/test/node_modules/@noble/curves/esm/abstract/poseidon.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/poseidon.js +108 -0
- package/test/node_modules/@noble/curves/esm/abstract/poseidon.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/utils.d.ts +94 -0
- package/test/node_modules/@noble/curves/esm/abstract/utils.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/utils.js +289 -0
- package/test/node_modules/@noble/curves/esm/abstract/utils.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts +236 -0
- package/test/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/abstract/weierstrass.js +1062 -0
- package/test/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/bls12-381.d.ts +67 -0
- package/test/node_modules/@noble/curves/esm/bls12-381.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/bls12-381.js +1229 -0
- package/test/node_modules/@noble/curves/esm/bls12-381.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/bn254.d.ts +9 -0
- package/test/node_modules/@noble/curves/esm/bn254.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/bn254.js +23 -0
- package/test/node_modules/@noble/curves/esm/bn254.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/ed25519.d.ts +78 -0
- package/test/node_modules/@noble/curves/esm/ed25519.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/ed25519.js +440 -0
- package/test/node_modules/@noble/curves/esm/ed25519.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/ed448.d.ts +67 -0
- package/test/node_modules/@noble/curves/esm/ed448.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/ed448.js +401 -0
- package/test/node_modules/@noble/curves/esm/ed448.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/index.d.ts +2 -0
- package/test/node_modules/@noble/curves/esm/index.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/index.js +3 -0
- package/test/node_modules/@noble/curves/esm/index.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/jubjub.d.ts +9 -0
- package/test/node_modules/@noble/curves/esm/jubjub.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/jubjub.js +54 -0
- package/test/node_modules/@noble/curves/esm/jubjub.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/p256.d.ts +105 -0
- package/test/node_modules/@noble/curves/esm/p256.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/p256.js +42 -0
- package/test/node_modules/@noble/curves/esm/p256.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/p384.d.ts +105 -0
- package/test/node_modules/@noble/curves/esm/p384.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/p384.js +46 -0
- package/test/node_modules/@noble/curves/esm/p384.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/p521.d.ts +105 -0
- package/test/node_modules/@noble/curves/esm/p521.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/p521.js +53 -0
- package/test/node_modules/@noble/curves/esm/p521.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/package.json +4 -0
- package/test/node_modules/@noble/curves/esm/pasta.d.ts +5 -0
- package/test/node_modules/@noble/curves/esm/pasta.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/pasta.js +30 -0
- package/test/node_modules/@noble/curves/esm/pasta.js.map +1 -0
- package/test/node_modules/@noble/curves/esm/secp256k1.d.ts +93 -0
- package/test/node_modules/@noble/curves/esm/secp256k1.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/esm/secp256k1.js +254 -0
- package/test/node_modules/@noble/curves/esm/secp256k1.js.map +1 -0
- package/test/node_modules/@noble/curves/index.d.ts +1 -0
- package/test/node_modules/@noble/curves/index.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/index.js +3 -0
- package/test/node_modules/@noble/curves/index.js.map +1 -0
- package/test/node_modules/@noble/curves/jubjub.d.ts +9 -0
- package/test/node_modules/@noble/curves/jubjub.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/jubjub.js +59 -0
- package/test/node_modules/@noble/curves/jubjub.js.map +1 -0
- package/test/node_modules/@noble/curves/p256.d.ts +105 -0
- package/test/node_modules/@noble/curves/p256.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/p256.js +45 -0
- package/test/node_modules/@noble/curves/p256.js.map +1 -0
- package/test/node_modules/@noble/curves/p384.d.ts +105 -0
- package/test/node_modules/@noble/curves/p384.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/p384.js +49 -0
- package/test/node_modules/@noble/curves/p384.js.map +1 -0
- package/test/node_modules/@noble/curves/p521.d.ts +105 -0
- package/test/node_modules/@noble/curves/p521.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/p521.js +56 -0
- package/test/node_modules/@noble/curves/p521.js.map +1 -0
- package/test/node_modules/@noble/curves/package.json +159 -0
- package/test/node_modules/@noble/curves/pasta.d.ts +5 -0
- package/test/node_modules/@noble/curves/pasta.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/pasta.js +33 -0
- package/test/node_modules/@noble/curves/pasta.js.map +1 -0
- package/test/node_modules/@noble/curves/secp256k1.d.ts +93 -0
- package/test/node_modules/@noble/curves/secp256k1.d.ts.map +1 -0
- package/test/node_modules/@noble/curves/secp256k1.js +257 -0
- package/test/node_modules/@noble/curves/secp256k1.js.map +1 -0
- package/test/node_modules/@noble/curves/src/_shortw_utils.ts +20 -0
- package/test/node_modules/@noble/curves/src/abstract/bls.ts +502 -0
- package/test/node_modules/@noble/curves/src/abstract/curve.ts +203 -0
- package/test/node_modules/@noble/curves/src/abstract/edwards.ts +514 -0
- package/test/node_modules/@noble/curves/src/abstract/hash-to-curve.ts +231 -0
- package/test/node_modules/@noble/curves/src/abstract/modular.ts +484 -0
- package/test/node_modules/@noble/curves/src/abstract/montgomery.ts +187 -0
- package/test/node_modules/@noble/curves/src/abstract/poseidon.ts +118 -0
- package/test/node_modules/@noble/curves/src/abstract/utils.ts +319 -0
- package/test/node_modules/@noble/curves/src/abstract/weierstrass.ts +1237 -0
- package/test/node_modules/@noble/curves/src/bls12-381.ts +1410 -0
- package/test/node_modules/@noble/curves/src/bn254.ts +22 -0
- package/test/node_modules/@noble/curves/src/ed25519.ts +505 -0
- package/test/node_modules/@noble/curves/src/ed448.ts +480 -0
- package/test/node_modules/@noble/curves/src/index.ts +1 -0
- package/test/node_modules/@noble/curves/src/jubjub.ts +58 -0
- package/test/node_modules/@noble/curves/src/p256.ts +48 -0
- package/test/node_modules/@noble/curves/src/p384.ts +52 -0
- package/test/node_modules/@noble/curves/src/p521.ts +68 -0
- package/test/node_modules/@noble/curves/src/package.json +3 -0
- package/test/node_modules/@noble/curves/src/pasta.ts +31 -0
- package/test/node_modules/@noble/curves/src/secp256k1.ts +274 -0
- package/test/node_modules/@noble/hashes/LICENSE +21 -0
- package/test/node_modules/@noble/hashes/README.md +558 -0
- package/test/node_modules/@noble/hashes/_assert.d.ts +24 -0
- package/test/node_modules/@noble/hashes/_assert.js +51 -0
- package/test/node_modules/@noble/hashes/_assert.js.map +1 -0
- package/test/node_modules/@noble/hashes/_blake.d.ts +28 -0
- package/test/node_modules/@noble/hashes/_blake.js +124 -0
- package/test/node_modules/@noble/hashes/_blake.js.map +1 -0
- package/test/node_modules/@noble/hashes/_md.d.ts +30 -0
- package/test/node_modules/@noble/hashes/_md.js +128 -0
- package/test/node_modules/@noble/hashes/_md.js.map +1 -0
- package/test/node_modules/@noble/hashes/_u64.d.ts +55 -0
- package/test/node_modules/@noble/hashes/_u64.js +85 -0
- package/test/node_modules/@noble/hashes/_u64.js.map +1 -0
- package/test/node_modules/@noble/hashes/argon2.d.ts +17 -0
- package/test/node_modules/@noble/hashes/argon2.js +303 -0
- package/test/node_modules/@noble/hashes/argon2.js.map +1 -0
- package/test/node_modules/@noble/hashes/blake2b.d.ts +54 -0
- package/test/node_modules/@noble/hashes/blake2b.js +192 -0
- package/test/node_modules/@noble/hashes/blake2b.js.map +1 -0
- package/test/node_modules/@noble/hashes/blake2s.d.ts +48 -0
- package/test/node_modules/@noble/hashes/blake2s.js +123 -0
- package/test/node_modules/@noble/hashes/blake2s.js.map +1 -0
- package/test/node_modules/@noble/hashes/blake3.d.ts +47 -0
- package/test/node_modules/@noble/hashes/blake3.js +243 -0
- package/test/node_modules/@noble/hashes/blake3.js.map +1 -0
- package/test/node_modules/@noble/hashes/crypto.d.ts +2 -0
- package/test/node_modules/@noble/hashes/crypto.js +5 -0
- package/test/node_modules/@noble/hashes/crypto.js.map +1 -0
- package/test/node_modules/@noble/hashes/cryptoNode.d.ts +2 -0
- package/test/node_modules/@noble/hashes/cryptoNode.js +10 -0
- package/test/node_modules/@noble/hashes/cryptoNode.js.map +1 -0
- package/test/node_modules/@noble/hashes/eskdf.d.ts +47 -0
- package/test/node_modules/@noble/hashes/eskdf.js +162 -0
- package/test/node_modules/@noble/hashes/eskdf.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/_assert.js +42 -0
- package/test/node_modules/@noble/hashes/esm/_assert.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/_blake.js +120 -0
- package/test/node_modules/@noble/hashes/esm/_blake.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/_md.js +122 -0
- package/test/node_modules/@noble/hashes/esm/_md.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/_u64.js +62 -0
- package/test/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/argon2.js +297 -0
- package/test/node_modules/@noble/hashes/esm/argon2.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/blake2b.js +189 -0
- package/test/node_modules/@noble/hashes/esm/blake2b.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/blake2s.js +119 -0
- package/test/node_modules/@noble/hashes/esm/blake2s.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/blake3.js +240 -0
- package/test/node_modules/@noble/hashes/esm/blake3.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/crypto.js +2 -0
- package/test/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/cryptoNode.js +7 -0
- package/test/node_modules/@noble/hashes/esm/cryptoNode.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/eskdf.js +155 -0
- package/test/node_modules/@noble/hashes/esm/eskdf.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/hkdf.js +72 -0
- package/test/node_modules/@noble/hashes/esm/hkdf.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/hmac.js +77 -0
- package/test/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/index.js +3 -0
- package/test/node_modules/@noble/hashes/esm/index.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/package.json +10 -0
- package/test/node_modules/@noble/hashes/esm/pbkdf2.js +86 -0
- package/test/node_modules/@noble/hashes/esm/pbkdf2.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/ripemd160.js +102 -0
- package/test/node_modules/@noble/hashes/esm/ripemd160.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/scrypt.js +224 -0
- package/test/node_modules/@noble/hashes/esm/scrypt.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/sha1.js +80 -0
- package/test/node_modules/@noble/hashes/esm/sha1.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/sha2.js +4 -0
- package/test/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/sha256.js +123 -0
- package/test/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/sha3-addons.js +356 -0
- package/test/node_modules/@noble/hashes/esm/sha3-addons.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/sha3.js +214 -0
- package/test/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/sha512.js +231 -0
- package/test/node_modules/@noble/hashes/esm/sha512.js.map +1 -0
- package/test/node_modules/@noble/hashes/esm/utils.js +187 -0
- package/test/node_modules/@noble/hashes/esm/utils.js.map +1 -0
- package/test/node_modules/@noble/hashes/hkdf.d.ts +27 -0
- package/test/node_modules/@noble/hashes/hkdf.js +78 -0
- package/test/node_modules/@noble/hashes/hkdf.js.map +1 -0
- package/test/node_modules/@noble/hashes/hmac.d.ts +26 -0
- package/test/node_modules/@noble/hashes/hmac.js +82 -0
- package/test/node_modules/@noble/hashes/hmac.js.map +1 -0
- package/test/node_modules/@noble/hashes/index.d.ts +1 -0
- package/test/node_modules/@noble/hashes/index.js +3 -0
- package/test/node_modules/@noble/hashes/index.js.map +1 -0
- package/test/node_modules/@noble/hashes/package.json +179 -0
- package/test/node_modules/@noble/hashes/pbkdf2.d.ts +16 -0
- package/test/node_modules/@noble/hashes/pbkdf2.js +91 -0
- package/test/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
- package/test/node_modules/@noble/hashes/ripemd160.d.ts +25 -0
- package/test/node_modules/@noble/hashes/ripemd160.js +106 -0
- package/test/node_modules/@noble/hashes/ripemd160.js.map +1 -0
- package/test/node_modules/@noble/hashes/scrypt.d.ts +30 -0
- package/test/node_modules/@noble/hashes/scrypt.js +229 -0
- package/test/node_modules/@noble/hashes/scrypt.js.map +1 -0
- package/test/node_modules/@noble/hashes/sha1.d.ts +22 -0
- package/test/node_modules/@noble/hashes/sha1.js +83 -0
- package/test/node_modules/@noble/hashes/sha1.js.map +1 -0
- package/test/node_modules/@noble/hashes/sha2.d.ts +3 -0
- package/test/node_modules/@noble/hashes/sha2.js +13 -0
- package/test/node_modules/@noble/hashes/sha2.js.map +1 -0
- package/test/node_modules/@noble/hashes/sha256.d.ts +35 -0
- package/test/node_modules/@noble/hashes/sha256.js +126 -0
- package/test/node_modules/@noble/hashes/sha256.js.map +1 -0
- package/test/node_modules/@noble/hashes/sha3-addons.d.ts +154 -0
- package/test/node_modules/@noble/hashes/sha3-addons.js +360 -0
- package/test/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
- package/test/node_modules/@noble/hashes/sha3.d.ts +98 -0
- package/test/node_modules/@noble/hashes/sha3.js +219 -0
- package/test/node_modules/@noble/hashes/sha3.js.map +1 -0
- package/test/node_modules/@noble/hashes/sha512.d.ts +67 -0
- package/test/node_modules/@noble/hashes/sha512.js +235 -0
- package/test/node_modules/@noble/hashes/sha512.js.map +1 -0
- package/test/node_modules/@noble/hashes/src/_assert.ts +51 -0
- package/test/node_modules/@noble/hashes/src/_blake.ts +134 -0
- package/test/node_modules/@noble/hashes/src/_md.ts +127 -0
- package/test/node_modules/@noble/hashes/src/_u64.ts +77 -0
- package/test/node_modules/@noble/hashes/src/argon2.ts +374 -0
- package/test/node_modules/@noble/hashes/src/blake2b.ts +205 -0
- package/test/node_modules/@noble/hashes/src/blake2s.ts +138 -0
- package/test/node_modules/@noble/hashes/src/blake3.ts +268 -0
- package/test/node_modules/@noble/hashes/src/crypto.ts +5 -0
- package/test/node_modules/@noble/hashes/src/cryptoNode.ts +7 -0
- package/test/node_modules/@noble/hashes/src/eskdf.ts +183 -0
- package/test/node_modules/@noble/hashes/src/hkdf.ts +79 -0
- package/test/node_modules/@noble/hashes/src/hmac.ts +81 -0
- package/test/node_modules/@noble/hashes/src/index.ts +1 -0
- package/test/node_modules/@noble/hashes/src/pbkdf2.ts +97 -0
- package/test/node_modules/@noble/hashes/src/ripemd160.ts +108 -0
- package/test/node_modules/@noble/hashes/src/scrypt.ts +241 -0
- package/test/node_modules/@noble/hashes/src/sha1.ts +80 -0
- package/test/node_modules/@noble/hashes/src/sha2.ts +3 -0
- package/test/node_modules/@noble/hashes/src/sha256.ts +129 -0
- package/test/node_modules/@noble/hashes/src/sha3-addons.ts +423 -0
- package/test/node_modules/@noble/hashes/src/sha3.ts +229 -0
- package/test/node_modules/@noble/hashes/src/sha512.ts +246 -0
- package/test/node_modules/@noble/hashes/src/utils.ts +256 -0
- package/test/node_modules/@noble/hashes/utils.d.ts +96 -0
- package/test/node_modules/@noble/hashes/utils.js +211 -0
- package/test/node_modules/@noble/hashes/utils.js.map +1 -0
- package/test/node_modules/@pkgjs/parseargs/.editorconfig +14 -0
- package/test/node_modules/@pkgjs/parseargs/CHANGELOG.md +147 -0
- package/test/node_modules/@pkgjs/parseargs/LICENSE +201 -0
- package/test/node_modules/@pkgjs/parseargs/README.md +413 -0
- package/test/node_modules/@pkgjs/parseargs/examples/is-default-value.js +25 -0
- package/test/node_modules/@pkgjs/parseargs/examples/limit-long-syntax.js +35 -0
- package/test/node_modules/@pkgjs/parseargs/examples/negate.js +43 -0
- package/test/node_modules/@pkgjs/parseargs/examples/no-repeated-options.js +31 -0
- package/test/node_modules/@pkgjs/parseargs/examples/ordered-options.mjs +41 -0
- package/test/node_modules/@pkgjs/parseargs/examples/simple-hard-coded.js +26 -0
- package/test/node_modules/@pkgjs/parseargs/index.js +396 -0
- package/test/node_modules/@pkgjs/parseargs/internal/errors.js +47 -0
- package/test/node_modules/@pkgjs/parseargs/internal/primordials.js +393 -0
- package/test/node_modules/@pkgjs/parseargs/internal/util.js +14 -0
- package/test/node_modules/@pkgjs/parseargs/internal/validators.js +89 -0
- package/test/node_modules/@pkgjs/parseargs/package.json +36 -0
- package/test/node_modules/@pkgjs/parseargs/utils.js +198 -0
- package/test/node_modules/@scure/base/LICENSE +21 -0
- package/test/node_modules/@scure/base/README.md +214 -0
- package/test/node_modules/@scure/base/index.ts +616 -0
- package/test/node_modules/@scure/base/lib/esm/index.d.ts +132 -0
- package/test/node_modules/@scure/base/lib/esm/index.d.ts.map +1 -0
- package/test/node_modules/@scure/base/lib/esm/index.js +489 -0
- package/test/node_modules/@scure/base/lib/esm/index.js.map +1 -0
- package/test/node_modules/@scure/base/lib/esm/package.json +1 -0
- package/test/node_modules/@scure/base/lib/index.d.ts +132 -0
- package/test/node_modules/@scure/base/lib/index.d.ts.map +1 -0
- package/test/node_modules/@scure/base/lib/index.js +496 -0
- package/test/node_modules/@scure/base/lib/index.js.map +1 -0
- package/test/node_modules/@scure/base/package.json +64 -0
- package/test/node_modules/@scure/bip32/LICENSE +21 -0
- package/test/node_modules/@scure/bip32/README.md +113 -0
- package/test/node_modules/@scure/bip32/index.ts +308 -0
- package/test/node_modules/@scure/bip32/lib/esm/index.js +269 -0
- package/test/node_modules/@scure/bip32/lib/esm/index.js.map +1 -0
- package/test/node_modules/@scure/bip32/lib/esm/package.json +4 -0
- package/test/node_modules/@scure/bip32/lib/index.d.ts +50 -0
- package/test/node_modules/@scure/bip32/lib/index.js +273 -0
- package/test/node_modules/@scure/bip32/lib/index.js.map +1 -0
- package/test/node_modules/@scure/bip32/package.json +75 -0
- package/test/node_modules/@scure/bip39/LICENSE +21 -0
- package/test/node_modules/@scure/bip39/README.md +101 -0
- package/test/node_modules/@scure/bip39/esm/index.js +134 -0
- package/test/node_modules/@scure/bip39/esm/package.json +3 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/czech.js +2048 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/english.js +2048 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/french.js +2048 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/italian.js +2048 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/japanese.js +2048 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/korean.js +2048 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/portuguese.js +2048 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/simplified-chinese.js +2048 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/spanish.js +2048 -0
- package/test/node_modules/@scure/bip39/esm/wordlists/traditional-chinese.js +2048 -0
- package/test/node_modules/@scure/bip39/index.d.ts +64 -0
- package/test/node_modules/@scure/bip39/index.js +143 -0
- package/test/node_modules/@scure/bip39/package.json +123 -0
- package/test/node_modules/@scure/bip39/src/index.ts +146 -0
- package/test/node_modules/@scure/bip39/wordlists/czech.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/czech.js +2051 -0
- package/test/node_modules/@scure/bip39/wordlists/english.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/english.js +2051 -0
- package/test/node_modules/@scure/bip39/wordlists/french.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/french.js +2051 -0
- package/test/node_modules/@scure/bip39/wordlists/italian.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/italian.js +2051 -0
- package/test/node_modules/@scure/bip39/wordlists/japanese.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/japanese.js +2051 -0
- package/test/node_modules/@scure/bip39/wordlists/korean.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/korean.js +2051 -0
- package/test/node_modules/@scure/bip39/wordlists/portuguese.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/portuguese.js +2051 -0
- package/test/node_modules/@scure/bip39/wordlists/simplified-chinese.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/simplified-chinese.js +2051 -0
- package/test/node_modules/@scure/bip39/wordlists/spanish.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/spanish.js +2051 -0
- package/test/node_modules/@scure/bip39/wordlists/traditional-chinese.d.ts +2 -0
- package/test/node_modules/@scure/bip39/wordlists/traditional-chinese.js +2051 -0
- package/test/node_modules/ansi-colors/LICENSE +21 -0
- package/test/node_modules/ansi-colors/README.md +315 -0
- package/test/node_modules/ansi-colors/index.js +184 -0
- package/test/node_modules/ansi-colors/package.json +129 -0
- package/test/node_modules/ansi-colors/symbols.js +69 -0
- package/test/node_modules/ansi-colors/types/index.d.ts +235 -0
- package/test/node_modules/ansi-regex/index.d.ts +33 -0
- package/test/node_modules/ansi-regex/index.js +10 -0
- package/test/node_modules/ansi-regex/license +9 -0
- package/test/node_modules/ansi-regex/package.json +61 -0
- package/test/node_modules/ansi-regex/readme.md +60 -0
- package/test/node_modules/ansi-styles/index.d.ts +345 -0
- package/test/node_modules/ansi-styles/index.js +163 -0
- package/test/node_modules/ansi-styles/license +9 -0
- package/test/node_modules/ansi-styles/package.json +56 -0
- package/test/node_modules/ansi-styles/readme.md +152 -0
- package/test/node_modules/anymatch/LICENSE +15 -0
- package/test/node_modules/anymatch/README.md +87 -0
- package/test/node_modules/anymatch/index.d.ts +20 -0
- package/test/node_modules/anymatch/index.js +104 -0
- package/test/node_modules/anymatch/package.json +48 -0
- package/test/node_modules/argparse/CHANGELOG.md +216 -0
- package/test/node_modules/argparse/LICENSE +254 -0
- package/test/node_modules/argparse/README.md +84 -0
- package/test/node_modules/argparse/argparse.js +3707 -0
- package/test/node_modules/argparse/lib/sub.js +67 -0
- package/test/node_modules/argparse/lib/textwrap.js +440 -0
- package/test/node_modules/argparse/package.json +31 -0
- package/test/node_modules/asap/CHANGES.md +70 -0
- package/test/node_modules/asap/LICENSE.md +21 -0
- package/test/node_modules/asap/README.md +237 -0
- package/test/node_modules/asap/asap.js +65 -0
- package/test/node_modules/asap/browser-asap.js +66 -0
- package/test/node_modules/asap/browser-raw.js +223 -0
- package/test/node_modules/asap/package.json +58 -0
- package/test/node_modules/asap/raw.js +101 -0
- package/test/node_modules/assertion-error/LICENSE +21 -0
- package/test/node_modules/assertion-error/README.md +68 -0
- package/test/node_modules/assertion-error/index.d.ts +27 -0
- package/test/node_modules/assertion-error/index.js +60 -0
- package/test/node_modules/assertion-error/package.json +32 -0
- package/test/node_modules/asynckit/LICENSE +21 -0
- package/test/node_modules/asynckit/README.md +233 -0
- package/test/node_modules/asynckit/bench.js +76 -0
- package/test/node_modules/asynckit/index.js +6 -0
- package/test/node_modules/asynckit/lib/abort.js +29 -0
- package/test/node_modules/asynckit/lib/async.js +34 -0
- package/test/node_modules/asynckit/lib/defer.js +26 -0
- package/test/node_modules/asynckit/lib/iterate.js +75 -0
- package/test/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/test/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/test/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/test/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/test/node_modules/asynckit/lib/state.js +37 -0
- package/test/node_modules/asynckit/lib/streamify.js +141 -0
- package/test/node_modules/asynckit/lib/terminator.js +29 -0
- package/test/node_modules/asynckit/package.json +63 -0
- package/test/node_modules/asynckit/parallel.js +43 -0
- package/test/node_modules/asynckit/serial.js +17 -0
- package/test/node_modules/asynckit/serialOrdered.js +75 -0
- package/test/node_modules/asynckit/stream.js +21 -0
- package/test/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/test/node_modules/balanced-match/LICENSE.md +21 -0
- package/test/node_modules/balanced-match/README.md +97 -0
- package/test/node_modules/balanced-match/index.js +62 -0
- package/test/node_modules/balanced-match/package.json +48 -0
- package/test/node_modules/bdo-js/README.md +35 -0
- package/test/node_modules/bdo-js/bdo.cjs +165 -0
- package/test/node_modules/bdo-js/bdo.js +171 -0
- package/test/node_modules/bdo-js/package.json +24 -0
- package/test/node_modules/binary-extensions/binary-extensions.json +263 -0
- package/test/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/test/node_modules/binary-extensions/index.d.ts +14 -0
- package/test/node_modules/binary-extensions/index.js +1 -0
- package/test/node_modules/binary-extensions/license +10 -0
- package/test/node_modules/binary-extensions/package.json +40 -0
- package/test/node_modules/binary-extensions/readme.md +25 -0
- package/test/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/test/node_modules/brace-expansion/LICENSE +21 -0
- package/test/node_modules/brace-expansion/README.md +135 -0
- package/test/node_modules/brace-expansion/index.js +203 -0
- package/test/node_modules/brace-expansion/package.json +46 -0
- package/test/node_modules/braces/LICENSE +21 -0
- package/test/node_modules/braces/README.md +586 -0
- package/test/node_modules/braces/index.js +170 -0
- package/test/node_modules/braces/lib/compile.js +60 -0
- package/test/node_modules/braces/lib/constants.js +57 -0
- package/test/node_modules/braces/lib/expand.js +113 -0
- package/test/node_modules/braces/lib/parse.js +331 -0
- package/test/node_modules/braces/lib/stringify.js +32 -0
- package/test/node_modules/braces/lib/utils.js +122 -0
- package/test/node_modules/braces/package.json +77 -0
- package/test/node_modules/browser-stdout/LICENSE +5 -0
- package/test/node_modules/browser-stdout/README.md +40 -0
- package/test/node_modules/browser-stdout/index.js +25 -0
- package/test/node_modules/browser-stdout/package.json +15 -0
- package/test/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/test/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/test/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/test/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/test/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/test/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/test/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/test/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/test/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/test/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/test/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/test/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/test/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/test/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/test/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/test/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/test/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/test/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/test/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/test/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/test/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/test/node_modules/call-bound/.eslintrc +13 -0
- package/test/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/test/node_modules/call-bound/.nycrc +9 -0
- package/test/node_modules/call-bound/CHANGELOG.md +42 -0
- package/test/node_modules/call-bound/LICENSE +21 -0
- package/test/node_modules/call-bound/README.md +53 -0
- package/test/node_modules/call-bound/index.d.ts +94 -0
- package/test/node_modules/call-bound/index.js +19 -0
- package/test/node_modules/call-bound/package.json +99 -0
- package/test/node_modules/call-bound/test/index.js +61 -0
- package/test/node_modules/call-bound/tsconfig.json +10 -0
- package/test/node_modules/camelcase/index.d.ts +103 -0
- package/test/node_modules/camelcase/index.js +113 -0
- package/test/node_modules/camelcase/license +9 -0
- package/test/node_modules/camelcase/package.json +44 -0
- package/test/node_modules/camelcase/readme.md +144 -0
- package/test/node_modules/chai/.prettierrc.json +10 -0
- package/test/node_modules/chai/CODEOWNERS +1 -0
- package/test/node_modules/chai/CODE_OF_CONDUCT.md +58 -0
- package/test/node_modules/chai/CONTRIBUTING.md +218 -0
- package/test/node_modules/chai/History.md +1059 -0
- package/test/node_modules/chai/LICENSE +21 -0
- package/test/node_modules/chai/README.md +154 -0
- package/test/node_modules/chai/ReleaseNotes.md +737 -0
- package/test/node_modules/chai/chai.js +4351 -0
- package/test/node_modules/chai/eslint.config.js +26 -0
- package/test/node_modules/chai/index.js +1 -0
- package/test/node_modules/chai/lib/chai/assertion.js +180 -0
- package/test/node_modules/chai/lib/chai/config.js +112 -0
- package/test/node_modules/chai/lib/chai/core/assertions.js +4157 -0
- package/test/node_modules/chai/lib/chai/interface/assert.js +3228 -0
- package/test/node_modules/chai/lib/chai/interface/expect.js +59 -0
- package/test/node_modules/chai/lib/chai/interface/should.js +227 -0
- package/test/node_modules/chai/lib/chai/utils/addChainableMethod.js +146 -0
- package/test/node_modules/chai/lib/chai/utils/addLengthGuard.js +73 -0
- package/test/node_modules/chai/lib/chai/utils/addMethod.js +66 -0
- package/test/node_modules/chai/lib/chai/utils/addProperty.js +70 -0
- package/test/node_modules/chai/lib/chai/utils/compareByInspect.js +26 -0
- package/test/node_modules/chai/lib/chai/utils/expectTypes.js +58 -0
- package/test/node_modules/chai/lib/chai/utils/flag.js +33 -0
- package/test/node_modules/chai/lib/chai/utils/getActual.js +20 -0
- package/test/node_modules/chai/lib/chai/utils/getMessage.js +52 -0
- package/test/node_modules/chai/lib/chai/utils/getOperator.js +58 -0
- package/test/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js +24 -0
- package/test/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js +26 -0
- package/test/node_modules/chai/lib/chai/utils/getProperties.js +38 -0
- package/test/node_modules/chai/lib/chai/utils/index.js +118 -0
- package/test/node_modules/chai/lib/chai/utils/inspect.js +31 -0
- package/test/node_modules/chai/lib/chai/utils/isNaN.js +7 -0
- package/test/node_modules/chai/lib/chai/utils/isProxyEnabled.js +26 -0
- package/test/node_modules/chai/lib/chai/utils/objDisplay.js +47 -0
- package/test/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +69 -0
- package/test/node_modules/chai/lib/chai/utils/overwriteMethod.js +90 -0
- package/test/node_modules/chai/lib/chai/utils/overwriteProperty.js +89 -0
- package/test/node_modules/chai/lib/chai/utils/proxify.js +157 -0
- package/test/node_modules/chai/lib/chai/utils/test.js +24 -0
- package/test/node_modules/chai/lib/chai/utils/transferFlags.js +48 -0
- package/test/node_modules/chai/lib/chai/utils/type-detect.js +20 -0
- package/test/node_modules/chai/lib/chai.js +66 -0
- package/test/node_modules/chai/package.json +67 -0
- package/test/node_modules/chai/register-assert.js +3 -0
- package/test/node_modules/chai/register-expect.js +3 -0
- package/test/node_modules/chai/register-should.js +3 -0
- package/test/node_modules/chai/web-test-runner.config.js +20 -0
- package/test/node_modules/chalk/index.d.ts +415 -0
- package/test/node_modules/chalk/license +9 -0
- package/test/node_modules/chalk/node_modules/supports-color/browser.js +5 -0
- package/test/node_modules/chalk/node_modules/supports-color/index.js +135 -0
- package/test/node_modules/chalk/node_modules/supports-color/license +9 -0
- package/test/node_modules/chalk/node_modules/supports-color/package.json +53 -0
- package/test/node_modules/chalk/node_modules/supports-color/readme.md +76 -0
- package/test/node_modules/chalk/package.json +68 -0
- package/test/node_modules/chalk/readme.md +341 -0
- package/test/node_modules/chalk/source/index.js +229 -0
- package/test/node_modules/chalk/source/templates.js +134 -0
- package/test/node_modules/chalk/source/util.js +39 -0
- package/test/node_modules/check-error/LICENSE +19 -0
- package/test/node_modules/check-error/README.md +144 -0
- package/test/node_modules/check-error/index.js +135 -0
- package/test/node_modules/check-error/package.json +66 -0
- package/test/node_modules/chokidar/LICENSE +21 -0
- package/test/node_modules/chokidar/README.md +308 -0
- package/test/node_modules/chokidar/index.js +973 -0
- package/test/node_modules/chokidar/lib/constants.js +66 -0
- package/test/node_modules/chokidar/lib/fsevents-handler.js +526 -0
- package/test/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/test/node_modules/chokidar/package.json +70 -0
- package/test/node_modules/chokidar/types/index.d.ts +192 -0
- package/test/node_modules/cliui/CHANGELOG.md +139 -0
- package/test/node_modules/cliui/LICENSE.txt +14 -0
- package/test/node_modules/cliui/README.md +141 -0
- package/test/node_modules/cliui/build/index.cjs +302 -0
- package/test/node_modules/cliui/build/index.d.cts +43 -0
- package/test/node_modules/cliui/build/lib/index.js +287 -0
- package/test/node_modules/cliui/build/lib/string-utils.js +27 -0
- package/test/node_modules/cliui/index.mjs +13 -0
- package/test/node_modules/cliui/node_modules/ansi-regex/index.d.ts +37 -0
- package/test/node_modules/cliui/node_modules/ansi-regex/index.js +10 -0
- package/test/node_modules/cliui/node_modules/ansi-regex/license +9 -0
- package/test/node_modules/cliui/node_modules/ansi-regex/package.json +55 -0
- package/test/node_modules/cliui/node_modules/ansi-regex/readme.md +78 -0
- package/test/node_modules/cliui/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/test/node_modules/cliui/node_modules/emoji-regex/README.md +73 -0
- package/test/node_modules/cliui/node_modules/emoji-regex/es2015/index.js +6 -0
- package/test/node_modules/cliui/node_modules/emoji-regex/es2015/text.js +6 -0
- package/test/node_modules/cliui/node_modules/emoji-regex/index.d.ts +23 -0
- package/test/node_modules/cliui/node_modules/emoji-regex/index.js +6 -0
- package/test/node_modules/cliui/node_modules/emoji-regex/package.json +50 -0
- package/test/node_modules/cliui/node_modules/emoji-regex/text.js +6 -0
- package/test/node_modules/cliui/node_modules/string-width/index.d.ts +29 -0
- package/test/node_modules/cliui/node_modules/string-width/index.js +47 -0
- package/test/node_modules/cliui/node_modules/string-width/license +9 -0
- package/test/node_modules/cliui/node_modules/string-width/package.json +56 -0
- package/test/node_modules/cliui/node_modules/string-width/readme.md +50 -0
- package/test/node_modules/cliui/node_modules/strip-ansi/index.d.ts +17 -0
- package/test/node_modules/cliui/node_modules/strip-ansi/index.js +4 -0
- package/test/node_modules/cliui/node_modules/strip-ansi/license +9 -0
- package/test/node_modules/cliui/node_modules/strip-ansi/package.json +54 -0
- package/test/node_modules/cliui/node_modules/strip-ansi/readme.md +46 -0
- package/test/node_modules/cliui/node_modules/wrap-ansi/index.js +216 -0
- package/test/node_modules/cliui/node_modules/wrap-ansi/license +9 -0
- package/test/node_modules/cliui/node_modules/wrap-ansi/package.json +62 -0
- package/test/node_modules/cliui/node_modules/wrap-ansi/readme.md +91 -0
- package/test/node_modules/cliui/package.json +83 -0
- package/test/node_modules/color-convert/CHANGELOG.md +54 -0
- package/test/node_modules/color-convert/LICENSE +21 -0
- package/test/node_modules/color-convert/README.md +68 -0
- package/test/node_modules/color-convert/conversions.js +839 -0
- package/test/node_modules/color-convert/index.js +81 -0
- package/test/node_modules/color-convert/package.json +48 -0
- package/test/node_modules/color-convert/route.js +97 -0
- package/test/node_modules/color-name/LICENSE +8 -0
- package/test/node_modules/color-name/README.md +11 -0
- package/test/node_modules/color-name/index.js +152 -0
- package/test/node_modules/color-name/package.json +28 -0
- package/test/node_modules/combined-stream/License +19 -0
- package/test/node_modules/combined-stream/Readme.md +138 -0
- package/test/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/test/node_modules/combined-stream/package.json +25 -0
- package/test/node_modules/combined-stream/yarn.lock +17 -0
- package/test/node_modules/component-emitter/LICENSE +24 -0
- package/test/node_modules/component-emitter/Readme.md +74 -0
- package/test/node_modules/component-emitter/index.js +175 -0
- package/test/node_modules/component-emitter/package.json +28 -0
- package/test/node_modules/cookiejar/LICENSE +9 -0
- package/test/node_modules/cookiejar/cookiejar.js +281 -0
- package/test/node_modules/cookiejar/package.json +26 -0
- package/test/node_modules/cookiejar/readme.md +60 -0
- package/test/node_modules/cross-spawn/LICENSE +21 -0
- package/test/node_modules/cross-spawn/README.md +89 -0
- package/test/node_modules/cross-spawn/index.js +39 -0
- package/test/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/test/node_modules/cross-spawn/lib/parse.js +91 -0
- package/test/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/test/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/test/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/test/node_modules/cross-spawn/package.json +73 -0
- package/test/node_modules/data-uri-to-buffer/README.md +88 -0
- package/test/node_modules/data-uri-to-buffer/dist/index.d.ts +15 -0
- package/test/node_modules/data-uri-to-buffer/dist/index.js +53 -0
- package/test/node_modules/data-uri-to-buffer/dist/index.js.map +1 -0
- package/test/node_modules/data-uri-to-buffer/package.json +62 -0
- package/test/node_modules/data-uri-to-buffer/src/index.ts +68 -0
- package/test/node_modules/debug/LICENSE +20 -0
- package/test/node_modules/debug/README.md +481 -0
- package/test/node_modules/debug/package.json +65 -0
- package/test/node_modules/debug/src/browser.js +272 -0
- package/test/node_modules/debug/src/common.js +292 -0
- package/test/node_modules/debug/src/index.js +10 -0
- package/test/node_modules/debug/src/node.js +263 -0
- package/test/node_modules/decamelize/index.d.ts +20 -0
- package/test/node_modules/decamelize/index.js +12 -0
- package/test/node_modules/decamelize/license +9 -0
- package/test/node_modules/decamelize/package.json +40 -0
- package/test/node_modules/decamelize/readme.md +51 -0
- package/test/node_modules/deep-eql/LICENSE +19 -0
- package/test/node_modules/deep-eql/README.md +93 -0
- package/test/node_modules/deep-eql/index.js +513 -0
- package/test/node_modules/deep-eql/package.json +73 -0
- package/test/node_modules/delayed-stream/License +19 -0
- package/test/node_modules/delayed-stream/Makefile +7 -0
- package/test/node_modules/delayed-stream/Readme.md +141 -0
- package/test/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/test/node_modules/delayed-stream/package.json +27 -0
- package/test/node_modules/dezalgo/LICENSE +15 -0
- package/test/node_modules/dezalgo/README.md +29 -0
- package/test/node_modules/dezalgo/dezalgo.js +22 -0
- package/test/node_modules/dezalgo/package.json +46 -0
- package/test/node_modules/diff/CONTRIBUTING.md +36 -0
- package/test/node_modules/diff/LICENSE +29 -0
- package/test/node_modules/diff/README.md +339 -0
- package/test/node_modules/diff/dist/diff.js +1730 -0
- package/test/node_modules/diff/dist/diff.min.js +1 -0
- package/test/node_modules/diff/lib/convert/dmp.js +32 -0
- package/test/node_modules/diff/lib/convert/xml.js +42 -0
- package/test/node_modules/diff/lib/diff/array.js +45 -0
- package/test/node_modules/diff/lib/diff/base.js +358 -0
- package/test/node_modules/diff/lib/diff/character.js +37 -0
- package/test/node_modules/diff/lib/diff/css.js +41 -0
- package/test/node_modules/diff/lib/diff/json.js +163 -0
- package/test/node_modules/diff/lib/diff/line.js +94 -0
- package/test/node_modules/diff/lib/diff/sentence.js +41 -0
- package/test/node_modules/diff/lib/diff/word.js +108 -0
- package/test/node_modules/diff/lib/index.es6.js +1699 -0
- package/test/node_modules/diff/lib/index.js +234 -0
- package/test/node_modules/diff/lib/index.mjs +1699 -0
- package/test/node_modules/diff/lib/patch/apply.js +238 -0
- package/test/node_modules/diff/lib/patch/create.js +276 -0
- package/test/node_modules/diff/lib/patch/merge.js +613 -0
- package/test/node_modules/diff/lib/patch/parse.js +167 -0
- package/test/node_modules/diff/lib/patch/reverse.js +63 -0
- package/test/node_modules/diff/lib/util/array.js +32 -0
- package/test/node_modules/diff/lib/util/distance-iterator.js +57 -0
- package/test/node_modules/diff/lib/util/params.js +24 -0
- package/test/node_modules/diff/package.json +89 -0
- package/test/node_modules/diff/release-notes.md +317 -0
- package/test/node_modules/diff/runtime.js +3 -0
- package/test/node_modules/dunder-proto/.eslintrc +5 -0
- package/test/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/test/node_modules/dunder-proto/.nycrc +13 -0
- package/test/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/test/node_modules/dunder-proto/LICENSE +21 -0
- package/test/node_modules/dunder-proto/README.md +54 -0
- package/test/node_modules/dunder-proto/get.d.ts +5 -0
- package/test/node_modules/dunder-proto/get.js +30 -0
- package/test/node_modules/dunder-proto/package.json +76 -0
- package/test/node_modules/dunder-proto/set.d.ts +5 -0
- package/test/node_modules/dunder-proto/set.js +35 -0
- package/test/node_modules/dunder-proto/test/get.js +34 -0
- package/test/node_modules/dunder-proto/test/index.js +4 -0
- package/test/node_modules/dunder-proto/test/set.js +50 -0
- package/test/node_modules/dunder-proto/tsconfig.json +9 -0
- package/test/node_modules/eastasianwidth/README.md +32 -0
- package/test/node_modules/eastasianwidth/eastasianwidth.js +311 -0
- package/test/node_modules/eastasianwidth/package.json +18 -0
- package/test/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/test/node_modules/emoji-regex/README.md +137 -0
- package/test/node_modules/emoji-regex/RGI_Emoji.d.ts +5 -0
- package/test/node_modules/emoji-regex/RGI_Emoji.js +6 -0
- package/test/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts +5 -0
- package/test/node_modules/emoji-regex/es2015/RGI_Emoji.js +6 -0
- package/test/node_modules/emoji-regex/es2015/index.d.ts +5 -0
- package/test/node_modules/emoji-regex/es2015/index.js +6 -0
- package/test/node_modules/emoji-regex/es2015/text.d.ts +5 -0
- package/test/node_modules/emoji-regex/es2015/text.js +6 -0
- package/test/node_modules/emoji-regex/index.d.ts +5 -0
- package/test/node_modules/emoji-regex/index.js +6 -0
- package/test/node_modules/emoji-regex/package.json +52 -0
- package/test/node_modules/emoji-regex/text.d.ts +5 -0
- package/test/node_modules/emoji-regex/text.js +6 -0
- package/test/node_modules/es-define-property/.eslintrc +13 -0
- package/test/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/test/node_modules/es-define-property/.nycrc +9 -0
- package/test/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/test/node_modules/es-define-property/LICENSE +21 -0
- package/test/node_modules/es-define-property/README.md +49 -0
- package/test/node_modules/es-define-property/index.d.ts +3 -0
- package/test/node_modules/es-define-property/index.js +14 -0
- package/test/node_modules/es-define-property/package.json +81 -0
- package/test/node_modules/es-define-property/test/index.js +56 -0
- package/test/node_modules/es-define-property/tsconfig.json +10 -0
- package/test/node_modules/es-errors/.eslintrc +5 -0
- package/test/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/test/node_modules/es-errors/CHANGELOG.md +40 -0
- package/test/node_modules/es-errors/LICENSE +21 -0
- package/test/node_modules/es-errors/README.md +55 -0
- package/test/node_modules/es-errors/eval.d.ts +3 -0
- package/test/node_modules/es-errors/eval.js +4 -0
- package/test/node_modules/es-errors/index.d.ts +3 -0
- package/test/node_modules/es-errors/index.js +4 -0
- package/test/node_modules/es-errors/package.json +80 -0
- package/test/node_modules/es-errors/range.d.ts +3 -0
- package/test/node_modules/es-errors/range.js +4 -0
- package/test/node_modules/es-errors/ref.d.ts +3 -0
- package/test/node_modules/es-errors/ref.js +4 -0
- package/test/node_modules/es-errors/syntax.d.ts +3 -0
- package/test/node_modules/es-errors/syntax.js +4 -0
- package/test/node_modules/es-errors/test/index.js +19 -0
- package/test/node_modules/es-errors/tsconfig.json +49 -0
- package/test/node_modules/es-errors/type.d.ts +3 -0
- package/test/node_modules/es-errors/type.js +4 -0
- package/test/node_modules/es-errors/uri.d.ts +3 -0
- package/test/node_modules/es-errors/uri.js +4 -0
- package/test/node_modules/es-object-atoms/.eslintrc +16 -0
- package/test/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/test/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/test/node_modules/es-object-atoms/LICENSE +21 -0
- package/test/node_modules/es-object-atoms/README.md +63 -0
- package/test/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/test/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/test/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/test/node_modules/es-object-atoms/ToObject.js +10 -0
- package/test/node_modules/es-object-atoms/index.d.ts +3 -0
- package/test/node_modules/es-object-atoms/index.js +4 -0
- package/test/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/test/node_modules/es-object-atoms/isObject.js +6 -0
- package/test/node_modules/es-object-atoms/package.json +80 -0
- package/test/node_modules/es-object-atoms/test/index.js +38 -0
- package/test/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/test/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/test/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/test/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/test/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/test/node_modules/es-set-tostringtag/README.md +53 -0
- package/test/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/test/node_modules/es-set-tostringtag/index.js +35 -0
- package/test/node_modules/es-set-tostringtag/package.json +78 -0
- package/test/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/test/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/test/node_modules/escalade/dist/index.js +22 -0
- package/test/node_modules/escalade/dist/index.mjs +22 -0
- package/test/node_modules/escalade/index.d.mts +11 -0
- package/test/node_modules/escalade/index.d.ts +15 -0
- package/test/node_modules/escalade/license +9 -0
- package/test/node_modules/escalade/package.json +74 -0
- package/test/node_modules/escalade/readme.md +211 -0
- package/test/node_modules/escalade/sync/index.d.mts +9 -0
- package/test/node_modules/escalade/sync/index.d.ts +13 -0
- package/test/node_modules/escalade/sync/index.js +18 -0
- package/test/node_modules/escalade/sync/index.mjs +18 -0
- package/test/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/test/node_modules/escape-string-regexp/index.js +13 -0
- package/test/node_modules/escape-string-regexp/license +9 -0
- package/test/node_modules/escape-string-regexp/package.json +38 -0
- package/test/node_modules/escape-string-regexp/readme.md +34 -0
- package/test/node_modules/ethereum-cryptography/LICENSE +21 -0
- package/test/node_modules/ethereum-cryptography/README.md +509 -0
- package/test/node_modules/ethereum-cryptography/aes.d.ts +2 -0
- package/test/node_modules/ethereum-cryptography/aes.js +97 -0
- package/test/node_modules/ethereum-cryptography/bip39/index.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/index.js +10 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/czech.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/czech.js +5 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/english.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/english.js +5 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/french.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/french.js +5 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/italian.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/italian.js +5 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/japanese.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/japanese.js +5 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/korean.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/korean.js +5 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.js +5 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/spanish.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/spanish.js +5 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.js +5 -0
- package/test/node_modules/ethereum-cryptography/blake2b.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/blake2b.js +13 -0
- package/test/node_modules/ethereum-cryptography/esm/aes.js +93 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/index.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/wordlists/czech.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/wordlists/english.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/wordlists/french.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/wordlists/italian.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/wordlists/japanese.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/wordlists/korean.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/wordlists/simplified-chinese.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/wordlists/spanish.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/bip39/wordlists/traditional-chinese.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/blake2b.js +9 -0
- package/test/node_modules/ethereum-cryptography/esm/hdkey.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/index.js +2 -0
- package/test/node_modules/ethereum-cryptography/esm/keccak.js +10 -0
- package/test/node_modules/ethereum-cryptography/esm/package.json +3 -0
- package/test/node_modules/ethereum-cryptography/esm/pbkdf2.js +26 -0
- package/test/node_modules/ethereum-cryptography/esm/random.js +7 -0
- package/test/node_modules/ethereum-cryptography/esm/ripemd160.js +3 -0
- package/test/node_modules/ethereum-cryptography/esm/scrypt.js +12 -0
- package/test/node_modules/ethereum-cryptography/esm/secp256k1-compat.js +254 -0
- package/test/node_modules/ethereum-cryptography/esm/secp256k1.js +1 -0
- package/test/node_modules/ethereum-cryptography/esm/sha256.js +3 -0
- package/test/node_modules/ethereum-cryptography/esm/sha512.js +3 -0
- package/test/node_modules/ethereum-cryptography/esm/utils.js +47 -0
- package/test/node_modules/ethereum-cryptography/hdkey.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/hdkey.js +6 -0
- package/test/node_modules/ethereum-cryptography/index.d.ts +0 -0
- package/test/node_modules/ethereum-cryptography/index.js +2 -0
- package/test/node_modules/ethereum-cryptography/keccak.d.ts +11 -0
- package/test/node_modules/ethereum-cryptography/keccak.js +13 -0
- package/test/node_modules/ethereum-cryptography/package.json +369 -0
- package/test/node_modules/ethereum-cryptography/pbkdf2.d.ts +2 -0
- package/test/node_modules/ethereum-cryptography/pbkdf2.js +30 -0
- package/test/node_modules/ethereum-cryptography/random.d.ts +2 -0
- package/test/node_modules/ethereum-cryptography/random.js +11 -0
- package/test/node_modules/ethereum-cryptography/ripemd160.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/ripemd160.js +6 -0
- package/test/node_modules/ethereum-cryptography/scrypt.d.ts +4 -0
- package/test/node_modules/ethereum-cryptography/scrypt.js +16 -0
- package/test/node_modules/ethereum-cryptography/secp256k1-compat.d.ts +35 -0
- package/test/node_modules/ethereum-cryptography/secp256k1-compat.js +277 -0
- package/test/node_modules/ethereum-cryptography/secp256k1.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/secp256k1.js +5 -0
- package/test/node_modules/ethereum-cryptography/sha256.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/sha256.js +6 -0
- package/test/node_modules/ethereum-cryptography/sha512.d.ts +1 -0
- package/test/node_modules/ethereum-cryptography/sha512.js +6 -0
- package/test/node_modules/ethereum-cryptography/utils.d.ts +12 -0
- package/test/node_modules/ethereum-cryptography/utils.js +63 -0
- package/test/node_modules/fast-safe-stringify/.travis.yml +8 -0
- package/test/node_modules/fast-safe-stringify/CHANGELOG.md +17 -0
- package/test/node_modules/fast-safe-stringify/LICENSE +23 -0
- package/test/node_modules/fast-safe-stringify/benchmark.js +137 -0
- package/test/node_modules/fast-safe-stringify/index.d.ts +23 -0
- package/test/node_modules/fast-safe-stringify/index.js +229 -0
- package/test/node_modules/fast-safe-stringify/package.json +46 -0
- package/test/node_modules/fast-safe-stringify/readme.md +170 -0
- package/test/node_modules/fast-safe-stringify/test-stable.js +404 -0
- package/test/node_modules/fast-safe-stringify/test.js +397 -0
- package/test/node_modules/fetch-blob/LICENSE +21 -0
- package/test/node_modules/fetch-blob/README.md +106 -0
- package/test/node_modules/fetch-blob/file.d.ts +2 -0
- package/test/node_modules/fetch-blob/file.js +49 -0
- package/test/node_modules/fetch-blob/from.d.ts +26 -0
- package/test/node_modules/fetch-blob/from.js +100 -0
- package/test/node_modules/fetch-blob/index.d.ts +3 -0
- package/test/node_modules/fetch-blob/index.js +250 -0
- package/test/node_modules/fetch-blob/package.json +56 -0
- package/test/node_modules/fetch-blob/streams.cjs +51 -0
- package/test/node_modules/fill-range/LICENSE +21 -0
- package/test/node_modules/fill-range/README.md +237 -0
- package/test/node_modules/fill-range/index.js +248 -0
- package/test/node_modules/fill-range/package.json +74 -0
- package/test/node_modules/find-up/index.d.ts +138 -0
- package/test/node_modules/find-up/index.js +89 -0
- package/test/node_modules/find-up/license +9 -0
- package/test/node_modules/find-up/package.json +54 -0
- package/test/node_modules/find-up/readme.md +151 -0
- package/test/node_modules/flat/.travis.yml +8 -0
- package/test/node_modules/flat/LICENSE +12 -0
- package/test/node_modules/flat/README.md +236 -0
- package/test/node_modules/flat/cli.js +42 -0
- package/test/node_modules/flat/index.js +158 -0
- package/test/node_modules/flat/package.json +37 -0
- package/test/node_modules/flat/test/test.js +643 -0
- package/test/node_modules/foreground-child/LICENSE +15 -0
- package/test/node_modules/foreground-child/README.md +128 -0
- package/test/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +2 -0
- package/test/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -0
- package/test/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
- package/test/node_modules/foreground-child/dist/commonjs/all-signals.js.map +1 -0
- package/test/node_modules/foreground-child/dist/commonjs/index.d.ts +58 -0
- package/test/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/foreground-child/dist/commonjs/index.js +123 -0
- package/test/node_modules/foreground-child/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/foreground-child/dist/commonjs/package.json +3 -0
- package/test/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +6 -0
- package/test/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -0
- package/test/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
- package/test/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +1 -0
- package/test/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +10 -0
- package/test/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -0
- package/test/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
- package/test/node_modules/foreground-child/dist/commonjs/watchdog.js.map +1 -0
- package/test/node_modules/foreground-child/dist/esm/all-signals.d.ts +2 -0
- package/test/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -0
- package/test/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
- package/test/node_modules/foreground-child/dist/esm/all-signals.js.map +1 -0
- package/test/node_modules/foreground-child/dist/esm/index.d.ts +58 -0
- package/test/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/foreground-child/dist/esm/index.js +115 -0
- package/test/node_modules/foreground-child/dist/esm/index.js.map +1 -0
- package/test/node_modules/foreground-child/dist/esm/package.json +3 -0
- package/test/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +6 -0
- package/test/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -0
- package/test/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
- package/test/node_modules/foreground-child/dist/esm/proxy-signals.js.map +1 -0
- package/test/node_modules/foreground-child/dist/esm/watchdog.d.ts +10 -0
- package/test/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -0
- package/test/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
- package/test/node_modules/foreground-child/dist/esm/watchdog.js.map +1 -0
- package/test/node_modules/foreground-child/package.json +106 -0
- package/test/node_modules/form-data/License +19 -0
- package/test/node_modules/form-data/Readme.md +358 -0
- package/test/node_modules/form-data/index.d.ts +62 -0
- package/test/node_modules/form-data/lib/browser.js +2 -0
- package/test/node_modules/form-data/lib/form_data.js +503 -0
- package/test/node_modules/form-data/lib/populate.js +10 -0
- package/test/node_modules/form-data/package.json +74 -0
- package/test/node_modules/formdata-polyfill/FormData.js +441 -0
- package/test/node_modules/formdata-polyfill/LICENSE +21 -0
- package/test/node_modules/formdata-polyfill/README.md +145 -0
- package/test/node_modules/formdata-polyfill/esm.min.d.ts +5 -0
- package/test/node_modules/formdata-polyfill/esm.min.js +40 -0
- package/test/node_modules/formdata-polyfill/formdata-to-blob.js +39 -0
- package/test/node_modules/formdata-polyfill/formdata.min.js +21 -0
- package/test/node_modules/formdata-polyfill/package.json +50 -0
- package/test/node_modules/formidable/LICENSE +21 -0
- package/test/node_modules/formidable/README.md +884 -0
- package/test/node_modules/formidable/README_pt_BR.md +841 -0
- package/test/node_modules/formidable/dist/helpers/firstValues.cjs +394 -0
- package/test/node_modules/formidable/dist/helpers/readBooleans.cjs +12 -0
- package/test/node_modules/formidable/dist/index.cjs +1690 -0
- package/test/node_modules/formidable/dist/parsers/JSON.cjs +35 -0
- package/test/node_modules/formidable/dist/parsers/Multipart.cjs +372 -0
- package/test/node_modules/formidable/dist/parsers/OctetStream.cjs +14 -0
- package/test/node_modules/formidable/dist/parsers/Querystring.cjs +38 -0
- package/test/node_modules/formidable/dist/parsers/StreamingQuerystring.cjs +131 -0
- package/test/node_modules/formidable/package.json +140 -0
- package/test/node_modules/formidable/src/Formidable.js +684 -0
- package/test/node_modules/formidable/src/FormidableError.js +51 -0
- package/test/node_modules/formidable/src/PersistentFile.js +88 -0
- package/test/node_modules/formidable/src/VolatileFile.js +80 -0
- package/test/node_modules/formidable/src/helpers/firstValues.js +19 -0
- package/test/node_modules/formidable/src/helpers/readBooleans.js +10 -0
- package/test/node_modules/formidable/src/index.js +32 -0
- package/test/node_modules/formidable/src/parsers/Dummy.js +19 -0
- package/test/node_modules/formidable/src/parsers/JSON.js +30 -0
- package/test/node_modules/formidable/src/parsers/Multipart.js +356 -0
- package/test/node_modules/formidable/src/parsers/OctetStream.js +10 -0
- package/test/node_modules/formidable/src/parsers/Querystring.js +33 -0
- package/test/node_modules/formidable/src/parsers/StreamingQuerystring.js +117 -0
- package/test/node_modules/formidable/src/parsers/index.js +15 -0
- package/test/node_modules/formidable/src/plugins/index.js +6 -0
- package/test/node_modules/formidable/src/plugins/json.js +39 -0
- package/test/node_modules/formidable/src/plugins/multipart.js +173 -0
- package/test/node_modules/formidable/src/plugins/octetstream.js +84 -0
- package/test/node_modules/formidable/src/plugins/querystring.js +41 -0
- package/test/node_modules/fount-js/README.md +35 -0
- package/test/node_modules/fount-js/fount.cjs +145 -0
- package/test/node_modules/fount-js/fount.js +202 -0
- package/test/node_modules/fount-js/package.json +23 -0
- package/test/node_modules/fsevents/LICENSE +22 -0
- package/test/node_modules/fsevents/README.md +89 -0
- package/test/node_modules/fsevents/fsevents.d.ts +46 -0
- package/test/node_modules/fsevents/fsevents.js +83 -0
- package/test/node_modules/fsevents/fsevents.node +0 -0
- package/test/node_modules/fsevents/package.json +62 -0
- package/test/node_modules/function-bind/.eslintrc +21 -0
- package/test/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/test/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/test/node_modules/function-bind/.nycrc +13 -0
- package/test/node_modules/function-bind/CHANGELOG.md +136 -0
- package/test/node_modules/function-bind/LICENSE +20 -0
- package/test/node_modules/function-bind/README.md +46 -0
- package/test/node_modules/function-bind/implementation.js +84 -0
- package/test/node_modules/function-bind/index.js +5 -0
- package/test/node_modules/function-bind/package.json +87 -0
- package/test/node_modules/function-bind/test/.eslintrc +9 -0
- package/test/node_modules/function-bind/test/index.js +252 -0
- package/test/node_modules/get-caller-file/LICENSE.md +6 -0
- package/test/node_modules/get-caller-file/README.md +41 -0
- package/test/node_modules/get-caller-file/index.d.ts +2 -0
- package/test/node_modules/get-caller-file/index.js +22 -0
- package/test/node_modules/get-caller-file/index.js.map +1 -0
- package/test/node_modules/get-caller-file/package.json +42 -0
- package/test/node_modules/get-intrinsic/.eslintrc +42 -0
- package/test/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/test/node_modules/get-intrinsic/.nycrc +9 -0
- package/test/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/test/node_modules/get-intrinsic/LICENSE +21 -0
- package/test/node_modules/get-intrinsic/README.md +71 -0
- package/test/node_modules/get-intrinsic/index.js +378 -0
- package/test/node_modules/get-intrinsic/package.json +97 -0
- package/test/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/test/node_modules/get-proto/.eslintrc +10 -0
- package/test/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/test/node_modules/get-proto/.nycrc +9 -0
- package/test/node_modules/get-proto/CHANGELOG.md +21 -0
- package/test/node_modules/get-proto/LICENSE +21 -0
- package/test/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/test/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/test/node_modules/get-proto/README.md +50 -0
- package/test/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/test/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/test/node_modules/get-proto/index.d.ts +5 -0
- package/test/node_modules/get-proto/index.js +27 -0
- package/test/node_modules/get-proto/package.json +81 -0
- package/test/node_modules/get-proto/test/index.js +68 -0
- package/test/node_modules/get-proto/tsconfig.json +9 -0
- package/test/node_modules/glob/LICENSE +15 -0
- package/test/node_modules/glob/README.md +1265 -0
- package/test/node_modules/glob/dist/commonjs/glob.d.ts +388 -0
- package/test/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/test/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/test/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/test/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
- package/test/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/test/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/test/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/test/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
- package/test/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/test/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/test/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/test/node_modules/glob/dist/commonjs/index.d.ts +97 -0
- package/test/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/glob/dist/commonjs/index.js +68 -0
- package/test/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/glob/dist/commonjs/package.json +3 -0
- package/test/node_modules/glob/dist/commonjs/pattern.d.ts +76 -0
- package/test/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/test/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/test/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/test/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
- package/test/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/test/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/test/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/test/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
- package/test/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/test/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/test/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/test/node_modules/glob/dist/esm/bin.d.mts +3 -0
- package/test/node_modules/glob/dist/esm/bin.d.mts.map +1 -0
- package/test/node_modules/glob/dist/esm/bin.mjs +270 -0
- package/test/node_modules/glob/dist/esm/bin.mjs.map +1 -0
- package/test/node_modules/glob/dist/esm/glob.d.ts +388 -0
- package/test/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/test/node_modules/glob/dist/esm/glob.js +243 -0
- package/test/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/test/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
- package/test/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/test/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/test/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/test/node_modules/glob/dist/esm/ignore.d.ts +24 -0
- package/test/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/test/node_modules/glob/dist/esm/ignore.js +115 -0
- package/test/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/test/node_modules/glob/dist/esm/index.d.ts +97 -0
- package/test/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/glob/dist/esm/index.js +55 -0
- package/test/node_modules/glob/dist/esm/index.js.map +1 -0
- package/test/node_modules/glob/dist/esm/package.json +3 -0
- package/test/node_modules/glob/dist/esm/pattern.d.ts +76 -0
- package/test/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/test/node_modules/glob/dist/esm/pattern.js +215 -0
- package/test/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/test/node_modules/glob/dist/esm/processor.d.ts +59 -0
- package/test/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/test/node_modules/glob/dist/esm/processor.js +294 -0
- package/test/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/test/node_modules/glob/dist/esm/walker.d.ts +97 -0
- package/test/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/test/node_modules/glob/dist/esm/walker.js +381 -0
- package/test/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/LICENSE +15 -0
- package/test/node_modules/glob/node_modules/minimatch/README.md +454 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js +592 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/escape.js +22 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/index.js +1017 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/ast.js +588 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/escape.js +18 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/index.d.ts +94 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/index.js +1001 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/package.json +3 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/unescape.js +20 -0
- package/test/node_modules/glob/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/test/node_modules/glob/node_modules/minimatch/package.json +82 -0
- package/test/node_modules/glob/package.json +99 -0
- package/test/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/test/node_modules/glob-parent/LICENSE +15 -0
- package/test/node_modules/glob-parent/README.md +137 -0
- package/test/node_modules/glob-parent/index.js +42 -0
- package/test/node_modules/glob-parent/package.json +48 -0
- package/test/node_modules/gopd/.eslintrc +16 -0
- package/test/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/test/node_modules/gopd/CHANGELOG.md +45 -0
- package/test/node_modules/gopd/LICENSE +21 -0
- package/test/node_modules/gopd/README.md +40 -0
- package/test/node_modules/gopd/gOPD.d.ts +1 -0
- package/test/node_modules/gopd/gOPD.js +4 -0
- package/test/node_modules/gopd/index.d.ts +5 -0
- package/test/node_modules/gopd/index.js +15 -0
- package/test/node_modules/gopd/package.json +77 -0
- package/test/node_modules/gopd/test/index.js +36 -0
- package/test/node_modules/gopd/tsconfig.json +9 -0
- package/test/node_modules/has-flag/index.d.ts +39 -0
- package/test/node_modules/has-flag/index.js +8 -0
- package/test/node_modules/has-flag/license +9 -0
- package/test/node_modules/has-flag/package.json +46 -0
- package/test/node_modules/has-flag/readme.md +89 -0
- package/test/node_modules/has-symbols/.eslintrc +11 -0
- package/test/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/test/node_modules/has-symbols/.nycrc +9 -0
- package/test/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/test/node_modules/has-symbols/LICENSE +21 -0
- package/test/node_modules/has-symbols/README.md +46 -0
- package/test/node_modules/has-symbols/index.d.ts +3 -0
- package/test/node_modules/has-symbols/index.js +14 -0
- package/test/node_modules/has-symbols/package.json +111 -0
- package/test/node_modules/has-symbols/shams.d.ts +3 -0
- package/test/node_modules/has-symbols/shams.js +45 -0
- package/test/node_modules/has-symbols/test/index.js +22 -0
- package/test/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/test/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/test/node_modules/has-symbols/test/tests.js +58 -0
- package/test/node_modules/has-symbols/tsconfig.json +10 -0
- package/test/node_modules/has-tostringtag/.eslintrc +5 -0
- package/test/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/test/node_modules/has-tostringtag/.nycrc +13 -0
- package/test/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/test/node_modules/has-tostringtag/LICENSE +21 -0
- package/test/node_modules/has-tostringtag/README.md +46 -0
- package/test/node_modules/has-tostringtag/index.d.ts +3 -0
- package/test/node_modules/has-tostringtag/index.js +8 -0
- package/test/node_modules/has-tostringtag/package.json +108 -0
- package/test/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/test/node_modules/has-tostringtag/shams.js +8 -0
- package/test/node_modules/has-tostringtag/test/index.js +21 -0
- package/test/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/test/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/test/node_modules/has-tostringtag/test/tests.js +15 -0
- package/test/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/test/node_modules/hasown/.eslintrc +5 -0
- package/test/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/test/node_modules/hasown/.nycrc +13 -0
- package/test/node_modules/hasown/CHANGELOG.md +40 -0
- package/test/node_modules/hasown/LICENSE +21 -0
- package/test/node_modules/hasown/README.md +40 -0
- package/test/node_modules/hasown/index.d.ts +3 -0
- package/test/node_modules/hasown/index.js +8 -0
- package/test/node_modules/hasown/package.json +92 -0
- package/test/node_modules/hasown/tsconfig.json +6 -0
- package/test/node_modules/he/LICENSE-MIT.txt +20 -0
- package/test/node_modules/he/README.md +379 -0
- package/test/node_modules/he/bin/he +148 -0
- package/test/node_modules/he/he.js +345 -0
- package/test/node_modules/he/man/he.1 +78 -0
- package/test/node_modules/he/package.json +58 -0
- package/test/node_modules/hexoid/dist/index.d.ts +1 -0
- package/test/node_modules/hexoid/dist/index.js +1 -0
- package/test/node_modules/hexoid/dist/index.mjs +1 -0
- package/test/node_modules/hexoid/license +9 -0
- package/test/node_modules/hexoid/package.json +45 -0
- package/test/node_modules/hexoid/readme.md +118 -0
- package/test/node_modules/is-binary-path/index.d.ts +17 -0
- package/test/node_modules/is-binary-path/index.js +7 -0
- package/test/node_modules/is-binary-path/license +9 -0
- package/test/node_modules/is-binary-path/package.json +40 -0
- package/test/node_modules/is-binary-path/readme.md +34 -0
- package/test/node_modules/is-extglob/LICENSE +21 -0
- package/test/node_modules/is-extglob/README.md +107 -0
- package/test/node_modules/is-extglob/index.js +20 -0
- package/test/node_modules/is-extglob/package.json +69 -0
- package/test/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/test/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/test/node_modules/is-fullwidth-code-point/license +9 -0
- package/test/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/test/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/test/node_modules/is-glob/LICENSE +21 -0
- package/test/node_modules/is-glob/README.md +206 -0
- package/test/node_modules/is-glob/index.js +150 -0
- package/test/node_modules/is-glob/package.json +81 -0
- package/test/node_modules/is-number/LICENSE +21 -0
- package/test/node_modules/is-number/README.md +187 -0
- package/test/node_modules/is-number/index.js +18 -0
- package/test/node_modules/is-number/package.json +82 -0
- package/test/node_modules/is-plain-obj/index.d.ts +29 -0
- package/test/node_modules/is-plain-obj/index.js +10 -0
- package/test/node_modules/is-plain-obj/license +9 -0
- package/test/node_modules/is-plain-obj/package.json +38 -0
- package/test/node_modules/is-plain-obj/readme.md +54 -0
- package/test/node_modules/is-unicode-supported/index.d.ts +14 -0
- package/test/node_modules/is-unicode-supported/index.js +13 -0
- package/test/node_modules/is-unicode-supported/license +9 -0
- package/test/node_modules/is-unicode-supported/package.json +41 -0
- package/test/node_modules/is-unicode-supported/readme.md +35 -0
- package/test/node_modules/isexe/LICENSE +15 -0
- package/test/node_modules/isexe/README.md +51 -0
- package/test/node_modules/isexe/index.js +57 -0
- package/test/node_modules/isexe/mode.js +41 -0
- package/test/node_modules/isexe/package.json +31 -0
- package/test/node_modules/isexe/test/basic.js +221 -0
- package/test/node_modules/isexe/windows.js +42 -0
- package/test/node_modules/jackspeak/LICENSE.md +55 -0
- package/test/node_modules/jackspeak/README.md +357 -0
- package/test/node_modules/jackspeak/dist/commonjs/index.d.ts +315 -0
- package/test/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/jackspeak/dist/commonjs/index.js +1010 -0
- package/test/node_modules/jackspeak/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/jackspeak/dist/commonjs/package.json +3 -0
- package/test/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +1 -0
- package/test/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +1 -0
- package/test/node_modules/jackspeak/dist/commonjs/parse-args.d.ts +4 -0
- package/test/node_modules/jackspeak/dist/commonjs/parse-args.js +50 -0
- package/test/node_modules/jackspeak/dist/esm/index.d.ts +315 -0
- package/test/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/jackspeak/dist/esm/index.js +1000 -0
- package/test/node_modules/jackspeak/dist/esm/index.js.map +1 -0
- package/test/node_modules/jackspeak/dist/esm/package.json +3 -0
- package/test/node_modules/jackspeak/dist/esm/parse-args.d.ts +4 -0
- package/test/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +1 -0
- package/test/node_modules/jackspeak/dist/esm/parse-args.js +26 -0
- package/test/node_modules/jackspeak/dist/esm/parse-args.js.map +1 -0
- package/test/node_modules/jackspeak/package.json +95 -0
- package/test/node_modules/js-yaml/CHANGELOG.md +616 -0
- package/test/node_modules/js-yaml/LICENSE +21 -0
- package/test/node_modules/js-yaml/README.md +246 -0
- package/test/node_modules/js-yaml/bin/js-yaml.js +126 -0
- package/test/node_modules/js-yaml/dist/js-yaml.js +3874 -0
- package/test/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
- package/test/node_modules/js-yaml/dist/js-yaml.mjs +3851 -0
- package/test/node_modules/js-yaml/index.js +47 -0
- package/test/node_modules/js-yaml/lib/common.js +59 -0
- package/test/node_modules/js-yaml/lib/dumper.js +965 -0
- package/test/node_modules/js-yaml/lib/exception.js +55 -0
- package/test/node_modules/js-yaml/lib/loader.js +1727 -0
- package/test/node_modules/js-yaml/lib/schema/core.js +11 -0
- package/test/node_modules/js-yaml/lib/schema/default.js +22 -0
- package/test/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
- package/test/node_modules/js-yaml/lib/schema/json.js +19 -0
- package/test/node_modules/js-yaml/lib/schema.js +121 -0
- package/test/node_modules/js-yaml/lib/snippet.js +101 -0
- package/test/node_modules/js-yaml/lib/type/binary.js +125 -0
- package/test/node_modules/js-yaml/lib/type/bool.js +35 -0
- package/test/node_modules/js-yaml/lib/type/float.js +97 -0
- package/test/node_modules/js-yaml/lib/type/int.js +156 -0
- package/test/node_modules/js-yaml/lib/type/map.js +8 -0
- package/test/node_modules/js-yaml/lib/type/merge.js +12 -0
- package/test/node_modules/js-yaml/lib/type/null.js +35 -0
- package/test/node_modules/js-yaml/lib/type/omap.js +44 -0
- package/test/node_modules/js-yaml/lib/type/pairs.js +53 -0
- package/test/node_modules/js-yaml/lib/type/seq.js +8 -0
- package/test/node_modules/js-yaml/lib/type/set.js +29 -0
- package/test/node_modules/js-yaml/lib/type/str.js +8 -0
- package/test/node_modules/js-yaml/lib/type/timestamp.js +88 -0
- package/test/node_modules/js-yaml/lib/type.js +66 -0
- package/test/node_modules/js-yaml/package.json +66 -0
- package/test/node_modules/locate-path/index.d.ts +83 -0
- package/test/node_modules/locate-path/index.js +68 -0
- package/test/node_modules/locate-path/license +9 -0
- package/test/node_modules/locate-path/package.json +46 -0
- package/test/node_modules/locate-path/readme.md +125 -0
- package/test/node_modules/log-symbols/browser.js +8 -0
- package/test/node_modules/log-symbols/index.d.ts +25 -0
- package/test/node_modules/log-symbols/index.js +19 -0
- package/test/node_modules/log-symbols/license +9 -0
- package/test/node_modules/log-symbols/package.json +52 -0
- package/test/node_modules/log-symbols/readme.md +51 -0
- package/test/node_modules/loupe/LICENSE +9 -0
- package/test/node_modules/loupe/README.md +63 -0
- package/test/node_modules/loupe/lib/arguments.d.ts +3 -0
- package/test/node_modules/loupe/lib/arguments.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/arguments.js +7 -0
- package/test/node_modules/loupe/lib/array.d.ts +3 -0
- package/test/node_modules/loupe/lib/array.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/array.js +16 -0
- package/test/node_modules/loupe/lib/bigint.d.ts +3 -0
- package/test/node_modules/loupe/lib/bigint.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/bigint.js +7 -0
- package/test/node_modules/loupe/lib/class.d.ts +5 -0
- package/test/node_modules/loupe/lib/class.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/class.js +15 -0
- package/test/node_modules/loupe/lib/date.d.ts +3 -0
- package/test/node_modules/loupe/lib/date.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/date.js +11 -0
- package/test/node_modules/loupe/lib/error.d.ts +3 -0
- package/test/node_modules/loupe/lib/error.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/error.js +35 -0
- package/test/node_modules/loupe/lib/function.d.ts +7 -0
- package/test/node_modules/loupe/lib/function.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/function.js +9 -0
- package/test/node_modules/loupe/lib/helpers.d.ts +7 -0
- package/test/node_modules/loupe/lib/helpers.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/helpers.js +159 -0
- package/test/node_modules/loupe/lib/html.d.ts +5 -0
- package/test/node_modules/loupe/lib/html.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/html.js +34 -0
- package/test/node_modules/loupe/lib/index.d.ts +7 -0
- package/test/node_modules/loupe/lib/index.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/index.js +161 -0
- package/test/node_modules/loupe/lib/map.d.ts +3 -0
- package/test/node_modules/loupe/lib/map.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/map.js +22 -0
- package/test/node_modules/loupe/lib/number.d.ts +3 -0
- package/test/node_modules/loupe/lib/number.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/number.js +17 -0
- package/test/node_modules/loupe/lib/object.d.ts +3 -0
- package/test/node_modules/loupe/lib/object.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/object.js +22 -0
- package/test/node_modules/loupe/lib/promise.d.ts +5 -0
- package/test/node_modules/loupe/lib/promise.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/promise.js +18 -0
- package/test/node_modules/loupe/lib/regexp.d.ts +3 -0
- package/test/node_modules/loupe/lib/regexp.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/regexp.js +7 -0
- package/test/node_modules/loupe/lib/set.d.ts +3 -0
- package/test/node_modules/loupe/lib/set.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/set.js +15 -0
- package/test/node_modules/loupe/lib/string.d.ts +3 -0
- package/test/node_modules/loupe/lib/string.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/string.js +24 -0
- package/test/node_modules/loupe/lib/symbol.d.ts +2 -0
- package/test/node_modules/loupe/lib/symbol.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/symbol.js +6 -0
- package/test/node_modules/loupe/lib/typedarray.d.ts +5 -0
- package/test/node_modules/loupe/lib/typedarray.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/typedarray.js +38 -0
- package/test/node_modules/loupe/lib/types.d.ts +15 -0
- package/test/node_modules/loupe/lib/types.d.ts.map +1 -0
- package/test/node_modules/loupe/lib/types.js +1 -0
- package/test/node_modules/loupe/loupe.js +640 -0
- package/test/node_modules/loupe/package.json +73 -0
- package/test/node_modules/lru-cache/LICENSE +15 -0
- package/test/node_modules/lru-cache/README.md +331 -0
- package/test/node_modules/lru-cache/dist/commonjs/index.d.ts +1277 -0
- package/test/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/test/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/test/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/test/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/test/node_modules/lru-cache/dist/esm/index.d.ts +1277 -0
- package/test/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/test/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/test/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/test/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/test/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/test/node_modules/lru-cache/package.json +116 -0
- package/test/node_modules/math-intrinsics/.eslintrc +16 -0
- package/test/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/test/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/test/node_modules/math-intrinsics/LICENSE +21 -0
- package/test/node_modules/math-intrinsics/README.md +50 -0
- package/test/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/test/node_modules/math-intrinsics/abs.js +4 -0
- package/test/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/test/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/test/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/test/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/test/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/test/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/test/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/test/node_modules/math-intrinsics/floor.js +4 -0
- package/test/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/test/node_modules/math-intrinsics/isFinite.js +12 -0
- package/test/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/test/node_modules/math-intrinsics/isInteger.js +16 -0
- package/test/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/test/node_modules/math-intrinsics/isNaN.js +6 -0
- package/test/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/test/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/test/node_modules/math-intrinsics/max.d.ts +1 -0
- package/test/node_modules/math-intrinsics/max.js +4 -0
- package/test/node_modules/math-intrinsics/min.d.ts +1 -0
- package/test/node_modules/math-intrinsics/min.js +4 -0
- package/test/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/test/node_modules/math-intrinsics/mod.js +9 -0
- package/test/node_modules/math-intrinsics/package.json +86 -0
- package/test/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/test/node_modules/math-intrinsics/pow.js +4 -0
- package/test/node_modules/math-intrinsics/round.d.ts +1 -0
- package/test/node_modules/math-intrinsics/round.js +4 -0
- package/test/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/test/node_modules/math-intrinsics/sign.js +11 -0
- package/test/node_modules/math-intrinsics/test/index.js +192 -0
- package/test/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/test/node_modules/methods/HISTORY.md +29 -0
- package/test/node_modules/methods/LICENSE +24 -0
- package/test/node_modules/methods/README.md +51 -0
- package/test/node_modules/methods/index.js +69 -0
- package/test/node_modules/methods/package.json +36 -0
- package/test/node_modules/mime/CHANGELOG.md +296 -0
- package/test/node_modules/mime/LICENSE +21 -0
- package/test/node_modules/mime/Mime.js +97 -0
- package/test/node_modules/mime/README.md +187 -0
- package/test/node_modules/mime/cli.js +46 -0
- package/test/node_modules/mime/index.js +4 -0
- package/test/node_modules/mime/lite.js +4 -0
- package/test/node_modules/mime/package.json +52 -0
- package/test/node_modules/mime/types/other.js +1 -0
- package/test/node_modules/mime/types/standard.js +1 -0
- package/test/node_modules/mime-db/HISTORY.md +507 -0
- package/test/node_modules/mime-db/LICENSE +23 -0
- package/test/node_modules/mime-db/README.md +100 -0
- package/test/node_modules/mime-db/db.json +8519 -0
- package/test/node_modules/mime-db/index.js +12 -0
- package/test/node_modules/mime-db/package.json +60 -0
- package/test/node_modules/mime-types/HISTORY.md +397 -0
- package/test/node_modules/mime-types/LICENSE +23 -0
- package/test/node_modules/mime-types/README.md +113 -0
- package/test/node_modules/mime-types/index.js +188 -0
- package/test/node_modules/mime-types/package.json +44 -0
- package/test/node_modules/minimatch/LICENSE +15 -0
- package/test/node_modules/minimatch/README.md +259 -0
- package/test/node_modules/minimatch/lib/path.js +4 -0
- package/test/node_modules/minimatch/minimatch.js +944 -0
- package/test/node_modules/minimatch/package.json +35 -0
- package/test/node_modules/minipass/LICENSE +15 -0
- package/test/node_modules/minipass/README.md +825 -0
- package/test/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/test/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/test/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/test/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/test/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/minipass/dist/esm/index.js +1018 -0
- package/test/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/test/node_modules/minipass/dist/esm/package.json +3 -0
- package/test/node_modules/minipass/package.json +82 -0
- package/test/node_modules/mocha/LICENSE +22 -0
- package/test/node_modules/mocha/README.md +74 -0
- package/test/node_modules/mocha/bin/_mocha +10 -0
- package/test/node_modules/mocha/bin/mocha.js +142 -0
- package/test/node_modules/mocha/browser-entry.js +226 -0
- package/test/node_modules/mocha/index.js +3 -0
- package/test/node_modules/mocha/lib/browser/highlight-tags.js +39 -0
- package/test/node_modules/mocha/lib/browser/parse-query.js +24 -0
- package/test/node_modules/mocha/lib/browser/template.html +20 -0
- package/test/node_modules/mocha/lib/cli/cli.js +93 -0
- package/test/node_modules/mocha/lib/cli/collect-files.js +137 -0
- package/test/node_modules/mocha/lib/cli/commands.js +14 -0
- package/test/node_modules/mocha/lib/cli/config.js +100 -0
- package/test/node_modules/mocha/lib/cli/index.js +3 -0
- package/test/node_modules/mocha/lib/cli/init.js +36 -0
- package/test/node_modules/mocha/lib/cli/lookup-files.js +155 -0
- package/test/node_modules/mocha/lib/cli/node-flags.js +85 -0
- package/test/node_modules/mocha/lib/cli/one-and-dones.js +69 -0
- package/test/node_modules/mocha/lib/cli/options.js +337 -0
- package/test/node_modules/mocha/lib/cli/run-helpers.js +304 -0
- package/test/node_modules/mocha/lib/cli/run-option-metadata.js +137 -0
- package/test/node_modules/mocha/lib/cli/run.js +380 -0
- package/test/node_modules/mocha/lib/cli/watch-run.js +377 -0
- package/test/node_modules/mocha/lib/context.js +86 -0
- package/test/node_modules/mocha/lib/errors.js +563 -0
- package/test/node_modules/mocha/lib/hook.js +89 -0
- package/test/node_modules/mocha/lib/interfaces/bdd.js +114 -0
- package/test/node_modules/mocha/lib/interfaces/common.js +193 -0
- package/test/node_modules/mocha/lib/interfaces/exports.js +60 -0
- package/test/node_modules/mocha/lib/interfaces/index.js +6 -0
- package/test/node_modules/mocha/lib/interfaces/qunit.js +98 -0
- package/test/node_modules/mocha/lib/interfaces/tdd.js +106 -0
- package/test/node_modules/mocha/lib/mocha.js +1334 -0
- package/test/node_modules/mocha/lib/mocharc.json +10 -0
- package/test/node_modules/mocha/lib/nodejs/buffered-worker-pool.js +188 -0
- package/test/node_modules/mocha/lib/nodejs/esm-utils.js +106 -0
- package/test/node_modules/mocha/lib/nodejs/file-unloader.js +15 -0
- package/test/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js +433 -0
- package/test/node_modules/mocha/lib/nodejs/reporters/parallel-buffered.js +165 -0
- package/test/node_modules/mocha/lib/nodejs/serializer.js +414 -0
- package/test/node_modules/mocha/lib/nodejs/worker.js +151 -0
- package/test/node_modules/mocha/lib/pending.js +16 -0
- package/test/node_modules/mocha/lib/plugin-loader.js +286 -0
- package/test/node_modules/mocha/lib/reporters/base.js +591 -0
- package/test/node_modules/mocha/lib/reporters/doc.js +95 -0
- package/test/node_modules/mocha/lib/reporters/dot.js +81 -0
- package/test/node_modules/mocha/lib/reporters/html.js +420 -0
- package/test/node_modules/mocha/lib/reporters/index.js +19 -0
- package/test/node_modules/mocha/lib/reporters/json-stream.js +92 -0
- package/test/node_modules/mocha/lib/reporters/json.js +162 -0
- package/test/node_modules/mocha/lib/reporters/landing.js +116 -0
- package/test/node_modules/mocha/lib/reporters/list.js +78 -0
- package/test/node_modules/mocha/lib/reporters/markdown.js +112 -0
- package/test/node_modules/mocha/lib/reporters/min.js +52 -0
- package/test/node_modules/mocha/lib/reporters/nyan.js +267 -0
- package/test/node_modules/mocha/lib/reporters/progress.js +104 -0
- package/test/node_modules/mocha/lib/reporters/spec.js +99 -0
- package/test/node_modules/mocha/lib/reporters/tap.js +293 -0
- package/test/node_modules/mocha/lib/reporters/xunit.js +218 -0
- package/test/node_modules/mocha/lib/runnable.js +474 -0
- package/test/node_modules/mocha/lib/runner.js +1267 -0
- package/test/node_modules/mocha/lib/stats-collector.js +83 -0
- package/test/node_modules/mocha/lib/suite.js +666 -0
- package/test/node_modules/mocha/lib/test.js +113 -0
- package/test/node_modules/mocha/lib/utils.js +698 -0
- package/test/node_modules/mocha/mocha.css +455 -0
- package/test/node_modules/mocha/mocha.js +20785 -0
- package/test/node_modules/mocha/mocha.js.map +1 -0
- package/test/node_modules/mocha/package.json +207 -0
- package/test/node_modules/ms/index.js +162 -0
- package/test/node_modules/ms/license.md +21 -0
- package/test/node_modules/ms/package.json +38 -0
- package/test/node_modules/ms/readme.md +59 -0
- package/test/node_modules/node-domexception/.history/README_20210527203617.md +2 -0
- package/test/node_modules/node-domexception/.history/README_20210527212714.md +41 -0
- package/test/node_modules/node-domexception/.history/README_20210527213345.md +36 -0
- package/test/node_modules/node-domexception/.history/README_20210527213411.md +36 -0
- package/test/node_modules/node-domexception/.history/README_20210527213803.md +36 -0
- package/test/node_modules/node-domexception/.history/README_20210527214323.md +38 -0
- package/test/node_modules/node-domexception/.history/README_20210527214408.md +38 -0
- package/test/node_modules/node-domexception/.history/index_20210527203842.js +0 -0
- package/test/node_modules/node-domexception/.history/index_20210527203947.js +8 -0
- package/test/node_modules/node-domexception/.history/index_20210527204259.js +9 -0
- package/test/node_modules/node-domexception/.history/index_20210527204418.js +9 -0
- package/test/node_modules/node-domexception/.history/index_20210527204756.js +11 -0
- package/test/node_modules/node-domexception/.history/index_20210527204833.js +11 -0
- package/test/node_modules/node-domexception/.history/index_20210527211208.js +15 -0
- package/test/node_modules/node-domexception/.history/index_20210527211248.js +15 -0
- package/test/node_modules/node-domexception/.history/index_20210527212722.js +23 -0
- package/test/node_modules/node-domexception/.history/index_20210527212731.js +23 -0
- package/test/node_modules/node-domexception/.history/index_20210527212746.js +15 -0
- package/test/node_modules/node-domexception/.history/index_20210527212900.js +16 -0
- package/test/node_modules/node-domexception/.history/index_20210527213022.js +16 -0
- package/test/node_modules/node-domexception/.history/index_20210527213822.js +16 -0
- package/test/node_modules/node-domexception/.history/index_20210527213843.js +17 -0
- package/test/node_modules/node-domexception/.history/index_20210527213852.js +17 -0
- package/test/node_modules/node-domexception/.history/index_20210527213910.js +16 -0
- package/test/node_modules/node-domexception/.history/index_20210527214034.js +16 -0
- package/test/node_modules/node-domexception/.history/index_20210527214643.js +41 -0
- package/test/node_modules/node-domexception/.history/index_20210527214654.js +41 -0
- package/test/node_modules/node-domexception/.history/index_20210527214700.js +16 -0
- package/test/node_modules/node-domexception/.history/package_20210527203733.json +19 -0
- package/test/node_modules/node-domexception/.history/package_20210527203825.json +16 -0
- package/test/node_modules/node-domexception/.history/package_20210527204621.json +19 -0
- package/test/node_modules/node-domexception/.history/package_20210527204913.json +25 -0
- package/test/node_modules/node-domexception/.history/package_20210527204925.json +25 -0
- package/test/node_modules/node-domexception/.history/package_20210527205145.json +29 -0
- package/test/node_modules/node-domexception/.history/package_20210527205156.json +29 -0
- package/test/node_modules/node-domexception/.history/test_20210527205603.js +0 -0
- package/test/node_modules/node-domexception/.history/test_20210527205957.js +3 -0
- package/test/node_modules/node-domexception/.history/test_20210527210021.js +3 -0
- package/test/node_modules/node-domexception/LICENSE +21 -0
- package/test/node_modules/node-domexception/README.md +46 -0
- package/test/node_modules/node-domexception/index.js +16 -0
- package/test/node_modules/node-domexception/package.json +29 -0
- package/test/node_modules/node-fetch/@types/index.d.ts +219 -0
- package/test/node_modules/node-fetch/LICENSE.md +22 -0
- package/test/node_modules/node-fetch/README.md +872 -0
- package/test/node_modules/node-fetch/package.json +131 -0
- package/test/node_modules/node-fetch/src/body.js +397 -0
- package/test/node_modules/node-fetch/src/errors/abort-error.js +10 -0
- package/test/node_modules/node-fetch/src/errors/base.js +17 -0
- package/test/node_modules/node-fetch/src/errors/fetch-error.js +26 -0
- package/test/node_modules/node-fetch/src/headers.js +267 -0
- package/test/node_modules/node-fetch/src/index.js +417 -0
- package/test/node_modules/node-fetch/src/request.js +313 -0
- package/test/node_modules/node-fetch/src/response.js +160 -0
- package/test/node_modules/node-fetch/src/utils/get-search.js +9 -0
- package/test/node_modules/node-fetch/src/utils/is-redirect.js +11 -0
- package/test/node_modules/node-fetch/src/utils/is.js +87 -0
- package/test/node_modules/node-fetch/src/utils/multipart-parser.js +432 -0
- package/test/node_modules/node-fetch/src/utils/referrer.js +340 -0
- package/test/node_modules/normalize-path/LICENSE +21 -0
- package/test/node_modules/normalize-path/README.md +127 -0
- package/test/node_modules/normalize-path/index.js +35 -0
- package/test/node_modules/normalize-path/package.json +77 -0
- package/test/node_modules/object-inspect/.eslintrc +53 -0
- package/test/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/test/node_modules/object-inspect/.nycrc +13 -0
- package/test/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/test/node_modules/object-inspect/LICENSE +21 -0
- package/test/node_modules/object-inspect/example/all.js +23 -0
- package/test/node_modules/object-inspect/example/circular.js +6 -0
- package/test/node_modules/object-inspect/example/fn.js +5 -0
- package/test/node_modules/object-inspect/example/inspect.js +10 -0
- package/test/node_modules/object-inspect/index.js +544 -0
- package/test/node_modules/object-inspect/package-support.json +20 -0
- package/test/node_modules/object-inspect/package.json +105 -0
- package/test/node_modules/object-inspect/readme.markdown +84 -0
- package/test/node_modules/object-inspect/test/bigint.js +58 -0
- package/test/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/test/node_modules/object-inspect/test/circular.js +16 -0
- package/test/node_modules/object-inspect/test/deep.js +12 -0
- package/test/node_modules/object-inspect/test/element.js +53 -0
- package/test/node_modules/object-inspect/test/err.js +48 -0
- package/test/node_modules/object-inspect/test/fakes.js +29 -0
- package/test/node_modules/object-inspect/test/fn.js +76 -0
- package/test/node_modules/object-inspect/test/global.js +17 -0
- package/test/node_modules/object-inspect/test/has.js +15 -0
- package/test/node_modules/object-inspect/test/holes.js +15 -0
- package/test/node_modules/object-inspect/test/indent-option.js +271 -0
- package/test/node_modules/object-inspect/test/inspect.js +139 -0
- package/test/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/test/node_modules/object-inspect/test/number.js +58 -0
- package/test/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/test/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/test/node_modules/object-inspect/test/undef.js +12 -0
- package/test/node_modules/object-inspect/test/values.js +261 -0
- package/test/node_modules/object-inspect/test-core-js.js +26 -0
- package/test/node_modules/object-inspect/util.inspect.js +1 -0
- package/test/node_modules/once/LICENSE +15 -0
- package/test/node_modules/once/README.md +79 -0
- package/test/node_modules/once/once.js +42 -0
- package/test/node_modules/once/package.json +33 -0
- package/test/node_modules/p-limit/index.d.ts +42 -0
- package/test/node_modules/p-limit/index.js +71 -0
- package/test/node_modules/p-limit/license +9 -0
- package/test/node_modules/p-limit/package.json +52 -0
- package/test/node_modules/p-limit/readme.md +101 -0
- package/test/node_modules/p-locate/index.d.ts +53 -0
- package/test/node_modules/p-locate/index.js +50 -0
- package/test/node_modules/p-locate/license +9 -0
- package/test/node_modules/p-locate/package.json +54 -0
- package/test/node_modules/p-locate/readme.md +93 -0
- package/test/node_modules/package-json-from-dist/LICENSE.md +63 -0
- package/test/node_modules/package-json-from-dist/README.md +110 -0
- package/test/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +89 -0
- package/test/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -0
- package/test/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
- package/test/node_modules/package-json-from-dist/dist/esm/index.d.ts +89 -0
- package/test/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/package-json-from-dist/dist/esm/index.js +129 -0
- package/test/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
- package/test/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
- package/test/node_modules/package-json-from-dist/package.json +68 -0
- package/test/node_modules/path-exists/index.d.ts +28 -0
- package/test/node_modules/path-exists/index.js +23 -0
- package/test/node_modules/path-exists/license +9 -0
- package/test/node_modules/path-exists/package.json +39 -0
- package/test/node_modules/path-exists/readme.md +52 -0
- package/test/node_modules/path-key/index.d.ts +40 -0
- package/test/node_modules/path-key/index.js +16 -0
- package/test/node_modules/path-key/license +9 -0
- package/test/node_modules/path-key/package.json +39 -0
- package/test/node_modules/path-key/readme.md +61 -0
- package/test/node_modules/path-scurry/LICENSE.md +55 -0
- package/test/node_modules/path-scurry/README.md +636 -0
- package/test/node_modules/path-scurry/dist/commonjs/index.d.ts +1116 -0
- package/test/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
- package/test/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/test/node_modules/path-scurry/dist/esm/index.d.ts +1116 -0
- package/test/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/path-scurry/dist/esm/index.js +1979 -0
- package/test/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/test/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/test/node_modules/path-scurry/package.json +89 -0
- package/test/node_modules/pathval/LICENSE +16 -0
- package/test/node_modules/pathval/README.md +147 -0
- package/test/node_modules/pathval/index.js +292 -0
- package/test/node_modules/pathval/package.json +73 -0
- package/test/node_modules/pathval/pathval.js +1 -0
- package/test/node_modules/picomatch/CHANGELOG.md +136 -0
- package/test/node_modules/picomatch/LICENSE +21 -0
- package/test/node_modules/picomatch/README.md +708 -0
- package/test/node_modules/picomatch/index.js +3 -0
- package/test/node_modules/picomatch/lib/constants.js +179 -0
- package/test/node_modules/picomatch/lib/parse.js +1091 -0
- package/test/node_modules/picomatch/lib/picomatch.js +342 -0
- package/test/node_modules/picomatch/lib/scan.js +391 -0
- package/test/node_modules/picomatch/lib/utils.js +64 -0
- package/test/node_modules/picomatch/package.json +81 -0
- package/test/node_modules/qs/.editorconfig +46 -0
- package/test/node_modules/qs/.eslintrc +39 -0
- package/test/node_modules/qs/.github/FUNDING.yml +12 -0
- package/test/node_modules/qs/.nycrc +13 -0
- package/test/node_modules/qs/CHANGELOG.md +622 -0
- package/test/node_modules/qs/LICENSE.md +29 -0
- package/test/node_modules/qs/README.md +733 -0
- package/test/node_modules/qs/dist/qs.js +141 -0
- package/test/node_modules/qs/lib/formats.js +23 -0
- package/test/node_modules/qs/lib/index.js +11 -0
- package/test/node_modules/qs/lib/parse.js +328 -0
- package/test/node_modules/qs/lib/stringify.js +356 -0
- package/test/node_modules/qs/lib/utils.js +268 -0
- package/test/node_modules/qs/package.json +93 -0
- package/test/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/test/node_modules/qs/test/parse.js +1276 -0
- package/test/node_modules/qs/test/stringify.js +1306 -0
- package/test/node_modules/qs/test/utils.js +262 -0
- package/test/node_modules/randombytes/.travis.yml +15 -0
- package/test/node_modules/randombytes/.zuul.yml +1 -0
- package/test/node_modules/randombytes/LICENSE +21 -0
- package/test/node_modules/randombytes/README.md +14 -0
- package/test/node_modules/randombytes/browser.js +50 -0
- package/test/node_modules/randombytes/index.js +1 -0
- package/test/node_modules/randombytes/package.json +36 -0
- package/test/node_modules/randombytes/test.js +81 -0
- package/test/node_modules/readdirp/LICENSE +21 -0
- package/test/node_modules/readdirp/README.md +122 -0
- package/test/node_modules/readdirp/index.d.ts +43 -0
- package/test/node_modules/readdirp/index.js +287 -0
- package/test/node_modules/readdirp/package.json +122 -0
- package/test/node_modules/require-directory/.jshintrc +67 -0
- package/test/node_modules/require-directory/.travis.yml +3 -0
- package/test/node_modules/require-directory/LICENSE +22 -0
- package/test/node_modules/require-directory/README.markdown +184 -0
- package/test/node_modules/require-directory/index.js +86 -0
- package/test/node_modules/require-directory/package.json +40 -0
- package/test/node_modules/safe-buffer/LICENSE +21 -0
- package/test/node_modules/safe-buffer/README.md +584 -0
- package/test/node_modules/safe-buffer/index.d.ts +187 -0
- package/test/node_modules/safe-buffer/index.js +65 -0
- package/test/node_modules/safe-buffer/package.json +51 -0
- package/test/node_modules/serialize-javascript/LICENSE +27 -0
- package/test/node_modules/serialize-javascript/README.md +143 -0
- package/test/node_modules/serialize-javascript/index.js +268 -0
- package/test/node_modules/serialize-javascript/package.json +36 -0
- package/test/node_modules/sessionless-node/README.md +44 -0
- package/test/node_modules/sessionless-node/package.json +26 -0
- package/test/node_modules/sessionless-node/sessionless.cjs +96 -0
- package/test/node_modules/sessionless-node/sessionless.js +95 -0
- package/test/node_modules/sessionless-node/test/sessionless.js +78 -0
- package/test/node_modules/shebang-command/index.js +19 -0
- package/test/node_modules/shebang-command/license +9 -0
- package/test/node_modules/shebang-command/package.json +34 -0
- package/test/node_modules/shebang-command/readme.md +34 -0
- package/test/node_modules/shebang-regex/index.d.ts +22 -0
- package/test/node_modules/shebang-regex/index.js +2 -0
- package/test/node_modules/shebang-regex/license +9 -0
- package/test/node_modules/shebang-regex/package.json +35 -0
- package/test/node_modules/shebang-regex/readme.md +33 -0
- package/test/node_modules/side-channel/.editorconfig +9 -0
- package/test/node_modules/side-channel/.eslintrc +12 -0
- package/test/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/test/node_modules/side-channel/.nycrc +13 -0
- package/test/node_modules/side-channel/CHANGELOG.md +110 -0
- package/test/node_modules/side-channel/LICENSE +21 -0
- package/test/node_modules/side-channel/README.md +61 -0
- package/test/node_modules/side-channel/index.d.ts +14 -0
- package/test/node_modules/side-channel/index.js +43 -0
- package/test/node_modules/side-channel/package.json +85 -0
- package/test/node_modules/side-channel/test/index.js +104 -0
- package/test/node_modules/side-channel/tsconfig.json +9 -0
- package/test/node_modules/side-channel-list/.editorconfig +9 -0
- package/test/node_modules/side-channel-list/.eslintrc +11 -0
- package/test/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/test/node_modules/side-channel-list/.nycrc +13 -0
- package/test/node_modules/side-channel-list/CHANGELOG.md +15 -0
- package/test/node_modules/side-channel-list/LICENSE +21 -0
- package/test/node_modules/side-channel-list/README.md +62 -0
- package/test/node_modules/side-channel-list/index.d.ts +13 -0
- package/test/node_modules/side-channel-list/index.js +113 -0
- package/test/node_modules/side-channel-list/list.d.ts +14 -0
- package/test/node_modules/side-channel-list/package.json +77 -0
- package/test/node_modules/side-channel-list/test/index.js +104 -0
- package/test/node_modules/side-channel-list/tsconfig.json +9 -0
- package/test/node_modules/side-channel-map/.editorconfig +9 -0
- package/test/node_modules/side-channel-map/.eslintrc +11 -0
- package/test/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/test/node_modules/side-channel-map/.nycrc +13 -0
- package/test/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/test/node_modules/side-channel-map/LICENSE +21 -0
- package/test/node_modules/side-channel-map/README.md +62 -0
- package/test/node_modules/side-channel-map/index.d.ts +15 -0
- package/test/node_modules/side-channel-map/index.js +68 -0
- package/test/node_modules/side-channel-map/package.json +80 -0
- package/test/node_modules/side-channel-map/test/index.js +114 -0
- package/test/node_modules/side-channel-map/tsconfig.json +9 -0
- package/test/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/test/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/test/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/test/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/test/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/test/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/test/node_modules/side-channel-weakmap/README.md +62 -0
- package/test/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/test/node_modules/side-channel-weakmap/index.js +84 -0
- package/test/node_modules/side-channel-weakmap/package.json +87 -0
- package/test/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/test/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/test/node_modules/signal-exit/LICENSE.txt +16 -0
- package/test/node_modules/signal-exit/README.md +74 -0
- package/test/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- package/test/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/test/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/test/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/test/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- package/test/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/test/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/test/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/test/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/test/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- package/test/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/test/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/test/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/test/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- package/test/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/test/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/test/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/test/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- package/test/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/test/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/test/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/test/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/test/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- package/test/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/test/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/test/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/test/node_modules/signal-exit/package.json +106 -0
- package/test/node_modules/string-width/index.d.ts +29 -0
- package/test/node_modules/string-width/index.js +54 -0
- package/test/node_modules/string-width/license +9 -0
- package/test/node_modules/string-width/package.json +59 -0
- package/test/node_modules/string-width/readme.md +67 -0
- package/test/node_modules/string-width-cjs/index.d.ts +29 -0
- package/test/node_modules/string-width-cjs/index.js +47 -0
- package/test/node_modules/string-width-cjs/license +9 -0
- package/test/node_modules/string-width-cjs/node_modules/ansi-regex/index.d.ts +37 -0
- package/test/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +10 -0
- package/test/node_modules/string-width-cjs/node_modules/ansi-regex/license +9 -0
- package/test/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +55 -0
- package/test/node_modules/string-width-cjs/node_modules/ansi-regex/readme.md +78 -0
- package/test/node_modules/string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/test/node_modules/string-width-cjs/node_modules/emoji-regex/README.md +73 -0
- package/test/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
- package/test/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
- package/test/node_modules/string-width-cjs/node_modules/emoji-regex/index.d.ts +23 -0
- package/test/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +6 -0
- package/test/node_modules/string-width-cjs/node_modules/emoji-regex/package.json +50 -0
- package/test/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +6 -0
- package/test/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +17 -0
- package/test/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
- package/test/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
- package/test/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
- package/test/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +46 -0
- package/test/node_modules/string-width-cjs/package.json +56 -0
- package/test/node_modules/string-width-cjs/readme.md +50 -0
- package/test/node_modules/strip-ansi/index.d.ts +15 -0
- package/test/node_modules/strip-ansi/index.js +14 -0
- package/test/node_modules/strip-ansi/license +9 -0
- package/test/node_modules/strip-ansi/package.json +57 -0
- package/test/node_modules/strip-ansi/readme.md +41 -0
- package/test/node_modules/strip-ansi-cjs/index.d.ts +17 -0
- package/test/node_modules/strip-ansi-cjs/index.js +4 -0
- package/test/node_modules/strip-ansi-cjs/license +9 -0
- package/test/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +37 -0
- package/test/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- package/test/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
- package/test/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- package/test/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +78 -0
- package/test/node_modules/strip-ansi-cjs/package.json +54 -0
- package/test/node_modules/strip-ansi-cjs/readme.md +46 -0
- package/test/node_modules/strip-json-comments/index.d.ts +36 -0
- package/test/node_modules/strip-json-comments/index.js +77 -0
- package/test/node_modules/strip-json-comments/license +9 -0
- package/test/node_modules/strip-json-comments/package.json +47 -0
- package/test/node_modules/strip-json-comments/readme.md +78 -0
- package/test/node_modules/superagent/LICENSE +22 -0
- package/test/node_modules/superagent/README.md +273 -0
- package/test/node_modules/superagent/dist/superagent.js +3399 -0
- package/test/node_modules/superagent/dist/superagent.min.js +1 -0
- package/test/node_modules/superagent/lib/agent-base.js +28 -0
- package/test/node_modules/superagent/lib/client.js +949 -0
- package/test/node_modules/superagent/lib/node/agent.js +100 -0
- package/test/node_modules/superagent/lib/node/decompress.js +20 -0
- package/test/node_modules/superagent/lib/node/http2wrapper.js +158 -0
- package/test/node_modules/superagent/lib/node/index.js +1318 -0
- package/test/node_modules/superagent/lib/node/parsers/image.js +13 -0
- package/test/node_modules/superagent/lib/node/parsers/index.js +11 -0
- package/test/node_modules/superagent/lib/node/parsers/json.js +25 -0
- package/test/node_modules/superagent/lib/node/parsers/text.js +11 -0
- package/test/node_modules/superagent/lib/node/parsers/urlencoded.js +22 -0
- package/test/node_modules/superagent/lib/node/response.js +143 -0
- package/test/node_modules/superagent/lib/node/unzip.js +74 -0
- package/test/node_modules/superagent/lib/request-base.js +720 -0
- package/test/node_modules/superagent/lib/response-base.js +120 -0
- package/test/node_modules/superagent/lib/utils.js +126 -0
- package/test/node_modules/superagent/package.json +131 -0
- package/test/node_modules/supports-color/browser.js +24 -0
- package/test/node_modules/supports-color/index.js +152 -0
- package/test/node_modules/supports-color/license +9 -0
- package/test/node_modules/supports-color/package.json +58 -0
- package/test/node_modules/supports-color/readme.md +77 -0
- package/test/node_modules/to-regex-range/LICENSE +21 -0
- package/test/node_modules/to-regex-range/README.md +305 -0
- package/test/node_modules/to-regex-range/index.js +288 -0
- package/test/node_modules/to-regex-range/package.json +88 -0
- package/test/node_modules/uuid/CHANGELOG.md +274 -0
- package/test/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/test/node_modules/uuid/LICENSE.md +9 -0
- package/test/node_modules/uuid/README.md +466 -0
- package/test/node_modules/uuid/dist/bin/uuid +2 -0
- package/test/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/test/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/test/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/test/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/test/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/test/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/test/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/test/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/test/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/test/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/test/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/test/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/test/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/test/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/test/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/test/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/test/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/test/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/test/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/test/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/test/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/test/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/test/node_modules/uuid/dist/esm-browser/rng.js +18 -0
- package/test/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/test/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
- package/test/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/test/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/test/node_modules/uuid/dist/esm-browser/v35.js +66 -0
- package/test/node_modules/uuid/dist/esm-browser/v4.js +29 -0
- package/test/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/test/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/test/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/test/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/test/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/test/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/test/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/test/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/test/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/test/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/test/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/test/node_modules/uuid/dist/esm-node/stringify.js +33 -0
- package/test/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/test/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/test/node_modules/uuid/dist/esm-node/v35.js +66 -0
- package/test/node_modules/uuid/dist/esm-node/v4.js +29 -0
- package/test/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/test/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/test/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/test/node_modules/uuid/dist/index.js +79 -0
- package/test/node_modules/uuid/dist/md5-browser.js +223 -0
- package/test/node_modules/uuid/dist/md5.js +23 -0
- package/test/node_modules/uuid/dist/native-browser.js +11 -0
- package/test/node_modules/uuid/dist/native.js +15 -0
- package/test/node_modules/uuid/dist/nil.js +8 -0
- package/test/node_modules/uuid/dist/parse.js +45 -0
- package/test/node_modules/uuid/dist/regex.js +8 -0
- package/test/node_modules/uuid/dist/rng-browser.js +25 -0
- package/test/node_modules/uuid/dist/rng.js +24 -0
- package/test/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/test/node_modules/uuid/dist/sha1.js +23 -0
- package/test/node_modules/uuid/dist/stringify.js +44 -0
- package/test/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/test/node_modules/uuid/dist/v1.js +107 -0
- package/test/node_modules/uuid/dist/v3.js +16 -0
- package/test/node_modules/uuid/dist/v35.js +80 -0
- package/test/node_modules/uuid/dist/v4.js +43 -0
- package/test/node_modules/uuid/dist/v5.js +16 -0
- package/test/node_modules/uuid/dist/validate.js +17 -0
- package/test/node_modules/uuid/dist/version.js +21 -0
- package/test/node_modules/uuid/package.json +135 -0
- package/test/node_modules/uuid/wrapper.mjs +10 -0
- package/test/node_modules/web-streams-polyfill/LICENSE +22 -0
- package/test/node_modules/web-streams-polyfill/README.md +110 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es2018.js +4765 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es2018.js.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js +9 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs +4745 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es6.js +4838 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es6.js.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js +9 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs +4818 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.js +5011 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.js.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.min.js +9 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.min.js.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.mjs +4991 -0
- package/test/node_modules/web-streams-polyfill/dist/polyfill.mjs.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4737 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs +4717 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.es6.js +4810 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.es6.js.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs +4790 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.js +4983 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.js.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.mjs +4963 -0
- package/test/node_modules/web-streams-polyfill/dist/ponyfill.mjs.map +1 -0
- package/test/node_modules/web-streams-polyfill/dist/types/polyfill.d.ts +24 -0
- package/test/node_modules/web-streams-polyfill/dist/types/ponyfill.d.ts +780 -0
- package/test/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +28 -0
- package/test/node_modules/web-streams-polyfill/dist/types/ts3.6/ponyfill.d.ts +821 -0
- package/test/node_modules/web-streams-polyfill/dist/types/tsdoc-metadata.json +11 -0
- package/test/node_modules/web-streams-polyfill/es2018/package.json +14 -0
- package/test/node_modules/web-streams-polyfill/es6/package.json +14 -0
- package/test/node_modules/web-streams-polyfill/package.json +83 -0
- package/test/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +13 -0
- package/test/node_modules/web-streams-polyfill/ponyfill/es6/package.json +13 -0
- package/test/node_modules/web-streams-polyfill/ponyfill/package.json +13 -0
- package/test/node_modules/which/CHANGELOG.md +166 -0
- package/test/node_modules/which/LICENSE +15 -0
- package/test/node_modules/which/README.md +54 -0
- package/test/node_modules/which/bin/node-which +52 -0
- package/test/node_modules/which/package.json +43 -0
- package/test/node_modules/which/which.js +125 -0
- package/test/node_modules/workerpool/HISTORY.md +330 -0
- package/test/node_modules/workerpool/LICENSE +201 -0
- package/test/node_modules/workerpool/README.md +529 -0
- package/test/node_modules/workerpool/dist/worker.js +318 -0
- package/test/node_modules/workerpool/dist/worker.js.map +1 -0
- package/test/node_modules/workerpool/dist/workerpool.js +1645 -0
- package/test/node_modules/workerpool/dist/workerpool.js.map +1 -0
- package/test/node_modules/workerpool/dist/workerpool.min.js +3 -0
- package/test/node_modules/workerpool/dist/workerpool.min.js.LICENSE.txt +24 -0
- package/test/node_modules/workerpool/dist/workerpool.min.js.map +1 -0
- package/test/node_modules/workerpool/package.json +51 -0
- package/test/node_modules/workerpool/src/Pool.js +452 -0
- package/test/node_modules/workerpool/src/Promise.js +279 -0
- package/test/node_modules/workerpool/src/WorkerHandler.js +508 -0
- package/test/node_modules/workerpool/src/debug-port-allocator.js +28 -0
- package/test/node_modules/workerpool/src/environment.js +36 -0
- package/test/node_modules/workerpool/src/generated/embeddedWorker.js +6 -0
- package/test/node_modules/workerpool/src/header.js +24 -0
- package/test/node_modules/workerpool/src/index.js +48 -0
- package/test/node_modules/workerpool/src/requireFoolWebpack.js +8 -0
- package/test/node_modules/workerpool/src/transfer.js +12 -0
- package/test/node_modules/workerpool/src/types.js +31 -0
- package/test/node_modules/workerpool/src/worker.js +263 -0
- package/test/node_modules/wrap-ansi/index.d.ts +41 -0
- package/test/node_modules/wrap-ansi/index.js +214 -0
- package/test/node_modules/wrap-ansi/license +9 -0
- package/test/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +236 -0
- package/test/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +223 -0
- package/test/node_modules/wrap-ansi/node_modules/ansi-styles/license +9 -0
- package/test/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +54 -0
- package/test/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +173 -0
- package/test/node_modules/wrap-ansi/package.json +69 -0
- package/test/node_modules/wrap-ansi/readme.md +91 -0
- package/test/node_modules/wrap-ansi-cjs/index.js +216 -0
- package/test/node_modules/wrap-ansi-cjs/license +9 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.d.ts +37 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +9 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/readme.md +78 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/README.md +73 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.d.ts +23 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +6 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/package.json +50 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +6 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/string-width/index.d.ts +29 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +47 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/string-width/license +9 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/string-width/package.json +56 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/string-width/readme.md +50 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +17 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
- package/test/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +46 -0
- package/test/node_modules/wrap-ansi-cjs/package.json +62 -0
- package/test/node_modules/wrap-ansi-cjs/readme.md +91 -0
- package/test/node_modules/wrappy/LICENSE +15 -0
- package/test/node_modules/wrappy/README.md +36 -0
- package/test/node_modules/wrappy/package.json +29 -0
- package/test/node_modules/wrappy/wrappy.js +33 -0
- package/test/node_modules/y18n/CHANGELOG.md +100 -0
- package/test/node_modules/y18n/LICENSE +13 -0
- package/test/node_modules/y18n/README.md +127 -0
- package/test/node_modules/y18n/build/index.cjs +203 -0
- package/test/node_modules/y18n/build/lib/cjs.js +6 -0
- package/test/node_modules/y18n/build/lib/index.js +174 -0
- package/test/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
- package/test/node_modules/y18n/index.mjs +8 -0
- package/test/node_modules/y18n/package.json +70 -0
- package/test/node_modules/yargs/LICENSE +21 -0
- package/test/node_modules/yargs/README.md +204 -0
- package/test/node_modules/yargs/browser.d.ts +5 -0
- package/test/node_modules/yargs/browser.mjs +7 -0
- package/test/node_modules/yargs/build/index.cjs +1 -0
- package/test/node_modules/yargs/build/lib/argsert.js +62 -0
- package/test/node_modules/yargs/build/lib/command.js +449 -0
- package/test/node_modules/yargs/build/lib/completion-templates.js +48 -0
- package/test/node_modules/yargs/build/lib/completion.js +243 -0
- package/test/node_modules/yargs/build/lib/middleware.js +88 -0
- package/test/node_modules/yargs/build/lib/parse-command.js +32 -0
- package/test/node_modules/yargs/build/lib/typings/common-types.js +9 -0
- package/test/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
- package/test/node_modules/yargs/build/lib/usage.js +584 -0
- package/test/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
- package/test/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
- package/test/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
- package/test/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
- package/test/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
- package/test/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
- package/test/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
- package/test/node_modules/yargs/build/lib/utils/which-module.js +10 -0
- package/test/node_modules/yargs/build/lib/validation.js +305 -0
- package/test/node_modules/yargs/build/lib/yargs-factory.js +1512 -0
- package/test/node_modules/yargs/build/lib/yerror.js +9 -0
- package/test/node_modules/yargs/helpers/helpers.mjs +10 -0
- package/test/node_modules/yargs/helpers/index.js +14 -0
- package/test/node_modules/yargs/helpers/package.json +3 -0
- package/test/node_modules/yargs/index.cjs +53 -0
- package/test/node_modules/yargs/index.mjs +8 -0
- package/test/node_modules/yargs/lib/platform-shims/browser.mjs +95 -0
- package/test/node_modules/yargs/lib/platform-shims/esm.mjs +73 -0
- package/test/node_modules/yargs/locales/be.json +46 -0
- package/test/node_modules/yargs/locales/cs.json +51 -0
- package/test/node_modules/yargs/locales/de.json +46 -0
- package/test/node_modules/yargs/locales/en.json +55 -0
- package/test/node_modules/yargs/locales/es.json +46 -0
- package/test/node_modules/yargs/locales/fi.json +49 -0
- package/test/node_modules/yargs/locales/fr.json +53 -0
- package/test/node_modules/yargs/locales/hi.json +49 -0
- package/test/node_modules/yargs/locales/hu.json +46 -0
- package/test/node_modules/yargs/locales/id.json +50 -0
- package/test/node_modules/yargs/locales/it.json +46 -0
- package/test/node_modules/yargs/locales/ja.json +51 -0
- package/test/node_modules/yargs/locales/ko.json +49 -0
- package/test/node_modules/yargs/locales/nb.json +44 -0
- package/test/node_modules/yargs/locales/nl.json +49 -0
- package/test/node_modules/yargs/locales/nn.json +44 -0
- package/test/node_modules/yargs/locales/pirate.json +13 -0
- package/test/node_modules/yargs/locales/pl.json +49 -0
- package/test/node_modules/yargs/locales/pt.json +45 -0
- package/test/node_modules/yargs/locales/pt_BR.json +48 -0
- package/test/node_modules/yargs/locales/ru.json +51 -0
- package/test/node_modules/yargs/locales/th.json +46 -0
- package/test/node_modules/yargs/locales/tr.json +48 -0
- package/test/node_modules/yargs/locales/uk_UA.json +51 -0
- package/test/node_modules/yargs/locales/uz.json +52 -0
- package/test/node_modules/yargs/locales/zh_CN.json +48 -0
- package/test/node_modules/yargs/locales/zh_TW.json +51 -0
- package/test/node_modules/yargs/node_modules/ansi-regex/index.d.ts +37 -0
- package/test/node_modules/yargs/node_modules/ansi-regex/index.js +10 -0
- package/test/node_modules/yargs/node_modules/ansi-regex/license +9 -0
- package/test/node_modules/yargs/node_modules/ansi-regex/package.json +55 -0
- package/test/node_modules/yargs/node_modules/ansi-regex/readme.md +78 -0
- package/test/node_modules/yargs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/test/node_modules/yargs/node_modules/emoji-regex/README.md +73 -0
- package/test/node_modules/yargs/node_modules/emoji-regex/es2015/index.js +6 -0
- package/test/node_modules/yargs/node_modules/emoji-regex/es2015/text.js +6 -0
- package/test/node_modules/yargs/node_modules/emoji-regex/index.d.ts +23 -0
- package/test/node_modules/yargs/node_modules/emoji-regex/index.js +6 -0
- package/test/node_modules/yargs/node_modules/emoji-regex/package.json +50 -0
- package/test/node_modules/yargs/node_modules/emoji-regex/text.js +6 -0
- package/test/node_modules/yargs/node_modules/string-width/index.d.ts +29 -0
- package/test/node_modules/yargs/node_modules/string-width/index.js +47 -0
- package/test/node_modules/yargs/node_modules/string-width/license +9 -0
- package/test/node_modules/yargs/node_modules/string-width/package.json +56 -0
- package/test/node_modules/yargs/node_modules/string-width/readme.md +50 -0
- package/test/node_modules/yargs/node_modules/strip-ansi/index.d.ts +17 -0
- package/test/node_modules/yargs/node_modules/strip-ansi/index.js +4 -0
- package/test/node_modules/yargs/node_modules/strip-ansi/license +9 -0
- package/test/node_modules/yargs/node_modules/strip-ansi/package.json +54 -0
- package/test/node_modules/yargs/node_modules/strip-ansi/readme.md +46 -0
- package/test/node_modules/yargs/package.json +123 -0
- package/test/node_modules/yargs/yargs +9 -0
- package/test/node_modules/yargs/yargs.mjs +10 -0
- package/test/node_modules/yargs-parser/CHANGELOG.md +308 -0
- package/test/node_modules/yargs-parser/LICENSE.txt +14 -0
- package/test/node_modules/yargs-parser/README.md +518 -0
- package/test/node_modules/yargs-parser/browser.js +29 -0
- package/test/node_modules/yargs-parser/build/index.cjs +1050 -0
- package/test/node_modules/yargs-parser/build/lib/index.js +62 -0
- package/test/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
- package/test/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
- package/test/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
- package/test/node_modules/yargs-parser/build/lib/yargs-parser.js +1045 -0
- package/test/node_modules/yargs-parser/package.json +92 -0
- package/test/node_modules/yargs-unparser/CHANGELOG.md +82 -0
- package/test/node_modules/yargs-unparser/LICENSE +21 -0
- package/test/node_modules/yargs-unparser/README.md +86 -0
- package/test/node_modules/yargs-unparser/index.js +166 -0
- package/test/node_modules/yargs-unparser/package.json +49 -0
- package/test/node_modules/yocto-queue/index.d.ts +56 -0
- package/test/node_modules/yocto-queue/index.js +68 -0
- package/test/node_modules/yocto-queue/license +9 -0
- package/test/node_modules/yocto-queue/package.json +43 -0
- package/test/node_modules/yocto-queue/readme.md +64 -0
- package/test/package-lock.json +1997 -0
- package/test/package.json +20 -0
- package/test/test.js +87 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blake2s.js","sourceRoot":"","sources":["../src/blake2s.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAa,KAAK,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,uBAAuB,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEvF,gCAAgC;AAChC,wFAAwF;AACxF,kBAAkB;AAClB,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,WAAW,CAAC;IACpD,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;CAC/F,CAAC,CAAC;AAEH,0CAA0C;AAC1C,SAAS,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IAChE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACxB,CAAC;AAED,SAAS,GAAG,CAAC,CAAS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js';
|
|
2
|
+
import { fromBig } from './_u64.js';
|
|
3
|
+
import { BLAKE } from './_blake.js';
|
|
4
|
+
import { compress, B2S_IV } from './blake2s.js';
|
|
5
|
+
import { u8, u32, toBytes, wrapXOFConstructorWithOpts, isLE, byteSwap32, } from './utils.js';
|
|
6
|
+
const SIGMA = /* @__PURE__ */ (() => {
|
|
7
|
+
const Id = Array.from({ length: 16 }, (_, i) => i);
|
|
8
|
+
const permute = (arr) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((i) => arr[i]);
|
|
9
|
+
const res = [];
|
|
10
|
+
for (let i = 0, v = Id; i < 7; i++, v = permute(v))
|
|
11
|
+
res.push(...v);
|
|
12
|
+
return Uint8Array.from(res);
|
|
13
|
+
})();
|
|
14
|
+
// Why is this so slow? It should be 6x faster than blake2b.
|
|
15
|
+
// - There is only 30% reduction in number of rounds from blake2s
|
|
16
|
+
// - This function uses tree mode to achive parallelisation via SIMD and threading,
|
|
17
|
+
// however in JS we don't have threads and SIMD, so we get only overhead from tree structure
|
|
18
|
+
// - It is possible to speed it up via Web Workers, hovewer it will make code singnificantly more
|
|
19
|
+
// complicated, which we are trying to avoid, since this library is intended to be used
|
|
20
|
+
// for cryptographic purposes. Also, parallelization happens only on chunk level (1024 bytes),
|
|
21
|
+
// which won't really benefit small inputs.
|
|
22
|
+
class BLAKE3 extends BLAKE {
|
|
23
|
+
constructor(opts = {}, flags = 0) {
|
|
24
|
+
super(64, opts.dkLen === undefined ? 32 : opts.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0);
|
|
25
|
+
this.flags = 0 | 0;
|
|
26
|
+
this.chunkPos = 0; // Position of current block in chunk
|
|
27
|
+
this.chunksDone = 0; // How many chunks we already have
|
|
28
|
+
this.stack = [];
|
|
29
|
+
// Output
|
|
30
|
+
this.posOut = 0;
|
|
31
|
+
this.bufferOut32 = new Uint32Array(16);
|
|
32
|
+
this.chunkOut = 0; // index of output chunk
|
|
33
|
+
this.enableXOF = true;
|
|
34
|
+
this.outputLen = opts.dkLen === undefined ? 32 : opts.dkLen;
|
|
35
|
+
number(this.outputLen);
|
|
36
|
+
if (opts.key !== undefined && opts.context !== undefined)
|
|
37
|
+
throw new Error('Blake3: only key or context can be specified at same time');
|
|
38
|
+
else if (opts.key !== undefined) {
|
|
39
|
+
const key = toBytes(opts.key).slice();
|
|
40
|
+
if (key.length !== 32)
|
|
41
|
+
throw new Error('Blake3: key should be 32 byte');
|
|
42
|
+
this.IV = u32(key);
|
|
43
|
+
if (!isLE)
|
|
44
|
+
byteSwap32(this.IV);
|
|
45
|
+
this.flags = flags | 16 /* B3_Flags.KEYED_HASH */;
|
|
46
|
+
}
|
|
47
|
+
else if (opts.context !== undefined) {
|
|
48
|
+
const context_key = new BLAKE3({ dkLen: 32 }, 32 /* B3_Flags.DERIVE_KEY_CONTEXT */)
|
|
49
|
+
.update(opts.context)
|
|
50
|
+
.digest();
|
|
51
|
+
this.IV = u32(context_key);
|
|
52
|
+
if (!isLE)
|
|
53
|
+
byteSwap32(this.IV);
|
|
54
|
+
this.flags = flags | 64 /* B3_Flags.DERIVE_KEY_MATERIAL */;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.IV = B2S_IV.slice();
|
|
58
|
+
this.flags = flags;
|
|
59
|
+
}
|
|
60
|
+
this.state = this.IV.slice();
|
|
61
|
+
this.bufferOut = u8(this.bufferOut32);
|
|
62
|
+
}
|
|
63
|
+
// Unused
|
|
64
|
+
get() {
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
set() { }
|
|
68
|
+
b2Compress(counter, flags, buf, bufPos = 0) {
|
|
69
|
+
const { state: s, pos } = this;
|
|
70
|
+
const { h, l } = fromBig(BigInt(counter), true);
|
|
71
|
+
// prettier-ignore
|
|
72
|
+
const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(SIGMA, bufPos, buf, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], B2S_IV[0], B2S_IV[1], B2S_IV[2], B2S_IV[3], h, l, pos, flags);
|
|
73
|
+
s[0] = v0 ^ v8;
|
|
74
|
+
s[1] = v1 ^ v9;
|
|
75
|
+
s[2] = v2 ^ v10;
|
|
76
|
+
s[3] = v3 ^ v11;
|
|
77
|
+
s[4] = v4 ^ v12;
|
|
78
|
+
s[5] = v5 ^ v13;
|
|
79
|
+
s[6] = v6 ^ v14;
|
|
80
|
+
s[7] = v7 ^ v15;
|
|
81
|
+
}
|
|
82
|
+
compress(buf, bufPos = 0, isLast = false) {
|
|
83
|
+
// Compress last block
|
|
84
|
+
let flags = this.flags;
|
|
85
|
+
if (!this.chunkPos)
|
|
86
|
+
flags |= 1 /* B3_Flags.CHUNK_START */;
|
|
87
|
+
if (this.chunkPos === 15 || isLast)
|
|
88
|
+
flags |= 2 /* B3_Flags.CHUNK_END */;
|
|
89
|
+
if (!isLast)
|
|
90
|
+
this.pos = this.blockLen;
|
|
91
|
+
this.b2Compress(this.chunksDone, flags, buf, bufPos);
|
|
92
|
+
this.chunkPos += 1;
|
|
93
|
+
// If current block is last in chunk (16 blocks), then compress chunks
|
|
94
|
+
if (this.chunkPos === 16 || isLast) {
|
|
95
|
+
let chunk = this.state;
|
|
96
|
+
this.state = this.IV.slice();
|
|
97
|
+
// If not the last one, compress only when there are trailing zeros in chunk counter
|
|
98
|
+
// chunks used as binary tree where current stack is path. Zero means current leaf is finished and can be compressed.
|
|
99
|
+
// 1 (001) - leaf not finished (just push current chunk to stack)
|
|
100
|
+
// 2 (010) - leaf finished at depth=1 (merge with last elm on stack and push back)
|
|
101
|
+
// 3 (011) - last leaf not finished
|
|
102
|
+
// 4 (100) - leafs finished at depth=1 and depth=2
|
|
103
|
+
for (let last, chunks = this.chunksDone + 1; isLast || !(chunks & 1); chunks >>= 1) {
|
|
104
|
+
if (!(last = this.stack.pop()))
|
|
105
|
+
break;
|
|
106
|
+
this.buffer32.set(last, 0);
|
|
107
|
+
this.buffer32.set(chunk, 8);
|
|
108
|
+
this.pos = this.blockLen;
|
|
109
|
+
this.b2Compress(0, this.flags | 4 /* B3_Flags.PARENT */, this.buffer32, 0);
|
|
110
|
+
chunk = this.state;
|
|
111
|
+
this.state = this.IV.slice();
|
|
112
|
+
}
|
|
113
|
+
this.chunksDone++;
|
|
114
|
+
this.chunkPos = 0;
|
|
115
|
+
this.stack.push(chunk);
|
|
116
|
+
}
|
|
117
|
+
this.pos = 0;
|
|
118
|
+
}
|
|
119
|
+
_cloneInto(to) {
|
|
120
|
+
to = super._cloneInto(to);
|
|
121
|
+
const { IV, flags, state, chunkPos, posOut, chunkOut, stack, chunksDone } = this;
|
|
122
|
+
to.state.set(state.slice());
|
|
123
|
+
to.stack = stack.map((i) => Uint32Array.from(i));
|
|
124
|
+
to.IV.set(IV);
|
|
125
|
+
to.flags = flags;
|
|
126
|
+
to.chunkPos = chunkPos;
|
|
127
|
+
to.chunksDone = chunksDone;
|
|
128
|
+
to.posOut = posOut;
|
|
129
|
+
to.chunkOut = chunkOut;
|
|
130
|
+
to.enableXOF = this.enableXOF;
|
|
131
|
+
to.bufferOut32.set(this.bufferOut32);
|
|
132
|
+
return to;
|
|
133
|
+
}
|
|
134
|
+
destroy() {
|
|
135
|
+
this.destroyed = true;
|
|
136
|
+
this.state.fill(0);
|
|
137
|
+
this.buffer32.fill(0);
|
|
138
|
+
this.IV.fill(0);
|
|
139
|
+
this.bufferOut32.fill(0);
|
|
140
|
+
for (let i of this.stack)
|
|
141
|
+
i.fill(0);
|
|
142
|
+
}
|
|
143
|
+
// Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
|
|
144
|
+
b2CompressOut() {
|
|
145
|
+
const { state: s, pos, flags, buffer32, bufferOut32: out32 } = this;
|
|
146
|
+
const { h, l } = fromBig(BigInt(this.chunkOut++));
|
|
147
|
+
if (!isLE)
|
|
148
|
+
byteSwap32(buffer32);
|
|
149
|
+
// prettier-ignore
|
|
150
|
+
const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(SIGMA, 0, buffer32, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], B2S_IV[0], B2S_IV[1], B2S_IV[2], B2S_IV[3], l, h, pos, flags);
|
|
151
|
+
out32[0] = v0 ^ v8;
|
|
152
|
+
out32[1] = v1 ^ v9;
|
|
153
|
+
out32[2] = v2 ^ v10;
|
|
154
|
+
out32[3] = v3 ^ v11;
|
|
155
|
+
out32[4] = v4 ^ v12;
|
|
156
|
+
out32[5] = v5 ^ v13;
|
|
157
|
+
out32[6] = v6 ^ v14;
|
|
158
|
+
out32[7] = v7 ^ v15;
|
|
159
|
+
out32[8] = s[0] ^ v8;
|
|
160
|
+
out32[9] = s[1] ^ v9;
|
|
161
|
+
out32[10] = s[2] ^ v10;
|
|
162
|
+
out32[11] = s[3] ^ v11;
|
|
163
|
+
out32[12] = s[4] ^ v12;
|
|
164
|
+
out32[13] = s[5] ^ v13;
|
|
165
|
+
out32[14] = s[6] ^ v14;
|
|
166
|
+
out32[15] = s[7] ^ v15;
|
|
167
|
+
if (!isLE) {
|
|
168
|
+
byteSwap32(buffer32);
|
|
169
|
+
byteSwap32(out32);
|
|
170
|
+
}
|
|
171
|
+
this.posOut = 0;
|
|
172
|
+
}
|
|
173
|
+
finish() {
|
|
174
|
+
if (this.finished)
|
|
175
|
+
return;
|
|
176
|
+
this.finished = true;
|
|
177
|
+
// Padding
|
|
178
|
+
this.buffer.fill(0, this.pos);
|
|
179
|
+
// Process last chunk
|
|
180
|
+
let flags = this.flags | 8 /* B3_Flags.ROOT */;
|
|
181
|
+
if (this.stack.length) {
|
|
182
|
+
flags |= 4 /* B3_Flags.PARENT */;
|
|
183
|
+
if (!isLE)
|
|
184
|
+
byteSwap32(this.buffer32);
|
|
185
|
+
this.compress(this.buffer32, 0, true);
|
|
186
|
+
if (!isLE)
|
|
187
|
+
byteSwap32(this.buffer32);
|
|
188
|
+
this.chunksDone = 0;
|
|
189
|
+
this.pos = this.blockLen;
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
flags |= (!this.chunkPos ? 1 /* B3_Flags.CHUNK_START */ : 0) | 2 /* B3_Flags.CHUNK_END */;
|
|
193
|
+
}
|
|
194
|
+
this.flags = flags;
|
|
195
|
+
this.b2CompressOut();
|
|
196
|
+
}
|
|
197
|
+
writeInto(out) {
|
|
198
|
+
exists(this, false);
|
|
199
|
+
bytes(out);
|
|
200
|
+
this.finish();
|
|
201
|
+
const { blockLen, bufferOut } = this;
|
|
202
|
+
for (let pos = 0, len = out.length; pos < len;) {
|
|
203
|
+
if (this.posOut >= blockLen)
|
|
204
|
+
this.b2CompressOut();
|
|
205
|
+
const take = Math.min(blockLen - this.posOut, len - pos);
|
|
206
|
+
out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);
|
|
207
|
+
this.posOut += take;
|
|
208
|
+
pos += take;
|
|
209
|
+
}
|
|
210
|
+
return out;
|
|
211
|
+
}
|
|
212
|
+
xofInto(out) {
|
|
213
|
+
if (!this.enableXOF)
|
|
214
|
+
throw new Error('XOF is not possible after digest call');
|
|
215
|
+
return this.writeInto(out);
|
|
216
|
+
}
|
|
217
|
+
xof(bytes) {
|
|
218
|
+
number(bytes);
|
|
219
|
+
return this.xofInto(new Uint8Array(bytes));
|
|
220
|
+
}
|
|
221
|
+
digestInto(out) {
|
|
222
|
+
output(out, this);
|
|
223
|
+
if (this.finished)
|
|
224
|
+
throw new Error('digest() was already called');
|
|
225
|
+
this.enableXOF = false;
|
|
226
|
+
this.writeInto(out);
|
|
227
|
+
this.destroy();
|
|
228
|
+
return out;
|
|
229
|
+
}
|
|
230
|
+
digest() {
|
|
231
|
+
return this.digestInto(new Uint8Array(this.outputLen));
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* BLAKE3 hash function.
|
|
236
|
+
* @param msg - message that would be hashed
|
|
237
|
+
* @param opts - dkLen, key, context
|
|
238
|
+
*/
|
|
239
|
+
export const blake3 = /* @__PURE__ */ wrapXOFConstructorWithOpts((opts) => new BLAKE3(opts));
|
|
240
|
+
//# sourceMappingURL=blake3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blake3.js","sourceRoot":"","sources":["../src/blake3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAEL,EAAE,EACF,GAAG,EACH,OAAO,EAEP,0BAA0B,EAC1B,IAAI,EACJ,UAAU,GACX,MAAM,YAAY,CAAC;AAepB,MAAM,KAAK,GAAe,eAAe,CAAC,CAAC,GAAG,EAAE;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACnD,MAAM,OAAO,GAAG,CAAC,GAAa,EAAE,EAAE,CAChC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAA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C,OAAO,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7C,CAAC;IACD,UAAU,CAAC,GAAe;QACxB,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAClB,IAAI,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAClE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,GAAG,CAAC;IACb,CAAC;IACD,MAAM;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACzD,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,0BAA0B,CAC9D,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto.js","sourceRoot":"","sources":["../src/crypto.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,MAAM,GACjB,OAAO,UAAU,KAAK,QAAQ,IAAI,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+.
|
|
2
|
+
// See utils.ts for details.
|
|
3
|
+
// The file will throw on node.js 14 and earlier.
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import * as nc from 'node:crypto';
|
|
6
|
+
export const crypto = nc && typeof nc === 'object' && 'webcrypto' in nc ? nc.webcrypto : undefined;
|
|
7
|
+
//# sourceMappingURL=cryptoNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cryptoNode.js","sourceRoot":"","sources":["../src/cryptoNode.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,4BAA4B;AAC5B,iDAAiD;AACjD,aAAa;AACb,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,MAAM,CAAC,MAAM,MAAM,GACjB,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,WAAW,IAAI,EAAE,CAAC,CAAC,CAAE,EAAE,CAAC,SAAiB,CAAC,CAAC,CAAC,SAAS,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { bytes as assertBytes } from './_assert.js';
|
|
2
|
+
import { hkdf } from './hkdf.js';
|
|
3
|
+
import { sha256 } from './sha256.js';
|
|
4
|
+
import { pbkdf2 as _pbkdf2 } from './pbkdf2.js';
|
|
5
|
+
import { scrypt as _scrypt } from './scrypt.js';
|
|
6
|
+
import { bytesToHex, createView, hexToBytes, toBytes } from './utils.js';
|
|
7
|
+
// A tiny KDF for various applications like AES key-gen.
|
|
8
|
+
// Uses HKDF in a non-standard way, so it's not "KDF-secure", only "PRF-secure".
|
|
9
|
+
// Which is good enough: assume sha2-256 retained preimage resistance.
|
|
10
|
+
const SCRYPT_FACTOR = 2 ** 19;
|
|
11
|
+
const PBKDF2_FACTOR = 2 ** 17;
|
|
12
|
+
// Scrypt KDF
|
|
13
|
+
export function scrypt(password, salt) {
|
|
14
|
+
return _scrypt(password, salt, { N: SCRYPT_FACTOR, r: 8, p: 1, dkLen: 32 });
|
|
15
|
+
}
|
|
16
|
+
// PBKDF2-HMAC-SHA256
|
|
17
|
+
export function pbkdf2(password, salt) {
|
|
18
|
+
return _pbkdf2(sha256, password, salt, { c: PBKDF2_FACTOR, dkLen: 32 });
|
|
19
|
+
}
|
|
20
|
+
// Combines two 32-byte byte arrays
|
|
21
|
+
function xor32(a, b) {
|
|
22
|
+
assertBytes(a, 32);
|
|
23
|
+
assertBytes(b, 32);
|
|
24
|
+
const arr = new Uint8Array(32);
|
|
25
|
+
for (let i = 0; i < 32; i++) {
|
|
26
|
+
arr[i] = a[i] ^ b[i];
|
|
27
|
+
}
|
|
28
|
+
return arr;
|
|
29
|
+
}
|
|
30
|
+
function strHasLength(str, min, max) {
|
|
31
|
+
return typeof str === 'string' && str.length >= min && str.length <= max;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Derives main seed. Takes a lot of time. Prefer `eskdf` method instead.
|
|
35
|
+
*/
|
|
36
|
+
export function deriveMainSeed(username, password) {
|
|
37
|
+
if (!strHasLength(username, 8, 255))
|
|
38
|
+
throw new Error('invalid username');
|
|
39
|
+
if (!strHasLength(password, 8, 255))
|
|
40
|
+
throw new Error('invalid password');
|
|
41
|
+
const scr = scrypt(password + '\u{1}', username + '\u{1}');
|
|
42
|
+
const pbk = pbkdf2(password + '\u{2}', username + '\u{2}');
|
|
43
|
+
const res = xor32(scr, pbk);
|
|
44
|
+
scr.fill(0);
|
|
45
|
+
pbk.fill(0);
|
|
46
|
+
return res;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Converts protocol & accountId pair to HKDF salt & info params.
|
|
50
|
+
*/
|
|
51
|
+
function getSaltInfo(protocol, accountId = 0) {
|
|
52
|
+
// Note that length here also repeats two lines below
|
|
53
|
+
// We do an additional length check here to reduce the scope of DoS attacks
|
|
54
|
+
if (!(strHasLength(protocol, 3, 15) && /^[a-z0-9]{3,15}$/.test(protocol))) {
|
|
55
|
+
throw new Error('invalid protocol');
|
|
56
|
+
}
|
|
57
|
+
// Allow string account ids for some protocols
|
|
58
|
+
const allowsStr = /^password\d{0,3}|ssh|tor|file$/.test(protocol);
|
|
59
|
+
let salt; // Extract salt. Default is undefined.
|
|
60
|
+
if (typeof accountId === 'string') {
|
|
61
|
+
if (!allowsStr)
|
|
62
|
+
throw new Error('accountId must be a number');
|
|
63
|
+
if (!strHasLength(accountId, 1, 255))
|
|
64
|
+
throw new Error('accountId must be valid string');
|
|
65
|
+
salt = toBytes(accountId);
|
|
66
|
+
}
|
|
67
|
+
else if (Number.isSafeInteger(accountId)) {
|
|
68
|
+
if (accountId < 0 || accountId > 2 ** 32 - 1)
|
|
69
|
+
throw new Error('invalid accountId');
|
|
70
|
+
// Convert to Big Endian Uint32
|
|
71
|
+
salt = new Uint8Array(4);
|
|
72
|
+
createView(salt).setUint32(0, accountId, false);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
throw new Error(`accountId must be a number${allowsStr ? ' or string' : ''}`);
|
|
76
|
+
}
|
|
77
|
+
const info = toBytes(protocol);
|
|
78
|
+
return { salt, info };
|
|
79
|
+
}
|
|
80
|
+
function countBytes(num) {
|
|
81
|
+
if (typeof num !== 'bigint' || num <= BigInt(128))
|
|
82
|
+
throw new Error('invalid number');
|
|
83
|
+
return Math.ceil(num.toString(2).length / 8);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Parses keyLength and modulus options to extract length of result key.
|
|
87
|
+
* If modulus is used, adds 64 bits to it as per FIPS 186 B.4.1 to combat modulo bias.
|
|
88
|
+
*/
|
|
89
|
+
function getKeyLength(options) {
|
|
90
|
+
if (!options || typeof options !== 'object')
|
|
91
|
+
return 32;
|
|
92
|
+
const hasLen = 'keyLength' in options;
|
|
93
|
+
const hasMod = 'modulus' in options;
|
|
94
|
+
if (hasLen && hasMod)
|
|
95
|
+
throw new Error('cannot combine keyLength and modulus options');
|
|
96
|
+
if (!hasLen && !hasMod)
|
|
97
|
+
throw new Error('must have either keyLength or modulus option');
|
|
98
|
+
// FIPS 186 B.4.1 requires at least 64 more bits
|
|
99
|
+
const l = hasMod ? countBytes(options.modulus) + 8 : options.keyLength;
|
|
100
|
+
if (!(typeof l === 'number' && l >= 16 && l <= 8192))
|
|
101
|
+
throw new Error('invalid keyLength');
|
|
102
|
+
return l;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Converts key to bigint and divides it by modulus. Big Endian.
|
|
106
|
+
* Implements FIPS 186 B.4.1, which removes 0 and modulo bias from output.
|
|
107
|
+
*/
|
|
108
|
+
function modReduceKey(key, modulus) {
|
|
109
|
+
const _1 = BigInt(1);
|
|
110
|
+
const num = BigInt('0x' + bytesToHex(key)); // check for ui8a, then bytesToNumber()
|
|
111
|
+
const res = (num % (modulus - _1)) + _1; // Remove 0 from output
|
|
112
|
+
if (res < _1)
|
|
113
|
+
throw new Error('expected positive number'); // Guard against bad values
|
|
114
|
+
const len = key.length - 8; // FIPS requires 64 more bits = 8 bytes
|
|
115
|
+
const hex = res.toString(16).padStart(len * 2, '0'); // numberToHex()
|
|
116
|
+
const bytes = hexToBytes(hex);
|
|
117
|
+
if (bytes.length !== len)
|
|
118
|
+
throw new Error('invalid length of result key');
|
|
119
|
+
return bytes;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* ESKDF
|
|
123
|
+
* @param username - username, email, or identifier, min: 8 characters, should have enough entropy
|
|
124
|
+
* @param password - password, min: 8 characters, should have enough entropy
|
|
125
|
+
* @example
|
|
126
|
+
* const kdf = await eskdf('example-university', 'beginning-new-example');
|
|
127
|
+
* const key = kdf.deriveChildKey('aes', 0);
|
|
128
|
+
* console.log(kdf.fingerprint);
|
|
129
|
+
* kdf.expire();
|
|
130
|
+
*/
|
|
131
|
+
export async function eskdf(username, password) {
|
|
132
|
+
// We are using closure + object instead of class because
|
|
133
|
+
// we want to make `seed` non-accessible for any external function.
|
|
134
|
+
let seed = deriveMainSeed(username, password);
|
|
135
|
+
function deriveCK(protocol, accountId = 0, options) {
|
|
136
|
+
assertBytes(seed, 32);
|
|
137
|
+
const { salt, info } = getSaltInfo(protocol, accountId); // validate protocol & accountId
|
|
138
|
+
const keyLength = getKeyLength(options); // validate options
|
|
139
|
+
const key = hkdf(sha256, seed, salt, info, keyLength);
|
|
140
|
+
// Modulus has already been validated
|
|
141
|
+
return options && 'modulus' in options ? modReduceKey(key, options.modulus) : key;
|
|
142
|
+
}
|
|
143
|
+
function expire() {
|
|
144
|
+
if (seed)
|
|
145
|
+
seed.fill(1);
|
|
146
|
+
seed = undefined;
|
|
147
|
+
}
|
|
148
|
+
// prettier-ignore
|
|
149
|
+
const fingerprint = Array.from(deriveCK('fingerprint', 0))
|
|
150
|
+
.slice(0, 6)
|
|
151
|
+
.map((char) => char.toString(16).padStart(2, '0').toUpperCase())
|
|
152
|
+
.join(':');
|
|
153
|
+
return Object.freeze({ deriveChildKey: deriveCK, expire, fingerprint });
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=eskdf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eskdf.js","sourceRoot":"","sources":["../src/eskdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEzE,wDAAwD;AACxD,gFAAgF;AAChF,sEAAsE;AAEtE,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,CAAC;AAC9B,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,CAAC;AAE9B,aAAa;AACb,MAAM,UAAU,MAAM,CAAC,QAAgB,EAAE,IAAY;IACnD,OAAO,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9E,CAAC;AAED,qBAAqB;AACrB,MAAM,UAAU,MAAM,CAAC,QAAgB,EAA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AAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,gCAAgC;QACzF,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB;QAC5D,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,IAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;QACvD,qCAAqC;QACrC,OAAO,OAAO,IAAI,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACpF,CAAC;IACD,SAAS,MAAM;QACb,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACvB,IAAI,GAAG,SAAS,CAAC;IACnB,CAAC;IACD,kBAAkB;IAClB,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;SACvD,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;SAC/D,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;AAC1E,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { hash as assertHash, number as assertNumber } from './_assert.js';
|
|
2
|
+
import { toBytes } from './utils.js';
|
|
3
|
+
import { hmac } from './hmac.js';
|
|
4
|
+
// HKDF (RFC 5869)
|
|
5
|
+
// https://soatok.blog/2021/11/17/understanding-hkdf/
|
|
6
|
+
/**
|
|
7
|
+
* HKDF-Extract(IKM, salt) -> PRK
|
|
8
|
+
* Arguments position differs from spec (IKM is first one, since it is not optional)
|
|
9
|
+
* @param hash
|
|
10
|
+
* @param ikm
|
|
11
|
+
* @param salt
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export function extract(hash, ikm, salt) {
|
|
15
|
+
assertHash(hash);
|
|
16
|
+
// NOTE: some libraries treat zero-length array as 'not provided';
|
|
17
|
+
// we don't, since we have undefined as 'not provided'
|
|
18
|
+
// https://github.com/RustCrypto/KDFs/issues/15
|
|
19
|
+
if (salt === undefined)
|
|
20
|
+
salt = new Uint8Array(hash.outputLen); // if not provided, it is set to a string of HashLen zeros
|
|
21
|
+
return hmac(hash, toBytes(salt), toBytes(ikm));
|
|
22
|
+
}
|
|
23
|
+
// HKDF-Expand(PRK, info, L) -> OKM
|
|
24
|
+
const HKDF_COUNTER = /* @__PURE__ */ new Uint8Array([0]);
|
|
25
|
+
const EMPTY_BUFFER = /* @__PURE__ */ new Uint8Array();
|
|
26
|
+
/**
|
|
27
|
+
* HKDF-expand from the spec.
|
|
28
|
+
* @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step)
|
|
29
|
+
* @param info - optional context and application specific information (can be a zero-length string)
|
|
30
|
+
* @param length - length of output keying material in octets
|
|
31
|
+
*/
|
|
32
|
+
export function expand(hash, prk, info, length = 32) {
|
|
33
|
+
assertHash(hash);
|
|
34
|
+
assertNumber(length);
|
|
35
|
+
if (length > 255 * hash.outputLen)
|
|
36
|
+
throw new Error('Length should be <= 255*HashLen');
|
|
37
|
+
const blocks = Math.ceil(length / hash.outputLen);
|
|
38
|
+
if (info === undefined)
|
|
39
|
+
info = EMPTY_BUFFER;
|
|
40
|
+
// first L(ength) octets of T
|
|
41
|
+
const okm = new Uint8Array(blocks * hash.outputLen);
|
|
42
|
+
// Re-use HMAC instance between blocks
|
|
43
|
+
const HMAC = hmac.create(hash, prk);
|
|
44
|
+
const HMACTmp = HMAC._cloneInto();
|
|
45
|
+
const T = new Uint8Array(HMAC.outputLen);
|
|
46
|
+
for (let counter = 0; counter < blocks; counter++) {
|
|
47
|
+
HKDF_COUNTER[0] = counter + 1;
|
|
48
|
+
// T(0) = empty string (zero length)
|
|
49
|
+
// T(N) = HMAC-Hash(PRK, T(N-1) | info | N)
|
|
50
|
+
HMACTmp.update(counter === 0 ? EMPTY_BUFFER : T)
|
|
51
|
+
.update(info)
|
|
52
|
+
.update(HKDF_COUNTER)
|
|
53
|
+
.digestInto(T);
|
|
54
|
+
okm.set(T, hash.outputLen * counter);
|
|
55
|
+
HMAC._cloneInto(HMACTmp);
|
|
56
|
+
}
|
|
57
|
+
HMAC.destroy();
|
|
58
|
+
HMACTmp.destroy();
|
|
59
|
+
T.fill(0);
|
|
60
|
+
HKDF_COUNTER.fill(0);
|
|
61
|
+
return okm.slice(0, length);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* HKDF (RFC 5869): extract + expand in one step.
|
|
65
|
+
* @param hash - hash function that would be used (e.g. sha256)
|
|
66
|
+
* @param ikm - input keying material, the initial key
|
|
67
|
+
* @param salt - optional salt value (a non-secret random value)
|
|
68
|
+
* @param info - optional context and application specific information
|
|
69
|
+
* @param length - length of output keying material in octets
|
|
70
|
+
*/
|
|
71
|
+
export const hkdf = (hash, ikm, salt, info, length) => expand(hash, extract(hash, ikm, salt), info, length);
|
|
72
|
+
//# sourceMappingURL=hkdf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hkdf.js","sourceRoot":"","sources":["../src/hkdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAgB,OAAO,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,kBAAkB;AAClB,qDAAqD;AAErD;;;;;;;GAOG;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CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzC,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC;QAClD,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC;QAC9B,oCAAoC;QACpC,2CAA2C;QAC3C,OAAO,CAAC,MAAM,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;aAC7C,MAAM,CAAC,IAAI,CAAC;aACZ,MAAM,CAAC,YAAY,CAAC;aACpB,UAAU,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,CAAC,OAAO,EAAE,CAAC;IACf,OAAO,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrB,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAClB,IAAW,EACX,GAAU,EACV,IAAuB,EACvB,IAAuB,EACvB,MAAc,EACd,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { hash as assertHash, bytes as assertBytes, exists as assertExists } from './_assert.js';
|
|
2
|
+
import { Hash, toBytes } from './utils.js';
|
|
3
|
+
// HMAC (RFC 2104)
|
|
4
|
+
export class HMAC extends Hash {
|
|
5
|
+
constructor(hash, _key) {
|
|
6
|
+
super();
|
|
7
|
+
this.finished = false;
|
|
8
|
+
this.destroyed = false;
|
|
9
|
+
assertHash(hash);
|
|
10
|
+
const key = toBytes(_key);
|
|
11
|
+
this.iHash = hash.create();
|
|
12
|
+
if (typeof this.iHash.update !== 'function')
|
|
13
|
+
throw new Error('Expected instance of class which extends utils.Hash');
|
|
14
|
+
this.blockLen = this.iHash.blockLen;
|
|
15
|
+
this.outputLen = this.iHash.outputLen;
|
|
16
|
+
const blockLen = this.blockLen;
|
|
17
|
+
const pad = new Uint8Array(blockLen);
|
|
18
|
+
// blockLen can be bigger than outputLen
|
|
19
|
+
pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);
|
|
20
|
+
for (let i = 0; i < pad.length; i++)
|
|
21
|
+
pad[i] ^= 0x36;
|
|
22
|
+
this.iHash.update(pad);
|
|
23
|
+
// By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone
|
|
24
|
+
this.oHash = hash.create();
|
|
25
|
+
// Undo internal XOR && apply outer XOR
|
|
26
|
+
for (let i = 0; i < pad.length; i++)
|
|
27
|
+
pad[i] ^= 0x36 ^ 0x5c;
|
|
28
|
+
this.oHash.update(pad);
|
|
29
|
+
pad.fill(0);
|
|
30
|
+
}
|
|
31
|
+
update(buf) {
|
|
32
|
+
assertExists(this);
|
|
33
|
+
this.iHash.update(buf);
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
digestInto(out) {
|
|
37
|
+
assertExists(this);
|
|
38
|
+
assertBytes(out, this.outputLen);
|
|
39
|
+
this.finished = true;
|
|
40
|
+
this.iHash.digestInto(out);
|
|
41
|
+
this.oHash.update(out);
|
|
42
|
+
this.oHash.digestInto(out);
|
|
43
|
+
this.destroy();
|
|
44
|
+
}
|
|
45
|
+
digest() {
|
|
46
|
+
const out = new Uint8Array(this.oHash.outputLen);
|
|
47
|
+
this.digestInto(out);
|
|
48
|
+
return out;
|
|
49
|
+
}
|
|
50
|
+
_cloneInto(to) {
|
|
51
|
+
// Create new instance without calling constructor since key already in state and we don't know it.
|
|
52
|
+
to || (to = Object.create(Object.getPrototypeOf(this), {}));
|
|
53
|
+
const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
|
|
54
|
+
to = to;
|
|
55
|
+
to.finished = finished;
|
|
56
|
+
to.destroyed = destroyed;
|
|
57
|
+
to.blockLen = blockLen;
|
|
58
|
+
to.outputLen = outputLen;
|
|
59
|
+
to.oHash = oHash._cloneInto(to.oHash);
|
|
60
|
+
to.iHash = iHash._cloneInto(to.iHash);
|
|
61
|
+
return to;
|
|
62
|
+
}
|
|
63
|
+
destroy() {
|
|
64
|
+
this.destroyed = true;
|
|
65
|
+
this.oHash.destroy();
|
|
66
|
+
this.iHash.destroy();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* HMAC: RFC2104 message authentication code.
|
|
71
|
+
* @param hash - function that would be used e.g. sha256
|
|
72
|
+
* @param key - message key
|
|
73
|
+
* @param message - message data
|
|
74
|
+
*/
|
|
75
|
+
export const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest();
|
|
76
|
+
hmac.create = (hash, key) => new HMAC(hash, key);
|
|
77
|
+
//# sourceMappingURL=hmac.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hmac.js","sourceRoot":"","sources":["../src/hmac.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,EAAE,IAAI,EAAgB,OAAO,EAAE,MAAM,YAAY,CAAC;AACzD,kBAAkB;AAClB,MAAM,OAAO,IAAwB,SAAQ,IAAa;IAQxD,YAAY,IAAW,EAAE,IAAW;QAClC,KAAK,EAAE,CAAC;QAJF,aAAQ,GAAG,KAAK,CAAC;QACjB,cAAS,GAAG,KAAK,CAAC;QAIxB,UAAU,CAAC,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