Socket
Socket
Sign inDemoInstall

serializer.ts

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "serializer.ts",
"version": "0.0.2",
"version": "0.0.3",
"description": "Proper serialization and deserialization raw json objects to classes in Typescript",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -39,3 +39,3 @@ var MetadataStorage_1 = require("./metadata/MetadataStorage");

if (object[key] instanceof Array) {
if (!type)
if (object[key].length > 0 && !type)
throw new TypeMissingError_1.TypeMissingError(cls, key);

@@ -42,0 +42,0 @@ newObject[key] = object[key].map(function (arrayItem) { return _this.convert(type, arrayItem, operationType); });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc