setprototypeof
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -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' | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4025