object.getprototypeof
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -8,2 +8,15 @@ # Changelog | ||
## [v1.0.7](https://github.com/es-shims/Object.getPrototypeOf/compare/v1.0.6...v1.0.7) - 2025-01-02 | ||
### Commits | ||
- [actions] split out node 10-20, and 20+ [`66e0766`](https://github.com/es-shims/Object.getPrototypeOf/commit/66e0766e7510e6eb9ae4d720b569130740b73072) | ||
- [Tests] remove unused ESM tests [`038e9c6`](https://github.com/es-shims/Object.getPrototypeOf/commit/038e9c6cc3985b063a13eac48a61eb801d9e6153) | ||
- [Refactor] use `get-proto` directly [`675ecee`](https://github.com/es-shims/Object.getPrototypeOf/commit/675eceeeb0660376dba8a8834f4fccbe2ee1b869) | ||
- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `auto-changelog`, `tape` [`d606eaa`](https://github.com/es-shims/Object.getPrototypeOf/commit/d606eaa60d4edbbb1f1c938b0008495415365ac3) | ||
- [Deps] update `call-bind`, `reflect.getprototypeof` [`004d807`](https://github.com/es-shims/Object.getPrototypeOf/commit/004d807467371da2094a5c3602da87a4d5cd497d) | ||
- [Tests] replace `aud` with `npm audit` [`67b494b`](https://github.com/es-shims/Object.getPrototypeOf/commit/67b494b5bd1f674192c9942da81af008692cdd65) | ||
- [Dev Deps] add missing dev dep [`1993c8d`](https://github.com/es-shims/Object.getPrototypeOf/commit/1993c8dcf7d45c6a7d9c007290cadc01770ddf54) | ||
- [Dev Deps] add missing peer dep [`bfe72fa`](https://github.com/es-shims/Object.getPrototypeOf/commit/bfe72fa67c4257c994f97bc60b6e34951ad7ed70) | ||
## [v1.0.6](https://github.com/es-shims/Object.getPrototypeOf/compare/v1.0.5...v1.0.6) - 2024-03-16 | ||
@@ -10,0 +23,0 @@ |
{ | ||
"name": "object.getprototypeof", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "An ES5 mostly-spec-compliant `Object.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible", | ||
@@ -25,3 +25,3 @@ "main": "index.js", | ||
"test": "npm run tests-only", | ||
"posttest": "aud --production", | ||
"posttest": "npx npm@\">= 10.2\" audit --production", | ||
"version": "auto-changelog && git add CHANGELOG.md", | ||
@@ -59,8 +59,9 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" | ||
"devDependencies": { | ||
"@es-shims/api": "^2.4.2", | ||
"@ljharb/eslint-config": "^21.1.0", | ||
"aud": "^2.0.4", | ||
"auto-changelog": "^2.4.0", | ||
"@es-shims/api": "^2.5.1", | ||
"@ljharb/eslint-config": "^21.1.1", | ||
"auto-changelog": "^2.5.0", | ||
"encoding": "^0.1.13", | ||
"eslint": "=8.8.0", | ||
"evalmd": "^0.0.19", | ||
"functions-have-names": "^1.2.3", | ||
"in-publish": "^2.0.1", | ||
@@ -70,3 +71,3 @@ "npmignore": "^0.3.1", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.7.5" | ||
"tape": "^5.9.0" | ||
}, | ||
@@ -82,6 +83,7 @@ "auto-changelog": { | ||
"dependencies": { | ||
"call-bind": "^1.0.7", | ||
"call-bind": "^1.0.8", | ||
"define-properties": "^1.2.1", | ||
"es-object-atoms": "^1.0.0", | ||
"reflect.getprototypeof": "^1.0.5" | ||
"get-proto": "^1.0.1", | ||
"reflect.getprototypeof": "^1.0.10" | ||
}, | ||
@@ -88,0 +90,0 @@ "publishConfig": { |
@@ -6,9 +6,4 @@ 'use strict'; | ||
var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto | ||
var getProto = require('get-proto'); | ||
var getProto = function getPrototypeOf(value) { | ||
RequireObjectCoercible(value); | ||
return value.__proto__; // eslint-disable-line no-proto | ||
}; | ||
var $getPrototypeOf = Object.getPrototypeOf; | ||
@@ -29,6 +24,3 @@ var getPrototypeOfPrimitivesToo = function getPrototypeOf(value) { | ||
} | ||
if (hasProto) { | ||
return getProto; | ||
} | ||
return implementation; | ||
return getProto || implementation; | ||
}; |
23609
5
12
15
115
+ Addedget-proto@^1.0.1
+ Addedasync-function@1.0.0(transitive)
+ Addedis-async-function@2.1.1(transitive)
- Removedis-async-function@2.1.0(transitive)
Updatedcall-bind@^1.0.8