@oozcitak/util
Advanced tools
Comparing version 8.3.3 to 8.3.4
@@ -22,14 +22,16 @@ "use strict"; | ||
Object.getOwnPropertyNames(mixinClass.prototype).forEach(name => { | ||
if (overrides.includes(name)) { | ||
const orgPropDesc = Object.getOwnPropertyDescriptor(baseClass.prototype, name); | ||
if (name !== "constructor") { | ||
if (overrides.includes(name)) { | ||
const orgPropDesc = Object.getOwnPropertyDescriptor(baseClass.prototype, name); | ||
/* istanbul ignore else */ | ||
if (orgPropDesc) { | ||
Object.defineProperty(baseClass.prototype, "_" + name, orgPropDesc); | ||
} | ||
} | ||
const propDesc = Object.getOwnPropertyDescriptor(mixinClass.prototype, name); | ||
/* istanbul ignore else */ | ||
if (orgPropDesc) { | ||
Object.defineProperty(baseClass.prototype, "_" + name, orgPropDesc); | ||
if (propDesc) { | ||
Object.defineProperty(baseClass.prototype, name, propDesc); | ||
} | ||
} | ||
const propDesc = Object.getOwnPropertyDescriptor(mixinClass.prototype, name); | ||
/* istanbul ignore else */ | ||
if (propDesc) { | ||
Object.defineProperty(baseClass.prototype, name, propDesc); | ||
} | ||
}); | ||
@@ -36,0 +38,0 @@ } |
{ | ||
"name": "@oozcitak/util", | ||
"version": "8.3.3", | ||
"version": "8.3.4", | ||
"keywords": [ | ||
@@ -22,3 +22,3 @@ "util", | ||
"engines": { | ||
"node": ">=6.0" | ||
"node": ">=8.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
44632
1055