Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@berish/serber

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@berish/serber - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

18

build/plugins/loopObject.js

@@ -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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc