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
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
// modified from https://github.com/es-shims/es6-shim
|
|
4
4
|
var objectKeys = require('object-keys');
|
|
5
5
|
var hasSymbols = require('has-symbols/shams')();
|
|
6
|
-
var callBound = require('call-
|
|
7
|
-
var
|
|
6
|
+
var callBound = require('call-bound');
|
|
7
|
+
var $Object = require('es-object-atoms');
|
|
8
8
|
var $push = callBound('Array.prototype.push');
|
|
9
9
|
var $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable');
|
|
10
|
-
var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;
|
|
10
|
+
var originalGetSymbols = hasSymbols ? $Object.getOwnPropertySymbols : null;
|
|
11
11
|
|
|
12
12
|
// eslint-disable-next-line no-unused-vars
|
|
13
13
|
module.exports = function assign(target, source1) {
|
|
14
14
|
if (target == null) { throw new TypeError('target must be an object'); }
|
|
15
|
-
var to =
|
|
15
|
+
var to = $Object(target); // step 1
|
|
16
16
|
if (arguments.length === 1) {
|
|
17
17
|
return to; // step 2
|
|
18
18
|
}
|
|
19
19
|
for (var s = 1; s < arguments.length; ++s) {
|
|
20
|
-
var from =
|
|
20
|
+
var from = $Object(arguments[s]); // step 3.a.i
|
|
21
21
|
|
|
22
22
|
// step 3.a.ii:
|
|
23
23
|
var keys = objectKeys(from);
|
|
24
|
-
var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);
|
|
24
|
+
var getSymbols = hasSymbols && ($Object.getOwnPropertySymbols || originalGetSymbols);
|
|
25
25
|
if (getSymbols) {
|
|
26
26
|
var syms = getSymbols(from);
|
|
27
27
|
for (var j = 0; j < syms.length; ++j) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "object.assign",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.7",
|
|
4
4
|
"author": "Jordan Harband",
|
|
5
5
|
"funding": {
|
|
6
6
|
"url": "https://github.com/sponsors/ljharb"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
13
13
|
"pretest": "npm run lint && es-shim-api --bound",
|
|
14
14
|
"test": "npm run tests-only && npm run test:ses",
|
|
15
|
-
"posttest": "
|
|
15
|
+
"posttest": "npx npm@'>=10.2' audit --production",
|
|
16
16
|
"tests-only": "npm run test:implementation && npm run test:shim",
|
|
17
17
|
"test:native": "nyc node test/native",
|
|
18
18
|
"test:shim": "nyc node test/shimmed",
|
|
@@ -41,28 +41,28 @@
|
|
|
41
41
|
"shim"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"call-bind": "^1.0.
|
|
45
|
-
"
|
|
46
|
-
"
|
|
44
|
+
"call-bind": "^1.0.8",
|
|
45
|
+
"call-bound": "^1.0.3",
|
|
46
|
+
"define-properties": "^1.2.1",
|
|
47
|
+
"es-object-atoms": "^1.0.0",
|
|
48
|
+
"has-symbols": "^1.1.0",
|
|
47
49
|
"object-keys": "^1.1.1"
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
50
|
-
"@es-shims/api": "^2.
|
|
51
|
-
"@ljharb/eslint-config": "^21.
|
|
52
|
-
"aud": "^2.0.0",
|
|
52
|
+
"@es-shims/api": "^2.5.1",
|
|
53
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
53
54
|
"browserify": "^16.5.2",
|
|
54
55
|
"eslint": "=8.8.0",
|
|
55
56
|
"for-each": "^0.3.3",
|
|
56
57
|
"functions-have-names": "^1.2.3",
|
|
57
|
-
"has": "^1.0.3",
|
|
58
58
|
"has-strict-mode": "^1.0.1",
|
|
59
|
-
"
|
|
60
|
-
"mock-property": "^1.
|
|
61
|
-
"npmignore": "^0.3.
|
|
59
|
+
"hasown": "^2.0.2",
|
|
60
|
+
"mock-property": "^1.1.0",
|
|
61
|
+
"npmignore": "^0.3.1",
|
|
62
62
|
"nyc": "^10.3.2",
|
|
63
63
|
"safe-publish-latest": "^2.0.0",
|
|
64
|
-
"ses": "^
|
|
65
|
-
"tape": "^5.
|
|
64
|
+
"ses": "^1.10.0",
|
|
65
|
+
"tape": "^5.9.0"
|
|
66
66
|
},
|
|
67
67
|
"testling": {
|
|
68
68
|
"files": "test/index.js",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var hasSymbols = require('has-symbols/shams')();
|
|
4
4
|
var forEach = require('for-each');
|
|
5
|
-
var
|
|
5
|
+
var hasOwn = require('hasown');
|
|
6
6
|
var mockProperty = require('mock-property');
|
|
7
7
|
|
|
8
8
|
module.exports = function (assign, t) {
|
|
@@ -110,7 +110,7 @@ module.exports = function (assign, t) {
|
|
|
110
110
|
var target = {};
|
|
111
111
|
assign(target, window.location);
|
|
112
112
|
for (var prop in window.location) {
|
|
113
|
-
if (
|
|
113
|
+
if (hasOwn(window.location, prop)) {
|
|
114
114
|
st.deepEqual(target[prop], window.location[prop], prop + ' is copied');
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -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/possible-typed-array-names
|
|
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 a single custom sponsorship URL
|
|
@@ -0,0 +1,29 @@
|
|
|
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.1.0](https://github.com/ljharb/possible-typed-array-names/compare/v1.0.0...v1.1.0) - 2025-02-06
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [types] use shared tsconfig [`7d3057f`](https://github.com/ljharb/possible-typed-array-names/commit/7d3057f723d221c032951e618f45ad9044cae80d)
|
|
13
|
+
- [actions] split out node 10-20, and 20+ [`3cc8138`](https://github.com/ljharb/possible-typed-array-names/commit/3cc81385d6af59c096475080d76a4c78e6fef664)
|
|
14
|
+
- [actions] remove redundant finisher; use reusable workflows [`b46fe5d`](https://github.com/ljharb/possible-typed-array-names/commit/b46fe5d2d47054922f7be81acc0f3c2b7882ddab)
|
|
15
|
+
- [New] add `Float16Array` [`77df613`](https://github.com/ljharb/possible-typed-array-names/commit/77df61313d3491acfd23da0d4452673cca476644)
|
|
16
|
+
- [Dev Deps] update `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/tape`, `auto-changelog`, `tape` [`85bba2e`](https://github.com/ljharb/possible-typed-array-names/commit/85bba2e359add86b19ef058d4a0560d369bf55a2)
|
|
17
|
+
- [Tests] tiny refactor [`b2ddd5a`](https://github.com/ljharb/possible-typed-array-names/commit/b2ddd5a9bc86b63631d9f2c17f21f0503492dbb3)
|
|
18
|
+
- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape` [`ed4447f`](https://github.com/ljharb/possible-typed-array-names/commit/ed4447f9ef1ad8657186282140a74ab474240d4e)
|
|
19
|
+
- [Tests] add attw; `postlint` [`b5b808c`](https://github.com/ljharb/possible-typed-array-names/commit/b5b808cebf0bc0bdb8636f4981cc8ffabb58bbbb)
|
|
20
|
+
- [Tests] replace `aud` with `npm audit` [`ce71c4e`](https://github.com/ljharb/possible-typed-array-names/commit/ce71c4e993e03b41034a4ca96fb8531dd8b8cc14)
|
|
21
|
+
|
|
22
|
+
## v1.0.0 - 2024-02-19
|
|
23
|
+
|
|
24
|
+
### Commits
|
|
25
|
+
|
|
26
|
+
- Initial implementation, tests, readme, types [`c279f55`](https://github.com/ljharb/possible-typed-array-names/commit/c279f550021896afa50c1169b3111618a96cf898)
|
|
27
|
+
- Initial commit [`0f22bf2`](https://github.com/ljharb/possible-typed-array-names/commit/0f22bf24d16fc8ea29483ed7ed378afb3758a4df)
|
|
28
|
+
- npm init [`25d6cff`](https://github.com/ljharb/possible-typed-array-names/commit/25d6cffe4091921e4e210704dabed37ae3d7b261)
|
|
29
|
+
- Only apps should have lockfiles [`a1bd592`](https://github.com/ljharb/possible-typed-array-names/commit/a1bd592fa037430d401b1d6d26cfea2c2d6789db)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 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
|
+
# possible-typed-array-names <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
|
+
A simple list of possible Typed Array names.
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
const assert = require('assert');
|
|
16
|
+
|
|
17
|
+
const names = require('possible-typed-array-names');
|
|
18
|
+
|
|
19
|
+
assert(Array.isArray(names));
|
|
20
|
+
assert(names.every(name => (
|
|
21
|
+
typeof name === 'string'
|
|
22
|
+
&& ((
|
|
23
|
+
typeof globalThis[name] === 'function'
|
|
24
|
+
&& globalThis[name].name === name
|
|
25
|
+
) || typeof globalThis[name] === 'undefined')
|
|
26
|
+
)));
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Tests
|
|
30
|
+
Simply clone the repo, `npm install`, and run `npm test`
|
|
31
|
+
|
|
32
|
+
## Security
|
|
33
|
+
|
|
34
|
+
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
|
|
35
|
+
|
|
36
|
+
[package-url]: https://npmjs.org/package/possible-typed-array-names
|
|
37
|
+
[npm-version-svg]: https://versionbadg.es/ljharb/possible-typed-array-names.svg
|
|
38
|
+
[deps-svg]: https://david-dm.org/ljharb/possible-typed-array-names.svg
|
|
39
|
+
[deps-url]: https://david-dm.org/ljharb/possible-typed-array-names
|
|
40
|
+
[dev-deps-svg]: https://david-dm.org/ljharb/possible-typed-array-names/dev-status.svg
|
|
41
|
+
[dev-deps-url]: https://david-dm.org/ljharb/possible-typed-array-names#info=devDependencies
|
|
42
|
+
[npm-badge-png]: https://nodei.co/npm/possible-typed-array-names.png?downloads=true&stars=true
|
|
43
|
+
[license-image]: https://img.shields.io/npm/l/possible-typed-array-names.svg
|
|
44
|
+
[license-url]: LICENSE
|
|
45
|
+
[downloads-image]: https://img.shields.io/npm/dm/possible-typed-array-names.svg
|
|
46
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=possible-typed-array-names
|
|
47
|
+
[codecov-image]: https://codecov.io/gh/ljharb/possible-typed-array-names/branch/main/graphs/badge.svg
|
|
48
|
+
[codecov-url]: https://app.codecov.io/gh/ljharb/possible-typed-array-names/
|
|
49
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/possible-typed-array-names
|
|
50
|
+
[actions-url]: https://github.com/ljharb/possible-typed-array-names/actions
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const names: [
|
|
2
|
+
'Float16Array',
|
|
3
|
+
'Float32Array',
|
|
4
|
+
'Float64Array',
|
|
5
|
+
'Int8Array',
|
|
6
|
+
'Int16Array',
|
|
7
|
+
'Int32Array',
|
|
8
|
+
'Uint8Array',
|
|
9
|
+
'Uint8ClampedArray',
|
|
10
|
+
'Uint16Array',
|
|
11
|
+
'Uint32Array',
|
|
12
|
+
'BigInt64Array',
|
|
13
|
+
'BigUint64Array'
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export = names;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/** @type {import('.')} */
|
|
4
|
+
module.exports = [
|
|
5
|
+
'Float16Array',
|
|
6
|
+
'Float32Array',
|
|
7
|
+
'Float64Array',
|
|
8
|
+
'Int8Array',
|
|
9
|
+
'Int16Array',
|
|
10
|
+
'Int32Array',
|
|
11
|
+
'Uint8Array',
|
|
12
|
+
'Uint8ClampedArray',
|
|
13
|
+
'Uint16Array',
|
|
14
|
+
'Uint32Array',
|
|
15
|
+
'BigInt64Array',
|
|
16
|
+
'BigUint64Array'
|
|
17
|
+
];
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "possible-typed-array-names",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "A simple list of possible Typed Array names.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./package.json": "./package.json"
|
|
9
|
+
},
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"scripts": {
|
|
13
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
14
|
+
"prepublishOnly": "safe-publish-latest",
|
|
15
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
16
|
+
"pretest": "npm run lint",
|
|
17
|
+
"test": "npm run tests-only",
|
|
18
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
19
|
+
"posttest": "npx npm@'>= 10.2' audit --production",
|
|
20
|
+
"prelint": "evalmd README.md && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
|
|
21
|
+
"lint": "eslint --ext=js,mjs .",
|
|
22
|
+
"postlint": "tsc && attw -P",
|
|
23
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
24
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/ljharb/possible-typed-array-names.git"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"typed",
|
|
32
|
+
"array",
|
|
33
|
+
"typedarray",
|
|
34
|
+
"Float32Array",
|
|
35
|
+
"Float64Array",
|
|
36
|
+
"Int8Array",
|
|
37
|
+
"Int16Array",
|
|
38
|
+
"Int32Array",
|
|
39
|
+
"Uint8Array",
|
|
40
|
+
"Uint8ClampedArray",
|
|
41
|
+
"Uint16Array",
|
|
42
|
+
"Uint32Array",
|
|
43
|
+
"BigInt64Array",
|
|
44
|
+
"BigUint64Array"
|
|
45
|
+
],
|
|
46
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/ljharb/possible-typed-array-names/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/ljharb/possible-typed-array-names#readme",
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@arethetypeswrong/cli": "^0.17.3",
|
|
54
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
55
|
+
"@ljharb/tsconfig": "^0.2.3",
|
|
56
|
+
"@types/tape": "^5.8.1",
|
|
57
|
+
"auto-changelog": "^2.5.0",
|
|
58
|
+
"eclint": "^2.8.1",
|
|
59
|
+
"eslint": "=8.8.0",
|
|
60
|
+
"evalmd": "^0.0.19",
|
|
61
|
+
"in-publish": "^2.0.1",
|
|
62
|
+
"npmignore": "^0.3.1",
|
|
63
|
+
"nyc": "^10.3.2",
|
|
64
|
+
"safe-publish-latest": "^2.0.0",
|
|
65
|
+
"tape": "^5.9.0",
|
|
66
|
+
"typescript": "next"
|
|
67
|
+
},
|
|
68
|
+
"auto-changelog": {
|
|
69
|
+
"output": "CHANGELOG.md",
|
|
70
|
+
"template": "keepachangelog",
|
|
71
|
+
"unreleased": false,
|
|
72
|
+
"commitLimit": false,
|
|
73
|
+
"backfillLimit": false,
|
|
74
|
+
"hideCredit": true
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"ignore": [
|
|
78
|
+
".github/workflows"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">= 0.4"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
var names = require('../');
|
|
6
|
+
|
|
7
|
+
test('typed array names', function (t) {
|
|
8
|
+
for (var i = 0; i < names.length; i++) {
|
|
9
|
+
var name = names[i];
|
|
10
|
+
|
|
11
|
+
t.equal(typeof name, 'string', 'is string');
|
|
12
|
+
t.equal(names.indexOf(name), i, 'is unique (from start)');
|
|
13
|
+
t.equal(names.lastIndexOf(name), i, 'is unique (from end)');
|
|
14
|
+
|
|
15
|
+
t.match(typeof global[name], /^(?:function|undefined)$/, 'is a global function, or `undefined`');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
t.end();
|
|
19
|
+
});
|
|
@@ -452,16 +452,16 @@
|
|
|
452
452
|
var w = this.words[i];
|
|
453
453
|
var word = (((w << off) | carry) & 0xffffff).toString(16);
|
|
454
454
|
carry = (w >>> (24 - off)) & 0xffffff;
|
|
455
|
-
if (carry !== 0 || i !== this.length - 1) {
|
|
456
|
-
out = zeros[6 - word.length] + word + out;
|
|
457
|
-
} else {
|
|
458
|
-
out = word + out;
|
|
459
|
-
}
|
|
460
455
|
off += 2;
|
|
461
456
|
if (off >= 26) {
|
|
462
457
|
off -= 26;
|
|
463
458
|
i--;
|
|
464
459
|
}
|
|
460
|
+
if (carry !== 0 || i !== this.length - 1) {
|
|
461
|
+
out = zeros[6 - word.length] + word + out;
|
|
462
|
+
} else {
|
|
463
|
+
out = word + out;
|
|
464
|
+
}
|
|
465
465
|
}
|
|
466
466
|
if (carry !== 0) {
|
|
467
467
|
out = carry.toString(16) + out;
|
|
@@ -1921,6 +1921,7 @@
|
|
|
1921
1921
|
this.words[i] = carry;
|
|
1922
1922
|
this.length++;
|
|
1923
1923
|
}
|
|
1924
|
+
this.length = num === 0 ? 1 : this.length;
|
|
1924
1925
|
|
|
1925
1926
|
return this;
|
|
1926
1927
|
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// NOTE: This could be potentionally used to generate loop-less multiplications
|
|
4
|
+
function genCombMulTo (alen, blen) {
|
|
5
|
+
var len = alen + blen - 1;
|
|
6
|
+
var src = [
|
|
7
|
+
'var a = self.words;',
|
|
8
|
+
'var b = num.words;',
|
|
9
|
+
'var o = out.words;',
|
|
10
|
+
'var c = 0;',
|
|
11
|
+
'var lo;',
|
|
12
|
+
'var mid;',
|
|
13
|
+
'var hi;'
|
|
14
|
+
];
|
|
15
|
+
for (var i = 0; i < alen; i++) {
|
|
16
|
+
src.push('var a' + i + ' = a[' + i + '] | 0;');
|
|
17
|
+
src.push('var al' + i + ' = a' + i + ' & 0x1fff;');
|
|
18
|
+
src.push('var ah' + i + ' = a' + i + ' >>> 13;');
|
|
19
|
+
}
|
|
20
|
+
for (i = 0; i < blen; i++) {
|
|
21
|
+
src.push('var b' + i + ' = b[' + i + '] | 0;');
|
|
22
|
+
src.push('var bl' + i + ' = b' + i + ' & 0x1fff;');
|
|
23
|
+
src.push('var bh' + i + ' = b' + i + ' >>> 13;');
|
|
24
|
+
}
|
|
25
|
+
src.push('');
|
|
26
|
+
src.push('out.negative = self.negative ^ num.negative;');
|
|
27
|
+
src.push('out.length = ' + len + ';');
|
|
28
|
+
|
|
29
|
+
for (var k = 0; k < len; k++) {
|
|
30
|
+
var minJ = Math.max(0, k - alen + 1);
|
|
31
|
+
var maxJ = Math.min(k, blen - 1);
|
|
32
|
+
|
|
33
|
+
src.push('\/* k = ' + k + ' *\/');
|
|
34
|
+
src.push('var w' + k + ' = c;');
|
|
35
|
+
src.push('c = 0;');
|
|
36
|
+
for (var j = minJ; j <= maxJ; j++) {
|
|
37
|
+
i = k - j;
|
|
38
|
+
|
|
39
|
+
src.push('lo = Math.imul(al' + i + ', bl' + j + ');');
|
|
40
|
+
src.push('mid = Math.imul(al' + i + ', bh' + j + ');');
|
|
41
|
+
src.push('mid = (mid + Math.imul(ah' + i + ', bl' + j + ')) | 0;');
|
|
42
|
+
src.push('hi = Math.imul(ah' + i + ', bh' + j + ');');
|
|
43
|
+
|
|
44
|
+
src.push('w' + k + ' = (w' + k + ' + lo) | 0;');
|
|
45
|
+
src.push('w' + k + ' = (w' + k + ' + ((mid & 0x1fff) << 13)) | 0;');
|
|
46
|
+
src.push('c = (c + hi) | 0;');
|
|
47
|
+
src.push('c = (c + (mid >>> 13)) | 0;');
|
|
48
|
+
src.push('c = (c + (w' + k + ' >>> 26)) | 0;');
|
|
49
|
+
src.push('w' + k + ' &= 0x3ffffff;');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// Store in separate step for better memory access
|
|
53
|
+
for (k = 0; k < len; k++) {
|
|
54
|
+
src.push('o[' + k + '] = w' + k + ';');
|
|
55
|
+
}
|
|
56
|
+
src.push('if (c !== 0) {',
|
|
57
|
+
' o[' + k + '] = c;',
|
|
58
|
+
' out.length++;',
|
|
59
|
+
'}',
|
|
60
|
+
'return out;');
|
|
61
|
+
|
|
62
|
+
return src.join('\n');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
console.log(genCombMulTo(10, 10));
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function genCombMulTo (alen, blen) {
|
|
4
|
+
var len = alen + blen - 1;
|
|
5
|
+
var src = [
|
|
6
|
+
'var a = self.words;',
|
|
7
|
+
'var b = num.words;',
|
|
8
|
+
'var o = out.words;',
|
|
9
|
+
'var c = 0;',
|
|
10
|
+
'var lo;',
|
|
11
|
+
'var mid;',
|
|
12
|
+
'var hi;'
|
|
13
|
+
];
|
|
14
|
+
for (var i = 0; i < alen; i++) {
|
|
15
|
+
src.push('var a' + i + ' = a[' + i + '] | 0;');
|
|
16
|
+
src.push('var al' + i + ' = a' + i + ' & 0x1fff;');
|
|
17
|
+
src.push('var ah' + i + ' = a' + i + ' >>> 13;');
|
|
18
|
+
}
|
|
19
|
+
for (i = 0; i < blen; i++) {
|
|
20
|
+
src.push('var b' + i + ' = b[' + i + '] | 0;');
|
|
21
|
+
src.push('var bl' + i + ' = b' + i + ' & 0x1fff;');
|
|
22
|
+
src.push('var bh' + i + ' = b' + i + ' >>> 13;');
|
|
23
|
+
}
|
|
24
|
+
src.push('');
|
|
25
|
+
src.push('out.negative = self.negative ^ num.negative;');
|
|
26
|
+
src.push('out.length = ' + len + ';');
|
|
27
|
+
|
|
28
|
+
for (var k = 0; k < len; k++) {
|
|
29
|
+
var minJ = Math.max(0, k - alen + 1);
|
|
30
|
+
var maxJ = Math.min(k, blen - 1);
|
|
31
|
+
|
|
32
|
+
src.push('\/* k = ' + k + ' *\/');
|
|
33
|
+
src.push('lo = Math.imul(al' + (k - minJ) + ', bl' + minJ + ');');
|
|
34
|
+
src.push('mid = Math.imul(al' + (k - minJ) + ', bh' + minJ + ');');
|
|
35
|
+
src.push(
|
|
36
|
+
'mid = (mid + Math.imul(ah' + (k - minJ) + ', bl' + minJ + ')) | 0;');
|
|
37
|
+
src.push('hi = Math.imul(ah' + (k - minJ) + ', bh' + minJ + ');');
|
|
38
|
+
|
|
39
|
+
for (var j = minJ + 1; j <= maxJ; j++) {
|
|
40
|
+
i = k - j;
|
|
41
|
+
|
|
42
|
+
src.push('lo = (lo + Math.imul(al' + i + ', bl' + j + ')) | 0;');
|
|
43
|
+
src.push('mid = (mid + Math.imul(al' + i + ', bh' + j + ')) | 0;');
|
|
44
|
+
src.push('mid = (mid + Math.imul(ah' + i + ', bl' + j + ')) | 0;');
|
|
45
|
+
src.push('hi = (hi + Math.imul(ah' + i + ', bh' + j + ')) | 0;');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
src.push('var w' + k + ' = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;');
|
|
49
|
+
src.push('c = (((hi + (mid >>> 13)) | 0) + (w' + k + ' >>> 26)) | 0;');
|
|
50
|
+
src.push('w' + k + ' &= 0x3ffffff;');
|
|
51
|
+
}
|
|
52
|
+
// Store in separate step for better memory access
|
|
53
|
+
for (k = 0; k < len; k++) {
|
|
54
|
+
src.push('o[' + k + '] = w' + k + ';');
|
|
55
|
+
}
|
|
56
|
+
src.push('if (c !== 0) {',
|
|
57
|
+
' o[' + k + '] = c;',
|
|
58
|
+
' out.length++;',
|
|
59
|
+
'}',
|
|
60
|
+
'return out;');
|
|
61
|
+
|
|
62
|
+
return src.join('\n');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
console.log(genCombMulTo(10, 10));
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## **6.14.0**
|
|
2
|
+
- [New] `parse`: add `throwOnParameterLimitExceeded` option (#517)
|
|
3
|
+
- [Refactor] `parse`: use `utils.combine` more
|
|
4
|
+
- [patch] `parse`: add explicit `throwOnLimitExceeded` default
|
|
5
|
+
- [actions] use shared action; re-add finishers
|
|
6
|
+
- [meta] Fix changelog formatting bug
|
|
7
|
+
- [Deps] update `side-channel`
|
|
8
|
+
- [Dev Deps] update `es-value-fixtures`, `has-bigints`, `has-proto`, `has-symbols`
|
|
9
|
+
- [Tests] increase coverage
|
|
10
|
+
|
|
11
|
+
## **6.13.1**
|
|
12
|
+
- [Fix] `stringify`: avoid a crash when a `filter` key is `null`
|
|
13
|
+
- [Fix] `utils.merge`: functions should not be stringified into keys
|
|
14
|
+
- [Fix] `parse`: avoid a crash with interpretNumericEntities: true, comma: true, and iso charset
|
|
15
|
+
- [Fix] `stringify`: ensure a non-string `filter` does not crash
|
|
16
|
+
- [Refactor] use `__proto__` syntax instead of `Object.create` for null objects
|
|
17
|
+
- [Refactor] misc cleanup
|
|
18
|
+
- [Tests] `utils.merge`: add some coverage
|
|
19
|
+
- [Tests] fix a test case
|
|
20
|
+
- [actions] split out node 10-20, and 20+
|
|
21
|
+
- [Dev Deps] update `es-value-fixtures`, `mock-property`, `object-inspect`, `tape`
|
|
22
|
+
|
|
1
23
|
## **6.13.0**
|
|
2
24
|
- [New] `parse`: add `strictDepth` option (#511)
|
|
3
25
|
- [Tests] use `npm audit` instead of `aud`
|
|
@@ -49,7 +49,7 @@ assert.deepEqual(qs.parse('foo[bar]=baz'), {
|
|
|
49
49
|
});
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
When using the `plainObjects` option the parsed value is returned as a null object, created via `
|
|
52
|
+
When using the `plainObjects` option the parsed value is returned as a null object, created via `{ __proto__: null }` and as such you should be aware that prototype methods will not exist on it and a user may set those names to whatever value they like:
|
|
53
53
|
|
|
54
54
|
```javascript
|
|
55
55
|
var nullObject = qs.parse('a[hasOwnProperty]=b', { plainObjects: true });
|
|
@@ -135,6 +135,18 @@ var limited = qs.parse('a=b&c=d', { parameterLimit: 1 });
|
|
|
135
135
|
assert.deepEqual(limited, { a: 'b' });
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
+
If you want an error to be thrown whenever the a limit is exceeded (eg, `parameterLimit`, `arrayLimit`), set the `throwOnLimitExceeded` option to `true`. This option will generate a descriptive error if the query string exceeds a configured limit.
|
|
139
|
+
```javascript
|
|
140
|
+
try {
|
|
141
|
+
qs.parse('a=1&b=2&c=3&d=4', { parameterLimit: 3, throwOnLimitExceeded: true });
|
|
142
|
+
} catch (err) {
|
|
143
|
+
assert(err instanceof Error);
|
|
144
|
+
assert.strictEqual(err.message, 'Parameter limit exceeded. Only 3 parameters allowed.');
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `parameterLimit` and ignore the rest without throwing an error.
|
|
149
|
+
|
|
138
150
|
To bypass the leading question mark, use `ignoreQueryPrefix`:
|
|
139
151
|
|
|
140
152
|
```javascript
|
|
@@ -286,6 +298,18 @@ var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 });
|
|
|
286
298
|
assert.deepEqual(withArrayLimit, { a: { '1': 'b' } });
|
|
287
299
|
```
|
|
288
300
|
|
|
301
|
+
If you want to throw an error whenever the array limit is exceeded, set the `throwOnLimitExceeded` option to `true`. This option will generate a descriptive error if the query string exceeds a configured limit.
|
|
302
|
+
```javascript
|
|
303
|
+
try {
|
|
304
|
+
qs.parse('a[1]=b', { arrayLimit: 0, throwOnLimitExceeded: true });
|
|
305
|
+
} catch (err) {
|
|
306
|
+
assert(err instanceof Error);
|
|
307
|
+
assert.strictEqual(err.message, 'Array limit exceeded. Only 0 elements allowed in an array.');
|
|
308
|
+
}
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
When `throwOnLimitExceeded` is set to `false` (default), **qs** will parse up to the specified `arrayLimit` and if the limit is exceeded, the array will instead be converted to an object with the index as the key
|
|
312
|
+
|
|
289
313
|
To disable array parsing entirely, set `parseArrays` to `false`.
|
|
290
314
|
|
|
291
315
|
```javascript
|