bin-wrapper
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -168,6 +168,7 @@ 'use strict'; | ||
BinWrapper.prototype.parse = function (obj) { | ||
var arch = process.arch === 'x64' ? 'x64' : process.arch === 'arm' ? 'arm' : 'x86'; | ||
var ret = []; | ||
obj.filter(function (o) { | ||
if (o.os && o.os === process.platform && o.arch && o.arch === process.arch) { | ||
if (o.os && o.os === process.platform && o.arch && o.arch === arch) { | ||
return ret.push(o); | ||
@@ -174,0 +175,0 @@ } else if (o.os && o.os === process.platform && !o.arch) { |
{ | ||
"name": "bin-wrapper", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Binary wrapper that makes your programs seamlessly available as local dependencies", | ||
@@ -23,4 +23,4 @@ "license": "MIT", | ||
"bin", | ||
"build", | ||
"make", | ||
"check", | ||
"local", | ||
"wrapper" | ||
@@ -27,0 +27,0 @@ ], |
@@ -56,6 +56,7 @@ # bin-wrapper [![Build Status](https://travis-ci.org/kevva/bin-wrapper.svg?branch=master)](https://travis-ci.org/kevva/bin-wrapper) | ||
### .run(cb) | ||
### .run(cmd, cb) | ||
Runs the search for the binary. If no binary is found it will download the file using the URL | ||
provided in `.src()`. It will also check that the binary is working by checking it's exit code. | ||
provided in `.src()`. It will also check that the binary is working by running it using `cmd` | ||
and checking it's exit code. | ||
@@ -62,0 +63,0 @@ ## Options |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6306
154
81
0