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,3399 @@
|
|
|
1
|
+
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.superagent = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
2
|
+
|
|
3
|
+
},{}],2:[function(require,module,exports){
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var bind = require('function-bind');
|
|
7
|
+
var $apply = require('./functionApply');
|
|
8
|
+
var $call = require('./functionCall');
|
|
9
|
+
var $reflectApply = require('./reflectApply');
|
|
10
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
11
|
+
|
|
12
|
+
},{"./functionApply":3,"./functionCall":4,"./reflectApply":6,"function-bind":21}],3:[function(require,module,exports){
|
|
13
|
+
'use strict';
|
|
14
|
+
module.exports = Function.prototype.apply;
|
|
15
|
+
|
|
16
|
+
},{}],4:[function(require,module,exports){
|
|
17
|
+
'use strict';
|
|
18
|
+
module.exports = Function.prototype.call;
|
|
19
|
+
|
|
20
|
+
},{}],5:[function(require,module,exports){
|
|
21
|
+
'use strict';
|
|
22
|
+
|
|
23
|
+
var bind = require('function-bind');
|
|
24
|
+
var $TypeError = require('es-errors/type');
|
|
25
|
+
var $call = require('./functionCall');
|
|
26
|
+
var $actualApply = require('./actualApply');
|
|
27
|
+
module.exports = function callBindBasic(args) {
|
|
28
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
29
|
+
throw new $TypeError('a function is required');
|
|
30
|
+
}
|
|
31
|
+
return $actualApply(bind, $call, args);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
},{"./actualApply":2,"./functionCall":4,"es-errors/type":16,"function-bind":21}],6:[function(require,module,exports){
|
|
35
|
+
'use strict';
|
|
36
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
37
|
+
|
|
38
|
+
},{}],7:[function(require,module,exports){
|
|
39
|
+
'use strict';
|
|
40
|
+
|
|
41
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
42
|
+
var callBindBasic = require('call-bind-apply-helpers');
|
|
43
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
44
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
45
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
46
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
47
|
+
return callBindBasic([intrinsic]);
|
|
48
|
+
}
|
|
49
|
+
return intrinsic;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
},{"call-bind-apply-helpers":5,"get-intrinsic":22}],8:[function(require,module,exports){
|
|
53
|
+
if (typeof module !== 'undefined') {
|
|
54
|
+
module.exports = Emitter;
|
|
55
|
+
}
|
|
56
|
+
function Emitter(obj) {
|
|
57
|
+
if (obj) return mixin(obj);
|
|
58
|
+
}
|
|
59
|
+
;
|
|
60
|
+
function mixin(obj) {
|
|
61
|
+
for (var key in Emitter.prototype) {
|
|
62
|
+
obj[key] = Emitter.prototype[key];
|
|
63
|
+
}
|
|
64
|
+
return obj;
|
|
65
|
+
}
|
|
66
|
+
Emitter.prototype.on = Emitter.prototype.addEventListener = function (event, fn) {
|
|
67
|
+
this._callbacks = this._callbacks || {};
|
|
68
|
+
(this._callbacks['$' + event] = this._callbacks['$' + event] || []).push(fn);
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
71
|
+
Emitter.prototype.once = function (event, fn) {
|
|
72
|
+
function on() {
|
|
73
|
+
this.off(event, on);
|
|
74
|
+
fn.apply(this, arguments);
|
|
75
|
+
}
|
|
76
|
+
on.fn = fn;
|
|
77
|
+
this.on(event, on);
|
|
78
|
+
return this;
|
|
79
|
+
};
|
|
80
|
+
Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function (event, fn) {
|
|
81
|
+
this._callbacks = this._callbacks || {};
|
|
82
|
+
if (0 == arguments.length) {
|
|
83
|
+
this._callbacks = {};
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
var callbacks = this._callbacks['$' + event];
|
|
87
|
+
if (!callbacks) return this;
|
|
88
|
+
if (1 == arguments.length) {
|
|
89
|
+
delete this._callbacks['$' + event];
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
var cb;
|
|
93
|
+
for (var i = 0; i < callbacks.length; i++) {
|
|
94
|
+
cb = callbacks[i];
|
|
95
|
+
if (cb === fn || cb.fn === fn) {
|
|
96
|
+
callbacks.splice(i, 1);
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (callbacks.length === 0) {
|
|
101
|
+
delete this._callbacks['$' + event];
|
|
102
|
+
}
|
|
103
|
+
return this;
|
|
104
|
+
};
|
|
105
|
+
Emitter.prototype.emit = function (event) {
|
|
106
|
+
this._callbacks = this._callbacks || {};
|
|
107
|
+
var args = new Array(arguments.length - 1),
|
|
108
|
+
callbacks = this._callbacks['$' + event];
|
|
109
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
110
|
+
args[i - 1] = arguments[i];
|
|
111
|
+
}
|
|
112
|
+
if (callbacks) {
|
|
113
|
+
callbacks = callbacks.slice(0);
|
|
114
|
+
for (var i = 0, len = callbacks.length; i < len; ++i) {
|
|
115
|
+
callbacks[i].apply(this, args);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return this;
|
|
119
|
+
};
|
|
120
|
+
Emitter.prototype.listeners = function (event) {
|
|
121
|
+
this._callbacks = this._callbacks || {};
|
|
122
|
+
return this._callbacks['$' + event] || [];
|
|
123
|
+
};
|
|
124
|
+
Emitter.prototype.hasListeners = function (event) {
|
|
125
|
+
return !!this.listeners(event).length;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
},{}],9:[function(require,module,exports){
|
|
129
|
+
'use strict';
|
|
130
|
+
|
|
131
|
+
var callBind = require('call-bind-apply-helpers');
|
|
132
|
+
var gOPD = require('gopd');
|
|
133
|
+
var hasProtoAccessor;
|
|
134
|
+
try {
|
|
135
|
+
hasProtoAccessor = [].__proto__ === Array.prototype;
|
|
136
|
+
} catch (e) {
|
|
137
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
138
|
+
throw e;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, '__proto__');
|
|
142
|
+
var $Object = Object;
|
|
143
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
144
|
+
module.exports = desc && typeof desc.get === 'function' ? callBind([desc.get]) : typeof $getPrototypeOf === 'function' ? function getDunder(value) {
|
|
145
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
146
|
+
} : false;
|
|
147
|
+
|
|
148
|
+
},{"call-bind-apply-helpers":5,"gopd":27}],10:[function(require,module,exports){
|
|
149
|
+
'use strict';
|
|
150
|
+
var $defineProperty = Object.defineProperty || false;
|
|
151
|
+
if ($defineProperty) {
|
|
152
|
+
try {
|
|
153
|
+
$defineProperty({}, 'a', {
|
|
154
|
+
value: 1
|
|
155
|
+
});
|
|
156
|
+
} catch (e) {
|
|
157
|
+
$defineProperty = false;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
module.exports = $defineProperty;
|
|
161
|
+
|
|
162
|
+
},{}],11:[function(require,module,exports){
|
|
163
|
+
'use strict';
|
|
164
|
+
module.exports = EvalError;
|
|
165
|
+
|
|
166
|
+
},{}],12:[function(require,module,exports){
|
|
167
|
+
'use strict';
|
|
168
|
+
module.exports = Error;
|
|
169
|
+
|
|
170
|
+
},{}],13:[function(require,module,exports){
|
|
171
|
+
'use strict';
|
|
172
|
+
module.exports = RangeError;
|
|
173
|
+
|
|
174
|
+
},{}],14:[function(require,module,exports){
|
|
175
|
+
'use strict';
|
|
176
|
+
module.exports = ReferenceError;
|
|
177
|
+
|
|
178
|
+
},{}],15:[function(require,module,exports){
|
|
179
|
+
'use strict';
|
|
180
|
+
module.exports = SyntaxError;
|
|
181
|
+
|
|
182
|
+
},{}],16:[function(require,module,exports){
|
|
183
|
+
'use strict';
|
|
184
|
+
module.exports = TypeError;
|
|
185
|
+
|
|
186
|
+
},{}],17:[function(require,module,exports){
|
|
187
|
+
'use strict';
|
|
188
|
+
module.exports = URIError;
|
|
189
|
+
|
|
190
|
+
},{}],18:[function(require,module,exports){
|
|
191
|
+
'use strict';
|
|
192
|
+
module.exports = Object;
|
|
193
|
+
|
|
194
|
+
},{}],19:[function(require,module,exports){
|
|
195
|
+
module.exports = stringify;
|
|
196
|
+
stringify.default = stringify;
|
|
197
|
+
stringify.stable = deterministicStringify;
|
|
198
|
+
stringify.stableStringify = deterministicStringify;
|
|
199
|
+
var LIMIT_REPLACE_NODE = '[...]';
|
|
200
|
+
var CIRCULAR_REPLACE_NODE = '[Circular]';
|
|
201
|
+
var arr = [];
|
|
202
|
+
var replacerStack = [];
|
|
203
|
+
function defaultOptions() {
|
|
204
|
+
return {
|
|
205
|
+
depthLimit: Number.MAX_SAFE_INTEGER,
|
|
206
|
+
edgesLimit: Number.MAX_SAFE_INTEGER
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
function stringify(obj, replacer, spacer, options) {
|
|
210
|
+
if (typeof options === 'undefined') {
|
|
211
|
+
options = defaultOptions();
|
|
212
|
+
}
|
|
213
|
+
decirc(obj, '', 0, [], undefined, 0, options);
|
|
214
|
+
var res;
|
|
215
|
+
try {
|
|
216
|
+
if (replacerStack.length === 0) {
|
|
217
|
+
res = JSON.stringify(obj, replacer, spacer);
|
|
218
|
+
} else {
|
|
219
|
+
res = JSON.stringify(obj, replaceGetterValues(replacer), spacer);
|
|
220
|
+
}
|
|
221
|
+
} catch (_) {
|
|
222
|
+
return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');
|
|
223
|
+
} finally {
|
|
224
|
+
while (arr.length !== 0) {
|
|
225
|
+
var part = arr.pop();
|
|
226
|
+
if (part.length === 4) {
|
|
227
|
+
Object.defineProperty(part[0], part[1], part[3]);
|
|
228
|
+
} else {
|
|
229
|
+
part[0][part[1]] = part[2];
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return res;
|
|
234
|
+
}
|
|
235
|
+
function setReplace(replace, val, k, parent) {
|
|
236
|
+
var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k);
|
|
237
|
+
if (propertyDescriptor.get !== undefined) {
|
|
238
|
+
if (propertyDescriptor.configurable) {
|
|
239
|
+
Object.defineProperty(parent, k, {
|
|
240
|
+
value: replace
|
|
241
|
+
});
|
|
242
|
+
arr.push([parent, k, val, propertyDescriptor]);
|
|
243
|
+
} else {
|
|
244
|
+
replacerStack.push([val, k, replace]);
|
|
245
|
+
}
|
|
246
|
+
} else {
|
|
247
|
+
parent[k] = replace;
|
|
248
|
+
arr.push([parent, k, val]);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function decirc(val, k, edgeIndex, stack, parent, depth, options) {
|
|
252
|
+
depth += 1;
|
|
253
|
+
var i;
|
|
254
|
+
if (typeof val === 'object' && val !== null) {
|
|
255
|
+
for (i = 0; i < stack.length; i++) {
|
|
256
|
+
if (stack[i] === val) {
|
|
257
|
+
setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (typeof options.depthLimit !== 'undefined' && depth > options.depthLimit) {
|
|
262
|
+
setReplace(LIMIT_REPLACE_NODE, val, k, parent);
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
if (typeof options.edgesLimit !== 'undefined' && edgeIndex + 1 > options.edgesLimit) {
|
|
266
|
+
setReplace(LIMIT_REPLACE_NODE, val, k, parent);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
stack.push(val);
|
|
270
|
+
if (Array.isArray(val)) {
|
|
271
|
+
for (i = 0; i < val.length; i++) {
|
|
272
|
+
decirc(val[i], i, i, stack, val, depth, options);
|
|
273
|
+
}
|
|
274
|
+
} else {
|
|
275
|
+
var keys = Object.keys(val);
|
|
276
|
+
for (i = 0; i < keys.length; i++) {
|
|
277
|
+
var key = keys[i];
|
|
278
|
+
decirc(val[key], key, i, stack, val, depth, options);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
stack.pop();
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
function compareFunction(a, b) {
|
|
285
|
+
if (a < b) {
|
|
286
|
+
return -1;
|
|
287
|
+
}
|
|
288
|
+
if (a > b) {
|
|
289
|
+
return 1;
|
|
290
|
+
}
|
|
291
|
+
return 0;
|
|
292
|
+
}
|
|
293
|
+
function deterministicStringify(obj, replacer, spacer, options) {
|
|
294
|
+
if (typeof options === 'undefined') {
|
|
295
|
+
options = defaultOptions();
|
|
296
|
+
}
|
|
297
|
+
var tmp = deterministicDecirc(obj, '', 0, [], undefined, 0, options) || obj;
|
|
298
|
+
var res;
|
|
299
|
+
try {
|
|
300
|
+
if (replacerStack.length === 0) {
|
|
301
|
+
res = JSON.stringify(tmp, replacer, spacer);
|
|
302
|
+
} else {
|
|
303
|
+
res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer);
|
|
304
|
+
}
|
|
305
|
+
} catch (_) {
|
|
306
|
+
return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');
|
|
307
|
+
} finally {
|
|
308
|
+
while (arr.length !== 0) {
|
|
309
|
+
var part = arr.pop();
|
|
310
|
+
if (part.length === 4) {
|
|
311
|
+
Object.defineProperty(part[0], part[1], part[3]);
|
|
312
|
+
} else {
|
|
313
|
+
part[0][part[1]] = part[2];
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return res;
|
|
318
|
+
}
|
|
319
|
+
function deterministicDecirc(val, k, edgeIndex, stack, parent, depth, options) {
|
|
320
|
+
depth += 1;
|
|
321
|
+
var i;
|
|
322
|
+
if (typeof val === 'object' && val !== null) {
|
|
323
|
+
for (i = 0; i < stack.length; i++) {
|
|
324
|
+
if (stack[i] === val) {
|
|
325
|
+
setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
try {
|
|
330
|
+
if (typeof val.toJSON === 'function') {
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
} catch (_) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
if (typeof options.depthLimit !== 'undefined' && depth > options.depthLimit) {
|
|
337
|
+
setReplace(LIMIT_REPLACE_NODE, val, k, parent);
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
if (typeof options.edgesLimit !== 'undefined' && edgeIndex + 1 > options.edgesLimit) {
|
|
341
|
+
setReplace(LIMIT_REPLACE_NODE, val, k, parent);
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
stack.push(val);
|
|
345
|
+
if (Array.isArray(val)) {
|
|
346
|
+
for (i = 0; i < val.length; i++) {
|
|
347
|
+
deterministicDecirc(val[i], i, i, stack, val, depth, options);
|
|
348
|
+
}
|
|
349
|
+
} else {
|
|
350
|
+
var tmp = {};
|
|
351
|
+
var keys = Object.keys(val).sort(compareFunction);
|
|
352
|
+
for (i = 0; i < keys.length; i++) {
|
|
353
|
+
var key = keys[i];
|
|
354
|
+
deterministicDecirc(val[key], key, i, stack, val, depth, options);
|
|
355
|
+
tmp[key] = val[key];
|
|
356
|
+
}
|
|
357
|
+
if (typeof parent !== 'undefined') {
|
|
358
|
+
arr.push([parent, k, val]);
|
|
359
|
+
parent[k] = tmp;
|
|
360
|
+
} else {
|
|
361
|
+
return tmp;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
stack.pop();
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
function replaceGetterValues(replacer) {
|
|
368
|
+
replacer = typeof replacer !== 'undefined' ? replacer : function (k, v) {
|
|
369
|
+
return v;
|
|
370
|
+
};
|
|
371
|
+
return function (key, val) {
|
|
372
|
+
if (replacerStack.length > 0) {
|
|
373
|
+
for (var i = 0; i < replacerStack.length; i++) {
|
|
374
|
+
var part = replacerStack[i];
|
|
375
|
+
if (part[1] === key && part[0] === val) {
|
|
376
|
+
val = part[2];
|
|
377
|
+
replacerStack.splice(i, 1);
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return replacer.call(this, key, val);
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
},{}],20:[function(require,module,exports){
|
|
387
|
+
'use strict';
|
|
388
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
389
|
+
var toStr = Object.prototype.toString;
|
|
390
|
+
var max = Math.max;
|
|
391
|
+
var funcType = '[object Function]';
|
|
392
|
+
var concatty = function concatty(a, b) {
|
|
393
|
+
var arr = [];
|
|
394
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
395
|
+
arr[i] = a[i];
|
|
396
|
+
}
|
|
397
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
398
|
+
arr[j + a.length] = b[j];
|
|
399
|
+
}
|
|
400
|
+
return arr;
|
|
401
|
+
};
|
|
402
|
+
var slicy = function slicy(arrLike, offset) {
|
|
403
|
+
var arr = [];
|
|
404
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
405
|
+
arr[j] = arrLike[i];
|
|
406
|
+
}
|
|
407
|
+
return arr;
|
|
408
|
+
};
|
|
409
|
+
var joiny = function (arr, joiner) {
|
|
410
|
+
var str = '';
|
|
411
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
412
|
+
str += arr[i];
|
|
413
|
+
if (i + 1 < arr.length) {
|
|
414
|
+
str += joiner;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return str;
|
|
418
|
+
};
|
|
419
|
+
module.exports = function bind(that) {
|
|
420
|
+
var target = this;
|
|
421
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
422
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
423
|
+
}
|
|
424
|
+
var args = slicy(arguments, 1);
|
|
425
|
+
var bound;
|
|
426
|
+
var binder = function () {
|
|
427
|
+
if (this instanceof bound) {
|
|
428
|
+
var result = target.apply(this, concatty(args, arguments));
|
|
429
|
+
if (Object(result) === result) {
|
|
430
|
+
return result;
|
|
431
|
+
}
|
|
432
|
+
return this;
|
|
433
|
+
}
|
|
434
|
+
return target.apply(that, concatty(args, arguments));
|
|
435
|
+
};
|
|
436
|
+
var boundLength = max(0, target.length - args.length);
|
|
437
|
+
var boundArgs = [];
|
|
438
|
+
for (var i = 0; i < boundLength; i++) {
|
|
439
|
+
boundArgs[i] = '$' + i;
|
|
440
|
+
}
|
|
441
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
442
|
+
if (target.prototype) {
|
|
443
|
+
var Empty = function Empty() {};
|
|
444
|
+
Empty.prototype = target.prototype;
|
|
445
|
+
bound.prototype = new Empty();
|
|
446
|
+
Empty.prototype = null;
|
|
447
|
+
}
|
|
448
|
+
return bound;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
},{}],21:[function(require,module,exports){
|
|
452
|
+
'use strict';
|
|
453
|
+
|
|
454
|
+
var implementation = require('./implementation');
|
|
455
|
+
module.exports = Function.prototype.bind || implementation;
|
|
456
|
+
|
|
457
|
+
},{"./implementation":20}],22:[function(require,module,exports){
|
|
458
|
+
'use strict';
|
|
459
|
+
|
|
460
|
+
var undefined;
|
|
461
|
+
var $Object = require('es-object-atoms');
|
|
462
|
+
var $Error = require('es-errors');
|
|
463
|
+
var $EvalError = require('es-errors/eval');
|
|
464
|
+
var $RangeError = require('es-errors/range');
|
|
465
|
+
var $ReferenceError = require('es-errors/ref');
|
|
466
|
+
var $SyntaxError = require('es-errors/syntax');
|
|
467
|
+
var $TypeError = require('es-errors/type');
|
|
468
|
+
var $URIError = require('es-errors/uri');
|
|
469
|
+
var abs = require('math-intrinsics/abs');
|
|
470
|
+
var floor = require('math-intrinsics/floor');
|
|
471
|
+
var max = require('math-intrinsics/max');
|
|
472
|
+
var min = require('math-intrinsics/min');
|
|
473
|
+
var pow = require('math-intrinsics/pow');
|
|
474
|
+
var round = require('math-intrinsics/round');
|
|
475
|
+
var sign = require('math-intrinsics/sign');
|
|
476
|
+
var $Function = Function;
|
|
477
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
478
|
+
try {
|
|
479
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
480
|
+
} catch (e) {}
|
|
481
|
+
};
|
|
482
|
+
var $gOPD = require('gopd');
|
|
483
|
+
var $defineProperty = require('es-define-property');
|
|
484
|
+
var throwTypeError = function () {
|
|
485
|
+
throw new $TypeError();
|
|
486
|
+
};
|
|
487
|
+
var ThrowTypeError = $gOPD ? function () {
|
|
488
|
+
try {
|
|
489
|
+
arguments.callee;
|
|
490
|
+
return throwTypeError;
|
|
491
|
+
} catch (calleeThrows) {
|
|
492
|
+
try {
|
|
493
|
+
return $gOPD(arguments, 'callee').get;
|
|
494
|
+
} catch (gOPDthrows) {
|
|
495
|
+
return throwTypeError;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}() : throwTypeError;
|
|
499
|
+
var hasSymbols = require('has-symbols')();
|
|
500
|
+
var getProto = require('get-proto');
|
|
501
|
+
var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
|
|
502
|
+
var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
|
|
503
|
+
var $apply = require('call-bind-apply-helpers/functionApply');
|
|
504
|
+
var $call = require('call-bind-apply-helpers/functionCall');
|
|
505
|
+
var needsEval = {};
|
|
506
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
507
|
+
var INTRINSICS = {
|
|
508
|
+
__proto__: null,
|
|
509
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
510
|
+
'%Array%': Array,
|
|
511
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
512
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
513
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
514
|
+
'%AsyncFunction%': needsEval,
|
|
515
|
+
'%AsyncGenerator%': needsEval,
|
|
516
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
517
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
518
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
519
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
520
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
521
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
522
|
+
'%Boolean%': Boolean,
|
|
523
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
524
|
+
'%Date%': Date,
|
|
525
|
+
'%decodeURI%': decodeURI,
|
|
526
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
527
|
+
'%encodeURI%': encodeURI,
|
|
528
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
529
|
+
'%Error%': $Error,
|
|
530
|
+
'%eval%': eval,
|
|
531
|
+
'%EvalError%': $EvalError,
|
|
532
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
|
533
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
534
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
535
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
536
|
+
'%Function%': $Function,
|
|
537
|
+
'%GeneratorFunction%': needsEval,
|
|
538
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
539
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
540
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
541
|
+
'%isFinite%': isFinite,
|
|
542
|
+
'%isNaN%': isNaN,
|
|
543
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
544
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
545
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
546
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
547
|
+
'%Math%': Math,
|
|
548
|
+
'%Number%': Number,
|
|
549
|
+
'%Object%': $Object,
|
|
550
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
551
|
+
'%parseFloat%': parseFloat,
|
|
552
|
+
'%parseInt%': parseInt,
|
|
553
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
554
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
555
|
+
'%RangeError%': $RangeError,
|
|
556
|
+
'%ReferenceError%': $ReferenceError,
|
|
557
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
558
|
+
'%RegExp%': RegExp,
|
|
559
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
560
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
561
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
562
|
+
'%String%': String,
|
|
563
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
564
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
565
|
+
'%SyntaxError%': $SyntaxError,
|
|
566
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
567
|
+
'%TypedArray%': TypedArray,
|
|
568
|
+
'%TypeError%': $TypeError,
|
|
569
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
570
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
571
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
572
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
573
|
+
'%URIError%': $URIError,
|
|
574
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
575
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
576
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
577
|
+
'%Function.prototype.call%': $call,
|
|
578
|
+
'%Function.prototype.apply%': $apply,
|
|
579
|
+
'%Object.defineProperty%': $defineProperty,
|
|
580
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
581
|
+
'%Math.abs%': abs,
|
|
582
|
+
'%Math.floor%': floor,
|
|
583
|
+
'%Math.max%': max,
|
|
584
|
+
'%Math.min%': min,
|
|
585
|
+
'%Math.pow%': pow,
|
|
586
|
+
'%Math.round%': round,
|
|
587
|
+
'%Math.sign%': sign,
|
|
588
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
589
|
+
};
|
|
590
|
+
if (getProto) {
|
|
591
|
+
try {
|
|
592
|
+
null.error;
|
|
593
|
+
} catch (e) {
|
|
594
|
+
var errorProto = getProto(getProto(e));
|
|
595
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
var doEval = function doEval(name) {
|
|
599
|
+
var value;
|
|
600
|
+
if (name === '%AsyncFunction%') {
|
|
601
|
+
value = getEvalledConstructor('async function () {}');
|
|
602
|
+
} else if (name === '%GeneratorFunction%') {
|
|
603
|
+
value = getEvalledConstructor('function* () {}');
|
|
604
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
605
|
+
value = getEvalledConstructor('async function* () {}');
|
|
606
|
+
} else if (name === '%AsyncGenerator%') {
|
|
607
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
608
|
+
if (fn) {
|
|
609
|
+
value = fn.prototype;
|
|
610
|
+
}
|
|
611
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
612
|
+
var gen = doEval('%AsyncGenerator%');
|
|
613
|
+
if (gen && getProto) {
|
|
614
|
+
value = getProto(gen.prototype);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
INTRINSICS[name] = value;
|
|
618
|
+
return value;
|
|
619
|
+
};
|
|
620
|
+
var LEGACY_ALIASES = {
|
|
621
|
+
__proto__: null,
|
|
622
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
623
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
624
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
625
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
626
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
627
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
628
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
629
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
630
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
631
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
632
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
633
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
634
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
635
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
636
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
637
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
638
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
639
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
640
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
641
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
642
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
643
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
644
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
645
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
646
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
647
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
648
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
649
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
650
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
651
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
652
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
653
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
654
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
655
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
656
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
657
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
658
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
659
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
660
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
661
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
662
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
663
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
664
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
665
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
666
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
667
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
668
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
669
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
670
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
671
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
672
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
673
|
+
};
|
|
674
|
+
var bind = require('function-bind');
|
|
675
|
+
var hasOwn = require('hasown');
|
|
676
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
677
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
678
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
679
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
680
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
681
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
682
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
683
|
+
var stringToPath = function stringToPath(string) {
|
|
684
|
+
var first = $strSlice(string, 0, 1);
|
|
685
|
+
var last = $strSlice(string, -1);
|
|
686
|
+
if (first === '%' && last !== '%') {
|
|
687
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
688
|
+
} else if (last === '%' && first !== '%') {
|
|
689
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
690
|
+
}
|
|
691
|
+
var result = [];
|
|
692
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
693
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
694
|
+
});
|
|
695
|
+
return result;
|
|
696
|
+
};
|
|
697
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
698
|
+
var intrinsicName = name;
|
|
699
|
+
var alias;
|
|
700
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
701
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
702
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
703
|
+
}
|
|
704
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
705
|
+
var value = INTRINSICS[intrinsicName];
|
|
706
|
+
if (value === needsEval) {
|
|
707
|
+
value = doEval(intrinsicName);
|
|
708
|
+
}
|
|
709
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
710
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
711
|
+
}
|
|
712
|
+
return {
|
|
713
|
+
alias: alias,
|
|
714
|
+
name: intrinsicName,
|
|
715
|
+
value: value
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
719
|
+
};
|
|
720
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
721
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
722
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
723
|
+
}
|
|
724
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
725
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
726
|
+
}
|
|
727
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
728
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
729
|
+
}
|
|
730
|
+
var parts = stringToPath(name);
|
|
731
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
732
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
733
|
+
var intrinsicRealName = intrinsic.name;
|
|
734
|
+
var value = intrinsic.value;
|
|
735
|
+
var skipFurtherCaching = false;
|
|
736
|
+
var alias = intrinsic.alias;
|
|
737
|
+
if (alias) {
|
|
738
|
+
intrinsicBaseName = alias[0];
|
|
739
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
740
|
+
}
|
|
741
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
742
|
+
var part = parts[i];
|
|
743
|
+
var first = $strSlice(part, 0, 1);
|
|
744
|
+
var last = $strSlice(part, -1);
|
|
745
|
+
if ((first === '"' || first === "'" || first === '`' || last === '"' || last === "'" || last === '`') && first !== last) {
|
|
746
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
747
|
+
}
|
|
748
|
+
if (part === 'constructor' || !isOwn) {
|
|
749
|
+
skipFurtherCaching = true;
|
|
750
|
+
}
|
|
751
|
+
intrinsicBaseName += '.' + part;
|
|
752
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
753
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
754
|
+
value = INTRINSICS[intrinsicRealName];
|
|
755
|
+
} else if (value != null) {
|
|
756
|
+
if (!(part in value)) {
|
|
757
|
+
if (!allowMissing) {
|
|
758
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
759
|
+
}
|
|
760
|
+
return void undefined;
|
|
761
|
+
}
|
|
762
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
763
|
+
var desc = $gOPD(value, part);
|
|
764
|
+
isOwn = !!desc;
|
|
765
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
766
|
+
value = desc.get;
|
|
767
|
+
} else {
|
|
768
|
+
value = value[part];
|
|
769
|
+
}
|
|
770
|
+
} else {
|
|
771
|
+
isOwn = hasOwn(value, part);
|
|
772
|
+
value = value[part];
|
|
773
|
+
}
|
|
774
|
+
if (isOwn && !skipFurtherCaching) {
|
|
775
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
return value;
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
},{"call-bind-apply-helpers/functionApply":3,"call-bind-apply-helpers/functionCall":4,"es-define-property":10,"es-errors":12,"es-errors/eval":11,"es-errors/range":13,"es-errors/ref":14,"es-errors/syntax":15,"es-errors/type":16,"es-errors/uri":17,"es-object-atoms":18,"function-bind":21,"get-proto":25,"get-proto/Object.getPrototypeOf":23,"get-proto/Reflect.getPrototypeOf":24,"gopd":27,"has-symbols":28,"hasown":30,"math-intrinsics/abs":31,"math-intrinsics/floor":32,"math-intrinsics/max":34,"math-intrinsics/min":35,"math-intrinsics/pow":36,"math-intrinsics/round":37,"math-intrinsics/sign":38}],23:[function(require,module,exports){
|
|
783
|
+
'use strict';
|
|
784
|
+
|
|
785
|
+
var $Object = require('es-object-atoms');
|
|
786
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
787
|
+
|
|
788
|
+
},{"es-object-atoms":18}],24:[function(require,module,exports){
|
|
789
|
+
'use strict';
|
|
790
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect.getPrototypeOf || null;
|
|
791
|
+
|
|
792
|
+
},{}],25:[function(require,module,exports){
|
|
793
|
+
'use strict';
|
|
794
|
+
|
|
795
|
+
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
796
|
+
var originalGetProto = require('./Object.getPrototypeOf');
|
|
797
|
+
var getDunderProto = require('dunder-proto/get');
|
|
798
|
+
module.exports = reflectGetProto ? function getProto(O) {
|
|
799
|
+
return reflectGetProto(O);
|
|
800
|
+
} : originalGetProto ? function getProto(O) {
|
|
801
|
+
if (!O || typeof O !== 'object' && typeof O !== 'function') {
|
|
802
|
+
throw new TypeError('getProto: not an object');
|
|
803
|
+
}
|
|
804
|
+
return originalGetProto(O);
|
|
805
|
+
} : getDunderProto ? function getProto(O) {
|
|
806
|
+
return getDunderProto(O);
|
|
807
|
+
} : null;
|
|
808
|
+
|
|
809
|
+
},{"./Object.getPrototypeOf":23,"./Reflect.getPrototypeOf":24,"dunder-proto/get":9}],26:[function(require,module,exports){
|
|
810
|
+
'use strict';
|
|
811
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
812
|
+
|
|
813
|
+
},{}],27:[function(require,module,exports){
|
|
814
|
+
'use strict';
|
|
815
|
+
var $gOPD = require('./gOPD');
|
|
816
|
+
if ($gOPD) {
|
|
817
|
+
try {
|
|
818
|
+
$gOPD([], 'length');
|
|
819
|
+
} catch (e) {
|
|
820
|
+
$gOPD = null;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
module.exports = $gOPD;
|
|
824
|
+
|
|
825
|
+
},{"./gOPD":26}],28:[function(require,module,exports){
|
|
826
|
+
'use strict';
|
|
827
|
+
|
|
828
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
829
|
+
var hasSymbolSham = require('./shams');
|
|
830
|
+
module.exports = function hasNativeSymbols() {
|
|
831
|
+
if (typeof origSymbol !== 'function') {
|
|
832
|
+
return false;
|
|
833
|
+
}
|
|
834
|
+
if (typeof Symbol !== 'function') {
|
|
835
|
+
return false;
|
|
836
|
+
}
|
|
837
|
+
if (typeof origSymbol('foo') !== 'symbol') {
|
|
838
|
+
return false;
|
|
839
|
+
}
|
|
840
|
+
if (typeof Symbol('bar') !== 'symbol') {
|
|
841
|
+
return false;
|
|
842
|
+
}
|
|
843
|
+
return hasSymbolSham();
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
},{"./shams":29}],29:[function(require,module,exports){
|
|
847
|
+
'use strict';
|
|
848
|
+
module.exports = function hasSymbols() {
|
|
849
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') {
|
|
850
|
+
return false;
|
|
851
|
+
}
|
|
852
|
+
if (typeof Symbol.iterator === 'symbol') {
|
|
853
|
+
return true;
|
|
854
|
+
}
|
|
855
|
+
var obj = {};
|
|
856
|
+
var sym = Symbol('test');
|
|
857
|
+
var symObj = Object(sym);
|
|
858
|
+
if (typeof sym === 'string') {
|
|
859
|
+
return false;
|
|
860
|
+
}
|
|
861
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') {
|
|
862
|
+
return false;
|
|
863
|
+
}
|
|
864
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') {
|
|
865
|
+
return false;
|
|
866
|
+
}
|
|
867
|
+
var symVal = 42;
|
|
868
|
+
obj[sym] = symVal;
|
|
869
|
+
for (var _ in obj) {
|
|
870
|
+
return false;
|
|
871
|
+
}
|
|
872
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) {
|
|
873
|
+
return false;
|
|
874
|
+
}
|
|
875
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
876
|
+
return false;
|
|
877
|
+
}
|
|
878
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
879
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
880
|
+
return false;
|
|
881
|
+
}
|
|
882
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
883
|
+
return false;
|
|
884
|
+
}
|
|
885
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
886
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
887
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
888
|
+
return false;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
return true;
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
},{}],30:[function(require,module,exports){
|
|
895
|
+
'use strict';
|
|
896
|
+
|
|
897
|
+
var call = Function.prototype.call;
|
|
898
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
899
|
+
var bind = require('function-bind');
|
|
900
|
+
module.exports = bind.call(call, $hasOwn);
|
|
901
|
+
|
|
902
|
+
},{"function-bind":21}],31:[function(require,module,exports){
|
|
903
|
+
'use strict';
|
|
904
|
+
module.exports = Math.abs;
|
|
905
|
+
|
|
906
|
+
},{}],32:[function(require,module,exports){
|
|
907
|
+
'use strict';
|
|
908
|
+
module.exports = Math.floor;
|
|
909
|
+
|
|
910
|
+
},{}],33:[function(require,module,exports){
|
|
911
|
+
'use strict';
|
|
912
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
913
|
+
return a !== a;
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
},{}],34:[function(require,module,exports){
|
|
917
|
+
'use strict';
|
|
918
|
+
module.exports = Math.max;
|
|
919
|
+
|
|
920
|
+
},{}],35:[function(require,module,exports){
|
|
921
|
+
'use strict';
|
|
922
|
+
module.exports = Math.min;
|
|
923
|
+
|
|
924
|
+
},{}],36:[function(require,module,exports){
|
|
925
|
+
'use strict';
|
|
926
|
+
module.exports = Math.pow;
|
|
927
|
+
|
|
928
|
+
},{}],37:[function(require,module,exports){
|
|
929
|
+
'use strict';
|
|
930
|
+
module.exports = Math.round;
|
|
931
|
+
|
|
932
|
+
},{}],38:[function(require,module,exports){
|
|
933
|
+
'use strict';
|
|
934
|
+
|
|
935
|
+
var $isNaN = require('./isNaN');
|
|
936
|
+
module.exports = function sign(number) {
|
|
937
|
+
if ($isNaN(number) || number === 0) {
|
|
938
|
+
return number;
|
|
939
|
+
}
|
|
940
|
+
return number < 0 ? -1 : +1;
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
},{"./isNaN":33}],39:[function(require,module,exports){
|
|
944
|
+
(function (global){(function (){
|
|
945
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
946
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
947
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
948
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
949
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
950
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
951
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
952
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
953
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
954
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
955
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
956
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
957
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
958
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
959
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
960
|
+
var objectToString = Object.prototype.toString;
|
|
961
|
+
var functionToString = Function.prototype.toString;
|
|
962
|
+
var $match = String.prototype.match;
|
|
963
|
+
var $slice = String.prototype.slice;
|
|
964
|
+
var $replace = String.prototype.replace;
|
|
965
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
|
966
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
|
967
|
+
var $test = RegExp.prototype.test;
|
|
968
|
+
var $concat = Array.prototype.concat;
|
|
969
|
+
var $join = Array.prototype.join;
|
|
970
|
+
var $arrSlice = Array.prototype.slice;
|
|
971
|
+
var $floor = Math.floor;
|
|
972
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
973
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
974
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
975
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
976
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') ? Symbol.toStringTag : null;
|
|
977
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
978
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function (O) {
|
|
979
|
+
return O.__proto__;
|
|
980
|
+
} : null);
|
|
981
|
+
function addNumericSeparator(num, str) {
|
|
982
|
+
if (num === Infinity || num === -Infinity || num !== num || num && num > -1000 && num < 1000 || $test.call(/e/, str)) {
|
|
983
|
+
return str;
|
|
984
|
+
}
|
|
985
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
986
|
+
if (typeof num === 'number') {
|
|
987
|
+
var int = num < 0 ? -$floor(-num) : $floor(num);
|
|
988
|
+
if (int !== num) {
|
|
989
|
+
var intStr = String(int);
|
|
990
|
+
var dec = $slice.call(str, intStr.length + 1);
|
|
991
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
return $replace.call(str, sepRegex, '$&_');
|
|
995
|
+
}
|
|
996
|
+
var utilInspect = require('./util.inspect');
|
|
997
|
+
var inspectCustom = utilInspect.custom;
|
|
998
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
999
|
+
var quotes = {
|
|
1000
|
+
__proto__: null,
|
|
1001
|
+
'double': '"',
|
|
1002
|
+
single: "'"
|
|
1003
|
+
};
|
|
1004
|
+
var quoteREs = {
|
|
1005
|
+
__proto__: null,
|
|
1006
|
+
'double': /(["\\])/g,
|
|
1007
|
+
single: /(['\\])/g
|
|
1008
|
+
};
|
|
1009
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
|
1010
|
+
var opts = options || {};
|
|
1011
|
+
if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
|
|
1012
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1013
|
+
}
|
|
1014
|
+
if (has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
|
|
1015
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1016
|
+
}
|
|
1017
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
1018
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
1019
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
1020
|
+
}
|
|
1021
|
+
if (has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
|
|
1022
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1023
|
+
}
|
|
1024
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
1025
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1026
|
+
}
|
|
1027
|
+
var numericSeparator = opts.numericSeparator;
|
|
1028
|
+
if (typeof obj === 'undefined') {
|
|
1029
|
+
return 'undefined';
|
|
1030
|
+
}
|
|
1031
|
+
if (obj === null) {
|
|
1032
|
+
return 'null';
|
|
1033
|
+
}
|
|
1034
|
+
if (typeof obj === 'boolean') {
|
|
1035
|
+
return obj ? 'true' : 'false';
|
|
1036
|
+
}
|
|
1037
|
+
if (typeof obj === 'string') {
|
|
1038
|
+
return inspectString(obj, opts);
|
|
1039
|
+
}
|
|
1040
|
+
if (typeof obj === 'number') {
|
|
1041
|
+
if (obj === 0) {
|
|
1042
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
1043
|
+
}
|
|
1044
|
+
var str = String(obj);
|
|
1045
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
1046
|
+
}
|
|
1047
|
+
if (typeof obj === 'bigint') {
|
|
1048
|
+
var bigIntStr = String(obj) + 'n';
|
|
1049
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
1050
|
+
}
|
|
1051
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
1052
|
+
if (typeof depth === 'undefined') {
|
|
1053
|
+
depth = 0;
|
|
1054
|
+
}
|
|
1055
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
1056
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
1057
|
+
}
|
|
1058
|
+
var indent = getIndent(opts, depth);
|
|
1059
|
+
if (typeof seen === 'undefined') {
|
|
1060
|
+
seen = [];
|
|
1061
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
1062
|
+
return '[Circular]';
|
|
1063
|
+
}
|
|
1064
|
+
function inspect(value, from, noIndent) {
|
|
1065
|
+
if (from) {
|
|
1066
|
+
seen = $arrSlice.call(seen);
|
|
1067
|
+
seen.push(from);
|
|
1068
|
+
}
|
|
1069
|
+
if (noIndent) {
|
|
1070
|
+
var newOpts = {
|
|
1071
|
+
depth: opts.depth
|
|
1072
|
+
};
|
|
1073
|
+
if (has(opts, 'quoteStyle')) {
|
|
1074
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
1075
|
+
}
|
|
1076
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
1077
|
+
}
|
|
1078
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
1079
|
+
}
|
|
1080
|
+
if (typeof obj === 'function' && !isRegExp(obj)) {
|
|
1081
|
+
var name = nameOf(obj);
|
|
1082
|
+
var keys = arrObjKeys(obj, inspect);
|
|
1083
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
1084
|
+
}
|
|
1085
|
+
if (isSymbol(obj)) {
|
|
1086
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
1087
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
1088
|
+
}
|
|
1089
|
+
if (isElement(obj)) {
|
|
1090
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
1091
|
+
var attrs = obj.attributes || [];
|
|
1092
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
1093
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
1094
|
+
}
|
|
1095
|
+
s += '>';
|
|
1096
|
+
if (obj.childNodes && obj.childNodes.length) {
|
|
1097
|
+
s += '...';
|
|
1098
|
+
}
|
|
1099
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
1100
|
+
return s;
|
|
1101
|
+
}
|
|
1102
|
+
if (isArray(obj)) {
|
|
1103
|
+
if (obj.length === 0) {
|
|
1104
|
+
return '[]';
|
|
1105
|
+
}
|
|
1106
|
+
var xs = arrObjKeys(obj, inspect);
|
|
1107
|
+
if (indent && !singleLineValues(xs)) {
|
|
1108
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
1109
|
+
}
|
|
1110
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
1111
|
+
}
|
|
1112
|
+
if (isError(obj)) {
|
|
1113
|
+
var parts = arrObjKeys(obj, inspect);
|
|
1114
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
1115
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
1116
|
+
}
|
|
1117
|
+
if (parts.length === 0) {
|
|
1118
|
+
return '[' + String(obj) + ']';
|
|
1119
|
+
}
|
|
1120
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
1121
|
+
}
|
|
1122
|
+
if (typeof obj === 'object' && customInspect) {
|
|
1123
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
1124
|
+
return utilInspect(obj, {
|
|
1125
|
+
depth: maxDepth - depth
|
|
1126
|
+
});
|
|
1127
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
1128
|
+
return obj.inspect();
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
if (isMap(obj)) {
|
|
1132
|
+
var mapParts = [];
|
|
1133
|
+
if (mapForEach) {
|
|
1134
|
+
mapForEach.call(obj, function (value, key) {
|
|
1135
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
1139
|
+
}
|
|
1140
|
+
if (isSet(obj)) {
|
|
1141
|
+
var setParts = [];
|
|
1142
|
+
if (setForEach) {
|
|
1143
|
+
setForEach.call(obj, function (value) {
|
|
1144
|
+
setParts.push(inspect(value, obj));
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
1148
|
+
}
|
|
1149
|
+
if (isWeakMap(obj)) {
|
|
1150
|
+
return weakCollectionOf('WeakMap');
|
|
1151
|
+
}
|
|
1152
|
+
if (isWeakSet(obj)) {
|
|
1153
|
+
return weakCollectionOf('WeakSet');
|
|
1154
|
+
}
|
|
1155
|
+
if (isWeakRef(obj)) {
|
|
1156
|
+
return weakCollectionOf('WeakRef');
|
|
1157
|
+
}
|
|
1158
|
+
if (isNumber(obj)) {
|
|
1159
|
+
return markBoxed(inspect(Number(obj)));
|
|
1160
|
+
}
|
|
1161
|
+
if (isBigInt(obj)) {
|
|
1162
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
1163
|
+
}
|
|
1164
|
+
if (isBoolean(obj)) {
|
|
1165
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
1166
|
+
}
|
|
1167
|
+
if (isString(obj)) {
|
|
1168
|
+
return markBoxed(inspect(String(obj)));
|
|
1169
|
+
}
|
|
1170
|
+
if (typeof window !== 'undefined' && obj === window) {
|
|
1171
|
+
return '{ [object Window] }';
|
|
1172
|
+
}
|
|
1173
|
+
if (typeof globalThis !== 'undefined' && obj === globalThis || typeof global !== 'undefined' && obj === global) {
|
|
1174
|
+
return '{ [object globalThis] }';
|
|
1175
|
+
}
|
|
1176
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
1177
|
+
var ys = arrObjKeys(obj, inspect);
|
|
1178
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
1179
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
1180
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
1181
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
1182
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
1183
|
+
if (ys.length === 0) {
|
|
1184
|
+
return tag + '{}';
|
|
1185
|
+
}
|
|
1186
|
+
if (indent) {
|
|
1187
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
1188
|
+
}
|
|
1189
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
1190
|
+
}
|
|
1191
|
+
return String(obj);
|
|
1192
|
+
};
|
|
1193
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
1194
|
+
var style = opts.quoteStyle || defaultStyle;
|
|
1195
|
+
var quoteChar = quotes[style];
|
|
1196
|
+
return quoteChar + s + quoteChar;
|
|
1197
|
+
}
|
|
1198
|
+
function quote(s) {
|
|
1199
|
+
return $replace.call(String(s), /"/g, '"');
|
|
1200
|
+
}
|
|
1201
|
+
function canTrustToString(obj) {
|
|
1202
|
+
return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
|
|
1203
|
+
}
|
|
1204
|
+
function isArray(obj) {
|
|
1205
|
+
return toStr(obj) === '[object Array]' && canTrustToString(obj);
|
|
1206
|
+
}
|
|
1207
|
+
function isDate(obj) {
|
|
1208
|
+
return toStr(obj) === '[object Date]' && canTrustToString(obj);
|
|
1209
|
+
}
|
|
1210
|
+
function isRegExp(obj) {
|
|
1211
|
+
return toStr(obj) === '[object RegExp]' && canTrustToString(obj);
|
|
1212
|
+
}
|
|
1213
|
+
function isError(obj) {
|
|
1214
|
+
return toStr(obj) === '[object Error]' && canTrustToString(obj);
|
|
1215
|
+
}
|
|
1216
|
+
function isString(obj) {
|
|
1217
|
+
return toStr(obj) === '[object String]' && canTrustToString(obj);
|
|
1218
|
+
}
|
|
1219
|
+
function isNumber(obj) {
|
|
1220
|
+
return toStr(obj) === '[object Number]' && canTrustToString(obj);
|
|
1221
|
+
}
|
|
1222
|
+
function isBoolean(obj) {
|
|
1223
|
+
return toStr(obj) === '[object Boolean]' && canTrustToString(obj);
|
|
1224
|
+
}
|
|
1225
|
+
function isSymbol(obj) {
|
|
1226
|
+
if (hasShammedSymbols) {
|
|
1227
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
1228
|
+
}
|
|
1229
|
+
if (typeof obj === 'symbol') {
|
|
1230
|
+
return true;
|
|
1231
|
+
}
|
|
1232
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
1233
|
+
return false;
|
|
1234
|
+
}
|
|
1235
|
+
try {
|
|
1236
|
+
symToString.call(obj);
|
|
1237
|
+
return true;
|
|
1238
|
+
} catch (e) {}
|
|
1239
|
+
return false;
|
|
1240
|
+
}
|
|
1241
|
+
function isBigInt(obj) {
|
|
1242
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
1243
|
+
return false;
|
|
1244
|
+
}
|
|
1245
|
+
try {
|
|
1246
|
+
bigIntValueOf.call(obj);
|
|
1247
|
+
return true;
|
|
1248
|
+
} catch (e) {}
|
|
1249
|
+
return false;
|
|
1250
|
+
}
|
|
1251
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) {
|
|
1252
|
+
return key in this;
|
|
1253
|
+
};
|
|
1254
|
+
function has(obj, key) {
|
|
1255
|
+
return hasOwn.call(obj, key);
|
|
1256
|
+
}
|
|
1257
|
+
function toStr(obj) {
|
|
1258
|
+
return objectToString.call(obj);
|
|
1259
|
+
}
|
|
1260
|
+
function nameOf(f) {
|
|
1261
|
+
if (f.name) {
|
|
1262
|
+
return f.name;
|
|
1263
|
+
}
|
|
1264
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
1265
|
+
if (m) {
|
|
1266
|
+
return m[1];
|
|
1267
|
+
}
|
|
1268
|
+
return null;
|
|
1269
|
+
}
|
|
1270
|
+
function indexOf(xs, x) {
|
|
1271
|
+
if (xs.indexOf) {
|
|
1272
|
+
return xs.indexOf(x);
|
|
1273
|
+
}
|
|
1274
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
1275
|
+
if (xs[i] === x) {
|
|
1276
|
+
return i;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
return -1;
|
|
1280
|
+
}
|
|
1281
|
+
function isMap(x) {
|
|
1282
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
1283
|
+
return false;
|
|
1284
|
+
}
|
|
1285
|
+
try {
|
|
1286
|
+
mapSize.call(x);
|
|
1287
|
+
try {
|
|
1288
|
+
setSize.call(x);
|
|
1289
|
+
} catch (s) {
|
|
1290
|
+
return true;
|
|
1291
|
+
}
|
|
1292
|
+
return x instanceof Map;
|
|
1293
|
+
} catch (e) {}
|
|
1294
|
+
return false;
|
|
1295
|
+
}
|
|
1296
|
+
function isWeakMap(x) {
|
|
1297
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
1298
|
+
return false;
|
|
1299
|
+
}
|
|
1300
|
+
try {
|
|
1301
|
+
weakMapHas.call(x, weakMapHas);
|
|
1302
|
+
try {
|
|
1303
|
+
weakSetHas.call(x, weakSetHas);
|
|
1304
|
+
} catch (s) {
|
|
1305
|
+
return true;
|
|
1306
|
+
}
|
|
1307
|
+
return x instanceof WeakMap;
|
|
1308
|
+
} catch (e) {}
|
|
1309
|
+
return false;
|
|
1310
|
+
}
|
|
1311
|
+
function isWeakRef(x) {
|
|
1312
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
1313
|
+
return false;
|
|
1314
|
+
}
|
|
1315
|
+
try {
|
|
1316
|
+
weakRefDeref.call(x);
|
|
1317
|
+
return true;
|
|
1318
|
+
} catch (e) {}
|
|
1319
|
+
return false;
|
|
1320
|
+
}
|
|
1321
|
+
function isSet(x) {
|
|
1322
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
1323
|
+
return false;
|
|
1324
|
+
}
|
|
1325
|
+
try {
|
|
1326
|
+
setSize.call(x);
|
|
1327
|
+
try {
|
|
1328
|
+
mapSize.call(x);
|
|
1329
|
+
} catch (m) {
|
|
1330
|
+
return true;
|
|
1331
|
+
}
|
|
1332
|
+
return x instanceof Set;
|
|
1333
|
+
} catch (e) {}
|
|
1334
|
+
return false;
|
|
1335
|
+
}
|
|
1336
|
+
function isWeakSet(x) {
|
|
1337
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
1338
|
+
return false;
|
|
1339
|
+
}
|
|
1340
|
+
try {
|
|
1341
|
+
weakSetHas.call(x, weakSetHas);
|
|
1342
|
+
try {
|
|
1343
|
+
weakMapHas.call(x, weakMapHas);
|
|
1344
|
+
} catch (s) {
|
|
1345
|
+
return true;
|
|
1346
|
+
}
|
|
1347
|
+
return x instanceof WeakSet;
|
|
1348
|
+
} catch (e) {}
|
|
1349
|
+
return false;
|
|
1350
|
+
}
|
|
1351
|
+
function isElement(x) {
|
|
1352
|
+
if (!x || typeof x !== 'object') {
|
|
1353
|
+
return false;
|
|
1354
|
+
}
|
|
1355
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
1356
|
+
return true;
|
|
1357
|
+
}
|
|
1358
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
1359
|
+
}
|
|
1360
|
+
function inspectString(str, opts) {
|
|
1361
|
+
if (str.length > opts.maxStringLength) {
|
|
1362
|
+
var remaining = str.length - opts.maxStringLength;
|
|
1363
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
1364
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
1365
|
+
}
|
|
1366
|
+
var quoteRE = quoteREs[opts.quoteStyle || 'single'];
|
|
1367
|
+
quoteRE.lastIndex = 0;
|
|
1368
|
+
var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
1369
|
+
return wrapQuotes(s, 'single', opts);
|
|
1370
|
+
}
|
|
1371
|
+
function lowbyte(c) {
|
|
1372
|
+
var n = c.charCodeAt(0);
|
|
1373
|
+
var x = {
|
|
1374
|
+
8: 'b',
|
|
1375
|
+
9: 't',
|
|
1376
|
+
10: 'n',
|
|
1377
|
+
12: 'f',
|
|
1378
|
+
13: 'r'
|
|
1379
|
+
}[n];
|
|
1380
|
+
if (x) {
|
|
1381
|
+
return '\\' + x;
|
|
1382
|
+
}
|
|
1383
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
1384
|
+
}
|
|
1385
|
+
function markBoxed(str) {
|
|
1386
|
+
return 'Object(' + str + ')';
|
|
1387
|
+
}
|
|
1388
|
+
function weakCollectionOf(type) {
|
|
1389
|
+
return type + ' { ? }';
|
|
1390
|
+
}
|
|
1391
|
+
function collectionOf(type, size, entries, indent) {
|
|
1392
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
1393
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
1394
|
+
}
|
|
1395
|
+
function singleLineValues(xs) {
|
|
1396
|
+
for (var i = 0; i < xs.length; i++) {
|
|
1397
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
1398
|
+
return false;
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
return true;
|
|
1402
|
+
}
|
|
1403
|
+
function getIndent(opts, depth) {
|
|
1404
|
+
var baseIndent;
|
|
1405
|
+
if (opts.indent === '\t') {
|
|
1406
|
+
baseIndent = '\t';
|
|
1407
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
1408
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
1409
|
+
} else {
|
|
1410
|
+
return null;
|
|
1411
|
+
}
|
|
1412
|
+
return {
|
|
1413
|
+
base: baseIndent,
|
|
1414
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
function indentedJoin(xs, indent) {
|
|
1418
|
+
if (xs.length === 0) {
|
|
1419
|
+
return '';
|
|
1420
|
+
}
|
|
1421
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
1422
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
1423
|
+
}
|
|
1424
|
+
function arrObjKeys(obj, inspect) {
|
|
1425
|
+
var isArr = isArray(obj);
|
|
1426
|
+
var xs = [];
|
|
1427
|
+
if (isArr) {
|
|
1428
|
+
xs.length = obj.length;
|
|
1429
|
+
for (var i = 0; i < obj.length; i++) {
|
|
1430
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
1434
|
+
var symMap;
|
|
1435
|
+
if (hasShammedSymbols) {
|
|
1436
|
+
symMap = {};
|
|
1437
|
+
for (var k = 0; k < syms.length; k++) {
|
|
1438
|
+
symMap['$' + syms[k]] = syms[k];
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
for (var key in obj) {
|
|
1442
|
+
if (!has(obj, key)) {
|
|
1443
|
+
continue;
|
|
1444
|
+
}
|
|
1445
|
+
if (isArr && String(Number(key)) === key && key < obj.length) {
|
|
1446
|
+
continue;
|
|
1447
|
+
}
|
|
1448
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
1449
|
+
continue;
|
|
1450
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
1451
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
1452
|
+
} else {
|
|
1453
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
if (typeof gOPS === 'function') {
|
|
1457
|
+
for (var j = 0; j < syms.length; j++) {
|
|
1458
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
1459
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
return xs;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
1467
|
+
},{"./util.inspect":1}],40:[function(require,module,exports){
|
|
1468
|
+
'use strict';
|
|
1469
|
+
|
|
1470
|
+
var replace = String.prototype.replace;
|
|
1471
|
+
var percentTwenties = /%20/g;
|
|
1472
|
+
var Format = {
|
|
1473
|
+
RFC1738: 'RFC1738',
|
|
1474
|
+
RFC3986: 'RFC3986'
|
|
1475
|
+
};
|
|
1476
|
+
module.exports = {
|
|
1477
|
+
'default': Format.RFC3986,
|
|
1478
|
+
formatters: {
|
|
1479
|
+
RFC1738: function (value) {
|
|
1480
|
+
return replace.call(value, percentTwenties, '+');
|
|
1481
|
+
},
|
|
1482
|
+
RFC3986: function (value) {
|
|
1483
|
+
return String(value);
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
RFC1738: Format.RFC1738,
|
|
1487
|
+
RFC3986: Format.RFC3986
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
},{}],41:[function(require,module,exports){
|
|
1491
|
+
'use strict';
|
|
1492
|
+
|
|
1493
|
+
var stringify = require('./stringify');
|
|
1494
|
+
var parse = require('./parse');
|
|
1495
|
+
var formats = require('./formats');
|
|
1496
|
+
module.exports = {
|
|
1497
|
+
formats: formats,
|
|
1498
|
+
parse: parse,
|
|
1499
|
+
stringify: stringify
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
},{"./formats":40,"./parse":42,"./stringify":43}],42:[function(require,module,exports){
|
|
1503
|
+
'use strict';
|
|
1504
|
+
|
|
1505
|
+
var utils = require('./utils');
|
|
1506
|
+
var has = Object.prototype.hasOwnProperty;
|
|
1507
|
+
var isArray = Array.isArray;
|
|
1508
|
+
var defaults = {
|
|
1509
|
+
allowDots: false,
|
|
1510
|
+
allowEmptyArrays: false,
|
|
1511
|
+
allowPrototypes: false,
|
|
1512
|
+
allowSparse: false,
|
|
1513
|
+
arrayLimit: 20,
|
|
1514
|
+
charset: 'utf-8',
|
|
1515
|
+
charsetSentinel: false,
|
|
1516
|
+
comma: false,
|
|
1517
|
+
decodeDotInKeys: false,
|
|
1518
|
+
decoder: utils.decode,
|
|
1519
|
+
delimiter: '&',
|
|
1520
|
+
depth: 5,
|
|
1521
|
+
duplicates: 'combine',
|
|
1522
|
+
ignoreQueryPrefix: false,
|
|
1523
|
+
interpretNumericEntities: false,
|
|
1524
|
+
parameterLimit: 1000,
|
|
1525
|
+
parseArrays: true,
|
|
1526
|
+
plainObjects: false,
|
|
1527
|
+
strictDepth: false,
|
|
1528
|
+
strictNullHandling: false,
|
|
1529
|
+
throwOnLimitExceeded: false
|
|
1530
|
+
};
|
|
1531
|
+
var interpretNumericEntities = function (str) {
|
|
1532
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
1533
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
1534
|
+
});
|
|
1535
|
+
};
|
|
1536
|
+
var parseArrayValue = function (val, options, currentArrayLength) {
|
|
1537
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
1538
|
+
return val.split(',');
|
|
1539
|
+
}
|
|
1540
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
1541
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
1542
|
+
}
|
|
1543
|
+
return val;
|
|
1544
|
+
};
|
|
1545
|
+
var isoSentinel = 'utf8=%26%2310003%3B';
|
|
1546
|
+
var charsetSentinel = 'utf8=%E2%9C%93';
|
|
1547
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
1548
|
+
var obj = {
|
|
1549
|
+
__proto__: null
|
|
1550
|
+
};
|
|
1551
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
1552
|
+
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
1553
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
1554
|
+
var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
|
|
1555
|
+
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
1556
|
+
throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
|
|
1557
|
+
}
|
|
1558
|
+
var skipIndex = -1;
|
|
1559
|
+
var i;
|
|
1560
|
+
var charset = options.charset;
|
|
1561
|
+
if (options.charsetSentinel) {
|
|
1562
|
+
for (i = 0; i < parts.length; ++i) {
|
|
1563
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
|
1564
|
+
if (parts[i] === charsetSentinel) {
|
|
1565
|
+
charset = 'utf-8';
|
|
1566
|
+
} else if (parts[i] === isoSentinel) {
|
|
1567
|
+
charset = 'iso-8859-1';
|
|
1568
|
+
}
|
|
1569
|
+
skipIndex = i;
|
|
1570
|
+
i = parts.length;
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
for (i = 0; i < parts.length; ++i) {
|
|
1575
|
+
if (i === skipIndex) {
|
|
1576
|
+
continue;
|
|
1577
|
+
}
|
|
1578
|
+
var part = parts[i];
|
|
1579
|
+
var bracketEqualsPos = part.indexOf(']=');
|
|
1580
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
1581
|
+
var key;
|
|
1582
|
+
var val;
|
|
1583
|
+
if (pos === -1) {
|
|
1584
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
1585
|
+
val = options.strictNullHandling ? null : '';
|
|
1586
|
+
} else {
|
|
1587
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
1588
|
+
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function (encodedVal) {
|
|
1589
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
1593
|
+
val = interpretNumericEntities(String(val));
|
|
1594
|
+
}
|
|
1595
|
+
if (part.indexOf('[]=') > -1) {
|
|
1596
|
+
val = isArray(val) ? [val] : val;
|
|
1597
|
+
}
|
|
1598
|
+
var existing = has.call(obj, key);
|
|
1599
|
+
if (existing && options.duplicates === 'combine') {
|
|
1600
|
+
obj[key] = utils.combine(obj[key], val);
|
|
1601
|
+
} else if (!existing || options.duplicates === 'last') {
|
|
1602
|
+
obj[key] = val;
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
return obj;
|
|
1606
|
+
};
|
|
1607
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
1608
|
+
var currentArrayLength = 0;
|
|
1609
|
+
if (chain.length > 0 && chain[chain.length - 1] === '[]') {
|
|
1610
|
+
var parentKey = chain.slice(0, -1).join('');
|
|
1611
|
+
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
1612
|
+
}
|
|
1613
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
1614
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
1615
|
+
var obj;
|
|
1616
|
+
var root = chain[i];
|
|
1617
|
+
if (root === '[]' && options.parseArrays) {
|
|
1618
|
+
obj = options.allowEmptyArrays && (leaf === '' || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf);
|
|
1619
|
+
} else {
|
|
1620
|
+
obj = options.plainObjects ? {
|
|
1621
|
+
__proto__: null
|
|
1622
|
+
} : {};
|
|
1623
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
1624
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
1625
|
+
var index = parseInt(decodedRoot, 10);
|
|
1626
|
+
if (!options.parseArrays && decodedRoot === '') {
|
|
1627
|
+
obj = {
|
|
1628
|
+
0: leaf
|
|
1629
|
+
};
|
|
1630
|
+
} else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {
|
|
1631
|
+
obj = [];
|
|
1632
|
+
obj[index] = leaf;
|
|
1633
|
+
} else if (decodedRoot !== '__proto__') {
|
|
1634
|
+
obj[decodedRoot] = leaf;
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
leaf = obj;
|
|
1638
|
+
}
|
|
1639
|
+
return leaf;
|
|
1640
|
+
};
|
|
1641
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
1642
|
+
if (!givenKey) {
|
|
1643
|
+
return;
|
|
1644
|
+
}
|
|
1645
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
1646
|
+
var brackets = /(\[[^[\]]*])/;
|
|
1647
|
+
var child = /(\[[^[\]]*])/g;
|
|
1648
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
1649
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
1650
|
+
var keys = [];
|
|
1651
|
+
if (parent) {
|
|
1652
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
1653
|
+
if (!options.allowPrototypes) {
|
|
1654
|
+
return;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
keys.push(parent);
|
|
1658
|
+
}
|
|
1659
|
+
var i = 0;
|
|
1660
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
1661
|
+
i += 1;
|
|
1662
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
1663
|
+
if (!options.allowPrototypes) {
|
|
1664
|
+
return;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
keys.push(segment[1]);
|
|
1668
|
+
}
|
|
1669
|
+
if (segment) {
|
|
1670
|
+
if (options.strictDepth === true) {
|
|
1671
|
+
throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
|
|
1672
|
+
}
|
|
1673
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
|
1674
|
+
}
|
|
1675
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
1676
|
+
};
|
|
1677
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
1678
|
+
if (!opts) {
|
|
1679
|
+
return defaults;
|
|
1680
|
+
}
|
|
1681
|
+
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
1682
|
+
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
1683
|
+
}
|
|
1684
|
+
if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {
|
|
1685
|
+
throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
1686
|
+
}
|
|
1687
|
+
if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {
|
|
1688
|
+
throw new TypeError('Decoder has to be a function.');
|
|
1689
|
+
}
|
|
1690
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
1691
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
1692
|
+
}
|
|
1693
|
+
if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {
|
|
1694
|
+
throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
|
|
1695
|
+
}
|
|
1696
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
1697
|
+
var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
|
|
1698
|
+
if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {
|
|
1699
|
+
throw new TypeError('The duplicates option must be either combine, first, or last');
|
|
1700
|
+
}
|
|
1701
|
+
var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
1702
|
+
return {
|
|
1703
|
+
allowDots: allowDots,
|
|
1704
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
1705
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
1706
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
1707
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
1708
|
+
charset: charset,
|
|
1709
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
1710
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
1711
|
+
decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
1712
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
1713
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
1714
|
+
depth: typeof opts.depth === 'number' || opts.depth === false ? +opts.depth : defaults.depth,
|
|
1715
|
+
duplicates: duplicates,
|
|
1716
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
1717
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
1718
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
1719
|
+
parseArrays: opts.parseArrays !== false,
|
|
1720
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
1721
|
+
strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
|
|
1722
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
1723
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
module.exports = function (str, opts) {
|
|
1727
|
+
var options = normalizeParseOptions(opts);
|
|
1728
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
|
1729
|
+
return options.plainObjects ? {
|
|
1730
|
+
__proto__: null
|
|
1731
|
+
} : {};
|
|
1732
|
+
}
|
|
1733
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
1734
|
+
var obj = options.plainObjects ? {
|
|
1735
|
+
__proto__: null
|
|
1736
|
+
} : {};
|
|
1737
|
+
var keys = Object.keys(tempObj);
|
|
1738
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
1739
|
+
var key = keys[i];
|
|
1740
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
1741
|
+
obj = utils.merge(obj, newObj, options);
|
|
1742
|
+
}
|
|
1743
|
+
if (options.allowSparse === true) {
|
|
1744
|
+
return obj;
|
|
1745
|
+
}
|
|
1746
|
+
return utils.compact(obj);
|
|
1747
|
+
};
|
|
1748
|
+
|
|
1749
|
+
},{"./utils":44}],43:[function(require,module,exports){
|
|
1750
|
+
'use strict';
|
|
1751
|
+
|
|
1752
|
+
var getSideChannel = require('side-channel');
|
|
1753
|
+
var utils = require('./utils');
|
|
1754
|
+
var formats = require('./formats');
|
|
1755
|
+
var has = Object.prototype.hasOwnProperty;
|
|
1756
|
+
var arrayPrefixGenerators = {
|
|
1757
|
+
brackets: function brackets(prefix) {
|
|
1758
|
+
return prefix + '[]';
|
|
1759
|
+
},
|
|
1760
|
+
comma: 'comma',
|
|
1761
|
+
indices: function indices(prefix, key) {
|
|
1762
|
+
return prefix + '[' + key + ']';
|
|
1763
|
+
},
|
|
1764
|
+
repeat: function repeat(prefix) {
|
|
1765
|
+
return prefix;
|
|
1766
|
+
}
|
|
1767
|
+
};
|
|
1768
|
+
var isArray = Array.isArray;
|
|
1769
|
+
var push = Array.prototype.push;
|
|
1770
|
+
var pushToArray = function (arr, valueOrArray) {
|
|
1771
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
1772
|
+
};
|
|
1773
|
+
var toISO = Date.prototype.toISOString;
|
|
1774
|
+
var defaultFormat = formats['default'];
|
|
1775
|
+
var defaults = {
|
|
1776
|
+
addQueryPrefix: false,
|
|
1777
|
+
allowDots: false,
|
|
1778
|
+
allowEmptyArrays: false,
|
|
1779
|
+
arrayFormat: 'indices',
|
|
1780
|
+
charset: 'utf-8',
|
|
1781
|
+
charsetSentinel: false,
|
|
1782
|
+
commaRoundTrip: false,
|
|
1783
|
+
delimiter: '&',
|
|
1784
|
+
encode: true,
|
|
1785
|
+
encodeDotInKeys: false,
|
|
1786
|
+
encoder: utils.encode,
|
|
1787
|
+
encodeValuesOnly: false,
|
|
1788
|
+
filter: void undefined,
|
|
1789
|
+
format: defaultFormat,
|
|
1790
|
+
formatter: formats.formatters[defaultFormat],
|
|
1791
|
+
indices: false,
|
|
1792
|
+
serializeDate: function serializeDate(date) {
|
|
1793
|
+
return toISO.call(date);
|
|
1794
|
+
},
|
|
1795
|
+
skipNulls: false,
|
|
1796
|
+
strictNullHandling: false
|
|
1797
|
+
};
|
|
1798
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
1799
|
+
return typeof v === 'string' || typeof v === 'number' || typeof v === 'boolean' || typeof v === 'symbol' || typeof v === 'bigint';
|
|
1800
|
+
};
|
|
1801
|
+
var sentinel = {};
|
|
1802
|
+
var stringify = function stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
1803
|
+
var obj = object;
|
|
1804
|
+
var tmpSc = sideChannel;
|
|
1805
|
+
var step = 0;
|
|
1806
|
+
var findFlag = false;
|
|
1807
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
1808
|
+
var pos = tmpSc.get(object);
|
|
1809
|
+
step += 1;
|
|
1810
|
+
if (typeof pos !== 'undefined') {
|
|
1811
|
+
if (pos === step) {
|
|
1812
|
+
throw new RangeError('Cyclic object value');
|
|
1813
|
+
} else {
|
|
1814
|
+
findFlag = true;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
1818
|
+
step = 0;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
if (typeof filter === 'function') {
|
|
1822
|
+
obj = filter(prefix, obj);
|
|
1823
|
+
} else if (obj instanceof Date) {
|
|
1824
|
+
obj = serializeDate(obj);
|
|
1825
|
+
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
1826
|
+
obj = utils.maybeMap(obj, function (value) {
|
|
1827
|
+
if (value instanceof Date) {
|
|
1828
|
+
return serializeDate(value);
|
|
1829
|
+
}
|
|
1830
|
+
return value;
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1833
|
+
if (obj === null) {
|
|
1834
|
+
if (strictNullHandling) {
|
|
1835
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
1836
|
+
}
|
|
1837
|
+
obj = '';
|
|
1838
|
+
}
|
|
1839
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
1840
|
+
if (encoder) {
|
|
1841
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
1842
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
1843
|
+
}
|
|
1844
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
1845
|
+
}
|
|
1846
|
+
var values = [];
|
|
1847
|
+
if (typeof obj === 'undefined') {
|
|
1848
|
+
return values;
|
|
1849
|
+
}
|
|
1850
|
+
var objKeys;
|
|
1851
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
1852
|
+
if (encodeValuesOnly && encoder) {
|
|
1853
|
+
obj = utils.maybeMap(obj, encoder);
|
|
1854
|
+
}
|
|
1855
|
+
objKeys = [{
|
|
1856
|
+
value: obj.length > 0 ? obj.join(',') || null : void undefined
|
|
1857
|
+
}];
|
|
1858
|
+
} else if (isArray(filter)) {
|
|
1859
|
+
objKeys = filter;
|
|
1860
|
+
} else {
|
|
1861
|
+
var keys = Object.keys(obj);
|
|
1862
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
1863
|
+
}
|
|
1864
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
|
|
1865
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
1866
|
+
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
1867
|
+
return adjustedPrefix + '[]';
|
|
1868
|
+
}
|
|
1869
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
|
1870
|
+
var key = objKeys[j];
|
|
1871
|
+
var value = typeof key === 'object' && key && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
1872
|
+
if (skipNulls && value === null) {
|
|
1873
|
+
continue;
|
|
1874
|
+
}
|
|
1875
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
|
|
1876
|
+
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
|
|
1877
|
+
sideChannel.set(object, step);
|
|
1878
|
+
var valueSideChannel = getSideChannel();
|
|
1879
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
1880
|
+
pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
|
|
1881
|
+
}
|
|
1882
|
+
return values;
|
|
1883
|
+
};
|
|
1884
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
1885
|
+
if (!opts) {
|
|
1886
|
+
return defaults;
|
|
1887
|
+
}
|
|
1888
|
+
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
1889
|
+
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
1890
|
+
}
|
|
1891
|
+
if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {
|
|
1892
|
+
throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
1893
|
+
}
|
|
1894
|
+
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
1895
|
+
throw new TypeError('Encoder has to be a function.');
|
|
1896
|
+
}
|
|
1897
|
+
var charset = opts.charset || defaults.charset;
|
|
1898
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
1899
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
1900
|
+
}
|
|
1901
|
+
var format = formats['default'];
|
|
1902
|
+
if (typeof opts.format !== 'undefined') {
|
|
1903
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
1904
|
+
throw new TypeError('Unknown format option provided.');
|
|
1905
|
+
}
|
|
1906
|
+
format = opts.format;
|
|
1907
|
+
}
|
|
1908
|
+
var formatter = formats.formatters[format];
|
|
1909
|
+
var filter = defaults.filter;
|
|
1910
|
+
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
1911
|
+
filter = opts.filter;
|
|
1912
|
+
}
|
|
1913
|
+
var arrayFormat;
|
|
1914
|
+
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
1915
|
+
arrayFormat = opts.arrayFormat;
|
|
1916
|
+
} else if ('indices' in opts) {
|
|
1917
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
1918
|
+
} else {
|
|
1919
|
+
arrayFormat = defaults.arrayFormat;
|
|
1920
|
+
}
|
|
1921
|
+
if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
1922
|
+
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
1923
|
+
}
|
|
1924
|
+
var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
1925
|
+
return {
|
|
1926
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
1927
|
+
allowDots: allowDots,
|
|
1928
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
1929
|
+
arrayFormat: arrayFormat,
|
|
1930
|
+
charset: charset,
|
|
1931
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
1932
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
1933
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
1934
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
1935
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
1936
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
1937
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
1938
|
+
filter: filter,
|
|
1939
|
+
format: format,
|
|
1940
|
+
formatter: formatter,
|
|
1941
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
1942
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
1943
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
1944
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
1945
|
+
};
|
|
1946
|
+
};
|
|
1947
|
+
module.exports = function (object, opts) {
|
|
1948
|
+
var obj = object;
|
|
1949
|
+
var options = normalizeStringifyOptions(opts);
|
|
1950
|
+
var objKeys;
|
|
1951
|
+
var filter;
|
|
1952
|
+
if (typeof options.filter === 'function') {
|
|
1953
|
+
filter = options.filter;
|
|
1954
|
+
obj = filter('', obj);
|
|
1955
|
+
} else if (isArray(options.filter)) {
|
|
1956
|
+
filter = options.filter;
|
|
1957
|
+
objKeys = filter;
|
|
1958
|
+
}
|
|
1959
|
+
var keys = [];
|
|
1960
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
1961
|
+
return '';
|
|
1962
|
+
}
|
|
1963
|
+
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
1964
|
+
var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;
|
|
1965
|
+
if (!objKeys) {
|
|
1966
|
+
objKeys = Object.keys(obj);
|
|
1967
|
+
}
|
|
1968
|
+
if (options.sort) {
|
|
1969
|
+
objKeys.sort(options.sort);
|
|
1970
|
+
}
|
|
1971
|
+
var sideChannel = getSideChannel();
|
|
1972
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
1973
|
+
var key = objKeys[i];
|
|
1974
|
+
var value = obj[key];
|
|
1975
|
+
if (options.skipNulls && value === null) {
|
|
1976
|
+
continue;
|
|
1977
|
+
}
|
|
1978
|
+
pushToArray(keys, stringify(value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
|
|
1979
|
+
}
|
|
1980
|
+
var joined = keys.join(options.delimiter);
|
|
1981
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
1982
|
+
if (options.charsetSentinel) {
|
|
1983
|
+
if (options.charset === 'iso-8859-1') {
|
|
1984
|
+
prefix += 'utf8=%26%2310003%3B&';
|
|
1985
|
+
} else {
|
|
1986
|
+
prefix += 'utf8=%E2%9C%93&';
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
return joined.length > 0 ? prefix + joined : '';
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
},{"./formats":40,"./utils":44,"side-channel":48}],44:[function(require,module,exports){
|
|
1993
|
+
'use strict';
|
|
1994
|
+
|
|
1995
|
+
var formats = require('./formats');
|
|
1996
|
+
var has = Object.prototype.hasOwnProperty;
|
|
1997
|
+
var isArray = Array.isArray;
|
|
1998
|
+
var hexTable = function () {
|
|
1999
|
+
var array = [];
|
|
2000
|
+
for (var i = 0; i < 256; ++i) {
|
|
2001
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
2002
|
+
}
|
|
2003
|
+
return array;
|
|
2004
|
+
}();
|
|
2005
|
+
var compactQueue = function compactQueue(queue) {
|
|
2006
|
+
while (queue.length > 1) {
|
|
2007
|
+
var item = queue.pop();
|
|
2008
|
+
var obj = item.obj[item.prop];
|
|
2009
|
+
if (isArray(obj)) {
|
|
2010
|
+
var compacted = [];
|
|
2011
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
2012
|
+
if (typeof obj[j] !== 'undefined') {
|
|
2013
|
+
compacted.push(obj[j]);
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
item.obj[item.prop] = compacted;
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
};
|
|
2020
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
2021
|
+
var obj = options && options.plainObjects ? {
|
|
2022
|
+
__proto__: null
|
|
2023
|
+
} : {};
|
|
2024
|
+
for (var i = 0; i < source.length; ++i) {
|
|
2025
|
+
if (typeof source[i] !== 'undefined') {
|
|
2026
|
+
obj[i] = source[i];
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
return obj;
|
|
2030
|
+
};
|
|
2031
|
+
var merge = function merge(target, source, options) {
|
|
2032
|
+
if (!source) {
|
|
2033
|
+
return target;
|
|
2034
|
+
}
|
|
2035
|
+
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
2036
|
+
if (isArray(target)) {
|
|
2037
|
+
target.push(source);
|
|
2038
|
+
} else if (target && typeof target === 'object') {
|
|
2039
|
+
if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
2040
|
+
target[source] = true;
|
|
2041
|
+
}
|
|
2042
|
+
} else {
|
|
2043
|
+
return [target, source];
|
|
2044
|
+
}
|
|
2045
|
+
return target;
|
|
2046
|
+
}
|
|
2047
|
+
if (!target || typeof target !== 'object') {
|
|
2048
|
+
return [target].concat(source);
|
|
2049
|
+
}
|
|
2050
|
+
var mergeTarget = target;
|
|
2051
|
+
if (isArray(target) && !isArray(source)) {
|
|
2052
|
+
mergeTarget = arrayToObject(target, options);
|
|
2053
|
+
}
|
|
2054
|
+
if (isArray(target) && isArray(source)) {
|
|
2055
|
+
source.forEach(function (item, i) {
|
|
2056
|
+
if (has.call(target, i)) {
|
|
2057
|
+
var targetItem = target[i];
|
|
2058
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
2059
|
+
target[i] = merge(targetItem, item, options);
|
|
2060
|
+
} else {
|
|
2061
|
+
target.push(item);
|
|
2062
|
+
}
|
|
2063
|
+
} else {
|
|
2064
|
+
target[i] = item;
|
|
2065
|
+
}
|
|
2066
|
+
});
|
|
2067
|
+
return target;
|
|
2068
|
+
}
|
|
2069
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
2070
|
+
var value = source[key];
|
|
2071
|
+
if (has.call(acc, key)) {
|
|
2072
|
+
acc[key] = merge(acc[key], value, options);
|
|
2073
|
+
} else {
|
|
2074
|
+
acc[key] = value;
|
|
2075
|
+
}
|
|
2076
|
+
return acc;
|
|
2077
|
+
}, mergeTarget);
|
|
2078
|
+
};
|
|
2079
|
+
var assign = function assignSingleSource(target, source) {
|
|
2080
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
2081
|
+
acc[key] = source[key];
|
|
2082
|
+
return acc;
|
|
2083
|
+
}, target);
|
|
2084
|
+
};
|
|
2085
|
+
var decode = function (str, defaultDecoder, charset) {
|
|
2086
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
2087
|
+
if (charset === 'iso-8859-1') {
|
|
2088
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
2089
|
+
}
|
|
2090
|
+
try {
|
|
2091
|
+
return decodeURIComponent(strWithoutPlus);
|
|
2092
|
+
} catch (e) {
|
|
2093
|
+
return strWithoutPlus;
|
|
2094
|
+
}
|
|
2095
|
+
};
|
|
2096
|
+
var limit = 1024;
|
|
2097
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
2098
|
+
if (str.length === 0) {
|
|
2099
|
+
return str;
|
|
2100
|
+
}
|
|
2101
|
+
var string = str;
|
|
2102
|
+
if (typeof str === 'symbol') {
|
|
2103
|
+
string = Symbol.prototype.toString.call(str);
|
|
2104
|
+
} else if (typeof str !== 'string') {
|
|
2105
|
+
string = String(str);
|
|
2106
|
+
}
|
|
2107
|
+
if (charset === 'iso-8859-1') {
|
|
2108
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
2109
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
2110
|
+
});
|
|
2111
|
+
}
|
|
2112
|
+
var out = '';
|
|
2113
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
2114
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
2115
|
+
var arr = [];
|
|
2116
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
2117
|
+
var c = segment.charCodeAt(i);
|
|
2118
|
+
if (c === 0x2D || c === 0x2E || c === 0x5F || c === 0x7E || c >= 0x30 && c <= 0x39 || c >= 0x41 && c <= 0x5A || c >= 0x61 && c <= 0x7A || format === formats.RFC1738 && (c === 0x28 || c === 0x29)) {
|
|
2119
|
+
arr[arr.length] = segment.charAt(i);
|
|
2120
|
+
continue;
|
|
2121
|
+
}
|
|
2122
|
+
if (c < 0x80) {
|
|
2123
|
+
arr[arr.length] = hexTable[c];
|
|
2124
|
+
continue;
|
|
2125
|
+
}
|
|
2126
|
+
if (c < 0x800) {
|
|
2127
|
+
arr[arr.length] = hexTable[0xC0 | c >> 6] + hexTable[0x80 | c & 0x3F];
|
|
2128
|
+
continue;
|
|
2129
|
+
}
|
|
2130
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
2131
|
+
arr[arr.length] = hexTable[0xE0 | c >> 12] + hexTable[0x80 | c >> 6 & 0x3F] + hexTable[0x80 | c & 0x3F];
|
|
2132
|
+
continue;
|
|
2133
|
+
}
|
|
2134
|
+
i += 1;
|
|
2135
|
+
c = 0x10000 + ((c & 0x3FF) << 10 | segment.charCodeAt(i) & 0x3FF);
|
|
2136
|
+
arr[arr.length] = hexTable[0xF0 | c >> 18] + hexTable[0x80 | c >> 12 & 0x3F] + hexTable[0x80 | c >> 6 & 0x3F] + hexTable[0x80 | c & 0x3F];
|
|
2137
|
+
}
|
|
2138
|
+
out += arr.join('');
|
|
2139
|
+
}
|
|
2140
|
+
return out;
|
|
2141
|
+
};
|
|
2142
|
+
var compact = function compact(value) {
|
|
2143
|
+
var queue = [{
|
|
2144
|
+
obj: {
|
|
2145
|
+
o: value
|
|
2146
|
+
},
|
|
2147
|
+
prop: 'o'
|
|
2148
|
+
}];
|
|
2149
|
+
var refs = [];
|
|
2150
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
2151
|
+
var item = queue[i];
|
|
2152
|
+
var obj = item.obj[item.prop];
|
|
2153
|
+
var keys = Object.keys(obj);
|
|
2154
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
2155
|
+
var key = keys[j];
|
|
2156
|
+
var val = obj[key];
|
|
2157
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
2158
|
+
queue.push({
|
|
2159
|
+
obj: obj,
|
|
2160
|
+
prop: key
|
|
2161
|
+
});
|
|
2162
|
+
refs.push(val);
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
compactQueue(queue);
|
|
2167
|
+
return value;
|
|
2168
|
+
};
|
|
2169
|
+
var isRegExp = function isRegExp(obj) {
|
|
2170
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
2171
|
+
};
|
|
2172
|
+
var isBuffer = function isBuffer(obj) {
|
|
2173
|
+
if (!obj || typeof obj !== 'object') {
|
|
2174
|
+
return false;
|
|
2175
|
+
}
|
|
2176
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
2177
|
+
};
|
|
2178
|
+
var combine = function combine(a, b) {
|
|
2179
|
+
return [].concat(a, b);
|
|
2180
|
+
};
|
|
2181
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
2182
|
+
if (isArray(val)) {
|
|
2183
|
+
var mapped = [];
|
|
2184
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
2185
|
+
mapped.push(fn(val[i]));
|
|
2186
|
+
}
|
|
2187
|
+
return mapped;
|
|
2188
|
+
}
|
|
2189
|
+
return fn(val);
|
|
2190
|
+
};
|
|
2191
|
+
module.exports = {
|
|
2192
|
+
arrayToObject: arrayToObject,
|
|
2193
|
+
assign: assign,
|
|
2194
|
+
combine: combine,
|
|
2195
|
+
compact: compact,
|
|
2196
|
+
decode: decode,
|
|
2197
|
+
encode: encode,
|
|
2198
|
+
isBuffer: isBuffer,
|
|
2199
|
+
isRegExp: isRegExp,
|
|
2200
|
+
maybeMap: maybeMap,
|
|
2201
|
+
merge: merge
|
|
2202
|
+
};
|
|
2203
|
+
|
|
2204
|
+
},{"./formats":40}],45:[function(require,module,exports){
|
|
2205
|
+
'use strict';
|
|
2206
|
+
|
|
2207
|
+
var inspect = require('object-inspect');
|
|
2208
|
+
var $TypeError = require('es-errors/type');
|
|
2209
|
+
var listGetNode = function (list, key, isDelete) {
|
|
2210
|
+
var prev = list;
|
|
2211
|
+
var curr;
|
|
2212
|
+
for (; (curr = prev.next) != null; prev = curr) {
|
|
2213
|
+
if (curr.key === key) {
|
|
2214
|
+
prev.next = curr.next;
|
|
2215
|
+
if (!isDelete) {
|
|
2216
|
+
curr.next = list.next;
|
|
2217
|
+
list.next = curr;
|
|
2218
|
+
}
|
|
2219
|
+
return curr;
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
};
|
|
2223
|
+
var listGet = function (objects, key) {
|
|
2224
|
+
if (!objects) {
|
|
2225
|
+
return void undefined;
|
|
2226
|
+
}
|
|
2227
|
+
var node = listGetNode(objects, key);
|
|
2228
|
+
return node && node.value;
|
|
2229
|
+
};
|
|
2230
|
+
var listSet = function (objects, key, value) {
|
|
2231
|
+
var node = listGetNode(objects, key);
|
|
2232
|
+
if (node) {
|
|
2233
|
+
node.value = value;
|
|
2234
|
+
} else {
|
|
2235
|
+
objects.next = {
|
|
2236
|
+
key: key,
|
|
2237
|
+
next: objects.next,
|
|
2238
|
+
value: value
|
|
2239
|
+
};
|
|
2240
|
+
}
|
|
2241
|
+
};
|
|
2242
|
+
var listHas = function (objects, key) {
|
|
2243
|
+
if (!objects) {
|
|
2244
|
+
return false;
|
|
2245
|
+
}
|
|
2246
|
+
return !!listGetNode(objects, key);
|
|
2247
|
+
};
|
|
2248
|
+
var listDelete = function (objects, key) {
|
|
2249
|
+
if (objects) {
|
|
2250
|
+
return listGetNode(objects, key, true);
|
|
2251
|
+
}
|
|
2252
|
+
};
|
|
2253
|
+
module.exports = function getSideChannelList() {
|
|
2254
|
+
var $o;
|
|
2255
|
+
var channel = {
|
|
2256
|
+
assert: function (key) {
|
|
2257
|
+
if (!channel.has(key)) {
|
|
2258
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
2259
|
+
}
|
|
2260
|
+
},
|
|
2261
|
+
'delete': function (key) {
|
|
2262
|
+
var root = $o && $o.next;
|
|
2263
|
+
var deletedNode = listDelete($o, key);
|
|
2264
|
+
if (deletedNode && root && root === deletedNode) {
|
|
2265
|
+
$o = void undefined;
|
|
2266
|
+
}
|
|
2267
|
+
return !!deletedNode;
|
|
2268
|
+
},
|
|
2269
|
+
get: function (key) {
|
|
2270
|
+
return listGet($o, key);
|
|
2271
|
+
},
|
|
2272
|
+
has: function (key) {
|
|
2273
|
+
return listHas($o, key);
|
|
2274
|
+
},
|
|
2275
|
+
set: function (key, value) {
|
|
2276
|
+
if (!$o) {
|
|
2277
|
+
$o = {
|
|
2278
|
+
next: void undefined
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
listSet($o, key, value);
|
|
2282
|
+
}
|
|
2283
|
+
};
|
|
2284
|
+
return channel;
|
|
2285
|
+
};
|
|
2286
|
+
|
|
2287
|
+
},{"es-errors/type":16,"object-inspect":39}],46:[function(require,module,exports){
|
|
2288
|
+
'use strict';
|
|
2289
|
+
|
|
2290
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
2291
|
+
var callBound = require('call-bound');
|
|
2292
|
+
var inspect = require('object-inspect');
|
|
2293
|
+
var $TypeError = require('es-errors/type');
|
|
2294
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
2295
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
2296
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
2297
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
2298
|
+
var $mapDelete = callBound('Map.prototype.delete', true);
|
|
2299
|
+
var $mapSize = callBound('Map.prototype.size', true);
|
|
2300
|
+
module.exports = !!$Map && function getSideChannelMap() {
|
|
2301
|
+
var $m;
|
|
2302
|
+
var channel = {
|
|
2303
|
+
assert: function (key) {
|
|
2304
|
+
if (!channel.has(key)) {
|
|
2305
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
2306
|
+
}
|
|
2307
|
+
},
|
|
2308
|
+
'delete': function (key) {
|
|
2309
|
+
if ($m) {
|
|
2310
|
+
var result = $mapDelete($m, key);
|
|
2311
|
+
if ($mapSize($m) === 0) {
|
|
2312
|
+
$m = void undefined;
|
|
2313
|
+
}
|
|
2314
|
+
return result;
|
|
2315
|
+
}
|
|
2316
|
+
return false;
|
|
2317
|
+
},
|
|
2318
|
+
get: function (key) {
|
|
2319
|
+
if ($m) {
|
|
2320
|
+
return $mapGet($m, key);
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
has: function (key) {
|
|
2324
|
+
if ($m) {
|
|
2325
|
+
return $mapHas($m, key);
|
|
2326
|
+
}
|
|
2327
|
+
return false;
|
|
2328
|
+
},
|
|
2329
|
+
set: function (key, value) {
|
|
2330
|
+
if (!$m) {
|
|
2331
|
+
$m = new $Map();
|
|
2332
|
+
}
|
|
2333
|
+
$mapSet($m, key, value);
|
|
2334
|
+
}
|
|
2335
|
+
};
|
|
2336
|
+
return channel;
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2339
|
+
},{"call-bound":7,"es-errors/type":16,"get-intrinsic":22,"object-inspect":39}],47:[function(require,module,exports){
|
|
2340
|
+
'use strict';
|
|
2341
|
+
|
|
2342
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
2343
|
+
var callBound = require('call-bound');
|
|
2344
|
+
var inspect = require('object-inspect');
|
|
2345
|
+
var getSideChannelMap = require('side-channel-map');
|
|
2346
|
+
var $TypeError = require('es-errors/type');
|
|
2347
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
2348
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
2349
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
2350
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
2351
|
+
var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
|
|
2352
|
+
module.exports = $WeakMap ? function getSideChannelWeakMap() {
|
|
2353
|
+
var $wm;
|
|
2354
|
+
var $m;
|
|
2355
|
+
var channel = {
|
|
2356
|
+
assert: function (key) {
|
|
2357
|
+
if (!channel.has(key)) {
|
|
2358
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
2359
|
+
}
|
|
2360
|
+
},
|
|
2361
|
+
'delete': function (key) {
|
|
2362
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2363
|
+
if ($wm) {
|
|
2364
|
+
return $weakMapDelete($wm, key);
|
|
2365
|
+
}
|
|
2366
|
+
} else if (getSideChannelMap) {
|
|
2367
|
+
if ($m) {
|
|
2368
|
+
return $m['delete'](key);
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
return false;
|
|
2372
|
+
},
|
|
2373
|
+
get: function (key) {
|
|
2374
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2375
|
+
if ($wm) {
|
|
2376
|
+
return $weakMapGet($wm, key);
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
return $m && $m.get(key);
|
|
2380
|
+
},
|
|
2381
|
+
has: function (key) {
|
|
2382
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2383
|
+
if ($wm) {
|
|
2384
|
+
return $weakMapHas($wm, key);
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
return !!$m && $m.has(key);
|
|
2388
|
+
},
|
|
2389
|
+
set: function (key, value) {
|
|
2390
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
2391
|
+
if (!$wm) {
|
|
2392
|
+
$wm = new $WeakMap();
|
|
2393
|
+
}
|
|
2394
|
+
$weakMapSet($wm, key, value);
|
|
2395
|
+
} else if (getSideChannelMap) {
|
|
2396
|
+
if (!$m) {
|
|
2397
|
+
$m = getSideChannelMap();
|
|
2398
|
+
}
|
|
2399
|
+
$m.set(key, value);
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
};
|
|
2403
|
+
return channel;
|
|
2404
|
+
} : getSideChannelMap;
|
|
2405
|
+
|
|
2406
|
+
},{"call-bound":7,"es-errors/type":16,"get-intrinsic":22,"object-inspect":39,"side-channel-map":46}],48:[function(require,module,exports){
|
|
2407
|
+
'use strict';
|
|
2408
|
+
|
|
2409
|
+
var $TypeError = require('es-errors/type');
|
|
2410
|
+
var inspect = require('object-inspect');
|
|
2411
|
+
var getSideChannelList = require('side-channel-list');
|
|
2412
|
+
var getSideChannelMap = require('side-channel-map');
|
|
2413
|
+
var getSideChannelWeakMap = require('side-channel-weakmap');
|
|
2414
|
+
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
2415
|
+
module.exports = function getSideChannel() {
|
|
2416
|
+
var $channelData;
|
|
2417
|
+
var channel = {
|
|
2418
|
+
assert: function (key) {
|
|
2419
|
+
if (!channel.has(key)) {
|
|
2420
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
'delete': function (key) {
|
|
2424
|
+
return !!$channelData && $channelData['delete'](key);
|
|
2425
|
+
},
|
|
2426
|
+
get: function (key) {
|
|
2427
|
+
return $channelData && $channelData.get(key);
|
|
2428
|
+
},
|
|
2429
|
+
has: function (key) {
|
|
2430
|
+
return !!$channelData && $channelData.has(key);
|
|
2431
|
+
},
|
|
2432
|
+
set: function (key, value) {
|
|
2433
|
+
if (!$channelData) {
|
|
2434
|
+
$channelData = makeChannel();
|
|
2435
|
+
}
|
|
2436
|
+
$channelData.set(key, value);
|
|
2437
|
+
}
|
|
2438
|
+
};
|
|
2439
|
+
return channel;
|
|
2440
|
+
};
|
|
2441
|
+
|
|
2442
|
+
},{"es-errors/type":16,"object-inspect":39,"side-channel-list":45,"side-channel-map":46,"side-channel-weakmap":47}],49:[function(require,module,exports){
|
|
2443
|
+
const defaults = ['use', 'on', 'once', 'set', 'query', 'type', 'accept', 'auth', 'withCredentials', 'sortQuery', 'retry', 'ok', 'redirects', 'timeout', 'buffer', 'serialize', 'parse', 'ca', 'key', 'pfx', 'cert', 'disableTLSCerts'];
|
|
2444
|
+
class Agent {
|
|
2445
|
+
constructor() {
|
|
2446
|
+
this._defaults = [];
|
|
2447
|
+
}
|
|
2448
|
+
_setDefaults(request) {
|
|
2449
|
+
for (const def of this._defaults) {
|
|
2450
|
+
request[def.fn](...def.args);
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
for (const fn of defaults) {
|
|
2455
|
+
Agent.prototype[fn] = function () {
|
|
2456
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2457
|
+
args[_key] = arguments[_key];
|
|
2458
|
+
}
|
|
2459
|
+
this._defaults.push({
|
|
2460
|
+
fn,
|
|
2461
|
+
args
|
|
2462
|
+
});
|
|
2463
|
+
return this;
|
|
2464
|
+
};
|
|
2465
|
+
}
|
|
2466
|
+
module.exports = Agent;
|
|
2467
|
+
|
|
2468
|
+
},{}],50:[function(require,module,exports){
|
|
2469
|
+
let root;
|
|
2470
|
+
if (typeof window !== 'undefined') {
|
|
2471
|
+
root = window;
|
|
2472
|
+
} else if (typeof self === 'undefined') {
|
|
2473
|
+
console.warn('Using browser-only version of superagent in non-browser environment');
|
|
2474
|
+
root = this;
|
|
2475
|
+
} else {
|
|
2476
|
+
root = self;
|
|
2477
|
+
}
|
|
2478
|
+
const Emitter = require('component-emitter');
|
|
2479
|
+
const safeStringify = require('fast-safe-stringify');
|
|
2480
|
+
const qs = require('qs');
|
|
2481
|
+
const RequestBase = require('./request-base');
|
|
2482
|
+
const {
|
|
2483
|
+
isObject,
|
|
2484
|
+
mixin,
|
|
2485
|
+
hasOwn
|
|
2486
|
+
} = require('./utils');
|
|
2487
|
+
const ResponseBase = require('./response-base');
|
|
2488
|
+
const Agent = require('./agent-base');
|
|
2489
|
+
function noop() {}
|
|
2490
|
+
module.exports = function (method, url) {
|
|
2491
|
+
if (typeof url === 'function') {
|
|
2492
|
+
return new exports.Request('GET', method).end(url);
|
|
2493
|
+
}
|
|
2494
|
+
if (arguments.length === 1) {
|
|
2495
|
+
return new exports.Request('GET', method);
|
|
2496
|
+
}
|
|
2497
|
+
return new exports.Request(method, url);
|
|
2498
|
+
};
|
|
2499
|
+
exports = module.exports;
|
|
2500
|
+
const request = exports;
|
|
2501
|
+
exports.Request = Request;
|
|
2502
|
+
request.getXHR = () => {
|
|
2503
|
+
if (root.XMLHttpRequest) {
|
|
2504
|
+
return new root.XMLHttpRequest();
|
|
2505
|
+
}
|
|
2506
|
+
throw new Error('Browser-only version of superagent could not find XHR');
|
|
2507
|
+
};
|
|
2508
|
+
const trim = ''.trim ? s => s.trim() : s => s.replace(/(^\s*|\s*$)/g, '');
|
|
2509
|
+
function serialize(object) {
|
|
2510
|
+
if (!isObject(object)) return object;
|
|
2511
|
+
const pairs = [];
|
|
2512
|
+
for (const key in object) {
|
|
2513
|
+
if (hasOwn(object, key)) pushEncodedKeyValuePair(pairs, key, object[key]);
|
|
2514
|
+
}
|
|
2515
|
+
return pairs.join('&');
|
|
2516
|
+
}
|
|
2517
|
+
function pushEncodedKeyValuePair(pairs, key, value) {
|
|
2518
|
+
if (value === undefined) return;
|
|
2519
|
+
if (value === null) {
|
|
2520
|
+
pairs.push(encodeURI(key));
|
|
2521
|
+
return;
|
|
2522
|
+
}
|
|
2523
|
+
if (Array.isArray(value)) {
|
|
2524
|
+
for (const v of value) {
|
|
2525
|
+
pushEncodedKeyValuePair(pairs, key, v);
|
|
2526
|
+
}
|
|
2527
|
+
} else if (isObject(value)) {
|
|
2528
|
+
for (const subkey in value) {
|
|
2529
|
+
if (hasOwn(value, subkey)) pushEncodedKeyValuePair(pairs, `${key}[${subkey}]`, value[subkey]);
|
|
2530
|
+
}
|
|
2531
|
+
} else {
|
|
2532
|
+
pairs.push(encodeURI(key) + '=' + encodeURIComponent(value));
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
request.serializeObject = serialize;
|
|
2536
|
+
function parseString(string_) {
|
|
2537
|
+
const object = {};
|
|
2538
|
+
const pairs = string_.split('&');
|
|
2539
|
+
let pair;
|
|
2540
|
+
let pos;
|
|
2541
|
+
for (let i = 0, length_ = pairs.length; i < length_; ++i) {
|
|
2542
|
+
pair = pairs[i];
|
|
2543
|
+
pos = pair.indexOf('=');
|
|
2544
|
+
if (pos === -1) {
|
|
2545
|
+
object[decodeURIComponent(pair)] = '';
|
|
2546
|
+
} else {
|
|
2547
|
+
object[decodeURIComponent(pair.slice(0, pos))] = decodeURIComponent(pair.slice(pos + 1));
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
return object;
|
|
2551
|
+
}
|
|
2552
|
+
request.parseString = parseString;
|
|
2553
|
+
request.types = {
|
|
2554
|
+
html: 'text/html',
|
|
2555
|
+
json: 'application/json',
|
|
2556
|
+
xml: 'text/xml',
|
|
2557
|
+
urlencoded: 'application/x-www-form-urlencoded',
|
|
2558
|
+
form: 'application/x-www-form-urlencoded',
|
|
2559
|
+
'form-data': 'application/x-www-form-urlencoded'
|
|
2560
|
+
};
|
|
2561
|
+
request.serialize = {
|
|
2562
|
+
'application/x-www-form-urlencoded': obj => {
|
|
2563
|
+
return qs.stringify(obj, {
|
|
2564
|
+
indices: false,
|
|
2565
|
+
strictNullHandling: true
|
|
2566
|
+
});
|
|
2567
|
+
},
|
|
2568
|
+
'application/json': safeStringify
|
|
2569
|
+
};
|
|
2570
|
+
request.parse = {
|
|
2571
|
+
'application/x-www-form-urlencoded': parseString,
|
|
2572
|
+
'application/json': JSON.parse
|
|
2573
|
+
};
|
|
2574
|
+
function parseHeader(string_) {
|
|
2575
|
+
const lines = string_.split(/\r?\n/);
|
|
2576
|
+
const fields = {};
|
|
2577
|
+
let index;
|
|
2578
|
+
let line;
|
|
2579
|
+
let field;
|
|
2580
|
+
let value;
|
|
2581
|
+
for (let i = 0, length_ = lines.length; i < length_; ++i) {
|
|
2582
|
+
line = lines[i];
|
|
2583
|
+
index = line.indexOf(':');
|
|
2584
|
+
if (index === -1) {
|
|
2585
|
+
continue;
|
|
2586
|
+
}
|
|
2587
|
+
field = line.slice(0, index).toLowerCase();
|
|
2588
|
+
value = trim(line.slice(index + 1));
|
|
2589
|
+
fields[field] = value;
|
|
2590
|
+
}
|
|
2591
|
+
return fields;
|
|
2592
|
+
}
|
|
2593
|
+
function isJSON(mime) {
|
|
2594
|
+
return /[/+]json($|[^-\w])/i.test(mime);
|
|
2595
|
+
}
|
|
2596
|
+
function Response(request_) {
|
|
2597
|
+
this.req = request_;
|
|
2598
|
+
this.xhr = this.req.xhr;
|
|
2599
|
+
this.text = this.req.method !== 'HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text') || typeof this.xhr.responseType === 'undefined' ? this.xhr.responseText : null;
|
|
2600
|
+
this.statusText = this.req.xhr.statusText;
|
|
2601
|
+
let {
|
|
2602
|
+
status
|
|
2603
|
+
} = this.xhr;
|
|
2604
|
+
if (status === 1223) {
|
|
2605
|
+
status = 204;
|
|
2606
|
+
}
|
|
2607
|
+
this._setStatusProperties(status);
|
|
2608
|
+
this.headers = parseHeader(this.xhr.getAllResponseHeaders());
|
|
2609
|
+
this.header = this.headers;
|
|
2610
|
+
this.header['content-type'] = this.xhr.getResponseHeader('content-type');
|
|
2611
|
+
this._setHeaderProperties(this.header);
|
|
2612
|
+
if (this.text === null && request_._responseType) {
|
|
2613
|
+
this.body = this.xhr.response;
|
|
2614
|
+
} else {
|
|
2615
|
+
this.body = this.req.method === 'HEAD' ? null : this._parseBody(this.text ? this.text : this.xhr.response);
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
mixin(Response.prototype, ResponseBase.prototype);
|
|
2619
|
+
Response.prototype._parseBody = function (string_) {
|
|
2620
|
+
let parse = request.parse[this.type];
|
|
2621
|
+
if (this.req._parser) {
|
|
2622
|
+
return this.req._parser(this, string_);
|
|
2623
|
+
}
|
|
2624
|
+
if (!parse && isJSON(this.type)) {
|
|
2625
|
+
parse = request.parse['application/json'];
|
|
2626
|
+
}
|
|
2627
|
+
return parse && string_ && (string_.length > 0 || string_ instanceof Object) ? parse(string_) : null;
|
|
2628
|
+
};
|
|
2629
|
+
Response.prototype.toError = function () {
|
|
2630
|
+
const {
|
|
2631
|
+
req
|
|
2632
|
+
} = this;
|
|
2633
|
+
const {
|
|
2634
|
+
method
|
|
2635
|
+
} = req;
|
|
2636
|
+
const {
|
|
2637
|
+
url
|
|
2638
|
+
} = req;
|
|
2639
|
+
const message = `cannot ${method} ${url} (${this.status})`;
|
|
2640
|
+
const error = new Error(message);
|
|
2641
|
+
error.status = this.status;
|
|
2642
|
+
error.method = method;
|
|
2643
|
+
error.url = url;
|
|
2644
|
+
return error;
|
|
2645
|
+
};
|
|
2646
|
+
request.Response = Response;
|
|
2647
|
+
function Request(method, url) {
|
|
2648
|
+
const self = this;
|
|
2649
|
+
this._query = this._query || [];
|
|
2650
|
+
this.method = method;
|
|
2651
|
+
this.url = url;
|
|
2652
|
+
this.header = {};
|
|
2653
|
+
this._header = {};
|
|
2654
|
+
this.on('end', () => {
|
|
2655
|
+
let error = null;
|
|
2656
|
+
let res = null;
|
|
2657
|
+
try {
|
|
2658
|
+
res = new Response(self);
|
|
2659
|
+
} catch (err) {
|
|
2660
|
+
error = new Error('Parser is unable to parse the response');
|
|
2661
|
+
error.parse = true;
|
|
2662
|
+
error.original = err;
|
|
2663
|
+
if (self.xhr) {
|
|
2664
|
+
error.rawResponse = typeof self.xhr.responseType === 'undefined' ? self.xhr.responseText : self.xhr.response;
|
|
2665
|
+
error.status = self.xhr.status ? self.xhr.status : null;
|
|
2666
|
+
error.statusCode = error.status;
|
|
2667
|
+
} else {
|
|
2668
|
+
error.rawResponse = null;
|
|
2669
|
+
error.status = null;
|
|
2670
|
+
}
|
|
2671
|
+
return self.callback(error);
|
|
2672
|
+
}
|
|
2673
|
+
self.emit('response', res);
|
|
2674
|
+
let new_error;
|
|
2675
|
+
try {
|
|
2676
|
+
if (!self._isResponseOK(res)) {
|
|
2677
|
+
new_error = new Error(res.statusText || res.text || 'Unsuccessful HTTP response');
|
|
2678
|
+
}
|
|
2679
|
+
} catch (err) {
|
|
2680
|
+
new_error = err;
|
|
2681
|
+
}
|
|
2682
|
+
if (new_error) {
|
|
2683
|
+
new_error.original = error;
|
|
2684
|
+
new_error.response = res;
|
|
2685
|
+
new_error.status = new_error.status || res.status;
|
|
2686
|
+
self.callback(new_error, res);
|
|
2687
|
+
} else {
|
|
2688
|
+
self.callback(null, res);
|
|
2689
|
+
}
|
|
2690
|
+
});
|
|
2691
|
+
}
|
|
2692
|
+
Emitter(Request.prototype);
|
|
2693
|
+
mixin(Request.prototype, RequestBase.prototype);
|
|
2694
|
+
Request.prototype.type = function (type) {
|
|
2695
|
+
this.set('Content-Type', request.types[type] || type);
|
|
2696
|
+
return this;
|
|
2697
|
+
};
|
|
2698
|
+
Request.prototype.accept = function (type) {
|
|
2699
|
+
this.set('Accept', request.types[type] || type);
|
|
2700
|
+
return this;
|
|
2701
|
+
};
|
|
2702
|
+
Request.prototype.auth = function (user, pass, options) {
|
|
2703
|
+
if (arguments.length === 1) pass = '';
|
|
2704
|
+
if (typeof pass === 'object' && pass !== null) {
|
|
2705
|
+
options = pass;
|
|
2706
|
+
pass = '';
|
|
2707
|
+
}
|
|
2708
|
+
if (!options) {
|
|
2709
|
+
options = {
|
|
2710
|
+
type: typeof btoa === 'function' ? 'basic' : 'auto'
|
|
2711
|
+
};
|
|
2712
|
+
}
|
|
2713
|
+
const encoder = options.encoder ? options.encoder : string => {
|
|
2714
|
+
if (typeof btoa === 'function') {
|
|
2715
|
+
return btoa(string);
|
|
2716
|
+
}
|
|
2717
|
+
throw new Error('Cannot use basic auth, btoa is not a function');
|
|
2718
|
+
};
|
|
2719
|
+
return this._auth(user, pass, options, encoder);
|
|
2720
|
+
};
|
|
2721
|
+
Request.prototype.query = function (value) {
|
|
2722
|
+
if (typeof value !== 'string') value = serialize(value);
|
|
2723
|
+
if (value) this._query.push(value);
|
|
2724
|
+
return this;
|
|
2725
|
+
};
|
|
2726
|
+
Request.prototype.attach = function (field, file, options) {
|
|
2727
|
+
if (file) {
|
|
2728
|
+
if (this._data) {
|
|
2729
|
+
throw new Error("superagent can't mix .send() and .attach()");
|
|
2730
|
+
}
|
|
2731
|
+
this._getFormData().append(field, file, options || file.name);
|
|
2732
|
+
}
|
|
2733
|
+
return this;
|
|
2734
|
+
};
|
|
2735
|
+
Request.prototype._getFormData = function () {
|
|
2736
|
+
if (!this._formData) {
|
|
2737
|
+
this._formData = new root.FormData();
|
|
2738
|
+
}
|
|
2739
|
+
return this._formData;
|
|
2740
|
+
};
|
|
2741
|
+
Request.prototype.callback = function (error, res) {
|
|
2742
|
+
if (this._shouldRetry(error, res)) {
|
|
2743
|
+
return this._retry();
|
|
2744
|
+
}
|
|
2745
|
+
const fn = this._callback;
|
|
2746
|
+
this.clearTimeout();
|
|
2747
|
+
if (error) {
|
|
2748
|
+
if (this._maxRetries) error.retries = this._retries - 1;
|
|
2749
|
+
this.emit('error', error);
|
|
2750
|
+
}
|
|
2751
|
+
fn(error, res);
|
|
2752
|
+
};
|
|
2753
|
+
Request.prototype.crossDomainError = function () {
|
|
2754
|
+
const error = new Error('Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');
|
|
2755
|
+
error.crossDomain = true;
|
|
2756
|
+
error.status = this.status;
|
|
2757
|
+
error.method = this.method;
|
|
2758
|
+
error.url = this.url;
|
|
2759
|
+
this.callback(error);
|
|
2760
|
+
};
|
|
2761
|
+
Request.prototype.agent = function () {
|
|
2762
|
+
console.warn('This is not supported in browser version of superagent');
|
|
2763
|
+
return this;
|
|
2764
|
+
};
|
|
2765
|
+
Request.prototype.ca = Request.prototype.agent;
|
|
2766
|
+
Request.prototype.buffer = Request.prototype.ca;
|
|
2767
|
+
Request.prototype.write = () => {
|
|
2768
|
+
throw new Error('Streaming is not supported in browser version of superagent');
|
|
2769
|
+
};
|
|
2770
|
+
Request.prototype.pipe = Request.prototype.write;
|
|
2771
|
+
Request.prototype._isHost = function (object) {
|
|
2772
|
+
return object && typeof object === 'object' && !Array.isArray(object) && Object.prototype.toString.call(object) !== '[object Object]';
|
|
2773
|
+
};
|
|
2774
|
+
Request.prototype.end = function (fn) {
|
|
2775
|
+
if (this._endCalled) {
|
|
2776
|
+
console.warn('Warning: .end() was called twice. This is not supported in superagent');
|
|
2777
|
+
}
|
|
2778
|
+
this._endCalled = true;
|
|
2779
|
+
this._callback = fn || noop;
|
|
2780
|
+
this._finalizeQueryString();
|
|
2781
|
+
this._end();
|
|
2782
|
+
};
|
|
2783
|
+
Request.prototype._setUploadTimeout = function () {
|
|
2784
|
+
const self = this;
|
|
2785
|
+
if (this._uploadTimeout && !this._uploadTimeoutTimer) {
|
|
2786
|
+
this._uploadTimeoutTimer = setTimeout(() => {
|
|
2787
|
+
self._timeoutError('Upload timeout of ', self._uploadTimeout, 'ETIMEDOUT');
|
|
2788
|
+
}, this._uploadTimeout);
|
|
2789
|
+
}
|
|
2790
|
+
};
|
|
2791
|
+
Request.prototype._end = function () {
|
|
2792
|
+
if (this._aborted) return this.callback(new Error('The request has been aborted even before .end() was called'));
|
|
2793
|
+
const self = this;
|
|
2794
|
+
this.xhr = request.getXHR();
|
|
2795
|
+
const {
|
|
2796
|
+
xhr
|
|
2797
|
+
} = this;
|
|
2798
|
+
let data = this._formData || this._data;
|
|
2799
|
+
this._setTimeouts();
|
|
2800
|
+
xhr.addEventListener('readystatechange', () => {
|
|
2801
|
+
const {
|
|
2802
|
+
readyState
|
|
2803
|
+
} = xhr;
|
|
2804
|
+
if (readyState >= 2 && self._responseTimeoutTimer) {
|
|
2805
|
+
clearTimeout(self._responseTimeoutTimer);
|
|
2806
|
+
}
|
|
2807
|
+
if (readyState !== 4) {
|
|
2808
|
+
return;
|
|
2809
|
+
}
|
|
2810
|
+
let status;
|
|
2811
|
+
try {
|
|
2812
|
+
status = xhr.status;
|
|
2813
|
+
} catch (err) {
|
|
2814
|
+
status = 0;
|
|
2815
|
+
}
|
|
2816
|
+
if (!status) {
|
|
2817
|
+
if (self.timedout || self._aborted) return;
|
|
2818
|
+
return self.crossDomainError();
|
|
2819
|
+
}
|
|
2820
|
+
self.emit('end');
|
|
2821
|
+
});
|
|
2822
|
+
const handleProgress = (direction, e) => {
|
|
2823
|
+
if (e.total > 0) {
|
|
2824
|
+
e.percent = e.loaded / e.total * 100;
|
|
2825
|
+
if (e.percent === 100) {
|
|
2826
|
+
clearTimeout(self._uploadTimeoutTimer);
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
e.direction = direction;
|
|
2830
|
+
self.emit('progress', e);
|
|
2831
|
+
};
|
|
2832
|
+
if (this.hasListeners('progress')) {
|
|
2833
|
+
try {
|
|
2834
|
+
xhr.addEventListener('progress', handleProgress.bind(null, 'download'));
|
|
2835
|
+
if (xhr.upload) {
|
|
2836
|
+
xhr.upload.addEventListener('progress', handleProgress.bind(null, 'upload'));
|
|
2837
|
+
}
|
|
2838
|
+
} catch (err) {}
|
|
2839
|
+
}
|
|
2840
|
+
if (xhr.upload) {
|
|
2841
|
+
this._setUploadTimeout();
|
|
2842
|
+
}
|
|
2843
|
+
try {
|
|
2844
|
+
if (this.username && this.password) {
|
|
2845
|
+
xhr.open(this.method, this.url, true, this.username, this.password);
|
|
2846
|
+
} else {
|
|
2847
|
+
xhr.open(this.method, this.url, true);
|
|
2848
|
+
}
|
|
2849
|
+
} catch (err) {
|
|
2850
|
+
return this.callback(err);
|
|
2851
|
+
}
|
|
2852
|
+
if (this._withCredentials) xhr.withCredentials = true;
|
|
2853
|
+
if (!this._formData && this.method !== 'GET' && this.method !== 'HEAD' && typeof data !== 'string' && !this._isHost(data)) {
|
|
2854
|
+
const contentType = this._header['content-type'];
|
|
2855
|
+
let serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];
|
|
2856
|
+
if (!serialize && isJSON(contentType)) {
|
|
2857
|
+
serialize = request.serialize['application/json'];
|
|
2858
|
+
}
|
|
2859
|
+
if (serialize) data = serialize(data);
|
|
2860
|
+
}
|
|
2861
|
+
for (const field in this.header) {
|
|
2862
|
+
if (this.header[field] === null) continue;
|
|
2863
|
+
if (hasOwn(this.header, field)) xhr.setRequestHeader(field, this.header[field]);
|
|
2864
|
+
}
|
|
2865
|
+
if (this._responseType) {
|
|
2866
|
+
xhr.responseType = this._responseType;
|
|
2867
|
+
}
|
|
2868
|
+
this.emit('request', this);
|
|
2869
|
+
xhr.send(typeof data === 'undefined' ? null : data);
|
|
2870
|
+
};
|
|
2871
|
+
request.agent = () => new Agent();
|
|
2872
|
+
for (const method of ['GET', 'POST', 'OPTIONS', 'PATCH', 'PUT', 'DELETE']) {
|
|
2873
|
+
Agent.prototype[method.toLowerCase()] = function (url, fn) {
|
|
2874
|
+
const request_ = new request.Request(method, url);
|
|
2875
|
+
this._setDefaults(request_);
|
|
2876
|
+
if (fn) {
|
|
2877
|
+
request_.end(fn);
|
|
2878
|
+
}
|
|
2879
|
+
return request_;
|
|
2880
|
+
};
|
|
2881
|
+
}
|
|
2882
|
+
Agent.prototype.del = Agent.prototype.delete;
|
|
2883
|
+
request.get = (url, data, fn) => {
|
|
2884
|
+
const request_ = request('GET', url);
|
|
2885
|
+
if (typeof data === 'function') {
|
|
2886
|
+
fn = data;
|
|
2887
|
+
data = null;
|
|
2888
|
+
}
|
|
2889
|
+
if (data) request_.query(data);
|
|
2890
|
+
if (fn) request_.end(fn);
|
|
2891
|
+
return request_;
|
|
2892
|
+
};
|
|
2893
|
+
request.head = (url, data, fn) => {
|
|
2894
|
+
const request_ = request('HEAD', url);
|
|
2895
|
+
if (typeof data === 'function') {
|
|
2896
|
+
fn = data;
|
|
2897
|
+
data = null;
|
|
2898
|
+
}
|
|
2899
|
+
if (data) request_.query(data);
|
|
2900
|
+
if (fn) request_.end(fn);
|
|
2901
|
+
return request_;
|
|
2902
|
+
};
|
|
2903
|
+
request.options = (url, data, fn) => {
|
|
2904
|
+
const request_ = request('OPTIONS', url);
|
|
2905
|
+
if (typeof data === 'function') {
|
|
2906
|
+
fn = data;
|
|
2907
|
+
data = null;
|
|
2908
|
+
}
|
|
2909
|
+
if (data) request_.send(data);
|
|
2910
|
+
if (fn) request_.end(fn);
|
|
2911
|
+
return request_;
|
|
2912
|
+
};
|
|
2913
|
+
function del(url, data, fn) {
|
|
2914
|
+
const request_ = request('DELETE', url);
|
|
2915
|
+
if (typeof data === 'function') {
|
|
2916
|
+
fn = data;
|
|
2917
|
+
data = null;
|
|
2918
|
+
}
|
|
2919
|
+
if (data) request_.send(data);
|
|
2920
|
+
if (fn) request_.end(fn);
|
|
2921
|
+
return request_;
|
|
2922
|
+
}
|
|
2923
|
+
request.del = del;
|
|
2924
|
+
request.delete = del;
|
|
2925
|
+
request.patch = (url, data, fn) => {
|
|
2926
|
+
const request_ = request('PATCH', url);
|
|
2927
|
+
if (typeof data === 'function') {
|
|
2928
|
+
fn = data;
|
|
2929
|
+
data = null;
|
|
2930
|
+
}
|
|
2931
|
+
if (data) request_.send(data);
|
|
2932
|
+
if (fn) request_.end(fn);
|
|
2933
|
+
return request_;
|
|
2934
|
+
};
|
|
2935
|
+
request.post = (url, data, fn) => {
|
|
2936
|
+
const request_ = request('POST', url);
|
|
2937
|
+
if (typeof data === 'function') {
|
|
2938
|
+
fn = data;
|
|
2939
|
+
data = null;
|
|
2940
|
+
}
|
|
2941
|
+
if (data) request_.send(data);
|
|
2942
|
+
if (fn) request_.end(fn);
|
|
2943
|
+
return request_;
|
|
2944
|
+
};
|
|
2945
|
+
request.put = (url, data, fn) => {
|
|
2946
|
+
const request_ = request('PUT', url);
|
|
2947
|
+
if (typeof data === 'function') {
|
|
2948
|
+
fn = data;
|
|
2949
|
+
data = null;
|
|
2950
|
+
}
|
|
2951
|
+
if (data) request_.send(data);
|
|
2952
|
+
if (fn) request_.end(fn);
|
|
2953
|
+
return request_;
|
|
2954
|
+
};
|
|
2955
|
+
|
|
2956
|
+
},{"./agent-base":49,"./request-base":51,"./response-base":52,"./utils":53,"component-emitter":8,"fast-safe-stringify":19,"qs":41}],51:[function(require,module,exports){
|
|
2957
|
+
const {
|
|
2958
|
+
isObject,
|
|
2959
|
+
hasOwn
|
|
2960
|
+
} = require('./utils');
|
|
2961
|
+
module.exports = RequestBase;
|
|
2962
|
+
function RequestBase() {}
|
|
2963
|
+
RequestBase.prototype.clearTimeout = function () {
|
|
2964
|
+
clearTimeout(this._timer);
|
|
2965
|
+
clearTimeout(this._responseTimeoutTimer);
|
|
2966
|
+
clearTimeout(this._uploadTimeoutTimer);
|
|
2967
|
+
delete this._timer;
|
|
2968
|
+
delete this._responseTimeoutTimer;
|
|
2969
|
+
delete this._uploadTimeoutTimer;
|
|
2970
|
+
return this;
|
|
2971
|
+
};
|
|
2972
|
+
RequestBase.prototype.parse = function (fn) {
|
|
2973
|
+
this._parser = fn;
|
|
2974
|
+
return this;
|
|
2975
|
+
};
|
|
2976
|
+
RequestBase.prototype.responseType = function (value) {
|
|
2977
|
+
this._responseType = value;
|
|
2978
|
+
return this;
|
|
2979
|
+
};
|
|
2980
|
+
RequestBase.prototype.serialize = function (fn) {
|
|
2981
|
+
this._serializer = fn;
|
|
2982
|
+
return this;
|
|
2983
|
+
};
|
|
2984
|
+
RequestBase.prototype.timeout = function (options) {
|
|
2985
|
+
if (!options || typeof options !== 'object') {
|
|
2986
|
+
this._timeout = options;
|
|
2987
|
+
this._responseTimeout = 0;
|
|
2988
|
+
this._uploadTimeout = 0;
|
|
2989
|
+
return this;
|
|
2990
|
+
}
|
|
2991
|
+
for (const option in options) {
|
|
2992
|
+
if (hasOwn(options, option)) {
|
|
2993
|
+
switch (option) {
|
|
2994
|
+
case 'deadline':
|
|
2995
|
+
this._timeout = options.deadline;
|
|
2996
|
+
break;
|
|
2997
|
+
case 'response':
|
|
2998
|
+
this._responseTimeout = options.response;
|
|
2999
|
+
break;
|
|
3000
|
+
case 'upload':
|
|
3001
|
+
this._uploadTimeout = options.upload;
|
|
3002
|
+
break;
|
|
3003
|
+
default:
|
|
3004
|
+
console.warn('Unknown timeout option', option);
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
return this;
|
|
3009
|
+
};
|
|
3010
|
+
RequestBase.prototype.retry = function (count, fn) {
|
|
3011
|
+
if (arguments.length === 0 || count === true) count = 1;
|
|
3012
|
+
if (count <= 0) count = 0;
|
|
3013
|
+
this._maxRetries = count;
|
|
3014
|
+
this._retries = 0;
|
|
3015
|
+
this._retryCallback = fn;
|
|
3016
|
+
return this;
|
|
3017
|
+
};
|
|
3018
|
+
const ERROR_CODES = new Set(['ETIMEDOUT', 'ECONNRESET', 'EADDRINUSE', 'ECONNREFUSED', 'EPIPE', 'ENOTFOUND', 'ENETUNREACH', 'EAI_AGAIN']);
|
|
3019
|
+
const STATUS_CODES = new Set([408, 413, 429, 500, 502, 503, 504, 521, 522, 524]);
|
|
3020
|
+
RequestBase.prototype._shouldRetry = function (error, res) {
|
|
3021
|
+
if (!this._maxRetries || this._retries++ >= this._maxRetries) {
|
|
3022
|
+
return false;
|
|
3023
|
+
}
|
|
3024
|
+
if (this._retryCallback) {
|
|
3025
|
+
try {
|
|
3026
|
+
const override = this._retryCallback(error, res);
|
|
3027
|
+
if (override === true) return true;
|
|
3028
|
+
if (override === false) return false;
|
|
3029
|
+
} catch (err) {
|
|
3030
|
+
console.error(err);
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
if (res && res.status && STATUS_CODES.has(res.status)) return true;
|
|
3034
|
+
if (error) {
|
|
3035
|
+
if (error.code && ERROR_CODES.has(error.code)) return true;
|
|
3036
|
+
if (error.timeout && error.code === 'ECONNABORTED') return true;
|
|
3037
|
+
if (error.crossDomain) return true;
|
|
3038
|
+
}
|
|
3039
|
+
return false;
|
|
3040
|
+
};
|
|
3041
|
+
RequestBase.prototype._retry = function () {
|
|
3042
|
+
this.clearTimeout();
|
|
3043
|
+
if (this.req) {
|
|
3044
|
+
this.req = null;
|
|
3045
|
+
this.req = this.request();
|
|
3046
|
+
}
|
|
3047
|
+
this._aborted = false;
|
|
3048
|
+
this.timedout = false;
|
|
3049
|
+
this.timedoutError = null;
|
|
3050
|
+
return this._end();
|
|
3051
|
+
};
|
|
3052
|
+
RequestBase.prototype.then = function (resolve, reject) {
|
|
3053
|
+
if (!this._fullfilledPromise) {
|
|
3054
|
+
const self = this;
|
|
3055
|
+
if (this._endCalled) {
|
|
3056
|
+
console.warn('Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises');
|
|
3057
|
+
}
|
|
3058
|
+
this._fullfilledPromise = new Promise((resolve, reject) => {
|
|
3059
|
+
self.on('abort', () => {
|
|
3060
|
+
if (this._maxRetries && this._maxRetries > this._retries) {
|
|
3061
|
+
return;
|
|
3062
|
+
}
|
|
3063
|
+
if (this.timedout && this.timedoutError) {
|
|
3064
|
+
reject(this.timedoutError);
|
|
3065
|
+
return;
|
|
3066
|
+
}
|
|
3067
|
+
const error = new Error('Aborted');
|
|
3068
|
+
error.code = 'ABORTED';
|
|
3069
|
+
error.status = this.status;
|
|
3070
|
+
error.method = this.method;
|
|
3071
|
+
error.url = this.url;
|
|
3072
|
+
reject(error);
|
|
3073
|
+
});
|
|
3074
|
+
self.end((error, res) => {
|
|
3075
|
+
if (error) reject(error);else resolve(res);
|
|
3076
|
+
});
|
|
3077
|
+
});
|
|
3078
|
+
}
|
|
3079
|
+
return this._fullfilledPromise.then(resolve, reject);
|
|
3080
|
+
};
|
|
3081
|
+
RequestBase.prototype.catch = function (callback) {
|
|
3082
|
+
return this.then(undefined, callback);
|
|
3083
|
+
};
|
|
3084
|
+
RequestBase.prototype.use = function (fn) {
|
|
3085
|
+
fn(this);
|
|
3086
|
+
return this;
|
|
3087
|
+
};
|
|
3088
|
+
RequestBase.prototype.ok = function (callback) {
|
|
3089
|
+
if (typeof callback !== 'function') throw new Error('Callback required');
|
|
3090
|
+
this._okCallback = callback;
|
|
3091
|
+
return this;
|
|
3092
|
+
};
|
|
3093
|
+
RequestBase.prototype._isResponseOK = function (res) {
|
|
3094
|
+
if (!res) {
|
|
3095
|
+
return false;
|
|
3096
|
+
}
|
|
3097
|
+
if (this._okCallback) {
|
|
3098
|
+
return this._okCallback(res);
|
|
3099
|
+
}
|
|
3100
|
+
return res.status >= 200 && res.status < 300;
|
|
3101
|
+
};
|
|
3102
|
+
RequestBase.prototype.get = function (field) {
|
|
3103
|
+
return this._header[field.toLowerCase()];
|
|
3104
|
+
};
|
|
3105
|
+
RequestBase.prototype.getHeader = RequestBase.prototype.get;
|
|
3106
|
+
RequestBase.prototype.set = function (field, value) {
|
|
3107
|
+
if (isObject(field)) {
|
|
3108
|
+
for (const key in field) {
|
|
3109
|
+
if (hasOwn(field, key)) this.set(key, field[key]);
|
|
3110
|
+
}
|
|
3111
|
+
return this;
|
|
3112
|
+
}
|
|
3113
|
+
this._header[field.toLowerCase()] = value;
|
|
3114
|
+
this.header[field] = value;
|
|
3115
|
+
return this;
|
|
3116
|
+
};
|
|
3117
|
+
RequestBase.prototype.unset = function (field) {
|
|
3118
|
+
delete this._header[field.toLowerCase()];
|
|
3119
|
+
delete this.header[field];
|
|
3120
|
+
return this;
|
|
3121
|
+
};
|
|
3122
|
+
RequestBase.prototype.field = function (name, value, options) {
|
|
3123
|
+
if (name === null || undefined === name) {
|
|
3124
|
+
throw new Error('.field(name, val) name can not be empty');
|
|
3125
|
+
}
|
|
3126
|
+
if (this._data) {
|
|
3127
|
+
throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");
|
|
3128
|
+
}
|
|
3129
|
+
if (isObject(name)) {
|
|
3130
|
+
for (const key in name) {
|
|
3131
|
+
if (hasOwn(name, key)) this.field(key, name[key]);
|
|
3132
|
+
}
|
|
3133
|
+
return this;
|
|
3134
|
+
}
|
|
3135
|
+
if (Array.isArray(value)) {
|
|
3136
|
+
for (const i in value) {
|
|
3137
|
+
if (hasOwn(value, i)) this.field(name, value[i]);
|
|
3138
|
+
}
|
|
3139
|
+
return this;
|
|
3140
|
+
}
|
|
3141
|
+
if (value === null || undefined === value) {
|
|
3142
|
+
throw new Error('.field(name, val) val can not be empty');
|
|
3143
|
+
}
|
|
3144
|
+
if (typeof value === 'boolean') {
|
|
3145
|
+
value = String(value);
|
|
3146
|
+
}
|
|
3147
|
+
if (options) this._getFormData().append(name, value, options);else this._getFormData().append(name, value);
|
|
3148
|
+
return this;
|
|
3149
|
+
};
|
|
3150
|
+
RequestBase.prototype.abort = function () {
|
|
3151
|
+
if (this._aborted) {
|
|
3152
|
+
return this;
|
|
3153
|
+
}
|
|
3154
|
+
this._aborted = true;
|
|
3155
|
+
if (this.xhr) this.xhr.abort();
|
|
3156
|
+
if (this.req) {
|
|
3157
|
+
this.req.abort();
|
|
3158
|
+
}
|
|
3159
|
+
this.clearTimeout();
|
|
3160
|
+
this.emit('abort');
|
|
3161
|
+
return this;
|
|
3162
|
+
};
|
|
3163
|
+
RequestBase.prototype._auth = function (user, pass, options, base64Encoder) {
|
|
3164
|
+
switch (options.type) {
|
|
3165
|
+
case 'basic':
|
|
3166
|
+
this.set('Authorization', `Basic ${base64Encoder(`${user}:${pass}`)}`);
|
|
3167
|
+
break;
|
|
3168
|
+
case 'auto':
|
|
3169
|
+
this.username = user;
|
|
3170
|
+
this.password = pass;
|
|
3171
|
+
break;
|
|
3172
|
+
case 'bearer':
|
|
3173
|
+
this.set('Authorization', `Bearer ${user}`);
|
|
3174
|
+
break;
|
|
3175
|
+
default:
|
|
3176
|
+
break;
|
|
3177
|
+
}
|
|
3178
|
+
return this;
|
|
3179
|
+
};
|
|
3180
|
+
RequestBase.prototype.withCredentials = function (on) {
|
|
3181
|
+
if (on === undefined) on = true;
|
|
3182
|
+
this._withCredentials = on;
|
|
3183
|
+
return this;
|
|
3184
|
+
};
|
|
3185
|
+
RequestBase.prototype.redirects = function (n) {
|
|
3186
|
+
this._maxRedirects = n;
|
|
3187
|
+
return this;
|
|
3188
|
+
};
|
|
3189
|
+
RequestBase.prototype.maxResponseSize = function (n) {
|
|
3190
|
+
if (typeof n !== 'number') {
|
|
3191
|
+
throw new TypeError('Invalid argument');
|
|
3192
|
+
}
|
|
3193
|
+
this._maxResponseSize = n;
|
|
3194
|
+
return this;
|
|
3195
|
+
};
|
|
3196
|
+
RequestBase.prototype.toJSON = function () {
|
|
3197
|
+
return {
|
|
3198
|
+
method: this.method,
|
|
3199
|
+
url: this.url,
|
|
3200
|
+
data: this._data,
|
|
3201
|
+
headers: this._header
|
|
3202
|
+
};
|
|
3203
|
+
};
|
|
3204
|
+
RequestBase.prototype.send = function (data) {
|
|
3205
|
+
const isObject_ = isObject(data);
|
|
3206
|
+
let type = this._header['content-type'];
|
|
3207
|
+
if (this._formData) {
|
|
3208
|
+
throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");
|
|
3209
|
+
}
|
|
3210
|
+
if (isObject_ && !this._data) {
|
|
3211
|
+
if (Array.isArray(data)) {
|
|
3212
|
+
this._data = [];
|
|
3213
|
+
} else if (!this._isHost(data)) {
|
|
3214
|
+
this._data = {};
|
|
3215
|
+
}
|
|
3216
|
+
} else if (data && this._data && this._isHost(this._data)) {
|
|
3217
|
+
throw new Error("Can't merge these send calls");
|
|
3218
|
+
}
|
|
3219
|
+
if (isObject_ && isObject(this._data)) {
|
|
3220
|
+
for (const key in data) {
|
|
3221
|
+
if (typeof data[key] == 'bigint' && !data[key].toJSON) throw new Error('Cannot serialize BigInt value to json');
|
|
3222
|
+
if (hasOwn(data, key)) this._data[key] = data[key];
|
|
3223
|
+
}
|
|
3224
|
+
} else if (typeof data === 'bigint') throw new Error("Cannot send value of type BigInt");else if (typeof data === 'string') {
|
|
3225
|
+
if (!type) this.type('form');
|
|
3226
|
+
type = this._header['content-type'];
|
|
3227
|
+
if (type) type = type.toLowerCase().trim();
|
|
3228
|
+
if (type === 'application/x-www-form-urlencoded') {
|
|
3229
|
+
this._data = this._data ? `${this._data}&${data}` : data;
|
|
3230
|
+
} else {
|
|
3231
|
+
this._data = (this._data || '') + data;
|
|
3232
|
+
}
|
|
3233
|
+
} else {
|
|
3234
|
+
this._data = data;
|
|
3235
|
+
}
|
|
3236
|
+
if (!isObject_ || this._isHost(data)) {
|
|
3237
|
+
return this;
|
|
3238
|
+
}
|
|
3239
|
+
if (!type) this.type('json');
|
|
3240
|
+
return this;
|
|
3241
|
+
};
|
|
3242
|
+
RequestBase.prototype.sortQuery = function (sort) {
|
|
3243
|
+
this._sort = typeof sort === 'undefined' ? true : sort;
|
|
3244
|
+
return this;
|
|
3245
|
+
};
|
|
3246
|
+
RequestBase.prototype._finalizeQueryString = function () {
|
|
3247
|
+
const query = this._query.join('&');
|
|
3248
|
+
if (query) {
|
|
3249
|
+
this.url += (this.url.includes('?') ? '&' : '?') + query;
|
|
3250
|
+
}
|
|
3251
|
+
this._query.length = 0;
|
|
3252
|
+
if (this._sort) {
|
|
3253
|
+
const index = this.url.indexOf('?');
|
|
3254
|
+
if (index >= 0) {
|
|
3255
|
+
const queryArray = this.url.slice(index + 1).split('&');
|
|
3256
|
+
if (typeof this._sort === 'function') {
|
|
3257
|
+
queryArray.sort(this._sort);
|
|
3258
|
+
} else {
|
|
3259
|
+
queryArray.sort();
|
|
3260
|
+
}
|
|
3261
|
+
this.url = this.url.slice(0, index) + '?' + queryArray.join('&');
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
};
|
|
3265
|
+
RequestBase.prototype._appendQueryString = () => {
|
|
3266
|
+
console.warn('Unsupported');
|
|
3267
|
+
};
|
|
3268
|
+
RequestBase.prototype._timeoutError = function (reason, timeout, errno) {
|
|
3269
|
+
if (this._aborted) {
|
|
3270
|
+
return;
|
|
3271
|
+
}
|
|
3272
|
+
const error = new Error(`${reason + timeout}ms exceeded`);
|
|
3273
|
+
error.timeout = timeout;
|
|
3274
|
+
error.code = 'ECONNABORTED';
|
|
3275
|
+
error.errno = errno;
|
|
3276
|
+
this.timedout = true;
|
|
3277
|
+
this.timedoutError = error;
|
|
3278
|
+
this.abort();
|
|
3279
|
+
this.callback(error);
|
|
3280
|
+
};
|
|
3281
|
+
RequestBase.prototype._setTimeouts = function () {
|
|
3282
|
+
const self = this;
|
|
3283
|
+
if (this._timeout && !this._timer) {
|
|
3284
|
+
this._timer = setTimeout(() => {
|
|
3285
|
+
self._timeoutError('Timeout of ', self._timeout, 'ETIME');
|
|
3286
|
+
}, this._timeout);
|
|
3287
|
+
}
|
|
3288
|
+
if (this._responseTimeout && !this._responseTimeoutTimer) {
|
|
3289
|
+
this._responseTimeoutTimer = setTimeout(() => {
|
|
3290
|
+
self._timeoutError('Response timeout of ', self._responseTimeout, 'ETIMEDOUT');
|
|
3291
|
+
}, this._responseTimeout);
|
|
3292
|
+
}
|
|
3293
|
+
};
|
|
3294
|
+
|
|
3295
|
+
},{"./utils":53}],52:[function(require,module,exports){
|
|
3296
|
+
const utils = require('./utils');
|
|
3297
|
+
module.exports = ResponseBase;
|
|
3298
|
+
function ResponseBase() {}
|
|
3299
|
+
ResponseBase.prototype.get = function (field) {
|
|
3300
|
+
return this.header[field.toLowerCase()];
|
|
3301
|
+
};
|
|
3302
|
+
ResponseBase.prototype._setHeaderProperties = function (header) {
|
|
3303
|
+
const ct = header['content-type'] || '';
|
|
3304
|
+
this.type = utils.type(ct);
|
|
3305
|
+
const parameters = utils.params(ct);
|
|
3306
|
+
for (const key in parameters) {
|
|
3307
|
+
if (Object.prototype.hasOwnProperty.call(parameters, key)) this[key] = parameters[key];
|
|
3308
|
+
}
|
|
3309
|
+
this.links = {};
|
|
3310
|
+
try {
|
|
3311
|
+
if (header.link) {
|
|
3312
|
+
this.links = utils.parseLinks(header.link);
|
|
3313
|
+
}
|
|
3314
|
+
} catch (err) {}
|
|
3315
|
+
};
|
|
3316
|
+
ResponseBase.prototype._setStatusProperties = function (status) {
|
|
3317
|
+
const type = Math.trunc(status / 100);
|
|
3318
|
+
this.statusCode = status;
|
|
3319
|
+
this.status = this.statusCode;
|
|
3320
|
+
this.statusType = type;
|
|
3321
|
+
this.info = type === 1;
|
|
3322
|
+
this.ok = type === 2;
|
|
3323
|
+
this.redirect = type === 3;
|
|
3324
|
+
this.clientError = type === 4;
|
|
3325
|
+
this.serverError = type === 5;
|
|
3326
|
+
this.error = type === 4 || type === 5 ? this.toError() : false;
|
|
3327
|
+
this.created = status === 201;
|
|
3328
|
+
this.accepted = status === 202;
|
|
3329
|
+
this.noContent = status === 204;
|
|
3330
|
+
this.badRequest = status === 400;
|
|
3331
|
+
this.unauthorized = status === 401;
|
|
3332
|
+
this.notAcceptable = status === 406;
|
|
3333
|
+
this.forbidden = status === 403;
|
|
3334
|
+
this.notFound = status === 404;
|
|
3335
|
+
this.unprocessableEntity = status === 422;
|
|
3336
|
+
};
|
|
3337
|
+
|
|
3338
|
+
},{"./utils":53}],53:[function(require,module,exports){
|
|
3339
|
+
exports.type = string_ => string_.split(/ *; */).shift();
|
|
3340
|
+
exports.params = value => {
|
|
3341
|
+
const object = {};
|
|
3342
|
+
for (const string_ of value.split(/ *; */)) {
|
|
3343
|
+
const parts = string_.split(/ *= */);
|
|
3344
|
+
const key = parts.shift();
|
|
3345
|
+
const value = parts.shift();
|
|
3346
|
+
if (key && value) object[key] = value;
|
|
3347
|
+
}
|
|
3348
|
+
return object;
|
|
3349
|
+
};
|
|
3350
|
+
exports.parseLinks = value => {
|
|
3351
|
+
const object = {};
|
|
3352
|
+
for (const string_ of value.split(/ *, */)) {
|
|
3353
|
+
const parts = string_.split(/ *; */);
|
|
3354
|
+
const url = parts[0].slice(1, -1);
|
|
3355
|
+
const rel = parts[1].split(/ *= */)[1].slice(1, -1);
|
|
3356
|
+
object[rel] = url;
|
|
3357
|
+
}
|
|
3358
|
+
return object;
|
|
3359
|
+
};
|
|
3360
|
+
exports.cleanHeader = (header, changesOrigin) => {
|
|
3361
|
+
delete header['content-type'];
|
|
3362
|
+
delete header['content-length'];
|
|
3363
|
+
delete header['transfer-encoding'];
|
|
3364
|
+
delete header.host;
|
|
3365
|
+
if (changesOrigin) {
|
|
3366
|
+
delete header.authorization;
|
|
3367
|
+
delete header.cookie;
|
|
3368
|
+
}
|
|
3369
|
+
return header;
|
|
3370
|
+
};
|
|
3371
|
+
exports.normalizeHostname = hostname => {
|
|
3372
|
+
const [, normalized] = hostname.match(/^\[([^\]]+)\]$/) || [];
|
|
3373
|
+
return normalized || hostname;
|
|
3374
|
+
};
|
|
3375
|
+
exports.isObject = object => {
|
|
3376
|
+
return object !== null && typeof object === 'object';
|
|
3377
|
+
};
|
|
3378
|
+
exports.hasOwn = Object.hasOwn || function (object, property) {
|
|
3379
|
+
if (object == null) {
|
|
3380
|
+
throw new TypeError('Cannot convert undefined or null to object');
|
|
3381
|
+
}
|
|
3382
|
+
return Object.prototype.hasOwnProperty.call(new Object(object), property);
|
|
3383
|
+
};
|
|
3384
|
+
exports.mixin = (target, source) => {
|
|
3385
|
+
for (const key in source) {
|
|
3386
|
+
if (exports.hasOwn(source, key)) {
|
|
3387
|
+
target[key] = source[key];
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
};
|
|
3391
|
+
exports.isGzipOrDeflateEncoding = res => {
|
|
3392
|
+
return new RegExp(/^\s*(?:deflate|gzip)\s*$/).test(res.headers['content-encoding']);
|
|
3393
|
+
};
|
|
3394
|
+
exports.isBrotliEncoding = res => {
|
|
3395
|
+
return new RegExp(/^\s*(?:br)\s*$/).test(res.headers['content-encoding']);
|
|
3396
|
+
};
|
|
3397
|
+
|
|
3398
|
+
},{}]},{},[50])(50)
|
|
3399
|
+
});
|