snyk-to-html
Advanced tools
Comparing version 2.3.3 to 2.3.4
@@ -152,2 +152,3 @@ #!/usr/bin/env node | ||
async function generateTemplate(data, template, showRemediation, summary) { | ||
var _a; | ||
if (showRemediation && data.remediation) { | ||
@@ -171,2 +172,5 @@ data.showRemediations = showRemediation; | ||
data.showSummaryOnly = summary; | ||
if (((_a = data.paths) === null || _a === void 0 ? void 0 : _a.length) === 1) { | ||
data.packageManager = data.paths[0].packageManager; | ||
} | ||
await registerPeerPartial(template, 'inline-css'); | ||
@@ -290,2 +294,8 @@ await registerPeerPartial(template, 'header'); | ||
}, | ||
if_gt: function (a, b, opts) { | ||
return (a > b) ? opts.fn(this) : opts.inverse(this); | ||
}, | ||
if_not_eq: function (a, b, opts) { | ||
return (a !== b) ? opts.fn(this) : opts.inverse(this); | ||
}, | ||
if_any: function (opts, ...args) { | ||
@@ -292,0 +302,0 @@ return args.some(v => !!v) ? opts.fn(this) : opts.inverse(this); |
@@ -68,3 +68,3 @@ { | ||
}, | ||
"version": "2.3.3" | ||
"version": "2.3.4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
170162
648