Socket
Socket
Sign inDemoInstall

snyk-policy

Package Overview
Dependencies
Maintainers
2
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 1.22.1 to 1.22.2

13

lib/index.js

@@ -93,2 +93,15 @@ const fs = require('promise-fs');

}
// Check if filename is directory and resolve to correct file path
try {
if (fs.lstatSync(filename).isDirectory()) {
filename = path.join(filename, '/.snyk');
}
} catch (error) {
if (error.code === 'ENOENT') {
// Ignore if EOENT
debug('ENOENT on file, while checking if directory');
} else {
throw error;
}
}

@@ -95,0 +108,0 @@ const promise = new Promise(function (resolve) {

4

package.json

@@ -40,3 +40,3 @@ {

"snyk-resolve": "^1.1.0",
"snyk-try-require": "^2.0.0"
"snyk-try-require": "^2.0.2"
},

@@ -47,3 +47,3 @@ "repository": {

},
"version": "1.22.1"
"version": "1.22.2"
}

Sorry, the diff of this file is not supported yet

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