Comparing version 1.1.1 to 1.1.2
26
index.js
@@ -19,3 +19,3 @@ /** | ||
if (alreadyRequired) return console.debug && console.debug('hookit can only be called once') | ||
if (alreadyRequired) return console.warn('hookit can only be called once') | ||
alreadyRequired = true | ||
@@ -88,31 +88,19 @@ | ||
case 0: | ||
fn.call(that) | ||
return fn.call(that) | ||
break | ||
case 1: | ||
fn.call(that, args[0]) | ||
return fn.call(that, args[0]) | ||
break | ||
case 2: | ||
fn.call(that, args[0], args[1]) | ||
return fn.call(that, args[0], args[1]) | ||
break | ||
case 3: | ||
fn.call(that, args[0], args[1], args[2]) | ||
return fn.call(that, args[0], args[1], args[2]) | ||
break | ||
case 4: | ||
fn.call(that, args[0], args[1], args[2], args[3]) | ||
return fn.call(that, args[0], args[1], args[2], args[3]) | ||
break | ||
case 5: | ||
fn.call(that, args[0], args[1], args[2], args[3], args[4]) | ||
return fn.call(that, args[0], args[1], args[2], args[3], args[4]) | ||
break | ||
case 6: | ||
fn.call(that, args[0], args[1], args[2], args[3], args[4], args[5]) | ||
break | ||
case 7: | ||
fn.call(that, args[0], args[1], args[2], args[3], args[4], args[5], args[6]) | ||
break | ||
case 8: | ||
fn.call(that, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]) | ||
break | ||
case 9: | ||
fn.call(that, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]) | ||
break | ||
default: | ||
@@ -119,0 +107,0 @@ fn.apply(that, args) |
{ | ||
"name": "hookit", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A function for shimming all node.js core IO calls allowing callback wraping.", | ||
@@ -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
7
5714
97