Comparing version 1.0.3 to 1.0.4
11
N.js
@@ -0,4 +1,13 @@ | ||
var arityFn = [ | ||
require('./0'), | ||
require('./1'), | ||
require('./2'), | ||
require('./3'), | ||
require('./4'), | ||
require('./5') | ||
]; | ||
module.exports = function(fn, n) { | ||
if (n && n <= 5) { | ||
return require('./' + n)(fn); | ||
return arityFn[n](fn); | ||
} else { | ||
@@ -5,0 +14,0 @@ return fn; |
{ | ||
"name": "arity-n", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Wraps a function with a function of a sertain arity.", | ||
@@ -5,0 +5,0 @@ "main": "N.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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
6633
129
0