ezobjects
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -34,7 +34,8 @@ /** | ||
Object.keys(data).forEach((key) => { | ||
Object.defineProperty(data, key.replace(/^_/, ''), | ||
Object.getOwnPropertyDescriptor(data, key)); | ||
delete data[key]; | ||
if ( key.match(/^_/) ) { | ||
Object.defineProperty(data, key.replace(/^_/, ''), Object.getOwnPropertyDescriptor(data, key)); | ||
delete data[key]; | ||
} | ||
}); | ||
/** Loop through each property in the obj */ | ||
@@ -41,0 +42,0 @@ obj.properties.forEach((col) => { |
{ | ||
"name": "ezobjects", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Easy dynamic object generation with strict typing and set chaining", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# EZ Objects v1.1.1 | ||
# EZ Objects v1.1.2 | ||
@@ -3,0 +3,0 @@ EZ Objects is a Node.js module, the purpose of which is to save you lots of time writing the initializer, property getters, |
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
18583
268