@datapos/datapos-development 0.3.128 → 0.3.129

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.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Data Positioning Development Library
2
2
 
3
3
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=data-positioning_datapos-development&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=data-positioning_datapos-development)
4
- <span><!-- OWASP_BADGE_START -->[![OWASP](https://img.shields.io/badge/OWASP-passed-green)](https://data-positioning.github.io/test-lib/dependency-check-reports/dependency-check-report.html)<!-- OWASP_BADGE_END --></span>
4
+ <span><!-- OWASP_BADGE_START -->[![OWASP](https://img.shields.io/badge/OWASP-passed-ForestGreen)](https://data-positioning.github.io/test-lib/dependency-check-reports/dependency-check-report.html)<!-- OWASP_BADGE_END --></span>
5
5
  [![npm version](https://img.shields.io/npm/v/@datapos/datapos-development.svg)](https://www.npmjs.com/package/@datapos/datapos-development)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
7
7
 
@@ -12,7 +12,7 @@ async function k() {
12
12
  console.error("❌ Error building configuration.", e);
13
13
  }
14
14
  }
15
- async function J(e) {
15
+ async function C(e) {
16
16
  try {
17
17
  console.info(`🚀 Building public directory index for identifier '${e}'...`);
18
18
  const o = {};
@@ -46,7 +46,7 @@ async function J(e) {
46
46
  console.error("❌ Error building public directory index.", o);
47
47
  }
48
48
  }
49
- async function C() {
49
+ async function J() {
50
50
  try {
51
51
  console.info("🚀 Building connector configuration...");
52
52
  const e = JSON.parse(await t.readFile("package.json", "utf8")), o = JSON.parse(await t.readFile("config.json", "utf8")), i = await t.readFile("src/index.ts", "utf8");
@@ -62,7 +62,7 @@ async function C() {
62
62
  console.error("❌ Error building connector configuration.", e);
63
63
  }
64
64
  }
65
- async function R() {
65
+ async function A() {
66
66
  try {
67
67
  console.info("🚀 Building context configuration...");
68
68
  const e = JSON.parse(await t.readFile("package.json", "utf8")), o = JSON.parse(await t.readFile("config.json", "utf8")), i = await t.readFile("src/index.ts", "utf8"), n = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, s = [...i.matchAll(n)].filter((r) => r[1] == null && r[2] !== "constructor").map((r) => r[2]);
@@ -71,7 +71,7 @@ async function R() {
71
71
  console.error("❌ Error building context configuration.", e);
72
72
  }
73
73
  }
74
- async function A() {
74
+ async function F() {
75
75
  try {
76
76
  console.info("🚀 Building presenter configuration...");
77
77
  const e = JSON.parse(await t.readFile("package.json", "utf8")), o = JSON.parse(await t.readFile("config.json", "utf8")), i = await t.readFile("src/index.ts", "utf8"), n = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, s = [...i.matchAll(n)].filter((r) => !r[1] && r[2] !== "constructor").map((r) => r[2]);
@@ -80,7 +80,7 @@ async function A() {
80
80
  console.error("❌ Error building context configuration.", e);
81
81
  }
82
82
  }
83
- async function F(e = "./") {
83
+ async function R(e = "./") {
84
84
  try {
85
85
  console.info("🚀 Bumping version...");
86
86
  const o = JSON.parse(await t.readFile(`${e}package.json`, "utf8"));
@@ -121,18 +121,18 @@ async function I() {
121
121
  w in n ? n[w]++ : n.unknown++;
122
122
  }
123
123
  const s = {
124
- critical: { color: "red", label: "critical" },
125
- high: { color: "orange", label: "high" },
126
- moderate: { color: "yellow", label: "moderate" },
127
- low: { color: "green", label: "low" },
128
- unknown: { color: "lightgrey", label: "unknown" }
124
+ critical: { color: "D32F2F", label: "critical" },
125
+ high: { color: "EF6C00", label: "high" },
126
+ moderate: { color: "F9A825", label: "moderate" },
127
+ low: { color: "AFB42B", label: "low" },
128
+ unknown: { color: "757575", label: "unknown" }
129
129
  }, r = Object.values(n).reduce((g, m) => g + m, 0);
130
130
  console.info(`✅ Total vulnerabilities found: ${r}`), console.info(
131
131
  ` Critical: ${n.critical}, High: ${n.high}, Moderate: ${n.moderate}, Low: ${n.low}, Unknown: ${n.unknown}`
132
132
  );
133
133
  const d = JSON.parse(await t.readFile("config.json", "utf8")), c = [];
134
134
  if (r === 0)
135
- c.push(`[![OWASP](https://img.shields.io/badge/OWASP-passed-green)](https://data-positioning.github.io/${d.id}/dependency-check-reports/dependency-check-report.html)`);
135
+ c.push(`[![OWASP](https://img.shields.io/badge/OWASP-passed-4CAF50)](https://data-positioning.github.io/${d.id}/dependency-check-reports/dependency-check-report.html)`);
136
136
  else
137
137
  for (const [g, m] of Object.entries(n)) {
138
138
  if (m === 0) continue;
@@ -206,7 +206,7 @@ async function W() {
206
206
  console.error("❌ Error uploading module configuration.", e);
207
207
  }
208
208
  }
209
- async function U(e) {
209
+ async function B(e) {
210
210
  try {
211
211
  console.info("🚀 Uploading module to R2...");
212
212
  const i = `v${JSON.parse(await t.readFile("package.json", "utf8")).version}`;
@@ -229,11 +229,11 @@ async function U(e) {
229
229
  }
230
230
  export {
231
231
  k as buildConfig,
232
- C as buildConnectorConfig,
233
- R as buildContextConfig,
234
- A as buildPresenterConfig,
235
- J as buildPublicDirectoryIndex,
236
- F as bumpVersion,
232
+ J as buildConnectorConfig,
233
+ A as buildContextConfig,
234
+ F as buildPresenterConfig,
235
+ C as buildPublicDirectoryIndex,
236
+ R as bumpVersion,
237
237
  D as echoScriptNotImplemented,
238
238
  P as insertLicensesIntoReadme,
239
239
  I as insertOWASPDependencyCheckBadgeIntoReadme,
@@ -241,5 +241,5 @@ export {
241
241
  T as syncWithGitHub,
242
242
  _ as uploadDirectoryToR2,
243
243
  W as uploadModuleConfigToDO,
244
- U as uploadModuleToR2
244
+ B as uploadModuleToR2
245
245
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.128",
3
+ "version": "0.3.129",
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>",