snyk-delta
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -102,5 +102,11 @@ #!/usr/bin/env node | ||
} | ||
if (module.parent) { | ||
if (!module.parent || (isJestTesting() && !expect.getState().currentTestName.includes('module'))) { | ||
displayOutput_1.displayOutput(newVulns, newLicenseIssues, issueTypeFilter, mode); | ||
} | ||
if (newVulns.length + newLicenseIssues.length > 0) { | ||
process.exitCode = 1; | ||
} | ||
else { | ||
process.exitCode = 0; | ||
} | ||
} | ||
@@ -107,0 +113,0 @@ catch (err) { |
@@ -24,4 +24,6 @@ "use strict"; | ||
let issueFromArray = issue.from; | ||
let upgradePathArray = issue.upgradePath; | ||
if (mode == 'inline') { | ||
issueFromArray = issueFromArray.slice(1, issueFromArray.length); | ||
upgradePathArray = upgradePathArray ? upgradePathArray.slice(1, issueFromArray.length) : undefined; | ||
} | ||
@@ -28,0 +30,0 @@ return (monitoredIssue.id == issue.id && |
@@ -5,3 +5,3 @@ { | ||
"main": "dist/index.js", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"bin": { | ||
@@ -8,0 +8,0 @@ "snyk-delta": "dist/index.js" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
68275
798