@berish/serber
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -91,12 +91,5 @@ "use strict"; | ||
for (const key of keys) { | ||
const subDeserialized = {}; | ||
const newParams = Object.assign(Object.assign({}, params), { parent: deserialized, [const_1.SERBER_PARENT_OBJECT_SYMBOL]: obj, [const_1.SERBER_KEY_SYMBOL]: key, [const_1.SERBER_PATH_SYMBOL]: params[const_1.SERBER_PATH_SYMBOL].concat(key) }); | ||
const result = serber.deserialize(obj[key], newParams); | ||
if (result && typeof result === 'object') { | ||
Object.assign(subDeserialized, result); | ||
Object.assign(deserialized, { [key]: subDeserialized }); | ||
} | ||
else { | ||
Object.assign(deserialized, { [key]: result }); | ||
} | ||
Object.assign(deserialized, { [key]: result }); | ||
} | ||
@@ -115,12 +108,5 @@ return deserialized; | ||
for (const key of keys) { | ||
const subDeserialized = {}; | ||
const newParams = Object.assign(Object.assign({}, params), { parent: deserialized, [const_1.SERBER_PARENT_OBJECT_SYMBOL]: obj, [const_1.SERBER_KEY_SYMBOL]: key, [const_1.SERBER_PATH_SYMBOL]: params[const_1.SERBER_PATH_SYMBOL].concat(key) }); | ||
const result = yield serber.deserializeAsync(obj[key], newParams); | ||
if (result && typeof result === 'object') { | ||
Object.assign(subDeserialized, result); | ||
Object.assign(deserialized, { [key]: subDeserialized }); | ||
} | ||
else { | ||
Object.assign(deserialized, { [key]: result }); | ||
} | ||
Object.assign(deserialized, { [key]: result }); | ||
} | ||
@@ -127,0 +113,0 @@ return deserialized; |
{ | ||
"name": "@berish/serber", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Serializable and deserializable adaptive adapter with plugins", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
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
57958
684