@datapos/datapos-development 0.3.115 → 0.3.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,7 +116,7 @@ async function I() {
|
|
|
116
116
|
const i = JSON.parse(await t.readFile("./dependency-check-reports/dependency-check-report.json", "utf-8")), n = {
|
|
117
117
|
critical: 0,
|
|
118
118
|
high: 0,
|
|
119
|
-
|
|
119
|
+
moderate: 0,
|
|
120
120
|
low: 0,
|
|
121
121
|
info: 0,
|
|
122
122
|
unknown: 0
|
|
@@ -130,7 +130,7 @@ async function I() {
|
|
|
130
130
|
const s = {
|
|
131
131
|
critical: { color: "red", label: "Critical" },
|
|
132
132
|
high: { color: "orange", label: "High" },
|
|
133
|
-
|
|
133
|
+
moderate: { color: "yellow", label: "Moderate" },
|
|
134
134
|
low: { color: "green", label: "Low" },
|
|
135
135
|
info: { color: "brightgreen", label: "Info" },
|
|
136
136
|
unknown: { color: "lightgrey", label: "Unknown" }
|
|
@@ -144,7 +144,7 @@ async function I() {
|
|
|
144
144
|
` Critical: ${n.critical}, High: ${n.high}, Medium: ${n.medium}, Low: ${n.low}, Info: ${n.info}, Unknown: ${n.unknown}`
|
|
145
145
|
);
|
|
146
146
|
const a = await t.readFile("./README.md", "utf8"), c = a.indexOf(o), l = a.indexOf(e);
|
|
147
|
-
(c === -1 || l === -1) && (console.error("
|
|
147
|
+
(c === -1 || l === -1) && (console.error("❌ Markers not found in README.md."), process.exit(1));
|
|
148
148
|
const f = r.join(" "), p = a.substring(0, c + o.length) + `
|
|
149
149
|
` + f + `
|
|
150
150
|
` + a.substring(l);
|
package/package.json
CHANGED