Comparing version 1.1.0 to 1.2.0
function getAbi (target, runtime) { | ||
if (target === String(Number(target))) return target | ||
if (target) target = target.replace(/^v/, '') | ||
@@ -3,0 +4,0 @@ |
{ | ||
"name": "node-abi", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Get the Node ABI for a given target and runtime", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -63,1 +63,6 @@ var test = require('tape') | ||
}) | ||
test('getAbi returns abi if passed as target', function (t) { | ||
t.equal(getAbi('57'), '57') | ||
t.end() | ||
}) |
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
8216
118