bunshin-clone 1.8.3 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -139,7 +139,7 @@ function clonePlainObject(object, settings, refs) {
|
|
|
139
139
|
}
|
|
140
140
|
} else {
|
|
141
141
|
for (const key of Reflect.ownKeys(object)) {
|
|
142
|
-
if (isUnsafeKey(key) || !Object.propertyIsEnumerable.call(object, key)) {
|
|
142
|
+
if (isUnsafeKey(key) || !Object.prototype.propertyIsEnumerable.call(object, key)) {
|
|
143
143
|
continue;
|
|
144
144
|
}
|
|
145
145
|
result[key] = clone(object[key], settings, refs);
|
package/dist/index.js
CHANGED
|
@@ -137,7 +137,7 @@ function clonePlainObject(object, settings, refs) {
|
|
|
137
137
|
}
|
|
138
138
|
} else {
|
|
139
139
|
for (const key of Reflect.ownKeys(object)) {
|
|
140
|
-
if (isUnsafeKey(key) || !Object.propertyIsEnumerable.call(object, key)) {
|
|
140
|
+
if (isUnsafeKey(key) || !Object.prototype.propertyIsEnumerable.call(object, key)) {
|
|
141
141
|
continue;
|
|
142
142
|
}
|
|
143
143
|
result[key] = clone(object[key], settings, refs);
|