@dpuse/dpuse-development 0.3.454 → 0.3.461
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://
|
|
5
|
+
[](https://dpuse.github.io/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
|
|
|
@@ -102,15 +102,14 @@ The following table lists the top-level production and peer dependencies. All of
|
|
|
102
102
|
We use the `npm` packages [license-report](https://www.npmjs.com/package/license-report), [license-report-check](https://www.npmjs.com/package/license-report-check), [license-report-recursive](https://www.npmjs.com/package/license-report-recursive) and [license-downloader](https://www.npmjs.com/package/license-downloader) to identify all dependency licenses and include copies of them. We do not use any unlicensed dependencies in either production or development.
|
|
103
103
|
|
|
104
104
|
<!-- DEPENDENCY_LICENSES_START -->
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
| valibot | MIT | 1.2.0 | 1.2.0 | this month: 2025-11-24 | 1 | [LICENSE.md](https://raw.githubusercontent.com/open-circle/valibot/main/LICENSE.md) |
|
|
105
|
+
|Name|Type|Installed|Latest|Latest Released|Deps|Document|
|
|
106
|
+
|:-|:-|:-:|:-:|:-|-:|:-|
|
|
107
|
+
|@datapos/datapos-shared|MIT|0.3.590|0.3.590|this month: 2026-02-28|0|⚠️ No license file|
|
|
108
|
+
|acorn|MIT|8.16.0|8.16.0|1 month ago: 2026-02-19|0|⚠️ No license file|
|
|
109
|
+
|acorn-typescript|MIT|1.4.13|1.4.13|26 months ago: 2024-01-03❗|1|[LICENSE](https://raw.githubusercontent.com/TyrealHu/acorn-typescript/master/LICENSE)|
|
|
110
|
+
|acorn-walk|MIT|8.3.5|8.3.5|1 month ago: 2026-02-19|1|⚠️ No license file|
|
|
111
|
+
|nanoid|MIT|5.1.7|5.1.7|this month: 2026-03-15|0|[LICENSE](https://raw.githubusercontent.com/ai/nanoid/main/LICENSE)|
|
|
112
|
+
|valibot|MIT|1.3.1|1.3.1|this month: 2026-03-18|1|[LICENSE.md](https://raw.githubusercontent.com/open-circle/valibot/main/LICENSE.md)|
|
|
114
113
|
|
|
115
114
|
<!-- DEPENDENCY_LICENSES_END -->
|
|
116
115
|
|
|
@@ -6210,7 +6210,7 @@ var Cr = [
|
|
|
6210
6210
|
uploadGroupName: "contexts"
|
|
6211
6211
|
},
|
|
6212
6212
|
{
|
|
6213
|
-
idPrefix: "
|
|
6213
|
+
idPrefix: "dpuse-development",
|
|
6214
6214
|
typeId: "development",
|
|
6215
6215
|
isPublish: !0,
|
|
6216
6216
|
uploadGroupName: void 0
|
|
@@ -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
|
}
|
|
@@ -6642,7 +6651,10 @@ async function ci(e = [], t = !0) {
|
|
|
6642
6651
|
"licenses/licenseTree.json",
|
|
6643
6652
|
"--output=table",
|
|
6644
6653
|
...n
|
|
6645
|
-
])) : (Z("3️⃣ Skip 'licenses/licenseTree.json' file generate"), Z("4️⃣ Skip 'licenses/licenseTree.json' file check"))
|
|
6654
|
+
])) : (Z("3️⃣ Skip 'licenses/licenseTree.json' file generate"), Z("4️⃣ Skip 'licenses/licenseTree.json' file check"));
|
|
6655
|
+
let r = process.env.GITHUB_TOKEN;
|
|
6656
|
+
if (r == null || r === "" || r.startsWith("op://")) throw Error("GITHUB_TOKEN is not resolved. Run the script via \"npm run document\" to use 1Password resolution.");
|
|
6657
|
+
await Tr("licenses/downloads"), await X("5️⃣ Download license files", "license-downloader", [
|
|
6646
6658
|
"--source",
|
|
6647
6659
|
"licenses/licenses.json",
|
|
6648
6660
|
"--licDir",
|