@datapos/datapos-development 0.3.128 → 0.3.131

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
 
@@ -58,7 +58,7 @@ The `src/index.ts' file exposes the following utilities:
58
58
 
59
59
  The OWASP Dependency Check Report identifies known vulnerabilities in project dependencies. It is generated automatically on each release using the npm package `owasp-dependency-check`.
60
60
 
61
- [View the OWASP Dependency Check Report](https://data-positioning.github.io/datapos-tool-micromark/dependency-check-reports/dependency-check-report.html)
61
+ [View the OWASP Dependency Check Report](https://data-positioning.github.io/datapos-development/dependency-check-reports/dependency-check-report.html)
62
62
 
63
63
  ### Dependency Licenses
64
64
 
@@ -3,7 +3,7 @@ import { promises as t } from "node:fs";
3
3
  import { nanoid as $ } from "nanoid";
4
4
  import { promisify as O } from "node:util";
5
5
  const S = ["createObject", "dropObject", "removeRecords", "upsertRecords"], v = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], y = O(b);
6
- async function k() {
6
+ async function j() {
7
7
  try {
8
8
  console.info("🚀 Building configuration...");
9
9
  const e = JSON.parse(await t.readFile("package.json", "utf8")), o = JSON.parse(await t.readFile("config.json", "utf8"));
@@ -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 k(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 F() {
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 R() {
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 A(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: "FBC02D", label: "moderate" },
127
+ low: { color: "6D8C31", label: "low" },
128
+ unknown: { color: "616161", 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;
@@ -228,12 +228,12 @@ async function U(e) {
228
228
  }
229
229
  }
230
230
  export {
231
- k as buildConfig,
232
- C as buildConnectorConfig,
233
- R as buildContextConfig,
234
- A as buildPresenterConfig,
235
- J as buildPublicDirectoryIndex,
236
- F as bumpVersion,
231
+ j as buildConfig,
232
+ J as buildConnectorConfig,
233
+ F as buildContextConfig,
234
+ R as buildPresenterConfig,
235
+ k as buildPublicDirectoryIndex,
236
+ A as bumpVersion,
237
237
  D as echoScriptNotImplemented,
238
238
  P as insertLicensesIntoReadme,
239
239
  I as insertOWASPDependencyCheckBadgeIntoReadme,
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.131",
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>",
@@ -66,7 +66,7 @@
66
66
  "update:dataPosDeps": "npm run _update:sharedDep",
67
67
  "_bump:version": "node -e \"import('./dist/datapos-development.es.js').then(m => m.bumpVersion())\"",
68
68
  "_check:insertOWASPBadge": "node -e \"import('./dist/datapos-development.es.js').then(m => m.insertOWASPDependencyCheckBadgeIntoReadme())\"",
69
- "_check:owasp": "set -a && source .env && set +a && owasp-dependency-check --project \"@datapos/datapos-tool-micromark\" --enableRetired --nvdApiKey \"$NVD_API_KEY\"",
69
+ "_check:owasp": "set -a && source .env && set +a && owasp-dependency-check --project \"@datapos/datapos-development\" --enableRetired --nvdApiKey \"$NVD_API_KEY\"",
70
70
  "_document:licenceReportJSON": "license-report --only=prod,peer --department.value=n/a --licensePeriod=n/a --material=n/a --relatedTo.value=n/a > licenses.json",
71
71
  "_document:licenceReportMarkdown": "license-report --config license-report-config.json --only=prod,peer --output=markdown > licenses.md",
72
72
  "_document:licenceReportCheck": "license-report-check --source ./licenses.json --allowed 'MIT' --allowed 'n/a' --allowed 'Apache-2.0' --allowed 'CC0-1.0' --output=table",