@opencreek/ext
Advanced tools
Comparing version 1.6.0--canary.10.4956bdf444030df5906eb957192f3ad7f0eed4f7.0 to 1.6.0--canary.10.78cea1d40cc3fe776c9a1efbcde8139d5d8afb8c.0
@@ -15,3 +15,7 @@ "use strict"; | ||
function extendPrototypeWithName(target, wrap) { | ||
const name = Object.keys(wrap)[0]; | ||
const keys = Object.keys(wrap); | ||
if (keys.length != 1) { | ||
throw Error("You must give extendPrototypeWithName an object with one key"); | ||
} | ||
const name = keys[0]; | ||
extendProtoype(target, wrap[name], name); | ||
@@ -18,0 +22,0 @@ } |
{ | ||
"name": "@opencreek/ext", | ||
"version": "1.6.0--canary.10.4956bdf444030df5906eb957192f3ad7f0eed4f7.0", | ||
"version": "1.6.0--canary.10.78cea1d40cc3fe776c9a1efbcde8139d5d8afb8c.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -19,3 +19,7 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
): void { | ||
const name = Object.keys(wrap)[0] | ||
const keys = Object.keys(wrap) | ||
if (keys.length != 1) { | ||
throw Error("You must give extendPrototypeWithName an object with one key") | ||
} | ||
const name = keys[0] | ||
@@ -22,0 +26,0 @@ extendProtoype(target, wrap[name], name) |
Sorry, the diff of this file is not supported yet
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
49040
730