step-node-agent 3.26.4 → 3.26.5-CustomizedJv2
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/{has-property-descriptors → call-bind-apply-helpers}/.github/FUNDING.yml +1 -1
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +23 -0
- package/node_modules/{call-bind → 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 +46 -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-bind → call-bound}/.github/FUNDING.yml +1 -1
- package/node_modules/call-bound/CHANGELOG.md +34 -0
- package/node_modules/{has-property-descriptors → call-bound}/LICENSE +1 -1
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +13 -0
- package/node_modules/call-bound/index.js +18 -0
- package/node_modules/{call-bind → call-bound}/package.json +27 -23
- package/node_modules/{call-bind/test/callBound.js → call-bound/test/index.js} +1 -1
- package/node_modules/{define-data-property → dunder-proto}/.github/FUNDING.yml +1 -1
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- 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/{has-proto → dunder-proto}/package.json +34 -36
- 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/{set-function-length → es-object-atoms}/.github/FUNDING.yml +1 -1
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/{define-data-property → es-object-atoms}/LICENSE +1 -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/express/History.md +10 -1
- package/node_modules/express/package.json +6 -2
- package/node_modules/get-intrinsic/CHANGELOG.md +35 -0
- package/node_modules/get-intrinsic/index.js +39 -21
- package/node_modules/get-intrinsic/package.json +23 -19
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +2 -2
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/{has-proto → get-proto}/.github/FUNDING.yml +1 -1
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/{has-proto → get-proto}/LICENSE +1 -1
- 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-property-descriptors → get-proto}/package.json +35 -31
- 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/is-core-module/CHANGELOG.md +13 -0
- package/node_modules/is-core-module/core.json +1 -0
- package/node_modules/is-core-module/package.json +3 -3
- package/node_modules/is-core-module/test/index.js +3 -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/object-inspect/CHANGELOG.md +8 -0
- package/node_modules/object-inspect/index.js +10 -7
- package/node_modules/object-inspect/package.json +5 -4
- package/node_modules/object-inspect/test/values.js +50 -0
- package/node_modules/path-to-regexp/index.js +13 -3
- package/node_modules/path-to-regexp/package.json +1 -1
- package/node_modules/psl/README.md +7 -14
- package/node_modules/psl/SECURITY.md +13 -0
- package/node_modules/psl/data/rules.js +536 -529
- package/node_modules/psl/dist/psl.cjs +1 -1
- package/node_modules/psl/dist/psl.mjs +726 -715
- package/node_modules/psl/dist/psl.umd.cjs +1 -1
- package/node_modules/psl/index.js +52 -74
- package/node_modules/psl/package.json +10 -7
- package/node_modules/resolve/lib/core.json +4 -0
- package/node_modules/resolve/package.json +12 -9
- 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/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/yaml/README.md +27 -8
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
- package/node_modules/yaml/browser/dist/log.js +1 -4
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +2 -11
- package/node_modules/yaml/browser/dist/util.js +1 -1
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +4 -4
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +6 -6
- package/node_modules/yaml/dist/compose/compose-node.d.ts +7 -7
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +4 -4
- package/node_modules/yaml/dist/compose/composer.d.ts +7 -6
- package/node_modules/yaml/dist/compose/composer.js +2 -1
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +5 -5
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +5 -5
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +5 -5
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +2 -2
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -7
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +4 -4
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +2 -2
- package/node_modules/yaml/dist/compose/resolve-props.js +1 -1
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +1 -1
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +1 -1
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +2 -2
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +3 -3
- package/node_modules/yaml/dist/doc/Document.d.ts +11 -11
- package/node_modules/yaml/dist/doc/anchors.d.ts +2 -2
- package/node_modules/yaml/dist/doc/createNode.d.ts +4 -4
- package/node_modules/yaml/dist/doc/directives.d.ts +1 -1
- package/node_modules/yaml/dist/index.d.ts +21 -18
- package/node_modules/yaml/dist/log.js +4 -2
- package/node_modules/yaml/dist/nodes/Alias.d.ts +9 -8
- package/node_modules/yaml/dist/nodes/Collection.d.ts +4 -4
- package/node_modules/yaml/dist/nodes/Node.d.ts +10 -10
- package/node_modules/yaml/dist/nodes/Pair.d.ts +9 -8
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +4 -3
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +10 -10
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +10 -10
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +3 -3
- package/node_modules/yaml/dist/nodes/identity.d.ts +7 -7
- package/node_modules/yaml/dist/nodes/toJS.d.ts +2 -2
- package/node_modules/yaml/dist/options.d.ts +10 -10
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +4 -4
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +1 -1
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +2 -2
- package/node_modules/yaml/dist/parse/cst.d.ts +4 -3
- package/node_modules/yaml/dist/parse/lexer.d.ts +1 -1
- package/node_modules/yaml/dist/parse/parser.d.ts +4 -4
- package/node_modules/yaml/dist/parse/parser.js +2 -1
- package/node_modules/yaml/dist/public-api.d.ts +6 -5
- package/node_modules/yaml/dist/schema/Schema.d.ts +4 -4
- package/node_modules/yaml/dist/schema/common/map.d.ts +1 -1
- package/node_modules/yaml/dist/schema/common/null.d.ts +1 -1
- package/node_modules/yaml/dist/schema/common/seq.d.ts +1 -1
- package/node_modules/yaml/dist/schema/common/string.d.ts +1 -1
- package/node_modules/yaml/dist/schema/core/bool.d.ts +1 -1
- package/node_modules/yaml/dist/schema/core/float.d.ts +1 -1
- package/node_modules/yaml/dist/schema/core/int.d.ts +1 -1
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -1
- package/node_modules/yaml/dist/schema/json/schema.d.ts +1 -1
- package/node_modules/yaml/dist/schema/tags.d.ts +2 -2
- package/node_modules/yaml/dist/schema/types.d.ts +8 -8
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +1 -1
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +6 -5
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +1 -1
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +1 -1
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +1 -1
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +3 -3
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +11 -17
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +7 -7
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -1
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +9 -9
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +1 -1
- package/node_modules/yaml/dist/stringify/stringify.d.ts +3 -3
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +2 -2
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +3 -3
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +1 -1
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +2 -2
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +2 -2
- package/node_modules/yaml/dist/util.d.ts +16 -12
- package/node_modules/yaml/dist/util.js +2 -2
- package/node_modules/yaml/dist/visit.d.ts +7 -7
- package/node_modules/yaml/package.json +4 -4
- package/package.json +1 -1
- package/node_modules/call-bind/.eslintignore +0 -1
- package/node_modules/call-bind/CHANGELOG.md +0 -93
- package/node_modules/call-bind/README.md +0 -64
- package/node_modules/call-bind/callBound.js +0 -15
- package/node_modules/call-bind/index.js +0 -35
- package/node_modules/call-bind/test/index.js +0 -80
- package/node_modules/define-data-property/.eslintrc +0 -24
- package/node_modules/define-data-property/CHANGELOG.md +0 -70
- package/node_modules/define-data-property/README.md +0 -67
- package/node_modules/define-data-property/index.d.ts +0 -12
- package/node_modules/define-data-property/index.js +0 -56
- package/node_modules/define-data-property/package.json +0 -106
- package/node_modules/define-data-property/test/index.js +0 -392
- package/node_modules/define-data-property/tsconfig.json +0 -59
- package/node_modules/has-property-descriptors/.eslintrc +0 -13
- package/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
- package/node_modules/has-property-descriptors/README.md +0 -43
- package/node_modules/has-property-descriptors/index.js +0 -22
- package/node_modules/has-property-descriptors/test/index.js +0 -57
- package/node_modules/has-proto/CHANGELOG.md +0 -38
- package/node_modules/has-proto/README.md +0 -38
- package/node_modules/has-proto/index.d.ts +0 -3
- package/node_modules/has-proto/index.js +0 -15
- package/node_modules/has-proto/test/index.js +0 -19
- package/node_modules/has-proto/tsconfig.json +0 -49
- package/node_modules/set-function-length/.eslintrc +0 -27
- package/node_modules/set-function-length/CHANGELOG.md +0 -70
- package/node_modules/set-function-length/LICENSE +0 -21
- package/node_modules/set-function-length/README.md +0 -56
- package/node_modules/set-function-length/env.d.ts +0 -9
- package/node_modules/set-function-length/env.js +0 -25
- package/node_modules/set-function-length/index.d.ts +0 -7
- package/node_modules/set-function-length/index.js +0 -42
- package/node_modules/set-function-length/package.json +0 -102
- /package/node_modules/{call-bind → call-bind-apply-helpers}/.eslintrc +0 -0
- /package/node_modules/{call-bind → call-bind-apply-helpers}/.nycrc +0 -0
- /package/node_modules/{has-property-descriptors → call-bound}/.nycrc +0 -0
- /package/node_modules/{set-function-length → call-bound}/tsconfig.json +0 -0
- /package/node_modules/{has-proto → dunder-proto}/.eslintrc +0 -0
- /package/node_modules/{define-data-property → dunder-proto}/.nycrc +0 -0
- /package/node_modules/{set-function-length → side-channel-list}/.nycrc +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# es-object-atoms <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
|
+
ES Object-related atoms: Object, ToObject, RequireObjectCoercible.
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
const assert = require('assert');
|
|
16
|
+
|
|
17
|
+
const $Object = require('es-object-atoms');
|
|
18
|
+
const isObject = require('es-object-atoms/isObject');
|
|
19
|
+
const ToObject = require('es-object-atoms/ToObject');
|
|
20
|
+
const RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');
|
|
21
|
+
|
|
22
|
+
assert.equal($Object, Object);
|
|
23
|
+
assert.throws(() => ToObject(null), TypeError);
|
|
24
|
+
assert.throws(() => ToObject(undefined), TypeError);
|
|
25
|
+
assert.throws(() => RequireObjectCoercible(null), TypeError);
|
|
26
|
+
assert.throws(() => RequireObjectCoercible(undefined), TypeError);
|
|
27
|
+
|
|
28
|
+
assert.equal(isObject(undefined), false);
|
|
29
|
+
assert.equal(isObject(null), false);
|
|
30
|
+
assert.equal(isObject({}), true);
|
|
31
|
+
assert.equal(isObject([]), true);
|
|
32
|
+
assert.equal(isObject(function () {}), true);
|
|
33
|
+
|
|
34
|
+
assert.deepEqual(RequireObjectCoercible(true), true);
|
|
35
|
+
assert.deepEqual(ToObject(true), Object(true));
|
|
36
|
+
|
|
37
|
+
const obj = {};
|
|
38
|
+
assert.equal(RequireObjectCoercible(obj), obj);
|
|
39
|
+
assert.equal(ToObject(obj), obj);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Tests
|
|
43
|
+
Simply clone the repo, `npm install`, and run `npm test`
|
|
44
|
+
|
|
45
|
+
## Security
|
|
46
|
+
|
|
47
|
+
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
|
|
48
|
+
|
|
49
|
+
[package-url]: https://npmjs.org/package/es-object-atoms
|
|
50
|
+
[npm-version-svg]: https://versionbadg.es/ljharb/es-object-atoms.svg
|
|
51
|
+
[deps-svg]: https://david-dm.org/ljharb/es-object-atoms.svg
|
|
52
|
+
[deps-url]: https://david-dm.org/ljharb/es-object-atoms
|
|
53
|
+
[dev-deps-svg]: https://david-dm.org/ljharb/es-object-atoms/dev-status.svg
|
|
54
|
+
[dev-deps-url]: https://david-dm.org/ljharb/es-object-atoms#info=devDependencies
|
|
55
|
+
[npm-badge-png]: https://nodei.co/npm/es-object-atoms.png?downloads=true&stars=true
|
|
56
|
+
[license-image]: https://img.shields.io/npm/l/es-object-atoms.svg
|
|
57
|
+
[license-url]: LICENSE
|
|
58
|
+
[downloads-image]: https://img.shields.io/npm/dm/es-object.svg
|
|
59
|
+
[downloads-url]: https://npm-stat.com/charts.html?package=es-object-atoms
|
|
60
|
+
[codecov-image]: https://codecov.io/gh/ljharb/es-object-atoms/branch/main/graphs/badge.svg
|
|
61
|
+
[codecov-url]: https://app.codecov.io/gh/ljharb/es-object-atoms/
|
|
62
|
+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-object-atoms
|
|
63
|
+
[actions-url]: https://github.com/ljharb/es-object-atoms/actions
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var $TypeError = require('es-errors/type');
|
|
4
|
+
|
|
5
|
+
/** @type {import('./RequireObjectCoercible')} */
|
|
6
|
+
module.exports = function RequireObjectCoercible(value) {
|
|
7
|
+
if (value == null) {
|
|
8
|
+
throw new $TypeError((arguments.length > 0 && arguments[1]) || ('Cannot call method on ' + value));
|
|
9
|
+
}
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare function ToObject<T extends object>(value: number): Number;
|
|
2
|
+
declare function ToObject<T extends object>(value: boolean): Boolean;
|
|
3
|
+
declare function ToObject<T extends object>(value: string): String;
|
|
4
|
+
declare function ToObject<T extends object>(value: bigint): BigInt;
|
|
5
|
+
declare function ToObject<T extends object>(value: T): T;
|
|
6
|
+
|
|
7
|
+
export = ToObject;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var $Object = require('./');
|
|
4
|
+
var RequireObjectCoercible = require('./RequireObjectCoercible');
|
|
5
|
+
|
|
6
|
+
/** @type {import('./ToObject')} */
|
|
7
|
+
module.exports = function ToObject(value) {
|
|
8
|
+
RequireObjectCoercible(value);
|
|
9
|
+
return $Object(value);
|
|
10
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "es-object-atoms",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "ES Object-related atoms: Object, ToObject, RequireObjectCoercible",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./RequireObjectCoercible": "./RequireObjectCoercible.js",
|
|
9
|
+
"./isObject": "./isObject.js",
|
|
10
|
+
"./ToObject": "./ToObject.js",
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"scripts": {
|
|
15
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
16
|
+
"prepublishOnly": "safe-publish-latest",
|
|
17
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
18
|
+
"pretest": "npm run lint",
|
|
19
|
+
"test": "npm run tests-only",
|
|
20
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
21
|
+
"posttest": "npx npm@\">= 10.2\" audit --production",
|
|
22
|
+
"prelint": "evalmd README.md",
|
|
23
|
+
"lint": "eslint --ext=js,mjs .",
|
|
24
|
+
"postlint": "tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
|
|
25
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
26
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/ljharb/es-object-atoms.git"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"javascript",
|
|
34
|
+
"ecmascript",
|
|
35
|
+
"object",
|
|
36
|
+
"toobject",
|
|
37
|
+
"coercible"
|
|
38
|
+
],
|
|
39
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/ljharb/es-object-atoms/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/ljharb/es-object-atoms#readme",
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"es-errors": "^1.3.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@ljharb/eslint-config": "^21.1.1",
|
|
50
|
+
"@ljharb/tsconfig": "^0.2.3",
|
|
51
|
+
"@types/tape": "^5.8.1",
|
|
52
|
+
"auto-changelog": "^2.5.0",
|
|
53
|
+
"eclint": "^2.8.1",
|
|
54
|
+
"encoding": "^0.1.13",
|
|
55
|
+
"eslint": "^8.8.0",
|
|
56
|
+
"evalmd": "^0.0.19",
|
|
57
|
+
"in-publish": "^2.0.1",
|
|
58
|
+
"npmignore": "^0.3.1",
|
|
59
|
+
"nyc": "^10.3.2",
|
|
60
|
+
"safe-publish-latest": "^2.0.0",
|
|
61
|
+
"tape": "^5.9.0",
|
|
62
|
+
"typescript": "next"
|
|
63
|
+
},
|
|
64
|
+
"auto-changelog": {
|
|
65
|
+
"output": "CHANGELOG.md",
|
|
66
|
+
"template": "keepachangelog",
|
|
67
|
+
"unreleased": false,
|
|
68
|
+
"commitLimit": false,
|
|
69
|
+
"backfillLimit": false,
|
|
70
|
+
"hideCredit": true
|
|
71
|
+
},
|
|
72
|
+
"publishConfig": {
|
|
73
|
+
"ignore": [
|
|
74
|
+
".github/workflows"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"engines": {
|
|
78
|
+
"node": ">= 0.4"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
|
|
5
|
+
var $Object = require('../');
|
|
6
|
+
var isObject = require('../isObject');
|
|
7
|
+
var ToObject = require('../ToObject');
|
|
8
|
+
var RequireObjectCoercible = require('..//RequireObjectCoercible');
|
|
9
|
+
|
|
10
|
+
test('errors', function (t) {
|
|
11
|
+
t.equal($Object, Object);
|
|
12
|
+
// @ts-expect-error
|
|
13
|
+
t['throws'](function () { ToObject(null); }, TypeError);
|
|
14
|
+
// @ts-expect-error
|
|
15
|
+
t['throws'](function () { ToObject(undefined); }, TypeError);
|
|
16
|
+
// @ts-expect-error
|
|
17
|
+
t['throws'](function () { RequireObjectCoercible(null); }, TypeError);
|
|
18
|
+
// @ts-expect-error
|
|
19
|
+
t['throws'](function () { RequireObjectCoercible(undefined); }, TypeError);
|
|
20
|
+
|
|
21
|
+
t.deepEqual(RequireObjectCoercible(true), true);
|
|
22
|
+
t.deepEqual(ToObject(true), Object(true));
|
|
23
|
+
t.deepEqual(ToObject(42), Object(42));
|
|
24
|
+
var f = function () {};
|
|
25
|
+
t.equal(ToObject(f), f);
|
|
26
|
+
|
|
27
|
+
t.equal(isObject(undefined), false);
|
|
28
|
+
t.equal(isObject(null), false);
|
|
29
|
+
t.equal(isObject({}), true);
|
|
30
|
+
t.equal(isObject([]), true);
|
|
31
|
+
t.equal(isObject(function () {}), true);
|
|
32
|
+
|
|
33
|
+
var obj = {};
|
|
34
|
+
t.equal(RequireObjectCoercible(obj), obj);
|
|
35
|
+
t.equal(ToObject(obj), obj);
|
|
36
|
+
|
|
37
|
+
t.end();
|
|
38
|
+
});
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
4.21.2 / 2024-11-06
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
* deps: path-to-regexp@0.1.12
|
|
5
|
+
- Fix backtracking protection
|
|
6
|
+
* deps: path-to-regexp@0.1.11
|
|
7
|
+
- Throws an error on invalid path values
|
|
8
|
+
|
|
1
9
|
4.21.1 / 2024-10-08
|
|
2
10
|
==========
|
|
3
11
|
|
|
4
|
-
* Backported a fix for [CVE-2024-47764](https://nvd.nist.gov/vuln/detail/CVE-2024-47764)
|
|
12
|
+
* Backported a fix for [CVE-2024-47764](https://nvd.nist.gov/vuln/detail/CVE-2024-47764)
|
|
13
|
+
|
|
5
14
|
|
|
6
15
|
4.21.0 / 2024-09-11
|
|
7
16
|
==========
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express",
|
|
3
3
|
"description": "Fast, unopinionated, minimalist web framework",
|
|
4
|
-
"version": "4.21.
|
|
4
|
+
"version": "4.21.2",
|
|
5
5
|
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Aaron Heckmann <aaron.heckmann+github@gmail.com>",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"repository": "expressjs/express",
|
|
17
17
|
"homepage": "http://expressjs.com/",
|
|
18
|
+
"funding": {
|
|
19
|
+
"type": "opencollective",
|
|
20
|
+
"url": "https://opencollective.com/express"
|
|
21
|
+
},
|
|
18
22
|
"keywords": [
|
|
19
23
|
"express",
|
|
20
24
|
"framework",
|
|
@@ -47,7 +51,7 @@
|
|
|
47
51
|
"methods": "~1.1.2",
|
|
48
52
|
"on-finished": "2.4.1",
|
|
49
53
|
"parseurl": "~1.3.3",
|
|
50
|
-
"path-to-regexp": "0.1.
|
|
54
|
+
"path-to-regexp": "0.1.12",
|
|
51
55
|
"proxy-addr": "~2.0.7",
|
|
52
56
|
"qs": "6.13.0",
|
|
53
57
|
"range-parser": "~1.2.1",
|
|
@@ -5,6 +5,41 @@ 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.2.7](https://github.com/ljharb/get-intrinsic/compare/v1.2.6...v1.2.7) - 2025-01-02
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [Refactor] use `get-proto` directly [`00ab955`](https://github.com/ljharb/get-intrinsic/commit/00ab95546a0980c8ad42a84253daaa8d2adcedf9)
|
|
13
|
+
- [Deps] update `math-intrinsics` [`c716cdd`](https://github.com/ljharb/get-intrinsic/commit/c716cdd6bbe36b438057025561b8bb5a879ac8a0)
|
|
14
|
+
- [Dev Deps] update `call-bound`, `es-abstract` [`dc648a6`](https://github.com/ljharb/get-intrinsic/commit/dc648a67eb359037dff8d8619bfa71d86debccb1)
|
|
15
|
+
|
|
16
|
+
## [v1.2.6](https://github.com/ljharb/get-intrinsic/compare/v1.2.5...v1.2.6) - 2024-12-11
|
|
17
|
+
|
|
18
|
+
### Commits
|
|
19
|
+
|
|
20
|
+
- [Refactor] use `math-intrinsics` [`841be86`](https://github.com/ljharb/get-intrinsic/commit/841be8641a9254c4c75483b30c8871b5d5065926)
|
|
21
|
+
- [Refactor] use `es-object-atoms` [`42057df`](https://github.com/ljharb/get-intrinsic/commit/42057dfa16f66f64787e66482af381cc6f31d2c1)
|
|
22
|
+
- [Deps] update `call-bind-apply-helpers` [`45afa24`](https://github.com/ljharb/get-intrinsic/commit/45afa24a9ee4d6d3c172db1f555b16cb27843ef4)
|
|
23
|
+
- [Dev Deps] update `call-bound` [`9cba9c6`](https://github.com/ljharb/get-intrinsic/commit/9cba9c6e70212bc163b7a5529cb25df46071646f)
|
|
24
|
+
|
|
25
|
+
## [v1.2.5](https://github.com/ljharb/get-intrinsic/compare/v1.2.4...v1.2.5) - 2024-12-06
|
|
26
|
+
|
|
27
|
+
### Commits
|
|
28
|
+
|
|
29
|
+
- [actions] split out node 10-20, and 20+ [`6e2b9dd`](https://github.com/ljharb/get-intrinsic/commit/6e2b9dd23902665681ebe453256ccfe21d7966f0)
|
|
30
|
+
- [Refactor] use `dunder-proto` and `call-bind-apply-helpers` instead of `has-proto` [`c095d17`](https://github.com/ljharb/get-intrinsic/commit/c095d179ad0f4fbfff20c8a3e0cb4fe668018998)
|
|
31
|
+
- [Refactor] use `gopd` [`9841d5b`](https://github.com/ljharb/get-intrinsic/commit/9841d5b35f7ab4fd2d193f0c741a50a077920e90)
|
|
32
|
+
- [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)
|
|
33
|
+
- [Deps] update `gopd`, `has-proto`, `has-symbols`, `hasown` [`974d8bf`](https://github.com/ljharb/get-intrinsic/commit/974d8bf5baad7939eef35c25cc1dd88c10a30fa6)
|
|
34
|
+
- [Dev Deps] update `call-bind`, `es-abstract`, `tape` [`df9dde1`](https://github.com/ljharb/get-intrinsic/commit/df9dde178186631ab8a3165ede056549918ce4bc)
|
|
35
|
+
- [Refactor] cache `es-define-property` as well [`43ef543`](https://github.com/ljharb/get-intrinsic/commit/43ef543cb02194401420e3a914a4ca9168691926)
|
|
36
|
+
- [Deps] update `has-proto`, `has-symbols`, `hasown` [`ad4949d`](https://github.com/ljharb/get-intrinsic/commit/ad4949d5467316505aad89bf75f9417ed782f7af)
|
|
37
|
+
- [Tests] use `call-bound` directly [`ad5c406`](https://github.com/ljharb/get-intrinsic/commit/ad5c4069774bfe90e520a35eead5fe5ca9d69e80)
|
|
38
|
+
- [Deps] update `has-proto`, `hasown` [`45414ca`](https://github.com/ljharb/get-intrinsic/commit/45414caa312333a2798953682c68f85c550627dd)
|
|
39
|
+
- [Tests] replace `aud` with `npm audit` [`18d3509`](https://github.com/ljharb/get-intrinsic/commit/18d3509f79460e7924da70409ee81e5053087523)
|
|
40
|
+
- [Deps] update `es-define-property` [`aadaa3b`](https://github.com/ljharb/get-intrinsic/commit/aadaa3b2188d77ad9bff394ce5d4249c49eb21f5)
|
|
41
|
+
- [Dev Deps] add missing peer dep [`c296a16`](https://github.com/ljharb/get-intrinsic/commit/c296a16246d0c9a5981944f4cc5cf61fbda0cf6a)
|
|
42
|
+
|
|
8
43
|
## [v1.2.4](https://github.com/ljharb/get-intrinsic/compare/v1.2.3...v1.2.4) - 2024-02-05
|
|
9
44
|
|
|
10
45
|
### 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
|
|
|
@@ -102,7 +106,8 @@ var INTRINSICS = {
|
|
|
102
106
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
103
107
|
'%Math%': Math,
|
|
104
108
|
'%Number%': Number,
|
|
105
|
-
'%Object%': Object,
|
|
109
|
+
'%Object%': $Object,
|
|
110
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
106
111
|
'%parseFloat%': parseFloat,
|
|
107
112
|
'%parseInt%': parseInt,
|
|
108
113
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
@@ -128,7 +133,20 @@ var INTRINSICS = {
|
|
|
128
133
|
'%URIError%': $URIError,
|
|
129
134
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
130
135
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
131
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
136
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
137
|
+
|
|
138
|
+
'%Function.prototype.call%': $call,
|
|
139
|
+
'%Function.prototype.apply%': $apply,
|
|
140
|
+
'%Object.defineProperty%': $defineProperty,
|
|
141
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
142
|
+
'%Math.abs%': abs,
|
|
143
|
+
'%Math.floor%': floor,
|
|
144
|
+
'%Math.max%': max,
|
|
145
|
+
'%Math.min%': min,
|
|
146
|
+
'%Math.pow%': pow,
|
|
147
|
+
'%Math.round%': round,
|
|
148
|
+
'%Math.sign%': sign,
|
|
149
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
132
150
|
};
|
|
133
151
|
|
|
134
152
|
if (getProto) {
|
|
@@ -223,11 +241,11 @@ var LEGACY_ALIASES = {
|
|
|
223
241
|
|
|
224
242
|
var bind = require('function-bind');
|
|
225
243
|
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(
|
|
244
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
245
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
246
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
247
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
248
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
231
249
|
|
|
232
250
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
233
251
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-intrinsic",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
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.1",
|
|
48
|
+
"es-define-property": "^1.0.1",
|
|
49
|
+
"es-errors": "^1.3.0",
|
|
50
|
+
"es-object-atoms": "^1.0.0",
|
|
51
|
+
"function-bind": "^1.1.2",
|
|
52
|
+
"get-proto": "^1.0.0",
|
|
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.8",
|
|
64
|
+
"es-value-fixtures": "^1.5.0",
|
|
53
65
|
"eslint": "=8.8.0",
|
|
54
66
|
"evalmd": "^0.0.19",
|
|
55
67
|
"for-each": "^0.3.3",
|
|
56
|
-
"gopd": "^1.0.1",
|
|
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.3",
|
|
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
|
|
|
@@ -4,7 +4,7 @@ github: [ljharb]
|
|
|
4
4
|
patreon: # Replace with a single Patreon username
|
|
5
5
|
open_collective: # Replace with a single Open Collective username
|
|
6
6
|
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
-
tidelift: npm/
|
|
7
|
+
tidelift: npm/get-proto
|
|
8
8
|
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
9
|
liberapay: # Replace with a single Liberapay username
|
|
10
10
|
issuehunt: # Replace with a single IssueHunt username
|
|
@@ -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)
|