class-transformer
Advanced tools
Comparing version 0.1.0-beta.2 to 0.1.0-beta.3
{ | ||
"name": "class-transformer", | ||
"version": "0.1.0-beta.2", | ||
"version": "0.1.0-beta.3", | ||
"description": "Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -466,3 +466,3 @@ # class-transformer | ||
@Type(Date) | ||
@Type(() => Date) | ||
registrationDate: Date; | ||
@@ -469,0 +469,0 @@ } |
@@ -66,3 +66,3 @@ "use strict"; | ||
var valueKey = key, newValueKey = key, propertyName = key; | ||
if (!this.options.ignoreDecorators) { | ||
if (!this.options.ignoreDecorators && targetType) { | ||
if (this.transformationType === "plainToClass") { | ||
@@ -135,3 +135,3 @@ var exposeMetadata = index_1.defaultMetadataStorage.findExposeMetadataByCustomName(targetType, key); | ||
var keys = strategy === "exposeAll" ? Object.keys(object) : []; | ||
if (!this.options.ignoreDecorators) { | ||
if (!this.options.ignoreDecorators && target) { | ||
// add all exposed to list of keys | ||
@@ -138,0 +138,0 @@ var exposedProperties = index_1.defaultMetadataStorage.getExposedProperties(target, this.transformationType); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103420