constructor-utils
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -12,3 +12,10 @@ "use strict"; | ||
if (object instanceof Array) { | ||
return object.map(function (item) { return _this.convert(item.constructor, item, "constructorToPlain"); }); | ||
return object.map(function (item) { | ||
if (item instanceof Object) { | ||
return _this.convert(item.constructor, item, "constructorToPlain"); | ||
} | ||
else { | ||
return item; | ||
} | ||
}); | ||
} | ||
@@ -15,0 +22,0 @@ else { |
{ | ||
"name": "constructor-utils", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Constructor utilities to simplify work with classes and constructors. Provides plain javascript objects to classes transformation utilities.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -8,6 +8,10 @@ # constructor-utils | ||
**0.0.18 >> 0.0.20** | ||
**0.0.22** | ||
* fixed bug when getters are not converted with es6 target | ||
* bugfix when array with primitive types is being converted | ||
**0.0.18 >> 0.0.21** | ||
* fixed bugs when getters are not converted with es6 target | ||
**0.0.17** | ||
@@ -14,0 +18,0 @@ |
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
31673
516
288