define-property
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -10,3 +10,3 @@ /*! | ||
var typeOf = require('kind-of'); | ||
var isobject = require('isobject'); | ||
var isDescriptor = require('is-descriptor'); | ||
@@ -18,3 +18,3 @@ var define = (typeof Reflect !== 'undefined' && Reflect.defineProperty) | ||
module.exports = function defineProperty(obj, key, val) { | ||
if (typeOf(obj) !== 'object' && typeof obj !== 'function' && !Array.isArray(obj)) { | ||
if (!isobject(obj) && typeof obj !== 'function' && !Array.isArray(obj)) { | ||
throw new TypeError('expected an object, function, or array'); | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "define-property", | ||
"description": "Define a non-enumerable property on an object. Uses Reflect.defineProperty when available, otherwise Object.defineProperty.", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"homepage": "https://github.com/jonschlinkert/define-property", | ||
@@ -28,3 +28,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"is-descriptor": "^1.0.2", | ||
"kind-of": "^6.0.2" | ||
"isobject": "^3.0.1" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10727
1
+ Addedisobject@^3.0.1
+ Addedisobject@3.0.1(transitive)
- Removedkind-of@^6.0.2
- Removedkind-of@6.0.3(transitive)