Skip to content

Commit

Permalink
New Version: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Seidelsohn committed Apr 21, 2021
2 parents 3733187 + 01c804e commit 06c5c4f
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 119 deletions.
4 changes: 2 additions & 2 deletions bin/license-checker-rseidelsohn
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if (hasFailingArg && hasFailingArg.indexOf(',') >= 0) {
}

licenseChecker.init(args, function(err, json) {
if (Boolean(err)) {
if (err) {
console.error('An error has occurred:');
console.error(err);
}
Expand Down Expand Up @@ -115,7 +115,7 @@ function getFormattedOutput(json, args) {
}

if (args.markdown){
return licenseChecker.asMarkDown(json, args.customFormat) + '\n';
return licenseChecker.asMarkDown(json, args.customFormat) + "\n";
}

if (args.summary) {
Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ exports.init = function init(args, callback) {
if (
whitelist.findIndex((whitelistPackage) => {
return filteredPackage.startsWith(
whitelistPackage.indexOf('@') > 0 ? whitelistPackage : whitelistPackage + '@',
whitelistPackage.lastIndexOf('@') > 0 ? whitelistPackage : whitelistPackage + '@',
);
}) !== -1
) {
Expand All @@ -401,7 +401,7 @@ exports.init = function init(args, callback) {
if (
blacklist.findIndex((blacklistPackage) => {
return filteredPackage.startsWith(
blacklistPackage.indexOf('@') > 0 ? blacklistPackage : blacklistPackage + '@',
blacklistPackage.lastIndexOf('@') > 0 ? blacklistPackage : blacklistPackage + '@',
);
}) === -1
) {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "license-checker-rseidelsohn",
"description": "Feature enhanced version of the original license-checker v25.0.1",
"author": "Roman Seidelsohn <rseidelsohn@gmail.com>",
"version": "1.2.0",
"version": "1.2.1",
"contributors": [
"Adam Weber <adamweber01@gmail.com>",
"Andrew Couch <andy@couchand.com>",
"Andrii Kostenko <andrey@kostenko.name>",
"Asharma <Asharma@agtinternational.com>",
"Bryan English <bryan@bryanenglish.com>",
"Christoph Werner <christoph@codepunkt.de>",
Expand Down Expand Up @@ -52,6 +53,7 @@
"Yuri Zapuchlak <yuri@vidmaker.com>",
"badunk <baduncaduncan@gmail.com>",
"creising <creising@gmail.com>",
"dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>",
"gdw2 <gdwarner@Gmail.com>",
"ktmouk <ktmouk@gmail.com>",
"santiagocanti <santiago.canti@auth0.com>",
Expand Down
4 changes: 2 additions & 2 deletions tests/packages-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('bin/license-checker-rseidelsohn', function() {
this.timeout(8000);

it('should restrict the output to the provided packages', function() {
var restrictedPackages = ['nopt@5.0.0'];
var restrictedPackages = ['@types/node@14.14.41'];
var output = spawn(
'node',
[
Expand All @@ -24,7 +24,7 @@ describe('bin/license-checker-rseidelsohn', function() {
});

it('should exclude provided excludedPackages from the output', function() {
var excludedPackages = ['readable-stream@1.1.14', 'spdx-satisfies@4.0.0', 'y18n@3.2.1'];
var excludedPackages = ['@types/node@14.14.41', 'spdx-satisfies@4.0.0', 'y18n@3.2.1'];
var output = spawn(
'node',
[
Expand Down
2 changes: 1 addition & 1 deletion tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ describe('main tests', function() {
);

files = fs.readdirSync(out);
assert.equal('foo-LICENSE.txt', files[0]);
assert.equal(files[0], 'foo-LICENSE.txt');
require('rimraf').sync(out);
});
});
Expand Down
Loading

0 comments on commit 06c5c4f

Please sign in to comment.