bin-wrapper
Advanced tools
Comparing version 0.1.1 to 0.1.2
'use strict'; | ||
var download = require('download'); | ||
var each = require('async-foreach').forEach; | ||
var fs = require('fs'); | ||
@@ -58,3 +57,3 @@ var isbin = require('isbin'); | ||
this._download(this.url, this.dest, function () { | ||
download(this.url, this.dest, { mode: '0755' }).on('close', function () { | ||
return self._test(cmd, cb); | ||
@@ -90,20 +89,2 @@ }); | ||
/** | ||
* Download an array files | ||
* | ||
* @param {String|Array} url | ||
* @param {String} dest | ||
* @param {Function} cb | ||
* @api private | ||
*/ | ||
BinWrapper.prototype._download = function (url, dest, cb) { | ||
var get = download(url, dest); | ||
var file = path.join(dest, path.basename(url)); | ||
get.on('close', function () { | ||
fs.chmod(file, '0755', cb); | ||
}); | ||
}; | ||
/** | ||
* Parse options | ||
@@ -110,0 +91,0 @@ * |
{ | ||
"name": "bin-wrapper", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Binary wrapper for Node.js that makes your programs seamlessly available as local dependencies", | ||
@@ -28,3 +28,2 @@ "keywords": [ | ||
"dependencies": { | ||
"async-foreach": "~0.1.3", | ||
"download": "~0.1.2", | ||
@@ -31,0 +30,0 @@ "isbin": "0.0.2", |
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
4
4884
106
- Removedasync-foreach@~0.1.3
- Removedasync-foreach@0.1.3(transitive)