Comparing version 1.0.1 to 1.0.2
function getAbi (target, runtime) { | ||
if (target) target = target.replace(/^v/, '') | ||
if (runtime === 'electron') { | ||
@@ -3,0 +5,0 @@ if (/^1\.5\./.test(target)) return '51' |
{ | ||
"name": "node-abi", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Get the Node ABI for a given target and runtime", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -42,1 +42,6 @@ var test = require('tape') | ||
}) | ||
test('getAbi supports leading v', function (t) { | ||
t.equal(getAbi('v7.2.0'), '51') | ||
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
6450
82