@vendure/common
Advanced tools
Comparing version 2.0.0-next.18 to 2.0.0-next.19
@@ -28,3 +28,5 @@ "use strict"; | ||
function isClassInstance(item) { | ||
return isObject(item) && item.constructor.name !== 'Object'; | ||
// Even if item is an object, it might not have a constructor as in the | ||
// case when it is a null-prototype object, i.e. created using `Object.create(null)`. | ||
return isObject(item) && item.constructor && item.constructor.name !== 'Object'; | ||
} | ||
@@ -31,0 +33,0 @@ exports.isClassInstance = isClassInstance; |
{ | ||
"name": "@vendure/common", | ||
"version": "2.0.0-next.18", | ||
"version": "2.0.0-next.19", | ||
"main": "index.js", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "d42d6418c7f0031ebcb378599601d97ae3067f81" | ||
"gitHead": "ac97d6ec065a6ef145455405f00defbd1432c20d" | ||
} |
Sorry, the diff of this file is not supported yet
402378
10291