diff options
author | Rebecca Turner <me@re-becca.org> | 2017-08-10 22:53:59 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-08-13 02:16:35 +0300 |
commit | 4f55c53648fe1c575e350a6db12fe7aa32bdafb1 (patch) | |
tree | 8bc96ee04cd9b4ce413848b0d77e315993d84c0a /node_modules | |
parent | 2522b75ec18ab179587a4ec3155de7d74b8e884e (diff) |
which@1.3.0
Diffstat (limited to 'node_modules')
-rw-r--r-- | node_modules/which/CHANGELOG.md | 5 | ||||
-rw-r--r-- | node_modules/which/README.md | 3 | ||||
-rw-r--r-- | node_modules/which/package.json | 33 | ||||
-rw-r--r-- | node_modules/which/which.js | 3 |
4 files changed, 28 insertions, 16 deletions
diff --git a/node_modules/which/CHANGELOG.md b/node_modules/which/CHANGELOG.md index c44cfbec5..367acb12a 100644 --- a/node_modules/which/CHANGELOG.md +++ b/node_modules/which/CHANGELOG.md @@ -1,6 +1,11 @@ # Changes +## v1.3.0 + +* Add nothrow option to which.sync +* update tap + ## v1.2.14 * appveyor: drop node 5 and 0.x diff --git a/node_modules/which/README.md b/node_modules/which/README.md index 7f679d595..8c0b0cbf7 100644 --- a/node_modules/which/README.md +++ b/node_modules/which/README.md @@ -21,6 +21,9 @@ which('node', function (er, resolvedPath) { // throws if not found var resolved = which.sync('node') +// if nothrow option is used, returns null if not found +resolved = which.sync('node', {nothrow: true}) + // Pass options to override the PATH and PATHEXT environment vars. which('node', { path: someOtherPath }, function (er, resolved) { if (er) diff --git a/node_modules/which/package.json b/node_modules/which/package.json index 83bcfabfe..5c43403f9 100644 --- a/node_modules/which/package.json +++ b/node_modules/which/package.json @@ -1,31 +1,34 @@ { - "_from": "which@~1.2.14", - "_id": "which@1.2.14", - "_integrity": "sha1-mofEN48D6CfOyvGs31bHNsAcFOU=", + "_from": "which@1.3.0", + "_id": "which@1.3.0", + "_inBundle": false, + "_integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", "_location": "/which", "_phantomChildren": {}, "_requested": { - "type": "range", + "type": "version", "registry": true, - "raw": "which@~1.2.14", + "raw": "which@1.3.0", "name": "which", "escapedName": "which", - "rawSpec": "~1.2.14", + "rawSpec": "1.3.0", "saveSpec": null, - "fetchSpec": "~1.2.14" + "fetchSpec": "1.3.0" }, "_requiredBy": [ + "#USER", "/", + "/libnpx", + "/libnpx/yargs/os-locale/execa/cross-spawn", "/node-gyp", "/pacote", "/tap/foreground-child/cross-spawn", "/update-notifier/boxen/term-size/execa/cross-spawn-async" ], - "_resolved": "https://registry.npmjs.org/which/-/which-1.2.14.tgz", - "_shasum": "9a87c4378f03e827cecaf1acdf56c736c01c14e5", - "_shrinkwrap": null, - "_spec": "which@~1.2.14", - "_where": "/Users/zkat/Documents/code/npm", + "_resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", + "_shasum": "ff04bdfc010ee547d780bec38e1ac1c2777d253a", + "_spec": "which@1.3.0", + "_where": "/Users/rebecca/code/npm", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -46,7 +49,7 @@ "devDependencies": { "mkdirp": "^0.5.0", "rimraf": "^2.3.3", - "tap": "^10.3.0" + "tap": "^10.7.0" }, "files": [ "which.js", @@ -56,8 +59,6 @@ "license": "ISC", "main": "which.js", "name": "which", - "optionalDependencies": {}, - "peerDependencies": {}, "repository": { "type": "git", "url": "git://github.com/isaacs/node-which.git" @@ -67,5 +68,5 @@ "postversion": "npm run changelog && git add CHANGELOG.md && git commit -m 'update changelog - '${npm_package_version}", "test": "tap test/*.js --cov" }, - "version": "1.2.14" + "version": "1.3.0" } diff --git a/node_modules/which/which.js b/node_modules/which/which.js index 70d974c18..4347f91a1 100644 --- a/node_modules/which/which.js +++ b/node_modules/which/which.js @@ -128,5 +128,8 @@ function whichSync (cmd, opt) { if (opt.all && found.length) return found + if (opt.nothrow) + return null + throw getNotFoundError(cmd) } |