get-intrinsic
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -8,2 +8,14 @@ # Changelog | ||
## [v1.2.3](https://github.com/ljharb/get-intrinsic/compare/v1.2.2...v1.2.3) - 2024-02-03 | ||
### Commits | ||
- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`f11db9c`](https://github.com/ljharb/get-intrinsic/commit/f11db9c4fb97d87bbd53d3c73ac6b3db3613ad3b) | ||
- [Dev Deps] update `aud`, `es-abstract`, `mock-property`, `npmignore` [`b7ac7d1`](https://github.com/ljharb/get-intrinsic/commit/b7ac7d1616fefb03877b1aed0c8f8d61aad32b6c) | ||
- [meta] simplify `exports` [`faa0cc6`](https://github.com/ljharb/get-intrinsic/commit/faa0cc618e2830ffb51a8202490b0c215d965cbc) | ||
- [meta] add missing `engines.node` [`774dd0b`](https://github.com/ljharb/get-intrinsic/commit/774dd0b3e8f741c3f05a6322d124d6087f146af1) | ||
- [Dev Deps] update `tape` [`5828e8e`](https://github.com/ljharb/get-intrinsic/commit/5828e8e4a04e69312e87a36c0ea39428a7a4c3d8) | ||
- [Robustness] use null objects for lookups [`eb9a11f`](https://github.com/ljharb/get-intrinsic/commit/eb9a11fa9eb3e13b193fcc05a7fb814341b1a7b7) | ||
- [meta] add `sideEffects` flag [`89bcc7a`](https://github.com/ljharb/get-intrinsic/commit/89bcc7a42e19bf07b7c21e3094d5ab177109e6d2) | ||
## [v1.2.2](https://github.com/ljharb/get-intrinsic/compare/v1.2.1...v1.2.2) - 2023-10-20 | ||
@@ -10,0 +22,0 @@ |
10
index.js
@@ -5,5 +5,7 @@ 'use strict'; | ||
var $SyntaxError = SyntaxError; | ||
var $RangeError = require('es-errors/range'); | ||
var $SyntaxError = require('es-errors/syntax'); | ||
var $TypeError = require('es-errors/type'); | ||
var $Function = Function; | ||
var $TypeError = TypeError; | ||
@@ -60,2 +62,3 @@ // eslint-disable-next-line consistent-return | ||
var INTRINSICS = { | ||
__proto__: null, | ||
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, | ||
@@ -105,3 +108,3 @@ '%Array%': Array, | ||
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, | ||
'%RangeError%': RangeError, | ||
'%RangeError%': $RangeError, | ||
'%ReferenceError%': ReferenceError, | ||
@@ -166,2 +169,3 @@ '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, | ||
var LEGACY_ALIASES = { | ||
__proto__: null, | ||
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], | ||
@@ -168,0 +172,0 @@ '%ArrayPrototype%': ['Array', 'prototype'], |
{ | ||
"name": "get-intrinsic", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Get and robustly cache all JS language-level intrinsics at first require time", | ||
"main": "index.js", | ||
"exports": { | ||
".": [ | ||
{ | ||
"default": "./index.js" | ||
}, | ||
"./index.js" | ||
], | ||
".": "./index.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"sideEffects": false, | ||
"scripts": { | ||
@@ -52,6 +48,6 @@ "prepack": "npmignore --auto --commentLines=autogenerated", | ||
"@ljharb/eslint-config": "^21.1.0", | ||
"aud": "^2.0.3", | ||
"aud": "^2.0.4", | ||
"auto-changelog": "^2.4.0", | ||
"call-bind": "^1.0.5", | ||
"es-abstract": "^1.22.2", | ||
"es-abstract": "^1.22.3", | ||
"es-value-fixtures": "^1.4.2", | ||
@@ -65,8 +61,8 @@ "eslint": "=8.8.0", | ||
"make-generator-function": "^2.0.0", | ||
"mock-property": "^1.0.2", | ||
"npmignore": "^0.3.0", | ||
"mock-property": "^1.0.3", | ||
"npmignore": "^0.3.1", | ||
"nyc": "^10.3.2", | ||
"object-inspect": "^1.13.1", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.7.2" | ||
"tape": "^5.7.4" | ||
}, | ||
@@ -82,2 +78,3 @@ "auto-changelog": { | ||
"dependencies": { | ||
"es-errors": "^1.0.0", | ||
"function-bind": "^1.1.2", | ||
@@ -95,3 +92,6 @@ "has-proto": "^1.0.1", | ||
] | ||
}, | ||
"engines": { | ||
"node": ">= 0.4" | ||
} | ||
} |
41188
545
5
+ Addedes-errors@^1.0.0
+ Addedes-errors@1.3.0(transitive)