Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

license-checker

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

license-checker - npm Package Compare versions

Comparing version 22.0.0 to 23.0.0

10

CHANGELOG.md
## Change Log
### v23.0.0 (2018/10/09 14:37 +00:00)
- [f243287](https://github.com/davglass/license-checker/commit/f243287fbce6da33838a226ddfe8c412535390d4) 23.0.0 (@davglass)
- [#178](https://github.com/davglass/license-checker/pull/178) Merge pull request #178 from jonny-improbable/fix/filtering (@jonny-improbable)
- [#175](https://github.com/davglass/license-checker/pull/175) Merge pull request #175 from jonny-improbable/patch-1 (@jonny-improbable)
- [f2c6611](https://github.com/davglass/license-checker/commit/f2c6611d6c68e50b2b6f56260026837e7167f44a) Fixes #177, --packages and --excludePackages filtering
- [0a598df](https://github.com/davglass/license-checker/commit/0a598df55c3ec33803ef33be07cc47a910eee961) Improve --onlyAllow violation Error (@jonny-improbable)
- [ee723af](https://github.com/davglass/license-checker/commit/ee723af79889a4d98ed067494a58f6aa41a44ac7) changes (@davglass)
### v22.0.0 (2018/10/08 19:00 +00:00)

@@ -82,4 +90,4 @@ - [bd398c3](https://github.com/davglass/license-checker/commit/bd398c3bce0279699c9aad1dc4b592f398a75766) 22.0.0 (@davglass)

- [a46c448](https://github.com/davglass/license-checker/commit/a46c4483f872c3db9498a65b7ae3dc6d8164de0a) 16.0.0 (@davglass)
- [38d63e2](https://github.com/davglass/license-checker/commit/38d63e2c2c3fd6c11012fb69b1470b2ba06d5554) [fixes #128] - Added --onlyAllow option (@davglass)
- [6c5274c](https://github.com/davglass/license-checker/commit/6c5274c6064d318844cf36185dea395e0893ff08) [fixes #132] - Fixed issue with asFiles and path issues (@davglass)
- [38d63e2](https://github.com/davglass/license-checker/commit/38d63e2c2c3fd6c11012fb69b1470b2ba06d5554) [fixes #128] - Added --onlyAllow option (@davglass)

@@ -86,0 +94,0 @@ ### v16.0.0 (2018/01/18 15:02 +00:00)

11

lib/index.js

@@ -20,3 +20,2 @@ /*

var spdxCorrect =require('spdx-correct');
var stripColor = require('strip-ansi');

@@ -39,8 +38,2 @@ // Set up debug logging

/*istanbul ignore next*/
if (colorize) {
moduleInfo = { licenses: chalk.bold.red(UNKNOWN) };
key = chalk.blue(json.name) + chalk.dim('@') + chalk.green(json.version);
}
if (json.private) {

@@ -355,3 +348,3 @@ moduleInfo.private = true;

if (!good) {
console.error('Found license NOT defined by the --onlyAllow flag: "' + data[item].licenses + '". Exiting.');
console.error('Package "' + item + '" is licensed under "' + data[item].licenses + '" which is not permitted by the --onlyAllow flag. Exiting.');
process.exit(1);

@@ -614,3 +607,3 @@ }

fileContents = fs.readFileSync(licenseFile);
outFileName = stripColor(moduleName).replace(/(\s+|@|\/)/g, "") + "-LICENSE.txt";
outFileName = moduleName + "-LICENSE.txt";
outPath = path.join(outDir, outFileName);

@@ -617,0 +610,0 @@ baseDir = path.dirname(outPath);

@@ -5,3 +5,3 @@ {

"author": "Dav Glass <davglass@gmail.com>",
"version": "22.0.0",
"version": "23.0.0",
"contributors": [

@@ -66,3 +66,2 @@ "Adam Weber <adamweber01@gmail.com>",

"spdx-satisfies": "^4.0.0",
"strip-ansi": "^4.0.0",
"treeify": "^1.1.0"

@@ -69,0 +68,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc