Socket
Socket
Sign inDemoInstall

setprototypeof

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.2.0

2

index.js

@@ -12,3 +12,3 @@ 'use strict'

for (var prop in proto) {
if (!obj.hasOwnProperty(prop)) {
if (!Object.prototype.hasOwnProperty.call(obj, prop)) {
obj[prop] = proto[prop]

@@ -15,0 +15,0 @@ }

{
"name": "setprototypeof",
"version": "1.1.1",
"version": "1.2.0",
"description": "A small polyfill for Object.setprototypeof",

@@ -15,3 +15,5 @@ "main": "index.js",

"node9": "NODE_VER=9 npm run testversion",
"node11": "NODE_VER=11 npm run testversion"
"node11": "NODE_VER=11 npm run testversion",
"prepublishOnly": "npm t",
"postpublish": "git push origin && git push origin --tags"
},

@@ -34,5 +36,5 @@ "repository": {

"devDependencies": {
"mocha": "^5.2.0",
"standard": "^12.0.1"
"mocha": "^6.1.4",
"standard": "^13.0.2"
}
}

@@ -30,3 +30,3 @@ # Polyfill for `Object.setPrototypeOf`

```typescript
import setPrototypeOf = require('setprototypeof')
import setPrototypeOf from 'setprototypeof'
```
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc