@datapos/datapos-development 0.3.115 → 0.3.117

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.
@@ -113,14 +113,7 @@ async function D() {
113
113
  async function I() {
114
114
  const o = "<!-- OWASP_BADGE_START -->", e = "<!-- OWASP_BADGE_END -->";
115
115
  try {
116
- const i = JSON.parse(await t.readFile("./dependency-check-reports/dependency-check-report.json", "utf-8")), n = {
117
- critical: 0,
118
- high: 0,
119
- medium: 0,
120
- low: 0,
121
- info: 0,
122
- unknown: 0
123
- };
116
+ const i = JSON.parse(await t.readFile("./dependency-check-reports/dependency-check-report.json", "utf-8")), n = { critical: 0, high: 0, moderate: 0, low: 0, info: 0, unknown: 0 };
124
117
  for (const u of i.dependencies)
125
118
  if (u.vulnerabilities != null)
126
119
  for (const m of u.vulnerabilities) {
@@ -130,7 +123,7 @@ async function I() {
130
123
  const s = {
131
124
  critical: { color: "red", label: "Critical" },
132
125
  high: { color: "orange", label: "High" },
133
- medium: { color: "yellow", label: "Medium" },
126
+ moderate: { color: "yellow", label: "Moderate" },
134
127
  low: { color: "green", label: "Low" },
135
128
  info: { color: "brightgreen", label: "Info" },
136
129
  unknown: { color: "lightgrey", label: "Unknown" }
@@ -141,10 +134,10 @@ async function I() {
141
134
  }
142
135
  const d = Object.values(n).reduce((u, m) => u + m, 0);
143
136
  console.info(`✅ Total vulnerabilities found: ${d}`), console.info(
144
- ` Critical: ${n.critical}, High: ${n.high}, Medium: ${n.medium}, Low: ${n.low}, Info: ${n.info}, Unknown: ${n.unknown}`
137
+ ` Critical: ${n.critical}, High: ${n.high}, Moderate: ${n.moderate}, Low: ${n.low}, Info: ${n.info}, Unknown: ${n.unknown}`
145
138
  );
146
139
  const a = await t.readFile("./README.md", "utf8"), c = a.indexOf(o), l = a.indexOf(e);
147
- (c === -1 || l === -1) && (console.error("Error: Markers not found in README.md"), process.exit(1));
140
+ (c === -1 || l === -1) && (console.error(" Markers not found in README.md."), process.exit(1));
148
141
  const f = r.join(" "), p = a.substring(0, c + o.length) + `
149
142
  ` + f + `
150
143
  ` + a.substring(l);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.115",
3
+ "version": "0.3.117",
4
4
  "description": "A library of utilities for managing the Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",