constructor-utils
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -48,6 +48,7 @@ "use strict"; | ||
} | ||
var keys = Object.keys(object).concat(Object.getOwnPropertyNames(cls)); | ||
var _loop_1 = function(key) { | ||
if (this_1.isSkipped(cls, key, operationType)) | ||
return "continue"; | ||
if (typeof object[key] !== "function") { | ||
if (typeof object[key] !== "function" && object[key] !== undefined) { | ||
if (options && options.skipStartedWith && | ||
@@ -116,3 +117,4 @@ key.substr(0, options.skipStartedWith.length) === options.skipStartedWith) | ||
var this_1 = this; | ||
for (var key in object) { | ||
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) { | ||
var key = keys_1[_i]; | ||
var state_1 = _loop_1(key); | ||
@@ -119,0 +121,0 @@ if (state_1 === "continue") continue; |
{ | ||
"name": "constructor-utils", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"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,2 +8,8 @@ # constructor-utils | ||
**0.0.17** | ||
* fixed issue #4 | ||
* added type guessing during transformation from constructor to plain object | ||
* added sample with generics | ||
**0.0.16** | ||
@@ -10,0 +16,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
30569
477
280