snyk-policy
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -50,7 +50,7 @@ "use strict"; | ||
for (const id in ruleSet) { | ||
if (!Array.isArray(ruleSet[id])) { | ||
if (ruleSet[id] && !Array.isArray(ruleSet[id])) { | ||
// create an error and add a code field to it without using `any` | ||
// const error = new Error('old, unsupported .snyk format detected'); | ||
// error.code = 'OLD_DOTFILE_FORMAT'; | ||
// throw error; | ||
const error = new Error('old, unsupported .snyk format detected'); | ||
error.code = 'OLD_DOTFILE_FORMAT'; | ||
throw error; | ||
} | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "snyk-policy", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Snyk's policy parser and matching logic", | ||
@@ -5,0 +5,0 @@ "files": [ |
{ | ||
"name": "snyk-policy", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Snyk's policy parser and matching logic", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
67072