Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reflect.getprototypeof

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reflect.getprototypeof - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

11

CHANGELOG.md

@@ -8,2 +8,13 @@ # Changelog

## [v1.0.8](https://github.com/es-shims/Reflect.getPrototypeOf/compare/v1.0.7...v1.0.8) - 2024-12-06
### Commits
- [Refactor] share the getDunderProto helper [`f4be71b`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/f4be71b2941f217311210a00d84d8338b4880e2a)
- [Refactor] extract helper to `dunder-proto` [`51dcd35`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/51dcd3547ef9808c9fee7aa4a638d3d5d93db70c)
- [Deps] update `call-bind` [`c06e8d3`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/c06e8d3c1c9b567ca5bd6bb8542ae2e342f276ff)
- [Deps] update `gopd` [`c951a70`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/c951a709d5483fecc4041287a676d881295d1940)
- [Deps] update `gopd` [`8bd7b85`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/8bd7b8524aacc0574c979e3fe4f82adc51b03f3f)
- [Deps] update `which-builtin-type` [`f46f624`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/f46f62423c1c452063f73d34a363c127410742b2)
## [v1.0.7](https://github.com/es-shims/Reflect.getPrototypeOf/compare/v1.0.6...v1.0.7) - 2024-11-23

@@ -10,0 +21,0 @@

7

implementation.js

@@ -8,4 +8,2 @@ 'use strict';

var $TypeError = require('es-errors/type');
var callBind = require('call-bind');
var gOPD = require('gopd');

@@ -15,7 +13,4 @@ var $gPO = GetIntrinsic('%Object.getPrototypeOf%', true);

var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto
var getDunder = require('dunder-proto/get');
var dunderGetter = !$gPO && hasProto && gOPD && gOPD(Object.prototype, '__proto__');
var getDunder = dunderGetter && dunderGetter.get && callBind(dunderGetter.get);
module.exports = function getPrototypeOf(O) {

@@ -22,0 +17,0 @@ if (Type(O) !== 'Object') {

{
"name": "reflect.getprototypeof",
"version": "1.0.7",
"version": "1.0.8",
"description": "An ES2015 mostly-spec-compliant `Reflect.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible",

@@ -59,9 +59,10 @@ "main": "index.js",

"dependencies": {
"call-bind": "^1.0.7",
"call-bind": "^1.0.8",
"define-properties": "^1.2.1",
"dunder-proto": "^1.0.0",
"es-abstract": "^1.23.5",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.4",
"gopd": "^1.0.1",
"which-builtin-type": "^1.1.4"
"gopd": "^1.2.0",
"which-builtin-type": "^1.2.0"
},

@@ -68,0 +69,0 @@ "devDependencies": {

@@ -7,5 +7,2 @@ 'use strict';

var callBind = require('call-bind');
var gOPD = require('gopd');
var implementation = require('./implementation');

@@ -15,4 +12,3 @@

var dunderGetter = hasProto && gOPD && gOPD(Object.prototype, '__proto__');
var getDunder = dunderGetter && dunderGetter.get && callBind(dunderGetter.get);
var getDunder = require('dunder-proto/get');

@@ -19,0 +15,0 @@ var getProto = function getPrototypeOf(value) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc