lockfile-lint-api
Advanced tools
Comparing version 5.5.1 to 5.5.2
@@ -6,2 +6,13 @@ # Change Log | ||
## 5.5.2 (2023-05-23) | ||
### Bug Fixes | ||
* error handling for empty yarn lock files ([#158](https://github.com/lirantal/lockfile-lint/issues/158)) ([#159](https://github.com/lirantal/lockfile-lint/issues/159)) ([bb96f4c](https://github.com/lirantal/lockfile-lint/commit/bb96f4c)) | ||
## 5.5.1 (2023-02-13) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "lockfile-lint-api", | ||
"version": "5.5.1", | ||
"version": "5.5.2", | ||
"description": "Lint an npm or yarn lockfile to analyze and detect issues", | ||
@@ -177,3 +177,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "969ed058ed0037821ca5d681822e561dbe6d823c" | ||
"gitHead": "774616275749d275086a8476d10314a5eb8b4263" | ||
} |
@@ -24,2 +24,5 @@ // @ts-check | ||
function checkSampleContent (lockfile, isYarnBerry) { | ||
if (Object.entries(lockfile).length < (isYarnBerry ? 2 : 1)) { | ||
return false | ||
} | ||
const [sampleKey, sampleValue] = Object.entries(lockfile)[isYarnBerry ? 1 : 0] | ||
@@ -26,0 +29,0 @@ return ( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55043
540