wingbot-mongodb 4.1.1 → 4.1.2
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/package.json +1 -1
- package/src/BaseStorage.js +5 -1
package/package.json
CHANGED
package/src/BaseStorage.js
CHANGED
|
@@ -466,7 +466,11 @@ class BaseStorage {
|
|
|
466
466
|
return entries.reduce((o, key) => {
|
|
467
467
|
let val = object[key];
|
|
468
468
|
if (val !== null && typeof val === 'object') {
|
|
469
|
-
|
|
469
|
+
try {
|
|
470
|
+
val = objectClone(val);
|
|
471
|
+
} catch (e) {
|
|
472
|
+
val = JSON.parse(JSON.stringify(val, signReplacer));
|
|
473
|
+
}
|
|
470
474
|
}
|
|
471
475
|
return Object.assign(o, { [key]: val });
|
|
472
476
|
}, {});
|