Comparing version 1.3.0 to 1.3.1
@@ -58,3 +58,3 @@ function getAbi (target, runtime) { | ||
}) | ||
if (match) return match[0] | ||
if (match.length) return match[0] | ||
@@ -61,0 +61,0 @@ throw new Error('Could not detect target for abi ' + abi + ' and runtime ' + runtime) |
{ | ||
"name": "node-abi", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Get the Node ABI for a given target and runtime, and vice versa.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,2 +18,3 @@ var test = require('tape') | ||
test('getTarget calculates correct Electron target', function (t) { | ||
t.throws(getTarget.bind(null, '14', 'electron')) | ||
t.equal(getTarget('47', 'electron'), '1.0.2') | ||
@@ -20,0 +21,0 @@ t.equal(getTarget('48', 'electron'), '1.2.8') |
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
9938
153