get-intrinsic
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -8,2 +8,10 @@ # Changelog | ||
## [v1.2.7](https://github.com/ljharb/get-intrinsic/compare/v1.2.6...v1.2.7) - 2025-01-02 | ||
### Commits | ||
- [Refactor] use `get-proto` directly [`00ab955`](https://github.com/ljharb/get-intrinsic/commit/00ab95546a0980c8ad42a84253daaa8d2adcedf9) | ||
- [Deps] update `math-intrinsics` [`c716cdd`](https://github.com/ljharb/get-intrinsic/commit/c716cdd6bbe36b438057025561b8bb5a879ac8a0) | ||
- [Dev Deps] update `call-bound`, `es-abstract` [`dc648a6`](https://github.com/ljharb/get-intrinsic/commit/dc648a67eb359037dff8d8619bfa71d86debccb1) | ||
## [v1.2.6](https://github.com/ljharb/get-intrinsic/compare/v1.2.5...v1.2.6) - 2024-12-11 | ||
@@ -10,0 +18,0 @@ |
15
index.js
@@ -20,2 +20,4 @@ 'use strict'; | ||
var pow = require('math-intrinsics/pow'); | ||
var round = require('math-intrinsics/round'); | ||
var sign = require('math-intrinsics/sign'); | ||
@@ -55,7 +57,6 @@ var $Function = Function; | ||
var hasSymbols = require('has-symbols')(); | ||
var getDunderProto = require('dunder-proto/get'); | ||
var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf) | ||
|| $Object.getPrototypeOf | ||
|| getDunderProto; | ||
var getProto = require('get-proto'); | ||
var $ObjectGPO = require('get-proto/Object.getPrototypeOf'); | ||
var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf'); | ||
@@ -142,2 +143,3 @@ var $apply = require('call-bind-apply-helpers/functionApply'); | ||
'%Object.defineProperty%': $defineProperty, | ||
'%Object.getPrototypeOf%': $ObjectGPO, | ||
'%Math.abs%': abs, | ||
@@ -147,3 +149,6 @@ '%Math.floor%': floor, | ||
'%Math.min%': min, | ||
'%Math.pow%': pow | ||
'%Math.pow%': pow, | ||
'%Math.round%': round, | ||
'%Math.sign%': sign, | ||
'%Reflect.getPrototypeOf%': $ReflectGPO | ||
}; | ||
@@ -150,0 +155,0 @@ |
{ | ||
"name": "get-intrinsic", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "Get and robustly cache all JS language-level intrinsics at first require time", | ||
@@ -48,3 +48,2 @@ "main": "index.js", | ||
"call-bind-apply-helpers": "^1.0.1", | ||
"dunder-proto": "^1.0.0", | ||
"es-define-property": "^1.0.1", | ||
@@ -54,6 +53,7 @@ "es-errors": "^1.3.0", | ||
"function-bind": "^1.1.2", | ||
"get-proto": "^1.0.0", | ||
"gopd": "^1.2.0", | ||
"has-symbols": "^1.1.0", | ||
"hasown": "^2.0.2", | ||
"math-intrinsics": "^1.0.0" | ||
"math-intrinsics": "^1.1.0" | ||
}, | ||
@@ -63,5 +63,5 @@ "devDependencies": { | ||
"auto-changelog": "^2.5.0", | ||
"call-bound": "^1.0.2", | ||
"call-bound": "^1.0.3", | ||
"encoding": "^0.1.13", | ||
"es-abstract": "^1.23.5", | ||
"es-abstract": "^1.23.8", | ||
"es-value-fixtures": "^1.5.0", | ||
@@ -68,0 +68,0 @@ "eslint": "=8.8.0", |
45821
563
+ Addedget-proto@^1.0.0
+ Addedget-proto@1.0.1(transitive)
- Removeddunder-proto@^1.0.0
Updatedmath-intrinsics@^1.1.0