@dpuse/dpuse-development 0.3.450 → 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
|
|
|
@@ -6210,7 +6210,7 @@ var Cr = [
|
|
|
6210
6210
|
uploadGroupName: "contexts"
|
|
6211
6211
|
},
|
|
6212
6212
|
{
|
|
6213
|
-
idPrefix: "dpuse-development",
|
|
6213
|
+
idPrefix: "@dpuse/dpuse-development",
|
|
6214
6214
|
typeId: "development",
|
|
6215
6215
|
isPublish: !0,
|
|
6216
6216
|
uploadGroupName: void 0
|
|
@@ -6327,10 +6327,13 @@ async function Mr(e) {
|
|
|
6327
6327
|
if (e.code !== "ENOENT") throw e;
|
|
6328
6328
|
}
|
|
6329
6329
|
}
|
|
6330
|
-
async function $(e, t, n = [], r = !1) {
|
|
6331
|
-
return Z(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e,
|
|
6332
|
-
a(t, n, {
|
|
6333
|
-
|
|
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}`));
|
|
6334
6337
|
});
|
|
6335
6338
|
});
|
|
6336
6339
|
}
|
|
@@ -6496,7 +6499,7 @@ function Gr() {
|
|
|
6496
6499
|
async function Kr(e, t) {
|
|
6497
6500
|
Z(`${e} Build project configuration`);
|
|
6498
6501
|
let n = await Q("config.json");
|
|
6499
|
-
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;
|
|
6500
6503
|
}
|
|
6501
6504
|
async function qr(e, t) {
|
|
6502
6505
|
Z(`${e} Build connector project configuration`);
|
|
@@ -6509,7 +6512,7 @@ async function qr(e, t) {
|
|
|
6509
6512
|
return console.log(3333), await Jr(t, n, a, o);
|
|
6510
6513
|
}
|
|
6511
6514
|
async function Jr(e, t, n, r) {
|
|
6512
|
-
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;
|
|
6513
6516
|
}
|
|
6514
6517
|
async function Yr(e, t) {
|
|
6515
6518
|
Z(`${e} Build context project configuration`);
|
|
@@ -6561,11 +6564,18 @@ var $r = {
|
|
|
6561
6564
|
}, ei = "<!-- OWASP_BADGES_START -->", ti = "<!-- OWASP_BADGES_END -->";
|
|
6562
6565
|
async function ni() {
|
|
6563
6566
|
try {
|
|
6564
|
-
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,
|
|
6565
6575
|
"--out",
|
|
6566
6576
|
"dependency-check-reports",
|
|
6567
6577
|
"--project",
|
|
6568
|
-
|
|
6578
|
+
e.name ?? "unknown",
|
|
6569
6579
|
"--enableRetired",
|
|
6570
6580
|
"--nodePackageSkipDevDependencies",
|
|
6571
6581
|
"--nvdApiKey",
|
|
@@ -6593,12 +6603,12 @@ async function ri(e) {
|
|
|
6593
6603
|
}
|
|
6594
6604
|
async function ii(e) {
|
|
6595
6605
|
let t = await Q("config.json"), n = [];
|
|
6596
|
-
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)`);
|
|
6597
6607
|
else for (let [r, i] of Object.entries(e)) {
|
|
6598
6608
|
let e = $r[r];
|
|
6599
6609
|
if (console.warn(`⚠️ ${i} ${e.label} vulnerability(ies) found.`), i === 0) continue;
|
|
6600
6610
|
let a = `https://img.shields.io/badge/OWASP-${i}%20${e.label}-${e.color}`;
|
|
6601
|
-
n.push(`[](https://
|
|
6611
|
+
n.push(`[](https://dpuse.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
6602
6612
|
}
|
|
6603
6613
|
return n;
|
|
6604
6614
|
}
|