Comparing version 2.1.4 to 2.1.5
@@ -13,16 +13,6 @@ // creates a zip file using either the native `zip` command if available, | ||
const glob = require("glob"); | ||
const which = require("which"); | ||
let _hasNativeZip = null; | ||
function hasNativeZip() { | ||
if (_hasNativeZip === null) { | ||
try { | ||
cp.execSync("zip -?"); | ||
_hasNativeZip = true; | ||
} catch (err) { | ||
_hasNativeZip = false; | ||
} | ||
} | ||
return _hasNativeZip; | ||
return Boolean(which.sync("zip", { nothrow: true })); | ||
} | ||
@@ -29,0 +19,0 @@ |
{ | ||
"name": "bestzip", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "Uses OS zip command if avaliable (for better performance and speed) or node.js version if there is no system command avaliable. Can be called via node or command line.", | ||
@@ -20,3 +20,3 @@ "main": "lib/bestzip.js", | ||
"files": [ | ||
"bin/", | ||
"bin/cli.js", | ||
"lib/" | ||
@@ -28,2 +28,3 @@ ], | ||
"glob": "^7.1.3", | ||
"which": "^1.3.1", | ||
"yargs": "^13.2.4" | ||
@@ -30,0 +31,0 @@ }, |
# bestzip | ||
[![Linux and MacOS build status](https://travis-ci.org/nfriedly/node-bestzip.svg?branch=master)](https://travis-ci.org/nfriedly/node-bestzip) | ||
[![Windows build status](https://ci.appveyor.com/api/projects/status/6gk3igwk2l85djnn?svg=true)](https://ci.appveyor.com/project/nfriedly/node-bestzip) | ||
[![Build status](https://travis-ci.org/nfriedly/node-bestzip.svg?branch=master)](https://travis-ci.org/nfriedly/node-bestzip) | ||
@@ -6,0 +5,0 @@ This module provides a `bestzip` command that calls the native `zip` command if available and otherwise falls back to a |
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
1
9611
5
5
154
89
+ Addedwhich@^1.3.1
+ Addedisexe@2.0.0(transitive)
+ Addedwhich@1.3.1(transitive)