es6-class-prototype
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -9,4 +9,6 @@ "use strict"; | ||
let prototype = Object.keys(desc).reduce(function (a, b) { | ||
// @ts-ignore | ||
a[b] = target.prototype[b]; | ||
if (!desc[b].get && !desc[b].set) { | ||
// @ts-ignore | ||
a[b] = target.prototype[b]; | ||
} | ||
return a; | ||
@@ -13,0 +15,0 @@ }, {}); |
@@ -14,4 +14,7 @@ /** | ||
{ | ||
// @ts-ignore | ||
a[b] = target.prototype[b]; | ||
if (!desc[b].get && !desc[b].set) | ||
{ | ||
// @ts-ignore | ||
a[b] = target.prototype[b]; | ||
} | ||
@@ -18,0 +21,0 @@ return a; |
{ | ||
"name": "es6-class-prototype", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "get prototype from es6 class, like old way", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
2752
55