diff options
author | Kat Marchán <kzm@zkat.tech> | 2018-08-07 22:00:32 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-08-07 23:39:50 +0300 |
commit | 348fc91ad223ff91cd7bcf233018ea1d979a2af1 (patch) | |
tree | ef776c16cc361805c875509940296eabc6e10641 /node_modules/validate-npm-package-license | |
parent | beb96b92caf061611e3faafc7ca10e77084ec335 (diff) |
validate-npm-package-license@3.0.4
Fixes: https://github.com/kemitchell/validate-npm-package-license.js/issues/8
Credit: @Gudahtt
Diffstat (limited to 'node_modules/validate-npm-package-license')
-rw-r--r-- | node_modules/validate-npm-package-license/index.js | 12 | ||||
-rw-r--r-- | node_modules/validate-npm-package-license/package.json | 36 | ||||
-rw-r--r-- | node_modules/validate-npm-package-license/test.log | 4 |
3 files changed, 27 insertions, 25 deletions
diff --git a/node_modules/validate-npm-package-license/index.js b/node_modules/validate-npm-package-license/index.js index 2ad98d9d8..35eaa7325 100644 --- a/node_modules/validate-npm-package-license/index.js +++ b/node_modules/validate-npm-package-license/index.js @@ -57,11 +57,13 @@ module.exports = function(argument) { validForNewPackages: false, warnings: [genericWarning] }; - var corrected = correct(argument); - if (corrected) { - result.warnings.push( - 'license is similar to the valid expression "' + corrected + '"' - ); + if (argument.trim().length !== 0) { + var corrected = correct(argument); + if (corrected) { + result.warnings.push( + 'license is similar to the valid expression "' + corrected + '"' + ); + } } return result; } diff --git a/node_modules/validate-npm-package-license/package.json b/node_modules/validate-npm-package-license/package.json index b7d3c1329..b0adef58a 100644 --- a/node_modules/validate-npm-package-license/package.json +++ b/node_modules/validate-npm-package-license/package.json @@ -1,34 +1,30 @@ { - "_args": [ - [ - "validate-npm-package-license@3.0.3", - "/Users/rebecca/code/npm" - ] - ], - "_from": "validate-npm-package-license@3.0.3", - "_id": "validate-npm-package-license@3.0.3", + "_from": "validate-npm-package-license@3.0.4", + "_id": "validate-npm-package-license@3.0.4", "_inBundle": false, - "_integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", + "_integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "_location": "/validate-npm-package-license", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "validate-npm-package-license@3.0.3", + "raw": "validate-npm-package-license@3.0.4", "name": "validate-npm-package-license", "escapedName": "validate-npm-package-license", - "rawSpec": "3.0.3", + "rawSpec": "3.0.4", "saveSpec": null, - "fetchSpec": "3.0.3" + "fetchSpec": "3.0.4" }, "_requiredBy": [ + "#USER", "/", "/init-package-json", "/normalize-package-data" ], - "_resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz", - "_spec": "3.0.3", - "_where": "/Users/rebecca/code/npm", + "_resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "_shasum": "fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a", + "_spec": "validate-npm-package-license@3.0.4", + "_where": "/Users/zkat/Documents/code/work/npm", "author": { "name": "Kyle E. Mitchell", "email": "kyle@kemitchell.com", @@ -37,10 +33,18 @@ "bugs": { "url": "https://github.com/kemitchell/validate-npm-package-license.js/issues" }, + "bundleDependencies": false, + "contributors": [ + { + "name": "Mark Stacey", + "email": "markjstacey@gmail.com" + } + ], "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" }, + "deprecated": false, "description": "Give me a string and I'll tell you if it's a valid npm package license string", "devDependencies": { "defence-cli": "^2.0.1", @@ -62,5 +66,5 @@ "scripts": { "test": "defence README.md | replace-require-self | node" }, - "version": "3.0.3" + "version": "3.0.4" } diff --git a/node_modules/validate-npm-package-license/test.log b/node_modules/validate-npm-package-license/test.log deleted file mode 100644 index 2adfabc92..000000000 --- a/node_modules/validate-npm-package-license/test.log +++ /dev/null @@ -1,4 +0,0 @@ - -> validate-npm-package-license@3.0.2 test /home/kyle/validate-npm-package-license.js -> defence README.md | replace-require-self | node - |