class-builder
Advanced tools
Comparing version 1.0.4 to 1.0.5
16
index.js
@@ -61,4 +61,8 @@ const BUILD = "build"; | ||
constructor.prototype = _base.prototype; | ||
constructor.prototype | ||
= Object.create(_base.prototype); | ||
constructor.prototype.constructor | ||
= constructor; | ||
} | ||
@@ -79,2 +83,7 @@ | ||
Object.defineProperty( | ||
constructor.prototype[each], "name", { | ||
value: constructor.name + "." + each | ||
}); | ||
} | ||
@@ -101,2 +110,7 @@ | ||
Object.defineProperty( | ||
constructor[each], "name", { | ||
value: constructor.name + "." + each | ||
}); | ||
} | ||
@@ -103,0 +117,0 @@ |
{ | ||
"name": "class-builder", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Utility for building classes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6192
229