Socket
Socket
Sign inDemoInstall

snyk-policy

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-policy - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

8

dist/lib/parser/v1.js

@@ -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": [

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