Comparing version 1.1.0 to 1.1.1
@@ -47,3 +47,5 @@ #!/usr/bin/env node | ||
if (err) return cb(err) | ||
cb(null, parse(a) || parse(b)) | ||
var abi = parse(a) || parse(b) | ||
if (!abi) return cb(new Error('Could not detect abi for ' + version)) | ||
cb(null, abi) | ||
}) | ||
@@ -60,3 +62,3 @@ }) | ||
function parse (file) { | ||
var res = file.match(/#define\s+NODE_MODULE_VERSION\s+(\d+)/) | ||
var res = file.match(/#define\s+NODE_MODULE_VERSION\s+\(?(\d+)/) | ||
return res && res[1] | ||
@@ -120,3 +122,3 @@ } | ||
function pack (filename, abi) { | ||
var name = pkg.name + '-' + pkg.version + '-node-v' + abi + '-' + rc.platform + '-' + rc.arch + '.tar.gz' | ||
var name = pkg.name + '-v' + pkg.version + '-node-v' + abi + '-' + rc.platform + '-' + rc.arch + '.tar.gz' | ||
var tarPath = path.join('prebuilds', name) | ||
@@ -123,0 +125,0 @@ fs.mkdir('prebuilds', function () { |
{ | ||
"name": "prebuild", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A command line tool for easily doing prebuilds for multiple version of node/iojs on a specific platform", | ||
@@ -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
6883
136