@dpuse/dpuse-development 0.3.454 → 0.3.456
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,8 +1,8 @@
|
|
|
1
1
|
# Data Positioning Development Library
|
|
2
2
|
|
|
3
|
-
[](https://sonarcloud.io/summary/new_code?id=dpuse_dpuse-development)
|
|
4
4
|
<span><!-- OWASP_BADGES_START -->
|
|
5
|
-
[](https://dpuse.github.io/@dpuse/dpuse-development/dependency-check-reports/dependency-check-report.html) [](https://dpuse.github.io/@dpuse/dpuse-development/dependency-check-reports/dependency-check-report.html)
|
|
6
6
|
|
|
7
7
|
<!-- OWASP_BADGES_END --></span>
|
|
8
8
|
|
|
@@ -85,15 +85,15 @@ Common resources (files) used across Data Positioning projects.
|
|
|
85
85
|
|
|
86
86
|
The Bundle Analysis Report provides a detailed breakdown of the bundle’s composition and module sizes, helping identify which modules contribute most to the final build. It is generated automatically on each release using the `npm` package [rollup-plugin-visualizer](https://www.npmjs.com/package/rollup-plugin-visualizer).
|
|
87
87
|
|
|
88
|
-
[View the Bundle Analysis Report](https://
|
|
88
|
+
[View the Bundle Analysis Report](https://dpuse.github.io/dpuse-development/bundle-analysis-reports/rollup-visualiser/index.html) created by the **rollup visualiser** plugin.
|
|
89
89
|
|
|
90
|
-
[View the Bundle Analysis Report](https://
|
|
90
|
+
[View the Bundle Analysis Report](https://dpuse.github.io/dpuse-development/bundle-analysis-reports/sonda/index.html) created by the **sonda** plugin.
|
|
91
91
|
|
|
92
92
|
## Dependency Check Report
|
|
93
93
|
|
|
94
94
|
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](https://dependency-check.github.io/DependencyCheck/index.html).
|
|
95
95
|
|
|
96
|
-
[View the OWASP Dependency Check Report](https://
|
|
96
|
+
[View the OWASP Dependency Check Report](https://dpuse.github.io/dpuse-development/dependency-check-reports/dependency-check-report.html)
|
|
97
97
|
|
|
98
98
|
## Dependency Licenses
|
|
99
99
|
|
|
@@ -6300,7 +6300,6 @@ async function Dr(e, n) {
|
|
|
6300
6300
|
return t.readdir(e, n);
|
|
6301
6301
|
}
|
|
6302
6302
|
function Or(e) {
|
|
6303
|
-
console.log(1111, e);
|
|
6304
6303
|
let t = Cr.find((t) => e.startsWith(t.idPrefix));
|
|
6305
6304
|
if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
|
|
6306
6305
|
return t;
|
|
@@ -6328,10 +6327,13 @@ async function Mr(e) {
|
|
|
6328
6327
|
if (e.code !== "ENOENT") throw e;
|
|
6329
6328
|
}
|
|
6330
6329
|
}
|
|
6331
|
-
async function $(e, t, n = [], r = !1) {
|
|
6332
|
-
return Z(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e,
|
|
6333
|
-
a(t, n, {
|
|
6334
|
-
|
|
6330
|
+
async function $(e, t, n = [], r = !1, i = !1) {
|
|
6331
|
+
return Z(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
|
|
6332
|
+
a(t, n, {
|
|
6333
|
+
shell: i,
|
|
6334
|
+
stdio: "inherit"
|
|
6335
|
+
}).on("close", (n) => {
|
|
6336
|
+
n === 0 || r ? e() : o(/* @__PURE__ */ Error(`${t} exited with code ${n}`));
|
|
6335
6337
|
});
|
|
6336
6338
|
});
|
|
6337
6339
|
}
|
|
@@ -6497,7 +6499,7 @@ function Gr() {
|
|
|
6497
6499
|
async function Kr(e, t) {
|
|
6498
6500
|
Z(`${e} Build project configuration`);
|
|
6499
6501
|
let n = await Q("config.json");
|
|
6500
|
-
return t.name != null && (n.id = t.name.replace("@
|
|
6502
|
+
return t.name != null && (n.id = t.name.replace("@dpuse/", "").replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Pr("config.json", n), n;
|
|
6501
6503
|
}
|
|
6502
6504
|
async function qr(e, t) {
|
|
6503
6505
|
Z(`${e} Build connector project configuration`);
|
|
@@ -6510,7 +6512,7 @@ async function qr(e, t) {
|
|
|
6510
6512
|
return console.log(3333), await Jr(t, n, a, o);
|
|
6511
6513
|
}
|
|
6512
6514
|
async function Jr(e, t, n, r) {
|
|
6513
|
-
return n.length > 0 ? (console.info(`ℹ️ Implements ${n.length} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations."), r === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@
|
|
6515
|
+
return n.length > 0 ? (console.info(`ℹ️ Implements ${n.length} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations."), r === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.operations = n, t.usageId = r ?? "unknown", await Pr("config.json", t), t;
|
|
6514
6516
|
}
|
|
6515
6517
|
async function Yr(e, t) {
|
|
6516
6518
|
Z(`${e} Build context project configuration`);
|
|
@@ -6562,11 +6564,18 @@ var $r = {
|
|
|
6562
6564
|
}, ei = "<!-- OWASP_BADGES_START -->", ti = "<!-- OWASP_BADGES_END -->";
|
|
6563
6565
|
async function ni() {
|
|
6564
6566
|
try {
|
|
6565
|
-
kr("Audit Dependencies")
|
|
6567
|
+
kr("Audit Dependencies");
|
|
6568
|
+
let e = await Q("package.json"), t = [];
|
|
6569
|
+
try {
|
|
6570
|
+
let e = (await Dr("dependency-check-bin")).toSorted((e, t) => e.localeCompare(t)).at(-1);
|
|
6571
|
+
e != null && e !== "" && t.push("--owasp-bin", `dependency-check-bin/${e}/dependency-check/bin/dependency-check.sh`);
|
|
6572
|
+
} catch {}
|
|
6573
|
+
await $("1️⃣", "owasp-dependency-check", [
|
|
6574
|
+
...t,
|
|
6566
6575
|
"--out",
|
|
6567
6576
|
"dependency-check-reports",
|
|
6568
6577
|
"--project",
|
|
6569
|
-
|
|
6578
|
+
e.name ?? "unknown",
|
|
6570
6579
|
"--enableRetired",
|
|
6571
6580
|
"--nodePackageSkipDevDependencies",
|
|
6572
6581
|
"--nvdApiKey",
|
|
@@ -6594,12 +6603,12 @@ async function ri(e) {
|
|
|
6594
6603
|
}
|
|
6595
6604
|
async function ii(e) {
|
|
6596
6605
|
let t = await Q("config.json"), n = [];
|
|
6597
|
-
if (Object.values(e).reduce((e, t) => e + t, 0) === 0) console.info("No vulnerabilities found."), n.push(`[](https://
|
|
6606
|
+
if (Object.values(e).reduce((e, t) => e + t, 0) === 0) console.info("No vulnerabilities found."), n.push(`[](https://dpuse.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
6598
6607
|
else for (let [r, i] of Object.entries(e)) {
|
|
6599
6608
|
let e = $r[r];
|
|
6600
6609
|
if (console.warn(`⚠️ ${i} ${e.label} vulnerability(ies) found.`), i === 0) continue;
|
|
6601
6610
|
let a = `https://img.shields.io/badge/OWASP-${i}%20${e.label}-${e.color}`;
|
|
6602
|
-
n.push(`[](https://
|
|
6611
|
+
n.push(`[](https://dpuse.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
6603
6612
|
}
|
|
6604
6613
|
return n;
|
|
6605
6614
|
}
|