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
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
/* globals window */
|
|
4
|
-
|
|
5
3
|
var test = require('tape');
|
|
6
4
|
var forEach = require('../');
|
|
7
5
|
|
|
8
6
|
test('forEach calls each iterator', function (t) {
|
|
9
7
|
var count = 0;
|
|
10
8
|
t.plan(4);
|
|
9
|
+
|
|
11
10
|
forEach({ a: 1, b: 2 }, function (value, key) {
|
|
12
11
|
if (count === 0) {
|
|
13
12
|
t.equal(value, 1);
|
|
@@ -31,25 +30,40 @@ test('forEach calls iterator with correct this value', function (t) {
|
|
|
31
30
|
});
|
|
32
31
|
|
|
33
32
|
test('second argument: iterator', function (t) {
|
|
33
|
+
/** @type {unknown[]} */
|
|
34
34
|
var arr = [];
|
|
35
|
+
|
|
36
|
+
// @ts-expect-error
|
|
35
37
|
t['throws'](function () { forEach(arr); }, TypeError, 'undefined is not a function');
|
|
38
|
+
// @ts-expect-error
|
|
36
39
|
t['throws'](function () { forEach(arr, null); }, TypeError, 'null is not a function');
|
|
40
|
+
// @ts-expect-error
|
|
37
41
|
t['throws'](function () { forEach(arr, ''); }, TypeError, 'string is not a function');
|
|
42
|
+
// @ts-expect-error
|
|
38
43
|
t['throws'](function () { forEach(arr, /a/); }, TypeError, 'regex is not a function');
|
|
44
|
+
// @ts-expect-error
|
|
39
45
|
t['throws'](function () { forEach(arr, true); }, TypeError, 'true is not a function');
|
|
46
|
+
// @ts-expect-error
|
|
40
47
|
t['throws'](function () { forEach(arr, false); }, TypeError, 'false is not a function');
|
|
48
|
+
// @ts-expect-error
|
|
41
49
|
t['throws'](function () { forEach(arr, NaN); }, TypeError, 'NaN is not a function');
|
|
50
|
+
// @ts-expect-error
|
|
42
51
|
t['throws'](function () { forEach(arr, 42); }, TypeError, '42 is not a function');
|
|
52
|
+
|
|
43
53
|
t.doesNotThrow(function () { forEach(arr, function () {}); }, 'function is a function');
|
|
54
|
+
// @ts-expect-error TODO fixme
|
|
44
55
|
t.doesNotThrow(function () { forEach(arr, setTimeout); }, 'setTimeout is a function');
|
|
56
|
+
|
|
57
|
+
/* eslint-env browser */
|
|
45
58
|
if (typeof window !== 'undefined') {
|
|
46
59
|
t.doesNotThrow(function () { forEach(arr, window.alert); }, 'alert is a function');
|
|
47
60
|
}
|
|
61
|
+
|
|
48
62
|
t.end();
|
|
49
63
|
});
|
|
50
64
|
|
|
51
65
|
test('array', function (t) {
|
|
52
|
-
var arr = [1, 2, 3];
|
|
66
|
+
var arr = /** @type {const} */ ([1, 2, 3]);
|
|
53
67
|
|
|
54
68
|
t.test('iterates over every item', function (st) {
|
|
55
69
|
var index = 0;
|
|
@@ -61,36 +75,44 @@ test('array', function (t) {
|
|
|
61
75
|
t.test('first iterator argument', function (st) {
|
|
62
76
|
var index = 0;
|
|
63
77
|
st.plan(arr.length);
|
|
78
|
+
|
|
64
79
|
forEach(arr, function (item) {
|
|
65
80
|
st.equal(arr[index], item, 'item ' + index + ' is passed as first argument');
|
|
66
81
|
index += 1;
|
|
67
82
|
});
|
|
83
|
+
|
|
68
84
|
st.end();
|
|
69
85
|
});
|
|
70
86
|
|
|
71
87
|
t.test('second iterator argument', function (st) {
|
|
72
88
|
var counter = 0;
|
|
73
89
|
st.plan(arr.length);
|
|
74
|
-
|
|
90
|
+
|
|
91
|
+
forEach(arr, function (_item, index) {
|
|
75
92
|
st.equal(counter, index, 'index ' + index + ' is passed as second argument');
|
|
76
93
|
counter += 1;
|
|
77
94
|
});
|
|
95
|
+
|
|
78
96
|
st.end();
|
|
79
97
|
});
|
|
80
98
|
|
|
81
99
|
t.test('third iterator argument', function (st) {
|
|
82
100
|
st.plan(arr.length);
|
|
83
|
-
|
|
101
|
+
|
|
102
|
+
forEach(arr, function (_item, _index, array) {
|
|
84
103
|
st.deepEqual(arr, array, 'array is passed as third argument');
|
|
85
104
|
});
|
|
105
|
+
|
|
86
106
|
st.end();
|
|
87
107
|
});
|
|
88
108
|
|
|
89
109
|
t.test('context argument', function (st) {
|
|
90
110
|
var context = {};
|
|
111
|
+
|
|
91
112
|
forEach([], function () {
|
|
92
113
|
st.equal(this, context, '"this" is the passed context');
|
|
93
114
|
}, context);
|
|
115
|
+
|
|
94
116
|
st.end();
|
|
95
117
|
});
|
|
96
118
|
|
|
@@ -103,62 +125,77 @@ test('object', function (t) {
|
|
|
103
125
|
b: 2,
|
|
104
126
|
c: 3
|
|
105
127
|
};
|
|
106
|
-
var keys = ['a', 'b', 'c'];
|
|
128
|
+
var keys = /** @type {const} */ (['a', 'b', 'c']);
|
|
107
129
|
|
|
108
|
-
|
|
130
|
+
/** @constructor */
|
|
131
|
+
function F() {
|
|
109
132
|
this.a = 1;
|
|
110
133
|
this.b = 2;
|
|
111
|
-
}
|
|
134
|
+
}
|
|
112
135
|
F.prototype.c = 3;
|
|
113
|
-
var fKeys = ['a', 'b'];
|
|
136
|
+
var fKeys = /** @type {const} */ (['a', 'b']);
|
|
114
137
|
|
|
115
138
|
t.test('iterates over every object literal key', function (st) {
|
|
116
139
|
var counter = 0;
|
|
140
|
+
|
|
117
141
|
forEach(obj, function () { counter += 1; });
|
|
142
|
+
|
|
118
143
|
st.equal(counter, keys.length, 'iterated ' + counter + ' times');
|
|
144
|
+
|
|
119
145
|
st.end();
|
|
120
146
|
});
|
|
121
147
|
|
|
122
148
|
t.test('iterates only over own keys', function (st) {
|
|
123
149
|
var counter = 0;
|
|
150
|
+
|
|
124
151
|
forEach(new F(), function () { counter += 1; });
|
|
152
|
+
|
|
125
153
|
st.equal(counter, fKeys.length, 'iterated ' + fKeys.length + ' times');
|
|
154
|
+
|
|
126
155
|
st.end();
|
|
127
156
|
});
|
|
128
157
|
|
|
129
158
|
t.test('first iterator argument', function (st) {
|
|
130
159
|
var index = 0;
|
|
131
160
|
st.plan(keys.length);
|
|
161
|
+
|
|
132
162
|
forEach(obj, function (item) {
|
|
133
163
|
st.equal(obj[keys[index]], item, 'item at key ' + keys[index] + ' is passed as first argument');
|
|
134
164
|
index += 1;
|
|
135
165
|
});
|
|
166
|
+
|
|
136
167
|
st.end();
|
|
137
168
|
});
|
|
138
169
|
|
|
139
170
|
t.test('second iterator argument', function (st) {
|
|
140
171
|
var counter = 0;
|
|
141
172
|
st.plan(keys.length);
|
|
142
|
-
|
|
173
|
+
|
|
174
|
+
forEach(obj, function (_item, key) {
|
|
143
175
|
st.equal(keys[counter], key, 'key ' + key + ' is passed as second argument');
|
|
144
176
|
counter += 1;
|
|
145
177
|
});
|
|
178
|
+
|
|
146
179
|
st.end();
|
|
147
180
|
});
|
|
148
181
|
|
|
149
182
|
t.test('third iterator argument', function (st) {
|
|
150
183
|
st.plan(keys.length);
|
|
151
|
-
|
|
184
|
+
|
|
185
|
+
forEach(obj, function (_item, _key, object) {
|
|
152
186
|
st.deepEqual(obj, object, 'object is passed as third argument');
|
|
153
187
|
});
|
|
188
|
+
|
|
154
189
|
st.end();
|
|
155
190
|
});
|
|
156
191
|
|
|
157
192
|
t.test('context argument', function (st) {
|
|
158
193
|
var context = {};
|
|
194
|
+
|
|
159
195
|
forEach({}, function () {
|
|
160
196
|
st.equal(this, context, '"this" is the passed context');
|
|
161
197
|
}, context);
|
|
198
|
+
|
|
162
199
|
st.end();
|
|
163
200
|
});
|
|
164
201
|
|
|
@@ -166,17 +203,22 @@ test('object', function (t) {
|
|
|
166
203
|
});
|
|
167
204
|
|
|
168
205
|
test('string', function (t) {
|
|
169
|
-
var str = 'str';
|
|
206
|
+
var str = /** @type {const} */ ('str');
|
|
207
|
+
|
|
170
208
|
t.test('second iterator argument', function (st) {
|
|
171
209
|
var counter = 0;
|
|
172
210
|
st.plan((str.length * 2) + 1);
|
|
211
|
+
|
|
173
212
|
forEach(str, function (item, index) {
|
|
174
213
|
st.equal(counter, index, 'index ' + index + ' is passed as second argument');
|
|
175
214
|
st.equal(str.charAt(index), item);
|
|
176
215
|
counter += 1;
|
|
177
216
|
});
|
|
217
|
+
|
|
178
218
|
st.equal(counter, str.length, 'iterates ' + str.length + ' times');
|
|
219
|
+
|
|
179
220
|
st.end();
|
|
180
221
|
});
|
|
222
|
+
|
|
181
223
|
t.end();
|
|
182
224
|
});
|
|
@@ -5,6 +5,49 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v1.3.0](https://github.com/ljharb/get-intrinsic/compare/v1.2.7...v1.3.0) - 2025-02-22
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [Dev Deps] update `es-abstract`, `es-value-fixtures`, `for-each`, `object-inspect` [`9b61553`](https://github.com/ljharb/get-intrinsic/commit/9b61553c587f1c1edbd435597e88c7d387da97dd)
|
|
13
|
+
- [Deps] update `call-bind-apply-helpers`, `es-object-atoms`, `get-proto` [`a341fee`](https://github.com/ljharb/get-intrinsic/commit/a341fee0f39a403b0f0069e82c97642d5eb11043)
|
|
14
|
+
- [New] add `Float16Array` [`de22116`](https://github.com/ljharb/get-intrinsic/commit/de22116b492fb989a0341bceb6e573abfaed73dc)
|
|
15
|
+
|
|
16
|
+
## [v1.2.7](https://github.com/ljharb/get-intrinsic/compare/v1.2.6...v1.2.7) - 2025-01-02
|
|
17
|
+
|
|
18
|
+
### Commits
|
|
19
|
+
|
|
20
|
+
- [Refactor] use `get-proto` directly [`00ab955`](https://github.com/ljharb/get-intrinsic/commit/00ab95546a0980c8ad42a84253daaa8d2adcedf9)
|
|
21
|
+
- [Deps] update `math-intrinsics` [`c716cdd`](https://github.com/ljharb/get-intrinsic/commit/c716cdd6bbe36b438057025561b8bb5a879ac8a0)
|
|
22
|
+
- [Dev Deps] update `call-bound`, `es-abstract` [`dc648a6`](https://github.com/ljharb/get-intrinsic/commit/dc648a67eb359037dff8d8619bfa71d86debccb1)
|
|
23
|
+
|
|
24
|
+
## [v1.2.6](https://github.com/ljharb/get-intrinsic/compare/v1.2.5...v1.2.6) - 2024-12-11
|
|
25
|
+
|
|
26
|
+
### Commits
|
|
27
|
+
|
|
28
|
+
- [Refactor] use `math-intrinsics` [`841be86`](https://github.com/ljharb/get-intrinsic/commit/841be8641a9254c4c75483b30c8871b5d5065926)
|
|
29
|
+
- [Refactor] use `es-object-atoms` [`42057df`](https://github.com/ljharb/get-intrinsic/commit/42057dfa16f66f64787e66482af381cc6f31d2c1)
|
|
30
|
+
- [Deps] update `call-bind-apply-helpers` [`45afa24`](https://github.com/ljharb/get-intrinsic/commit/45afa24a9ee4d6d3c172db1f555b16cb27843ef4)
|
|
31
|
+
- [Dev Deps] update `call-bound` [`9cba9c6`](https://github.com/ljharb/get-intrinsic/commit/9cba9c6e70212bc163b7a5529cb25df46071646f)
|
|
32
|
+
|
|
33
|
+
## [v1.2.5](https://github.com/ljharb/get-intrinsic/compare/v1.2.4...v1.2.5) - 2024-12-06
|
|
34
|
+
|
|
35
|
+
### Commits
|
|
36
|
+
|
|
37
|
+
- [actions] split out node 10-20, and 20+ [`6e2b9dd`](https://github.com/ljharb/get-intrinsic/commit/6e2b9dd23902665681ebe453256ccfe21d7966f0)
|
|
38
|
+
- [Refactor] use `dunder-proto` and `call-bind-apply-helpers` instead of `has-proto` [`c095d17`](https://github.com/ljharb/get-intrinsic/commit/c095d179ad0f4fbfff20c8a3e0cb4fe668018998)
|
|
39
|
+
- [Refactor] use `gopd` [`9841d5b`](https://github.com/ljharb/get-intrinsic/commit/9841d5b35f7ab4fd2d193f0c741a50a077920e90)
|
|
40
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `es-abstract`, `es-value-fixtures`, `gopd`, `mock-property`, `object-inspect`, `tape` [`2d07e01`](https://github.com/ljharb/get-intrinsic/commit/2d07e01310cee2cbaedfead6903df128b1f5d425)
|
|
41
|
+
- [Deps] update `gopd`, `has-proto`, `has-symbols`, `hasown` [`974d8bf`](https://github.com/ljharb/get-intrinsic/commit/974d8bf5baad7939eef35c25cc1dd88c10a30fa6)
|
|
42
|
+
- [Dev Deps] update `call-bind`, `es-abstract`, `tape` [`df9dde1`](https://github.com/ljharb/get-intrinsic/commit/df9dde178186631ab8a3165ede056549918ce4bc)
|
|
43
|
+
- [Refactor] cache `es-define-property` as well [`43ef543`](https://github.com/ljharb/get-intrinsic/commit/43ef543cb02194401420e3a914a4ca9168691926)
|
|
44
|
+
- [Deps] update `has-proto`, `has-symbols`, `hasown` [`ad4949d`](https://github.com/ljharb/get-intrinsic/commit/ad4949d5467316505aad89bf75f9417ed782f7af)
|
|
45
|
+
- [Tests] use `call-bound` directly [`ad5c406`](https://github.com/ljharb/get-intrinsic/commit/ad5c4069774bfe90e520a35eead5fe5ca9d69e80)
|
|
46
|
+
- [Deps] update `has-proto`, `hasown` [`45414ca`](https://github.com/ljharb/get-intrinsic/commit/45414caa312333a2798953682c68f85c550627dd)
|
|
47
|
+
- [Tests] replace `aud` with `npm audit` [`18d3509`](https://github.com/ljharb/get-intrinsic/commit/18d3509f79460e7924da70409ee81e5053087523)
|
|
48
|
+
- [Deps] update `es-define-property` [`aadaa3b`](https://github.com/ljharb/get-intrinsic/commit/aadaa3b2188d77ad9bff394ce5d4249c49eb21f5)
|
|
49
|
+
- [Dev Deps] add missing peer dep [`c296a16`](https://github.com/ljharb/get-intrinsic/commit/c296a16246d0c9a5981944f4cc5cf61fbda0cf6a)
|
|
50
|
+
|
|
8
51
|
## [v1.2.4](https://github.com/ljharb/get-intrinsic/compare/v1.2.3...v1.2.4) - 2024-02-05
|
|
9
52
|
|
|
10
53
|
### Commits
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var undefined;
|
|
4
4
|
|
|
5
|
+
var $Object = require('es-object-atoms');
|
|
6
|
+
|
|
5
7
|
var $Error = require('es-errors');
|
|
6
8
|
var $EvalError = require('es-errors/eval');
|
|
7
9
|
var $RangeError = require('es-errors/range');
|
|
@@ -10,6 +12,14 @@ var $SyntaxError = require('es-errors/syntax');
|
|
|
10
12
|
var $TypeError = require('es-errors/type');
|
|
11
13
|
var $URIError = require('es-errors/uri');
|
|
12
14
|
|
|
15
|
+
var abs = require('math-intrinsics/abs');
|
|
16
|
+
var floor = require('math-intrinsics/floor');
|
|
17
|
+
var max = require('math-intrinsics/max');
|
|
18
|
+
var min = require('math-intrinsics/min');
|
|
19
|
+
var pow = require('math-intrinsics/pow');
|
|
20
|
+
var round = require('math-intrinsics/round');
|
|
21
|
+
var sign = require('math-intrinsics/sign');
|
|
22
|
+
|
|
13
23
|
var $Function = Function;
|
|
14
24
|
|
|
15
25
|
// eslint-disable-next-line consistent-return
|
|
@@ -19,14 +29,8 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
19
29
|
} catch (e) {}
|
|
20
30
|
};
|
|
21
31
|
|
|
22
|
-
var $gOPD =
|
|
23
|
-
|
|
24
|
-
try {
|
|
25
|
-
$gOPD({}, '');
|
|
26
|
-
} catch (e) {
|
|
27
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
28
|
-
}
|
|
29
|
-
}
|
|
32
|
+
var $gOPD = require('gopd');
|
|
33
|
+
var $defineProperty = require('es-define-property');
|
|
30
34
|
|
|
31
35
|
var throwTypeError = function () {
|
|
32
36
|
throw new $TypeError();
|
|
@@ -49,13 +53,13 @@ var ThrowTypeError = $gOPD
|
|
|
49
53
|
: throwTypeError;
|
|
50
54
|
|
|
51
55
|
var hasSymbols = require('has-symbols')();
|
|
52
|
-
var hasProto = require('has-proto')();
|
|
53
56
|
|
|
54
|
-
var getProto =
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
);
|
|
57
|
+
var getProto = require('get-proto');
|
|
58
|
+
var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
|
|
59
|
+
var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
|
|
60
|
+
|
|
61
|
+
var $apply = require('call-bind-apply-helpers/functionApply');
|
|
62
|
+
var $call = require('call-bind-apply-helpers/functionCall');
|
|
59
63
|
|
|
60
64
|
var needsEval = {};
|
|
61
65
|
|
|
@@ -86,6 +90,7 @@ var INTRINSICS = {
|
|
|
86
90
|
'%Error%': $Error,
|
|
87
91
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
88
92
|
'%EvalError%': $EvalError,
|
|
93
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
|
89
94
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
90
95
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
91
96
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -102,7 +107,8 @@ var INTRINSICS = {
|
|
|
102
107
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
103
108
|
'%Math%': Math,
|
|
104
109
|
'%Number%': Number,
|
|
105
|
-
'%Object%': Object,
|
|
110
|
+
'%Object%': $Object,
|
|
111
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
106
112
|
'%parseFloat%': parseFloat,
|
|
107
113
|
'%parseInt%': parseInt,
|
|
108
114
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
@@ -128,7 +134,20 @@ var INTRINSICS = {
|
|
|
128
134
|
'%URIError%': $URIError,
|
|
129
135
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
130
136
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
131
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
137
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
138
|
+
|
|
139
|
+
'%Function.prototype.call%': $call,
|
|
140
|
+
'%Function.prototype.apply%': $apply,
|
|
141
|
+
'%Object.defineProperty%': $defineProperty,
|
|
142
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
143
|
+
'%Math.abs%': abs,
|
|
144
|
+
'%Math.floor%': floor,
|
|
145
|
+
'%Math.max%': max,
|
|
146
|
+
'%Math.min%': min,
|
|
147
|
+
'%Math.pow%': pow,
|
|
148
|
+
'%Math.round%': round,
|
|
149
|
+
'%Math.sign%': sign,
|
|
150
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
132
151
|
};
|
|
133
152
|
|
|
134
153
|
if (getProto) {
|
|
@@ -223,11 +242,11 @@ var LEGACY_ALIASES = {
|
|
|
223
242
|
|
|
224
243
|
var bind = require('function-bind');
|
|
225
244
|
var hasOwn = require('hasown');
|
|
226
|
-
var $concat = bind.call(
|
|
227
|
-
var $spliceApply = bind.call(
|
|
228
|
-
var $replace = bind.call(
|
|
229
|
-
var $strSlice = bind.call(
|
|
230
|
-
var $exec = bind.call(
|
|
245
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
246
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
247
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
248
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
249
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
231
250
|
|
|
232
251
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
233
252
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-intrinsic",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Get and robustly cache all JS language-level intrinsics at first require time",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"pretest": "npm run lint",
|
|
18
18
|
"tests-only": "nyc tape 'test/**/*.js'",
|
|
19
19
|
"test": "npm run tests-only",
|
|
20
|
-
"posttest": "
|
|
20
|
+
"posttest": "npx npm@'>= 10.2' audit --production",
|
|
21
21
|
"version": "auto-changelog && git add CHANGELOG.md",
|
|
22
22
|
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
23
23
|
},
|
|
@@ -43,26 +43,37 @@
|
|
|
43
43
|
"url": "https://github.com/ljharb/get-intrinsic/issues"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/ljharb/get-intrinsic#readme",
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"call-bind-apply-helpers": "^1.0.2",
|
|
48
|
+
"es-define-property": "^1.0.1",
|
|
49
|
+
"es-errors": "^1.3.0",
|
|
50
|
+
"es-object-atoms": "^1.1.1",
|
|
51
|
+
"function-bind": "^1.1.2",
|
|
52
|
+
"get-proto": "^1.0.1",
|
|
53
|
+
"gopd": "^1.2.0",
|
|
54
|
+
"has-symbols": "^1.1.0",
|
|
55
|
+
"hasown": "^2.0.2",
|
|
56
|
+
"math-intrinsics": "^1.1.0"
|
|
57
|
+
},
|
|
46
58
|
"devDependencies": {
|
|
47
|
-
"@ljharb/eslint-config": "^21.1.
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"es-abstract": "^1.
|
|
52
|
-
"es-value-fixtures": "^1.
|
|
59
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
60
|
+
"auto-changelog": "^2.5.0",
|
|
61
|
+
"call-bound": "^1.0.3",
|
|
62
|
+
"encoding": "^0.1.13",
|
|
63
|
+
"es-abstract": "^1.23.9",
|
|
64
|
+
"es-value-fixtures": "^1.7.1",
|
|
53
65
|
"eslint": "=8.8.0",
|
|
54
66
|
"evalmd": "^0.0.19",
|
|
55
|
-
"for-each": "^0.3.
|
|
56
|
-
"gopd": "^1.0.1",
|
|
67
|
+
"for-each": "^0.3.5",
|
|
57
68
|
"make-async-function": "^1.0.0",
|
|
58
69
|
"make-async-generator-function": "^1.0.0",
|
|
59
70
|
"make-generator-function": "^2.0.0",
|
|
60
|
-
"mock-property": "^1.0
|
|
71
|
+
"mock-property": "^1.1.0",
|
|
61
72
|
"npmignore": "^0.3.1",
|
|
62
73
|
"nyc": "^10.3.2",
|
|
63
|
-
"object-inspect": "^1.13.
|
|
74
|
+
"object-inspect": "^1.13.4",
|
|
64
75
|
"safe-publish-latest": "^2.0.0",
|
|
65
|
-
"tape": "^5.
|
|
76
|
+
"tape": "^5.9.0"
|
|
66
77
|
},
|
|
67
78
|
"auto-changelog": {
|
|
68
79
|
"output": "CHANGELOG.md",
|
|
@@ -72,13 +83,6 @@
|
|
|
72
83
|
"backfillLimit": false,
|
|
73
84
|
"hideCredit": true
|
|
74
85
|
},
|
|
75
|
-
"dependencies": {
|
|
76
|
-
"es-errors": "^1.3.0",
|
|
77
|
-
"function-bind": "^1.1.2",
|
|
78
|
-
"has-proto": "^1.0.1",
|
|
79
|
-
"has-symbols": "^1.0.3",
|
|
80
|
-
"hasown": "^2.0.0"
|
|
81
|
-
},
|
|
82
86
|
"testling": {
|
|
83
87
|
"files": "test/GetIntrinsic.js"
|
|
84
88
|
},
|
|
@@ -10,10 +10,10 @@ var asyncFns = require('make-async-function').list();
|
|
|
10
10
|
var asyncGenFns = require('make-async-generator-function')();
|
|
11
11
|
var mockProperty = require('mock-property');
|
|
12
12
|
|
|
13
|
-
var callBound = require('call-
|
|
13
|
+
var callBound = require('call-bound');
|
|
14
14
|
var v = require('es-value-fixtures');
|
|
15
15
|
var $gOPD = require('gopd');
|
|
16
|
-
var DefinePropertyOrThrow = require('es-abstract/
|
|
16
|
+
var DefinePropertyOrThrow = require('es-abstract/2023/DefinePropertyOrThrow');
|
|
17
17
|
|
|
18
18
|
var $isProto = callBound('%Object.prototype.isPrototypeOf%');
|
|
19
19
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [ljharb]
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: npm/get-proto
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [v1.0.1](https://github.com/ljharb/get-proto/compare/v1.0.0...v1.0.1) - 2025-01-02
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [Fix] for the `Object.getPrototypeOf` window, throw for non-objects [`7fe6508`](https://github.com/ljharb/get-proto/commit/7fe6508b71419ebe1976bedb86001d1feaeaa49a)
|
|
13
|
+
|
|
14
|
+
## v1.0.0 - 2025-01-01
|
|
15
|
+
|
|
16
|
+
### Commits
|
|
17
|
+
|
|
18
|
+
- Initial implementation, tests, readme, types [`5c70775`](https://github.com/ljharb/get-proto/commit/5c707751e81c3deeb2cf980d185fc7fd43611415)
|
|
19
|
+
- Initial commit [`7c65c2a`](https://github.com/ljharb/get-proto/commit/7c65c2ad4e33d5dae2f219ebe1a046ae2256972c)
|
|
20
|
+
- npm init [`0b8cf82`](https://github.com/ljharb/get-proto/commit/0b8cf824c9634e4a34ef7dd2a2cdc5be6ac79518)
|
|
21
|
+
- Only apps should have lockfiles [`a6d1bff`](https://github.com/ljharb/get-proto/commit/a6d1bffc364f5828377cea7194558b2dbef7aea2)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jordan Harband
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# get-proto <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
|
2
|
+
|
|
3
|
+
[![github actions][actions-image]][actions-url]
|
|
4
|
+
[![coverage][codecov-image]][codecov-url]
|
|
5
|
+
[![License][license-image]][license-url]
|
|
6
|
+
[![Downloads][downloads-image]][downloads-url]
|
|
7
|
+
|
|
8
|
+
[![npm badge][npm-badge-png]][package-url]
|
|
9
|
+
|
|
10
|
+
Robustly get the [[Prototype]] of an object. Uses the best available method.
|
|
11
|
+
|
|
12
|
+
## Getting started
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install --save get-proto
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage/Examples
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
const assert = require('assert');
|
|
22
|
+
const getProto = require('get-proto');
|
|
23
|
+
|
|
24
|
+
const a = { a: 1, b: 2, [Symbol.toStringTag]: 'foo' };
|
|
25
|
+
const b = { c: 3, __proto__: a };
|
|
26
|
+
|
|
27
|
+
assert.equal(getProto(b), a);
|
|
28
|
+
assert.equal(getProto(a), Object.prototype);
|
|
29
|
+
assert.equal(getProto({ __proto__: null }), null);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Tests
|
|
33
|
+
|
|
34
|
+
Clone the repo, `npm install`, and run `npm test`
|
|
35
|
+
|
|
36
|
+
[package-url]: https://npmjs.org/package/get-proto
|
|
37
|
+
[npm-version-svg]: https://versionbadg.es/ljharb/get-proto.svg
|
|
38
|
+
[deps-svg]: https://david-dm.org/ljharb/get-proto.svg
|
|
39
|
+
[deps-url]: https://david-dm.org/ljharb/get-proto
|
|
40
|
+
[dev-deps-svg]: https://david-dm.org/ljharb/get-proto/dev-status.svg
|
|
41
|
+
[dev-deps-url]: https://david-dm.org/ljharb/get-proto#info=devDependencies
|
|
42
|
+
[npm-badge-png]: https://nodei.co/npm/get-proto.png?downloads=true&stars=true
|
|
43
|
+
[license-image]: https://img.shields.io/npm/l/get-proto.svg
|
|
44
|
+
[license-url]: LICENSE
|
|
45
|
+
[downloads-image]: https://img.shields.io/npm/dm/get-proto.svg
|
|
46
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=get-proto
|
|
47
|
+
[codecov-image]: https://codecov.io/gh/ljharb/get-proto/branch/main/graphs/badge.svg
|
|
48
|
+
[codecov-url]: https://app.codecov.io/gh/ljharb/get-proto/
|
|
49
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/get-proto
|
|
50
|
+
[actions-url]: https://github.com/ljharb/get-proto/actions
|