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.9 to 0.0.10

2

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

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

"use strict";
var MetadataStorage_1 = require("./metadata/MetadataStorage");
var TypeMissingError_1 = require("./error/TypeMissingError");
var Serializer = (function () {

@@ -56,4 +55,4 @@ function Serializer() {

else if (object[key] instanceof Object || type_1) {
if (!type_1 && operationType === "deserialization")
throw new TypeMissingError_1.TypeMissingError(cls, key);
// if (!type && operationType === "deserialization")
// throw new TypeMissingError(cls, key);
if (type_1 === Date) {

@@ -60,0 +59,0 @@ newObject[key] = new Date(object[key]);

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