serializer.ts
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"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
33028
411