diff --git a/README.md b/README.md
index f1df4e0..f6f7b3a 100644
--- a/README.md
+++ b/README.md
@@ -128,6 +128,10 @@ You could see something like this:
## Changes (see a more detailed and always up-to-date list [here](https://github.com/RSeidelsohn/license-checker-rseidelsohn/releases))
+### Version 4.4.2
+
+fix: Fix missing file name ending (sorry for these)
+
### Version 4.4.1
fix: Fix errors that broke the whole new version (sorry for these)
diff --git a/lib/index.js b/lib/index.js
index 3a6a2ef..f3715e0 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -48,7 +48,7 @@ const recursivelyCollectAllDependencies = (options) => {
let noticeFiles = [];
const clarification = options.clarifications[currentExtendedPackageJson.name]?.find(
(clarification) =>
- currentExtendedPackageJson.version == clarification.semverRange ||
+ currentExtendedPackageJson.version === clarification.semverRange ||
semver.satisfies(currentExtendedPackageJson.version, clarification.semverRange),
);
let passedClarificationCheck = clarification?.checksum ? false : true;
@@ -411,7 +411,7 @@ const init = (args, callback) => {
if (versionSplit !== -1) {
const name = versionString.slice(0, versionSplit);
const semverRange = versionString.slice(versionSplit + 1);
- clarifications[name] ??= [];
+ clarifications[name] = clarifications[name] || [];
// keep track for each clarification if it was used, optionally error when not
clarifications[name].push({ ...clarification, semverRange, used: false });
}
diff --git a/package.json b/package.json
index be30e37..b205126 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "license-checker-rseidelsohn",
"description": "Extract NPM package licenses - Feature enhanced version of the original license-checker v25.0.1",
"author": "Roman Seidelsohn ",
- "version": "4.4.1",
+ "version": "4.4.2",
"license": "BSD-3-Clause",
"private": false,
"type": "module",
@@ -30,7 +30,7 @@
"posttest": "nyc check-coverage && nyc report -r lcov -r text -r text-summary",
"lint": "npx eslint --ext js .",
"lint:fix": "npm run lint -- --fix",
- "prettier": "npx prettier lib --check && npx prettier bin/license-checker-rseidelsohn --check && npx prettier scripts --check",
+ "prettier": "npx prettier lib --check && npx prettier bin/license-checker-rseidelsohn.js --check && npx prettier scripts --check",
"prettier:fix": "npm run prettier -- --write",
"format": "npm run prettier:fix && npm run lint:fix",
"format:dry": "npm run prettier && npm run lint"