meteor-node-stubs 1.2.17 → 1.2.19
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/node_modules/@meteorjs/browserify-sign/browser/sign.js +1 -1
- package/node_modules/@meteorjs/browserify-sign/browser/verify.js +1 -1
- package/node_modules/@meteorjs/browserify-sign/elliptic/benchmarks/deps/jodid.js +82 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/benchmarks/deps/secp256k1.js +41 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/benchmarks/index.js +153 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/benchmarks/package.json +21 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/dist/.gitkeep +0 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/dist/elliptic.js +8961 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/dist/elliptic.min.js +1 -0
- package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic.js +1 -1
- package/node_modules/@meteorjs/browserify-sign/elliptic/test/api-test.js +20 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/test/curve-test.js +357 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/test/ecdh-test.js +43 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/test/ecdsa-test.js +547 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/test/ed25519-test.js +138 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/test/fixtures/derivation-fixtures.js +3842 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/test/fixtures/sign.input +1024 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/test/index.js +10 -0
- package/node_modules/@meteorjs/browserify-sign/elliptic/test/unittests.html +39 -0
- package/node_modules/@meteorjs/browserify-sign/package.json +22 -5
- package/node_modules/@meteorjs/create-ecdh/browser.js +1 -1
- package/node_modules/@meteorjs/create-ecdh/elliptic/README.md +238 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/benchmarks/deps/jodid.js +82 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/benchmarks/deps/secp256k1.js +41 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/benchmarks/index.js +153 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/benchmarks/package.json +21 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/dist/.gitkeep +0 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/dist/elliptic.js +8961 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/dist/elliptic.min.js +1 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/curve/base.js +381 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/curve/edwards.js +435 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/curve/index.js +8 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/curve/mont.js +178 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/curve/short.js +938 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/curves.js +206 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/ec/index.js +278 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/ec/key.js +121 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/ec/signature.js +176 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/eddsa/index.js +121 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/eddsa/key.js +95 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/eddsa/signature.js +66 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/precomputed/secp256k1.js +780 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic/utils.js +122 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/lib/elliptic.js +13 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/test/api-test.js +20 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/test/curve-test.js +357 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/test/ecdh-test.js +43 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/test/ecdsa-test.js +547 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/test/ed25519-test.js +138 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/test/fixtures/derivation-fixtures.js +3842 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/test/fixtures/sign.input +1024 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/test/index.js +10 -0
- package/node_modules/@meteorjs/create-ecdh/elliptic/test/unittests.html +39 -0
- package/node_modules/@meteorjs/create-ecdh/node_modules/bn.js/lib/bn.js +1 -0
- package/node_modules/@meteorjs/create-ecdh/node_modules/bn.js/package.json +1 -1
- package/node_modules/@meteorjs/create-ecdh/package.json +23 -5
- package/node_modules/asn1.js/node_modules/bn.js/lib/bn.js +6 -5
- package/node_modules/asn1.js/node_modules/bn.js/package.json +1 -1
- package/node_modules/asn1.js/node_modules/bn.js/util/genCombMulTo.js +65 -0
- package/node_modules/asn1.js/node_modules/bn.js/util/genCombMulTo10.js +65 -0
- package/node_modules/available-typed-arrays/.eslintrc +0 -4
- package/node_modules/available-typed-arrays/CHANGELOG.md +21 -0
- package/node_modules/available-typed-arrays/README.md +16 -13
- package/node_modules/available-typed-arrays/index.d.ts +8 -0
- package/node_modules/available-typed-arrays/index.js +4 -14
- package/node_modules/available-typed-arrays/package.json +26 -15
- package/node_modules/available-typed-arrays/tsconfig.json +49 -0
- package/node_modules/bn.js/README.md +11 -5
- package/node_modules/bn.js/lib/bn.js +6 -5
- package/node_modules/bn.js/package.json +1 -1
- package/node_modules/browserify-rsa/CHANGELOG.md +98 -0
- package/node_modules/browserify-rsa/README.md +0 -2
- package/node_modules/browserify-rsa/index.js +31 -28
- package/node_modules/browserify-rsa/package.json +64 -29
- package/node_modules/call-bind/CHANGELOG.md +13 -0
- package/node_modules/call-bind/index.js +6 -17
- package/node_modules/call-bind/package.json +14 -16
- package/node_modules/call-bind/test/index.js +4 -10
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/{has-proto → call-bind-apply-helpers}/LICENSE +1 -1
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/{@meteorjs/browserify-sign/node_modules/bn.js → call-bound}/LICENSE +3 -1
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +94 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/test/index.js +61 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/cipher-base/.eslintrc +24 -1
- package/node_modules/cipher-base/.github/FUNDING.yml +12 -0
- package/node_modules/cipher-base/CHANGELOG.md +66 -0
- package/node_modules/cipher-base/index.js +145 -77
- package/node_modules/cipher-base/package.json +60 -30
- package/node_modules/cipher-base/test/index.js +221 -0
- package/node_modules/des.js/lib/des/cipher.js +1 -0
- package/node_modules/des.js/lib/des/des.js +8 -0
- package/node_modules/des.js/package.json +3 -4
- package/node_modules/des.js/test/cbc-test.js +5 -5
- package/node_modules/des.js/test/des-test.js +9 -9
- package/node_modules/des.js/test/ede-test.js +39 -6
- package/node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js +6 -5
- package/node_modules/diffie-hellman/node_modules/bn.js/package.json +1 -1
- package/node_modules/diffie-hellman/node_modules/bn.js/util/genCombMulTo.js +65 -0
- package/node_modules/diffie-hellman/node_modules/bn.js/util/genCombMulTo10.js +65 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/{@meteorjs/crypto-browserify/node_modules/hash-base → dunder-proto}/LICENSE +6 -6
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +14 -0
- package/node_modules/es-define-property/index.js +1 -3
- package/node_modules/es-define-property/package.json +12 -12
- package/node_modules/es-define-property/test/index.js +1 -0
- package/node_modules/es-define-property/tsconfig.json +2 -42
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/{elliptic/node_modules/bn.js → es-object-atoms}/LICENSE +3 -1
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/for-each/.eslintrc +16 -2
- package/node_modules/{has-proto → for-each}/.github/FUNDING.yml +1 -1
- package/node_modules/for-each/.github/SECURITY.md +3 -0
- package/node_modules/for-each/.nycrc +8 -0
- package/node_modules/for-each/CHANGELOG.md +107 -0
- package/node_modules/for-each/README.md +0 -4
- package/node_modules/for-each/index.d.ts +35 -0
- package/node_modules/for-each/index.js +11 -4
- package/node_modules/for-each/package.json +47 -36
- package/node_modules/for-each/test/test.js +54 -12
- package/node_modules/for-each/tsconfig.json +8 -0
- package/node_modules/get-intrinsic/.eslintrc +4 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +43 -0
- package/node_modules/get-intrinsic/index.js +40 -21
- package/node_modules/get-intrinsic/package.json +24 -20
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +2 -2
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/{has-proto → get-proto}/package.json +33 -26
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/CHANGELOG.md +20 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +2 -3
- package/node_modules/gopd/package.json +16 -10
- package/node_modules/gopd/test/index.js +2 -1
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +16 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +1 -0
- package/node_modules/has-symbols/package.json +19 -9
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +5 -2
- package/node_modules/has-symbols/test/shams/core-js.js +1 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +1 -0
- package/node_modules/has-symbols/test/tests.js +4 -2
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/has-tostringtag/.eslintrc +0 -6
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +22 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +1 -0
- package/node_modules/has-tostringtag/package.json +37 -13
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +1 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +3 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +2 -0
- package/node_modules/has-tostringtag/test/tests.js +2 -1
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hash-base/README.md +15 -15
- package/node_modules/hash-base/index.js +52 -9
- package/node_modules/hash-base/package.json +40 -40
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/index.d.ts +3 -3
- package/node_modules/hasown/index.js +1 -1
- package/node_modules/hasown/package.json +16 -15
- package/node_modules/hasown/tsconfig.json +3 -46
- package/node_modules/is-arguments/.eslintrc +0 -1
- package/node_modules/is-arguments/CHANGELOG.md +22 -0
- package/node_modules/is-arguments/README.md +11 -11
- package/node_modules/is-arguments/index.d.ts +6 -0
- package/node_modules/is-arguments/index.js +19 -8
- package/node_modules/is-arguments/package.json +25 -11
- package/node_modules/is-arguments/test/index.js +4 -1
- package/node_modules/is-arguments/tsconfig.json +9 -0
- package/node_modules/is-generator-function/.eslintrc +1 -1
- package/node_modules/is-generator-function/CHANGELOG.md +21 -0
- package/node_modules/is-generator-function/index.d.ts +3 -0
- package/node_modules/is-generator-function/index.js +16 -7
- package/node_modules/is-generator-function/package.json +30 -11
- package/node_modules/is-generator-function/test/corejs.js +1 -0
- package/node_modules/is-generator-function/test/index.js +4 -7
- package/node_modules/is-generator-function/test/uglified.js +1 -0
- package/node_modules/is-generator-function/tsconfig.json +9 -0
- package/node_modules/is-regex/.editorconfig +23 -0
- package/node_modules/is-regex/.eslintrc +10 -0
- package/node_modules/is-regex/.nycrc +10 -0
- package/node_modules/is-regex/CHANGELOG.md +233 -0
- package/node_modules/is-regex/LICENSE +20 -0
- package/node_modules/is-regex/README.md +52 -0
- package/node_modules/is-regex/index.d.ts +3 -0
- package/node_modules/is-regex/index.js +69 -0
- package/node_modules/is-regex/package.json +104 -0
- package/node_modules/is-regex/test/index.js +121 -0
- package/node_modules/is-regex/tsconfig.json +9 -0
- package/node_modules/is-typed-array/CHANGELOG.md +32 -0
- package/node_modules/is-typed-array/index.d.ts +9 -0
- package/node_modules/is-typed-array/index.js +1 -0
- package/node_modules/is-typed-array/package.json +23 -10
- package/node_modules/is-typed-array/test/index.js +9 -1
- package/node_modules/is-typed-array/tsconfig.json +6 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/miller-rabin/node_modules/bn.js/lib/bn.js +6 -5
- package/node_modules/miller-rabin/node_modules/bn.js/package.json +1 -1
- package/node_modules/miller-rabin/node_modules/bn.js/util/genCombMulTo.js +65 -0
- package/node_modules/miller-rabin/node_modules/bn.js/util/genCombMulTo10.js +65 -0
- package/node_modules/object-inspect/CHANGELOG.md +20 -0
- package/node_modules/object-inspect/index.js +27 -10
- package/node_modules/object-inspect/package.json +9 -8
- package/node_modules/object-inspect/test/quoteStyle.js +9 -0
- package/node_modules/object-inspect/test/values.js +50 -0
- package/node_modules/object-is/.eslintrc +1 -1
- package/node_modules/object-is/.nycrc +0 -4
- package/node_modules/object-is/CHANGELOG.md +25 -0
- package/node_modules/object-is/README.md +20 -20
- package/node_modules/object-is/package.json +23 -14
- package/node_modules/object.assign/CHANGELOG.md +21 -0
- package/node_modules/object.assign/dist/browser.js +495 -135
- package/node_modules/object.assign/implementation.js +6 -6
- package/node_modules/object.assign/package.json +14 -14
- package/node_modules/object.assign/test/tests.js +2 -2
- package/node_modules/possible-typed-array-names/.eslintrc +5 -0
- package/node_modules/possible-typed-array-names/.github/FUNDING.yml +12 -0
- package/node_modules/possible-typed-array-names/CHANGELOG.md +29 -0
- package/node_modules/possible-typed-array-names/LICENSE +21 -0
- package/node_modules/possible-typed-array-names/README.md +50 -0
- package/node_modules/possible-typed-array-names/index.d.ts +16 -0
- package/node_modules/possible-typed-array-names/index.js +17 -0
- package/node_modules/possible-typed-array-names/package.json +84 -0
- package/node_modules/possible-typed-array-names/test/index.js +19 -0
- package/node_modules/possible-typed-array-names/tsconfig.json +9 -0
- package/node_modules/public-encrypt/node_modules/bn.js/lib/bn.js +6 -5
- package/node_modules/public-encrypt/node_modules/bn.js/package.json +1 -1
- package/node_modules/public-encrypt/node_modules/bn.js/util/genCombMulTo.js +65 -0
- package/node_modules/public-encrypt/node_modules/bn.js/util/genCombMulTo10.js +65 -0
- package/node_modules/qs/.eslintrc +1 -0
- package/node_modules/qs/CHANGELOG.md +22 -0
- package/node_modules/qs/README.md +25 -1
- package/node_modules/qs/dist/qs.js +95 -44
- package/node_modules/qs/lib/parse.js +44 -12
- package/node_modules/qs/lib/stringify.js +11 -6
- package/node_modules/qs/lib/utils.js +7 -4
- package/node_modules/qs/package.json +9 -7
- package/node_modules/qs/test/parse.js +133 -27
- package/node_modules/qs/test/stringify.js +19 -11
- package/node_modules/qs/test/utils.js +126 -0
- package/node_modules/safe-regex-test/.eslintrc +9 -0
- package/node_modules/safe-regex-test/.github/FUNDING.yml +12 -0
- package/node_modules/safe-regex-test/.nycrc +13 -0
- package/node_modules/safe-regex-test/CHANGELOG.md +55 -0
- package/node_modules/safe-regex-test/LICENSE +21 -0
- package/node_modules/safe-regex-test/README.md +46 -0
- package/node_modules/safe-regex-test/index.d.ts +3 -0
- package/node_modules/safe-regex-test/index.js +17 -0
- package/node_modules/safe-regex-test/package.json +87 -0
- package/node_modules/safe-regex-test/test/index.js +41 -0
- package/node_modules/safe-regex-test/tsconfig.json +9 -0
- package/node_modules/side-channel/.eslintrc +1 -0
- package/node_modules/side-channel/CHANGELOG.md +15 -0
- package/node_modules/side-channel/README.md +60 -1
- package/node_modules/side-channel/index.d.ts +9 -22
- package/node_modules/side-channel/index.js +20 -106
- package/node_modules/side-channel/package.json +20 -19
- package/node_modules/side-channel/test/index.js +76 -55
- package/node_modules/side-channel/tsconfig.json +2 -43
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/CHANGELOG.md +15 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +113 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/test/index.js +104 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/test/index.js +114 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/which-typed-array/.eslintrc +1 -0
- package/node_modules/which-typed-array/CHANGELOG.md +57 -0
- package/node_modules/which-typed-array/index.d.ts +62 -0
- package/node_modules/which-typed-array/index.js +50 -25
- package/node_modules/which-typed-array/package.json +28 -13
- package/node_modules/which-typed-array/test/index.js +7 -1
- package/node_modules/which-typed-array/tsconfig.json +9 -0
- package/package.json +2 -3
- package/node_modules/@meteorjs/browserify-sign/node_modules/bn.js/README.md +0 -214
- package/node_modules/@meteorjs/browserify-sign/node_modules/bn.js/lib/bn.js +0 -3547
- package/node_modules/@meteorjs/browserify-sign/node_modules/bn.js/package.json +0 -39
- package/node_modules/@meteorjs/browserify-sign/node_modules/hash-base/LICENSE +0 -21
- package/node_modules/@meteorjs/browserify-sign/node_modules/hash-base/README.md +0 -48
- package/node_modules/@meteorjs/browserify-sign/node_modules/hash-base/index.js +0 -138
- package/node_modules/@meteorjs/browserify-sign/node_modules/hash-base/package.json +0 -42
- package/node_modules/@meteorjs/crypto-browserify/node_modules/hash-base/README.md +0 -48
- package/node_modules/@meteorjs/crypto-browserify/node_modules/hash-base/index.js +0 -95
- package/node_modules/@meteorjs/crypto-browserify/node_modules/hash-base/package.json +0 -41
- package/node_modules/available-typed-arrays/.eslintignore +0 -1
- package/node_modules/bn.js/CHANGELOG.md +0 -51
- package/node_modules/cipher-base/.npmignore +0 -1
- package/node_modules/cipher-base/.travis.yml +0 -6
- package/node_modules/cipher-base/test.js +0 -111
- package/node_modules/elliptic/node_modules/bn.js/README.md +0 -200
- package/node_modules/elliptic/node_modules/bn.js/lib/bn.js +0 -3446
- package/node_modules/elliptic/node_modules/bn.js/package.json +0 -36
- package/node_modules/elliptic/package.json +0 -56
- package/node_modules/for-each/.travis.yml +0 -45
- package/node_modules/for-each/test/.eslintrc +0 -8
- package/node_modules/has-proto/CHANGELOG.md +0 -23
- package/node_modules/has-proto/README.md +0 -38
- package/node_modules/has-proto/index.js +0 -11
- package/node_modules/has-proto/test/index.js +0 -19
- package/node_modules/hasown/index.d.ts.map +0 -1
- package/node_modules/is-arguments/.eslintignore +0 -1
- package/node_modules/is-generator-function/.eslintignore +0 -1
- package/node_modules/object-is/.eslintignore +0 -1
- package/node_modules/object.assign/test.html +0 -18458
- package/node_modules/parse-asn1/node_modules/hash-base/LICENSE +0 -21
- package/node_modules/parse-asn1/node_modules/hash-base/README.md +0 -48
- package/node_modules/parse-asn1/node_modules/hash-base/index.js +0 -95
- package/node_modules/parse-asn1/node_modules/hash-base/package.json +0 -41
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/README.md +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/curve/base.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/curve/edwards.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/curve/index.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/curve/mont.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/curve/short.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/curves.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/ec/index.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/ec/key.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/ec/signature.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/eddsa/index.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/eddsa/key.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/eddsa/signature.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/precomputed/secp256k1.js +0 -0
- /package/node_modules/{elliptic → @meteorjs/browserify-sign/elliptic}/lib/elliptic/utils.js +0 -0
- /package/node_modules/{has-proto → dunder-proto}/.eslintrc +0 -0
|
@@ -10,31 +10,31 @@ module.exports = assign.shim();
|
|
|
10
10
|
|
|
11
11
|
delete assign.shim;
|
|
12
12
|
|
|
13
|
-
},{"./":3,"object-keys":
|
|
13
|
+
},{"./":3,"object-keys":39}],2:[function(require,module,exports){
|
|
14
14
|
'use strict';
|
|
15
15
|
|
|
16
16
|
// modified from https://github.com/es-shims/es6-shim
|
|
17
17
|
var objectKeys = require('object-keys');
|
|
18
18
|
var hasSymbols = require('has-symbols/shams')();
|
|
19
|
-
var callBound = require('call-
|
|
20
|
-
var
|
|
19
|
+
var callBound = require('call-bound');
|
|
20
|
+
var $Object = require('es-object-atoms');
|
|
21
21
|
var $push = callBound('Array.prototype.push');
|
|
22
22
|
var $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable');
|
|
23
|
-
var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;
|
|
23
|
+
var originalGetSymbols = hasSymbols ? $Object.getOwnPropertySymbols : null;
|
|
24
24
|
|
|
25
25
|
// eslint-disable-next-line no-unused-vars
|
|
26
26
|
module.exports = function assign(target, source1) {
|
|
27
27
|
if (target == null) { throw new TypeError('target must be an object'); }
|
|
28
|
-
var to =
|
|
28
|
+
var to = $Object(target); // step 1
|
|
29
29
|
if (arguments.length === 1) {
|
|
30
30
|
return to; // step 2
|
|
31
31
|
}
|
|
32
32
|
for (var s = 1; s < arguments.length; ++s) {
|
|
33
|
-
var from =
|
|
33
|
+
var from = $Object(arguments[s]); // step 3.a.i
|
|
34
34
|
|
|
35
35
|
// step 3.a.ii:
|
|
36
36
|
var keys = objectKeys(from);
|
|
37
|
-
var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);
|
|
37
|
+
var getSymbols = hasSymbols && ($Object.getOwnPropertySymbols || originalGetSymbols);
|
|
38
38
|
if (getSymbols) {
|
|
39
39
|
var syms = getSymbols(from);
|
|
40
40
|
for (var j = 0; j < syms.length; ++j) {
|
|
@@ -58,7 +58,7 @@ module.exports = function assign(target, source1) {
|
|
|
58
58
|
return to; // step 4
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
},{"call-
|
|
61
|
+
},{"call-bound":11,"es-object-atoms":23,"has-symbols/shams":31,"object-keys":39}],3:[function(require,module,exports){
|
|
62
62
|
'use strict';
|
|
63
63
|
|
|
64
64
|
var defineProperties = require('define-properties');
|
|
@@ -82,64 +82,83 @@ defineProperties(bound, {
|
|
|
82
82
|
|
|
83
83
|
module.exports = bound;
|
|
84
84
|
|
|
85
|
-
},{"./implementation":2,"./polyfill":
|
|
85
|
+
},{"./implementation":2,"./polyfill":42,"./shim":43,"call-bind":10,"define-properties":13}],4:[function(require,module,exports){
|
|
86
86
|
'use strict';
|
|
87
87
|
|
|
88
|
-
var
|
|
88
|
+
var bind = require('function-bind');
|
|
89
89
|
|
|
90
|
-
var
|
|
90
|
+
var $apply = require('./functionApply');
|
|
91
|
+
var $call = require('./functionCall');
|
|
92
|
+
var $reflectApply = require('./reflectApply');
|
|
91
93
|
|
|
92
|
-
|
|
94
|
+
/** @type {import('./actualApply')} */
|
|
95
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
93
96
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
},{"./functionApply":6,"./functionCall":7,"./reflectApply":9,"function-bind":25}],5:[function(require,module,exports){
|
|
98
|
+
'use strict';
|
|
99
|
+
|
|
100
|
+
var bind = require('function-bind');
|
|
101
|
+
var $apply = require('./functionApply');
|
|
102
|
+
var actualApply = require('./actualApply');
|
|
103
|
+
|
|
104
|
+
/** @type {import('./applyBind')} */
|
|
105
|
+
module.exports = function applyBind() {
|
|
106
|
+
return actualApply(bind, $apply, arguments);
|
|
100
107
|
};
|
|
101
108
|
|
|
102
|
-
},{"./":
|
|
109
|
+
},{"./actualApply":4,"./functionApply":6,"function-bind":25}],6:[function(require,module,exports){
|
|
103
110
|
'use strict';
|
|
104
111
|
|
|
105
|
-
|
|
106
|
-
|
|
112
|
+
/** @type {import('./functionApply')} */
|
|
113
|
+
module.exports = Function.prototype.apply;
|
|
114
|
+
|
|
115
|
+
},{}],7:[function(require,module,exports){
|
|
116
|
+
'use strict';
|
|
107
117
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
118
|
+
/** @type {import('./functionCall')} */
|
|
119
|
+
module.exports = Function.prototype.call;
|
|
111
120
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
var $max = GetIntrinsic('%Math.max%');
|
|
121
|
+
},{}],8:[function(require,module,exports){
|
|
122
|
+
'use strict';
|
|
115
123
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
119
|
-
} catch (e) {
|
|
120
|
-
// IE 8 has a broken defineProperty
|
|
121
|
-
$defineProperty = null;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
+
var bind = require('function-bind');
|
|
125
|
+
var $TypeError = require('es-errors/type');
|
|
124
126
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
func,
|
|
133
|
-
'length',
|
|
134
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
135
|
-
);
|
|
136
|
-
}
|
|
127
|
+
var $call = require('./functionCall');
|
|
128
|
+
var $actualApply = require('./actualApply');
|
|
129
|
+
|
|
130
|
+
/** @type {import('.')} */
|
|
131
|
+
module.exports = function callBindBasic(args) {
|
|
132
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
133
|
+
throw new $TypeError('a function is required');
|
|
137
134
|
}
|
|
138
|
-
return
|
|
135
|
+
return $actualApply(bind, $call, args);
|
|
139
136
|
};
|
|
140
137
|
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
},{"./actualApply":4,"./functionCall":7,"es-errors/type":21,"function-bind":25}],9:[function(require,module,exports){
|
|
139
|
+
'use strict';
|
|
140
|
+
|
|
141
|
+
/** @type {import('./reflectApply')} */
|
|
142
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
143
|
+
|
|
144
|
+
},{}],10:[function(require,module,exports){
|
|
145
|
+
'use strict';
|
|
146
|
+
|
|
147
|
+
var setFunctionLength = require('set-function-length');
|
|
148
|
+
|
|
149
|
+
var $defineProperty = require('es-define-property');
|
|
150
|
+
|
|
151
|
+
var callBindBasic = require('call-bind-apply-helpers');
|
|
152
|
+
var applyBind = require('call-bind-apply-helpers/applyBind');
|
|
153
|
+
|
|
154
|
+
module.exports = function callBind(originalFunction) {
|
|
155
|
+
var func = callBindBasic(arguments);
|
|
156
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
157
|
+
return setFunctionLength(
|
|
158
|
+
func,
|
|
159
|
+
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
160
|
+
true
|
|
161
|
+
);
|
|
143
162
|
};
|
|
144
163
|
|
|
145
164
|
if ($defineProperty) {
|
|
@@ -148,7 +167,85 @@ if ($defineProperty) {
|
|
|
148
167
|
module.exports.apply = applyBind;
|
|
149
168
|
}
|
|
150
169
|
|
|
151
|
-
},{"
|
|
170
|
+
},{"call-bind-apply-helpers":8,"call-bind-apply-helpers/applyBind":5,"es-define-property":15,"set-function-length":41}],11:[function(require,module,exports){
|
|
171
|
+
'use strict';
|
|
172
|
+
|
|
173
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
174
|
+
|
|
175
|
+
var callBindBasic = require('call-bind-apply-helpers');
|
|
176
|
+
|
|
177
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
178
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
179
|
+
|
|
180
|
+
/** @type {import('.')} */
|
|
181
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
182
|
+
// eslint-disable-next-line no-extra-parens
|
|
183
|
+
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));
|
|
184
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
185
|
+
return callBindBasic([intrinsic]);
|
|
186
|
+
}
|
|
187
|
+
return intrinsic;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
},{"call-bind-apply-helpers":8,"get-intrinsic":26}],12:[function(require,module,exports){
|
|
191
|
+
'use strict';
|
|
192
|
+
|
|
193
|
+
var $defineProperty = require('es-define-property');
|
|
194
|
+
|
|
195
|
+
var $SyntaxError = require('es-errors/syntax');
|
|
196
|
+
var $TypeError = require('es-errors/type');
|
|
197
|
+
|
|
198
|
+
var gopd = require('gopd');
|
|
199
|
+
|
|
200
|
+
/** @type {import('.')} */
|
|
201
|
+
module.exports = function defineDataProperty(
|
|
202
|
+
obj,
|
|
203
|
+
property,
|
|
204
|
+
value
|
|
205
|
+
) {
|
|
206
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
207
|
+
throw new $TypeError('`obj` must be an object or a function`');
|
|
208
|
+
}
|
|
209
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
210
|
+
throw new $TypeError('`property` must be a string or a symbol`');
|
|
211
|
+
}
|
|
212
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
213
|
+
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
214
|
+
}
|
|
215
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
216
|
+
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
217
|
+
}
|
|
218
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
219
|
+
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
220
|
+
}
|
|
221
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
222
|
+
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
226
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
227
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
228
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
229
|
+
|
|
230
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
231
|
+
var desc = !!gopd && gopd(obj, property);
|
|
232
|
+
|
|
233
|
+
if ($defineProperty) {
|
|
234
|
+
$defineProperty(obj, property, {
|
|
235
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
236
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
237
|
+
value: value,
|
|
238
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
239
|
+
});
|
|
240
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
241
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
242
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
243
|
+
} else {
|
|
244
|
+
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
},{"es-define-property":15,"es-errors/syntax":20,"es-errors/type":21,"gopd":28}],13:[function(require,module,exports){
|
|
152
249
|
'use strict';
|
|
153
250
|
|
|
154
251
|
var keys = require('object-keys');
|
|
@@ -156,29 +253,29 @@ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbo
|
|
|
156
253
|
|
|
157
254
|
var toStr = Object.prototype.toString;
|
|
158
255
|
var concat = Array.prototype.concat;
|
|
159
|
-
var
|
|
256
|
+
var defineDataProperty = require('define-data-property');
|
|
160
257
|
|
|
161
258
|
var isFunction = function (fn) {
|
|
162
259
|
return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
|
|
163
260
|
};
|
|
164
261
|
|
|
165
|
-
var
|
|
166
|
-
|
|
167
|
-
var supportsDescriptors = origDefineProperty && hasPropertyDescriptors;
|
|
262
|
+
var supportsDescriptors = require('has-property-descriptors')();
|
|
168
263
|
|
|
169
264
|
var defineProperty = function (object, name, value, predicate) {
|
|
170
|
-
if (name in object
|
|
171
|
-
|
|
265
|
+
if (name in object) {
|
|
266
|
+
if (predicate === true) {
|
|
267
|
+
if (object[name] === value) {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
} else if (!isFunction(predicate) || !predicate()) {
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
172
273
|
}
|
|
274
|
+
|
|
173
275
|
if (supportsDescriptors) {
|
|
174
|
-
|
|
175
|
-
configurable: true,
|
|
176
|
-
enumerable: false,
|
|
177
|
-
value: value,
|
|
178
|
-
writable: true
|
|
179
|
-
});
|
|
276
|
+
defineDataProperty(object, name, value, true);
|
|
180
277
|
} else {
|
|
181
|
-
object
|
|
278
|
+
defineDataProperty(object, name, value);
|
|
182
279
|
}
|
|
183
280
|
};
|
|
184
281
|
|
|
@@ -197,49 +294,177 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
|
|
|
197
294
|
|
|
198
295
|
module.exports = defineProperties;
|
|
199
296
|
|
|
200
|
-
},{"has-property-descriptors":
|
|
297
|
+
},{"define-data-property":12,"has-property-descriptors":29,"object-keys":39}],14:[function(require,module,exports){
|
|
298
|
+
'use strict';
|
|
299
|
+
|
|
300
|
+
var callBind = require('call-bind-apply-helpers');
|
|
301
|
+
var gOPD = require('gopd');
|
|
302
|
+
|
|
303
|
+
var hasProtoAccessor;
|
|
304
|
+
try {
|
|
305
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
306
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
307
|
+
} catch (e) {
|
|
308
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
309
|
+
throw e;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// eslint-disable-next-line no-extra-parens
|
|
314
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
315
|
+
|
|
316
|
+
var $Object = Object;
|
|
317
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
318
|
+
|
|
319
|
+
/** @type {import('./get')} */
|
|
320
|
+
module.exports = desc && typeof desc.get === 'function'
|
|
321
|
+
? callBind([desc.get])
|
|
322
|
+
: typeof $getPrototypeOf === 'function'
|
|
323
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
324
|
+
// eslint-disable-next-line eqeqeq
|
|
325
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
326
|
+
}
|
|
327
|
+
: false;
|
|
328
|
+
|
|
329
|
+
},{"call-bind-apply-helpers":8,"gopd":28}],15:[function(require,module,exports){
|
|
330
|
+
'use strict';
|
|
331
|
+
|
|
332
|
+
/** @type {import('.')} */
|
|
333
|
+
var $defineProperty = Object.defineProperty || false;
|
|
334
|
+
if ($defineProperty) {
|
|
335
|
+
try {
|
|
336
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
337
|
+
} catch (e) {
|
|
338
|
+
// IE 8 has a broken defineProperty
|
|
339
|
+
$defineProperty = false;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
module.exports = $defineProperty;
|
|
344
|
+
|
|
345
|
+
},{}],16:[function(require,module,exports){
|
|
346
|
+
'use strict';
|
|
347
|
+
|
|
348
|
+
/** @type {import('./eval')} */
|
|
349
|
+
module.exports = EvalError;
|
|
350
|
+
|
|
351
|
+
},{}],17:[function(require,module,exports){
|
|
352
|
+
'use strict';
|
|
353
|
+
|
|
354
|
+
/** @type {import('.')} */
|
|
355
|
+
module.exports = Error;
|
|
356
|
+
|
|
357
|
+
},{}],18:[function(require,module,exports){
|
|
358
|
+
'use strict';
|
|
359
|
+
|
|
360
|
+
/** @type {import('./range')} */
|
|
361
|
+
module.exports = RangeError;
|
|
362
|
+
|
|
363
|
+
},{}],19:[function(require,module,exports){
|
|
364
|
+
'use strict';
|
|
365
|
+
|
|
366
|
+
/** @type {import('./ref')} */
|
|
367
|
+
module.exports = ReferenceError;
|
|
368
|
+
|
|
369
|
+
},{}],20:[function(require,module,exports){
|
|
370
|
+
'use strict';
|
|
371
|
+
|
|
372
|
+
/** @type {import('./syntax')} */
|
|
373
|
+
module.exports = SyntaxError;
|
|
374
|
+
|
|
375
|
+
},{}],21:[function(require,module,exports){
|
|
376
|
+
'use strict';
|
|
377
|
+
|
|
378
|
+
/** @type {import('./type')} */
|
|
379
|
+
module.exports = TypeError;
|
|
380
|
+
|
|
381
|
+
},{}],22:[function(require,module,exports){
|
|
382
|
+
'use strict';
|
|
383
|
+
|
|
384
|
+
/** @type {import('./uri')} */
|
|
385
|
+
module.exports = URIError;
|
|
386
|
+
|
|
387
|
+
},{}],23:[function(require,module,exports){
|
|
388
|
+
'use strict';
|
|
389
|
+
|
|
390
|
+
/** @type {import('.')} */
|
|
391
|
+
module.exports = Object;
|
|
392
|
+
|
|
393
|
+
},{}],24:[function(require,module,exports){
|
|
201
394
|
'use strict';
|
|
202
395
|
|
|
203
396
|
/* eslint no-invalid-this: 1 */
|
|
204
397
|
|
|
205
398
|
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
206
|
-
var slice = Array.prototype.slice;
|
|
207
399
|
var toStr = Object.prototype.toString;
|
|
400
|
+
var max = Math.max;
|
|
208
401
|
var funcType = '[object Function]';
|
|
209
402
|
|
|
403
|
+
var concatty = function concatty(a, b) {
|
|
404
|
+
var arr = [];
|
|
405
|
+
|
|
406
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
407
|
+
arr[i] = a[i];
|
|
408
|
+
}
|
|
409
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
410
|
+
arr[j + a.length] = b[j];
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return arr;
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
var slicy = function slicy(arrLike, offset) {
|
|
417
|
+
var arr = [];
|
|
418
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
419
|
+
arr[j] = arrLike[i];
|
|
420
|
+
}
|
|
421
|
+
return arr;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
var joiny = function (arr, joiner) {
|
|
425
|
+
var str = '';
|
|
426
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
427
|
+
str += arr[i];
|
|
428
|
+
if (i + 1 < arr.length) {
|
|
429
|
+
str += joiner;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return str;
|
|
433
|
+
};
|
|
434
|
+
|
|
210
435
|
module.exports = function bind(that) {
|
|
211
436
|
var target = this;
|
|
212
|
-
if (typeof target !== 'function' || toStr.
|
|
437
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
213
438
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
214
439
|
}
|
|
215
|
-
var args =
|
|
440
|
+
var args = slicy(arguments, 1);
|
|
216
441
|
|
|
217
442
|
var bound;
|
|
218
443
|
var binder = function () {
|
|
219
444
|
if (this instanceof bound) {
|
|
220
445
|
var result = target.apply(
|
|
221
446
|
this,
|
|
222
|
-
args
|
|
447
|
+
concatty(args, arguments)
|
|
223
448
|
);
|
|
224
449
|
if (Object(result) === result) {
|
|
225
450
|
return result;
|
|
226
451
|
}
|
|
227
452
|
return this;
|
|
228
|
-
} else {
|
|
229
|
-
return target.apply(
|
|
230
|
-
that,
|
|
231
|
-
args.concat(slice.call(arguments))
|
|
232
|
-
);
|
|
233
453
|
}
|
|
454
|
+
return target.apply(
|
|
455
|
+
that,
|
|
456
|
+
concatty(args, arguments)
|
|
457
|
+
);
|
|
458
|
+
|
|
234
459
|
};
|
|
235
460
|
|
|
236
|
-
var boundLength =
|
|
461
|
+
var boundLength = max(0, target.length - args.length);
|
|
237
462
|
var boundArgs = [];
|
|
238
463
|
for (var i = 0; i < boundLength; i++) {
|
|
239
|
-
boundArgs
|
|
464
|
+
boundArgs[i] = '$' + i;
|
|
240
465
|
}
|
|
241
466
|
|
|
242
|
-
bound = Function('binder', 'return function (' + boundArgs
|
|
467
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
243
468
|
|
|
244
469
|
if (target.prototype) {
|
|
245
470
|
var Empty = function Empty() {};
|
|
@@ -251,21 +476,35 @@ module.exports = function bind(that) {
|
|
|
251
476
|
return bound;
|
|
252
477
|
};
|
|
253
478
|
|
|
254
|
-
},{}],
|
|
479
|
+
},{}],25:[function(require,module,exports){
|
|
255
480
|
'use strict';
|
|
256
481
|
|
|
257
482
|
var implementation = require('./implementation');
|
|
258
483
|
|
|
259
484
|
module.exports = Function.prototype.bind || implementation;
|
|
260
485
|
|
|
261
|
-
},{"./implementation":
|
|
486
|
+
},{"./implementation":24}],26:[function(require,module,exports){
|
|
262
487
|
'use strict';
|
|
263
488
|
|
|
264
489
|
var undefined;
|
|
265
490
|
|
|
266
|
-
var $
|
|
491
|
+
var $Object = require('es-object-atoms');
|
|
492
|
+
|
|
493
|
+
var $Error = require('es-errors');
|
|
494
|
+
var $EvalError = require('es-errors/eval');
|
|
495
|
+
var $RangeError = require('es-errors/range');
|
|
496
|
+
var $ReferenceError = require('es-errors/ref');
|
|
497
|
+
var $SyntaxError = require('es-errors/syntax');
|
|
498
|
+
var $TypeError = require('es-errors/type');
|
|
499
|
+
var $URIError = require('es-errors/uri');
|
|
500
|
+
|
|
501
|
+
var abs = require('math-intrinsics/abs');
|
|
502
|
+
var floor = require('math-intrinsics/floor');
|
|
503
|
+
var max = require('math-intrinsics/max');
|
|
504
|
+
var min = require('math-intrinsics/min');
|
|
505
|
+
var pow = require('math-intrinsics/pow');
|
|
506
|
+
|
|
267
507
|
var $Function = Function;
|
|
268
|
-
var $TypeError = TypeError;
|
|
269
508
|
|
|
270
509
|
// eslint-disable-next-line consistent-return
|
|
271
510
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -274,14 +513,8 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
274
513
|
} catch (e) {}
|
|
275
514
|
};
|
|
276
515
|
|
|
277
|
-
var $gOPD =
|
|
278
|
-
|
|
279
|
-
try {
|
|
280
|
-
$gOPD({}, '');
|
|
281
|
-
} catch (e) {
|
|
282
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
283
|
-
}
|
|
284
|
-
}
|
|
516
|
+
var $gOPD = require('gopd');
|
|
517
|
+
var $defineProperty = require('es-define-property');
|
|
285
518
|
|
|
286
519
|
var throwTypeError = function () {
|
|
287
520
|
throw new $TypeError();
|
|
@@ -304,18 +537,25 @@ var ThrowTypeError = $gOPD
|
|
|
304
537
|
: throwTypeError;
|
|
305
538
|
|
|
306
539
|
var hasSymbols = require('has-symbols')();
|
|
540
|
+
var getDunderProto = require('dunder-proto/get');
|
|
307
541
|
|
|
308
|
-
var getProto =
|
|
542
|
+
var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf)
|
|
543
|
+
|| $Object.getPrototypeOf
|
|
544
|
+
|| getDunderProto;
|
|
545
|
+
|
|
546
|
+
var $apply = require('call-bind-apply-helpers/functionApply');
|
|
547
|
+
var $call = require('call-bind-apply-helpers/functionCall');
|
|
309
548
|
|
|
310
549
|
var needsEval = {};
|
|
311
550
|
|
|
312
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
551
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
313
552
|
|
|
314
553
|
var INTRINSICS = {
|
|
554
|
+
__proto__: null,
|
|
315
555
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
316
556
|
'%Array%': Array,
|
|
317
557
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
318
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
558
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
319
559
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
320
560
|
'%AsyncFunction%': needsEval,
|
|
321
561
|
'%AsyncGenerator%': needsEval,
|
|
@@ -323,6 +563,8 @@ var INTRINSICS = {
|
|
|
323
563
|
'%AsyncIteratorPrototype%': needsEval,
|
|
324
564
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
325
565
|
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
566
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
567
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
326
568
|
'%Boolean%': Boolean,
|
|
327
569
|
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
328
570
|
'%Date%': Date,
|
|
@@ -330,9 +572,9 @@ var INTRINSICS = {
|
|
|
330
572
|
'%decodeURIComponent%': decodeURIComponent,
|
|
331
573
|
'%encodeURI%': encodeURI,
|
|
332
574
|
'%encodeURIComponent%': encodeURIComponent,
|
|
333
|
-
'%Error%': Error,
|
|
575
|
+
'%Error%': $Error,
|
|
334
576
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
335
|
-
'%EvalError%': EvalError,
|
|
577
|
+
'%EvalError%': $EvalError,
|
|
336
578
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
337
579
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
338
580
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -343,26 +585,27 @@ var INTRINSICS = {
|
|
|
343
585
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
344
586
|
'%isFinite%': isFinite,
|
|
345
587
|
'%isNaN%': isNaN,
|
|
346
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
588
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
347
589
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
348
590
|
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
349
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
591
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
350
592
|
'%Math%': Math,
|
|
351
593
|
'%Number%': Number,
|
|
352
|
-
'%Object%': Object,
|
|
594
|
+
'%Object%': $Object,
|
|
595
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
353
596
|
'%parseFloat%': parseFloat,
|
|
354
597
|
'%parseInt%': parseInt,
|
|
355
598
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
356
599
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
357
|
-
'%RangeError%': RangeError,
|
|
358
|
-
'%ReferenceError%': ReferenceError,
|
|
600
|
+
'%RangeError%': $RangeError,
|
|
601
|
+
'%ReferenceError%': $ReferenceError,
|
|
359
602
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
360
603
|
'%RegExp%': RegExp,
|
|
361
604
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
362
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
605
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
363
606
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
364
607
|
'%String%': String,
|
|
365
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
608
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
366
609
|
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
367
610
|
'%SyntaxError%': $SyntaxError,
|
|
368
611
|
'%ThrowTypeError%': ThrowTypeError,
|
|
@@ -372,12 +615,31 @@ var INTRINSICS = {
|
|
|
372
615
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
373
616
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
374
617
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
375
|
-
'%URIError%': URIError,
|
|
618
|
+
'%URIError%': $URIError,
|
|
376
619
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
377
620
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
378
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
621
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
622
|
+
|
|
623
|
+
'%Function.prototype.call%': $call,
|
|
624
|
+
'%Function.prototype.apply%': $apply,
|
|
625
|
+
'%Object.defineProperty%': $defineProperty,
|
|
626
|
+
'%Math.abs%': abs,
|
|
627
|
+
'%Math.floor%': floor,
|
|
628
|
+
'%Math.max%': max,
|
|
629
|
+
'%Math.min%': min,
|
|
630
|
+
'%Math.pow%': pow
|
|
379
631
|
};
|
|
380
632
|
|
|
633
|
+
if (getProto) {
|
|
634
|
+
try {
|
|
635
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
636
|
+
} catch (e) {
|
|
637
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
638
|
+
var errorProto = getProto(getProto(e));
|
|
639
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
381
643
|
var doEval = function doEval(name) {
|
|
382
644
|
var value;
|
|
383
645
|
if (name === '%AsyncFunction%') {
|
|
@@ -393,7 +655,7 @@ var doEval = function doEval(name) {
|
|
|
393
655
|
}
|
|
394
656
|
} else if (name === '%AsyncIteratorPrototype%') {
|
|
395
657
|
var gen = doEval('%AsyncGenerator%');
|
|
396
|
-
if (gen) {
|
|
658
|
+
if (gen && getProto) {
|
|
397
659
|
value = getProto(gen.prototype);
|
|
398
660
|
}
|
|
399
661
|
}
|
|
@@ -404,6 +666,7 @@ var doEval = function doEval(name) {
|
|
|
404
666
|
};
|
|
405
667
|
|
|
406
668
|
var LEGACY_ALIASES = {
|
|
669
|
+
__proto__: null,
|
|
407
670
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
408
671
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
409
672
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
@@ -458,11 +721,12 @@ var LEGACY_ALIASES = {
|
|
|
458
721
|
};
|
|
459
722
|
|
|
460
723
|
var bind = require('function-bind');
|
|
461
|
-
var hasOwn = require('
|
|
462
|
-
var $concat = bind.call(
|
|
463
|
-
var $spliceApply = bind.call(
|
|
464
|
-
var $replace = bind.call(
|
|
465
|
-
var $strSlice = bind.call(
|
|
724
|
+
var hasOwn = require('hasown');
|
|
725
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
726
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
727
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
728
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
729
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
466
730
|
|
|
467
731
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
468
732
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -518,6 +782,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
518
782
|
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
519
783
|
}
|
|
520
784
|
|
|
785
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
786
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
787
|
+
}
|
|
521
788
|
var parts = stringToPath(name);
|
|
522
789
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
523
790
|
|
|
@@ -590,29 +857,41 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
590
857
|
return value;
|
|
591
858
|
};
|
|
592
859
|
|
|
593
|
-
},{"function-bind":
|
|
860
|
+
},{"call-bind-apply-helpers/functionApply":6,"call-bind-apply-helpers/functionCall":7,"dunder-proto/get":14,"es-define-property":15,"es-errors":17,"es-errors/eval":16,"es-errors/range":18,"es-errors/ref":19,"es-errors/syntax":20,"es-errors/type":21,"es-errors/uri":22,"es-object-atoms":23,"function-bind":25,"gopd":28,"has-symbols":30,"hasown":32,"math-intrinsics/abs":33,"math-intrinsics/floor":34,"math-intrinsics/max":35,"math-intrinsics/min":36,"math-intrinsics/pow":37}],27:[function(require,module,exports){
|
|
594
861
|
'use strict';
|
|
595
862
|
|
|
596
|
-
|
|
863
|
+
/** @type {import('./gOPD')} */
|
|
864
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
865
|
+
|
|
866
|
+
},{}],28:[function(require,module,exports){
|
|
867
|
+
'use strict';
|
|
597
868
|
|
|
598
|
-
|
|
869
|
+
/** @type {import('.')} */
|
|
870
|
+
var $gOPD = require('./gOPD');
|
|
599
871
|
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
// IE 8 has a broken defineProperty
|
|
607
|
-
return false;
|
|
608
|
-
}
|
|
872
|
+
if ($gOPD) {
|
|
873
|
+
try {
|
|
874
|
+
$gOPD([], 'length');
|
|
875
|
+
} catch (e) {
|
|
876
|
+
// IE 8 has a broken gOPD
|
|
877
|
+
$gOPD = null;
|
|
609
878
|
}
|
|
610
|
-
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
module.exports = $gOPD;
|
|
882
|
+
|
|
883
|
+
},{"./gOPD":27}],29:[function(require,module,exports){
|
|
884
|
+
'use strict';
|
|
885
|
+
|
|
886
|
+
var $defineProperty = require('es-define-property');
|
|
887
|
+
|
|
888
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
889
|
+
return !!$defineProperty;
|
|
611
890
|
};
|
|
612
891
|
|
|
613
892
|
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
614
893
|
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
615
|
-
if (
|
|
894
|
+
if (!$defineProperty) {
|
|
616
895
|
return null;
|
|
617
896
|
}
|
|
618
897
|
try {
|
|
@@ -625,12 +904,13 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
625
904
|
|
|
626
905
|
module.exports = hasPropertyDescriptors;
|
|
627
906
|
|
|
628
|
-
},{"
|
|
907
|
+
},{"es-define-property":15}],30:[function(require,module,exports){
|
|
629
908
|
'use strict';
|
|
630
909
|
|
|
631
910
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
632
911
|
var hasSymbolSham = require('./shams');
|
|
633
912
|
|
|
913
|
+
/** @type {import('.')} */
|
|
634
914
|
module.exports = function hasNativeSymbols() {
|
|
635
915
|
if (typeof origSymbol !== 'function') { return false; }
|
|
636
916
|
if (typeof Symbol !== 'function') { return false; }
|
|
@@ -640,14 +920,16 @@ module.exports = function hasNativeSymbols() {
|
|
|
640
920
|
return hasSymbolSham();
|
|
641
921
|
};
|
|
642
922
|
|
|
643
|
-
},{"./shams":
|
|
923
|
+
},{"./shams":31}],31:[function(require,module,exports){
|
|
644
924
|
'use strict';
|
|
645
925
|
|
|
926
|
+
/** @type {import('./shams')} */
|
|
646
927
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
647
928
|
module.exports = function hasSymbols() {
|
|
648
929
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
649
930
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
650
931
|
|
|
932
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
651
933
|
var obj = {};
|
|
652
934
|
var sym = Symbol('test');
|
|
653
935
|
var symObj = Object(sym);
|
|
@@ -666,7 +948,7 @@ module.exports = function hasSymbols() {
|
|
|
666
948
|
|
|
667
949
|
var symVal = 42;
|
|
668
950
|
obj[sym] = symVal;
|
|
669
|
-
for (
|
|
951
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
670
952
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
671
953
|
|
|
672
954
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -677,21 +959,55 @@ module.exports = function hasSymbols() {
|
|
|
677
959
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
678
960
|
|
|
679
961
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
680
|
-
|
|
962
|
+
// eslint-disable-next-line no-extra-parens
|
|
963
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
681
964
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
682
965
|
}
|
|
683
966
|
|
|
684
967
|
return true;
|
|
685
968
|
};
|
|
686
969
|
|
|
687
|
-
},{}],
|
|
970
|
+
},{}],32:[function(require,module,exports){
|
|
688
971
|
'use strict';
|
|
689
972
|
|
|
973
|
+
var call = Function.prototype.call;
|
|
974
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
690
975
|
var bind = require('function-bind');
|
|
691
976
|
|
|
692
|
-
|
|
977
|
+
/** @type {import('.')} */
|
|
978
|
+
module.exports = bind.call(call, $hasOwn);
|
|
979
|
+
|
|
980
|
+
},{"function-bind":25}],33:[function(require,module,exports){
|
|
981
|
+
'use strict';
|
|
982
|
+
|
|
983
|
+
/** @type {import('./abs')} */
|
|
984
|
+
module.exports = Math.abs;
|
|
985
|
+
|
|
986
|
+
},{}],34:[function(require,module,exports){
|
|
987
|
+
'use strict';
|
|
988
|
+
|
|
989
|
+
/** @type {import('./abs')} */
|
|
990
|
+
module.exports = Math.floor;
|
|
991
|
+
|
|
992
|
+
},{}],35:[function(require,module,exports){
|
|
993
|
+
'use strict';
|
|
994
|
+
|
|
995
|
+
/** @type {import('./max')} */
|
|
996
|
+
module.exports = Math.max;
|
|
997
|
+
|
|
998
|
+
},{}],36:[function(require,module,exports){
|
|
999
|
+
'use strict';
|
|
1000
|
+
|
|
1001
|
+
/** @type {import('./min')} */
|
|
1002
|
+
module.exports = Math.min;
|
|
1003
|
+
|
|
1004
|
+
},{}],37:[function(require,module,exports){
|
|
1005
|
+
'use strict';
|
|
1006
|
+
|
|
1007
|
+
/** @type {import('./pow')} */
|
|
1008
|
+
module.exports = Math.pow;
|
|
693
1009
|
|
|
694
|
-
},{
|
|
1010
|
+
},{}],38:[function(require,module,exports){
|
|
695
1011
|
'use strict';
|
|
696
1012
|
|
|
697
1013
|
var keysShim;
|
|
@@ -815,7 +1131,7 @@ if (!Object.keys) {
|
|
|
815
1131
|
}
|
|
816
1132
|
module.exports = keysShim;
|
|
817
1133
|
|
|
818
|
-
},{"./isArguments":
|
|
1134
|
+
},{"./isArguments":40}],39:[function(require,module,exports){
|
|
819
1135
|
'use strict';
|
|
820
1136
|
|
|
821
1137
|
var slice = Array.prototype.slice;
|
|
@@ -849,7 +1165,7 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
849
1165
|
|
|
850
1166
|
module.exports = keysShim;
|
|
851
1167
|
|
|
852
|
-
},{"./implementation":
|
|
1168
|
+
},{"./implementation":38,"./isArguments":40}],40:[function(require,module,exports){
|
|
853
1169
|
'use strict';
|
|
854
1170
|
|
|
855
1171
|
var toStr = Object.prototype.toString;
|
|
@@ -868,7 +1184,51 @@ module.exports = function isArguments(value) {
|
|
|
868
1184
|
return isArgs;
|
|
869
1185
|
};
|
|
870
1186
|
|
|
871
|
-
},{}],
|
|
1187
|
+
},{}],41:[function(require,module,exports){
|
|
1188
|
+
'use strict';
|
|
1189
|
+
|
|
1190
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
1191
|
+
var define = require('define-data-property');
|
|
1192
|
+
var hasDescriptors = require('has-property-descriptors')();
|
|
1193
|
+
var gOPD = require('gopd');
|
|
1194
|
+
|
|
1195
|
+
var $TypeError = require('es-errors/type');
|
|
1196
|
+
var $floor = GetIntrinsic('%Math.floor%');
|
|
1197
|
+
|
|
1198
|
+
/** @type {import('.')} */
|
|
1199
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
1200
|
+
if (typeof fn !== 'function') {
|
|
1201
|
+
throw new $TypeError('`fn` is not a function');
|
|
1202
|
+
}
|
|
1203
|
+
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
|
1204
|
+
throw new $TypeError('`length` must be a positive 32-bit integer');
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
1208
|
+
|
|
1209
|
+
var functionLengthIsConfigurable = true;
|
|
1210
|
+
var functionLengthIsWritable = true;
|
|
1211
|
+
if ('length' in fn && gOPD) {
|
|
1212
|
+
var desc = gOPD(fn, 'length');
|
|
1213
|
+
if (desc && !desc.configurable) {
|
|
1214
|
+
functionLengthIsConfigurable = false;
|
|
1215
|
+
}
|
|
1216
|
+
if (desc && !desc.writable) {
|
|
1217
|
+
functionLengthIsWritable = false;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
1222
|
+
if (hasDescriptors) {
|
|
1223
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
|
|
1224
|
+
} else {
|
|
1225
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
return fn;
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
},{"define-data-property":12,"es-errors/type":21,"get-intrinsic":26,"gopd":28,"has-property-descriptors":29}],42:[function(require,module,exports){
|
|
872
1232
|
'use strict';
|
|
873
1233
|
|
|
874
1234
|
var implementation = require('./implementation');
|
|
@@ -925,7 +1285,7 @@ module.exports = function getPolyfill() {
|
|
|
925
1285
|
return Object.assign;
|
|
926
1286
|
};
|
|
927
1287
|
|
|
928
|
-
},{"./implementation":2}],
|
|
1288
|
+
},{"./implementation":2}],43:[function(require,module,exports){
|
|
929
1289
|
'use strict';
|
|
930
1290
|
|
|
931
1291
|
var define = require('define-properties');
|
|
@@ -941,4 +1301,4 @@ module.exports = function shimAssign() {
|
|
|
941
1301
|
return polyfill;
|
|
942
1302
|
};
|
|
943
1303
|
|
|
944
|
-
},{"./polyfill":
|
|
1304
|
+
},{"./polyfill":42,"define-properties":13}]},{},[1]);
|