serializer.ts
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ require("reflect-metadata"); |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ var __extends = (this && this.__extends) || function (d, b) { |
@@ -0,0 +0,0 @@ import { TypeMetadata } from "./TypeMetadata"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ export declare abstract class PropertyMetadata { |
@@ -0,0 +0,0 @@ var PropertyMetadata = (function () { |
@@ -0,0 +0,0 @@ export declare class SerializableMetadata { |
@@ -0,0 +0,0 @@ var SerializableMetadata = (function () { |
@@ -0,0 +0,0 @@ import { PropertyMetadata } from "./PropertyMetadata"; |
@@ -0,0 +0,0 @@ var __extends = (this && this.__extends) || function (d, b) { |
@@ -0,0 +0,0 @@ import { PropertyMetadata } from "./PropertyMetadata"; |
@@ -0,0 +0,0 @@ var __extends = (this && this.__extends) || function (d, b) { |
{ | ||
"name": "serializer.ts", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Proper serialization and deserialization raw json objects to classes in Typescript", | ||
@@ -10,3 +10,3 @@ "license": "Apache-2.0", | ||
"name": "Umed Khudoiberdiev", | ||
"email": "zarrhost@gmail.com" | ||
"email": "pleerock.me@gmail.com" | ||
}, | ||
@@ -13,0 +13,0 @@ "repository": { |
@@ -0,0 +0,0 @@ export declare class Serializer { |
@@ -33,2 +33,4 @@ var MetadataStorage_1 = require("./metadata/MetadataStorage"); | ||
var _this = this; | ||
if (object === null || object === undefined) | ||
return object; | ||
var newObject = operationType === "serialization" ? {} : new cls(); | ||
@@ -35,0 +37,0 @@ Object.keys(object) |
Sorry, the diff of this file is not supported yet
33924
381