snyk-policy
Advanced tools
Comparing version 1.22.1 to 1.22.2
@@ -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) { |
@@ -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
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
43332
985
Updatedsnyk-try-require@^2.0.2