Socket
Socket
Sign inDemoInstall

validate-npm-package-license

Package Overview
Dependencies
4
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.3 to 3.0.4

12

index.js

@@ -60,7 +60,9 @@ var parse = require('spdx-expression-parse');

};
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 + '"'
);
}
}

@@ -67,0 +69,0 @@ return result;

{
"name": "validate-npm-package-license",
"description": "Give me a string and I'll tell you if it's a valid npm package license string",
"version": "3.0.3",
"version": "3.0.4",
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)",
"contributors": [
"Mark Stacey <markjstacey@gmail.com>"
],
"dependencies": {

@@ -7,0 +10,0 @@ "spdx-correct": "^3.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc