@dpuse/dpuse-development 1.0.138 → 1.0.140
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
|
@@ -78,14 +78,14 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
78
78
|
|
|
79
79
|
| Chunk/Module/File | Composition |
|
|
80
80
|
| :------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------- |
|
|
81
|
-
| **dist/dpuse-development.es.js** | 65.
|
|
82
|
-
| src → documentDependencies.ts + 22 more | `█████████████████░░░`
|
|
81
|
+
| **dist/dpuse-development.es.js** | 65.5 kB · gzip 20.8 kB · 63.7% of the build |
|
|
82
|
+
| src → documentDependencies.ts + 22 more | `█████████████████░░░` 86.8% · 56.9 kB |
|
|
83
83
|
| ↳ documentDependencies.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 17.4% · 11.4 kB |
|
|
84
84
|
| ↳ documentQualitySecurity.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 15.2% · 9.9 kB |
|
|
85
85
|
| ↳ documentBundleSizes.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 13.8% · 9.0 kB |
|
|
86
|
-
| ↳ checkConfigFiles.ts | `▒░░░░░░░░░░░░░░░░░░░` 5.
|
|
86
|
+
| ↳ checkConfigFiles.ts | `▒░░░░░░░░░░░░░░░░░░░` 5.7% · 3.8 kB |
|
|
87
87
|
| ↳ rustCrates.ts | `▒░░░░░░░░░░░░░░░░░░░` 5.3% · 3.4 kB |
|
|
88
|
-
| ↳ documentUsage.ts | `▒░░░░░░░░░░░░░░░░░░░` 4.
|
|
88
|
+
| ↳ documentUsage.ts | `▒░░░░░░░░░░░░░░░░░░░` 4.1% · 2.7 kB |
|
|
89
89
|
| ↳ cloudflare.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.4% · 2.2 kB |
|
|
90
90
|
| ↳ documentOpening.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.1% · 2.0 kB |
|
|
91
91
|
| ↳ auditDependencies.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.0% · 2.0 kB |
|
|
@@ -93,12 +93,12 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
93
93
|
| ↳ documentActions.ts | `▒░░░░░░░░░░░░░░░░░░░` 2.7% · 1.8 kB |
|
|
94
94
|
| ↳ documentContributingLicense.ts | `░░░░░░░░░░░░░░░░░░░░` 1.9% · 1.2 kB |
|
|
95
95
|
| ↳ publishProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.7% · 1.1 kB |
|
|
96
|
-
| ↳ releaseProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.
|
|
96
|
+
| ↳ releaseProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.4% · 972 B |
|
|
97
97
|
| ↳ testProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.2% · 799 B |
|
|
98
98
|
| ↳ 8 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 4.3% · 2.8 kB |
|
|
99
99
|
| (inlined worker) | `░░░░░░░░░░░░░░░░░░░░` 0.0% · 17 B |
|
|
100
|
-
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░`
|
|
101
|
-
| **dist/utilities-DzQ2yZXo.js** | 26.3 kB · gzip 7.3 kB · 25.
|
|
100
|
+
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 13.1% · 8.6 kB |
|
|
101
|
+
| **dist/utilities-DzQ2yZXo.js** | 26.3 kB · gzip 7.3 kB · 25.6% of the build |
|
|
102
102
|
| @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `███████████░░░░░░░░░` 53.7% · 14.1 kB |
|
|
103
103
|
| src → index.ts | `███████░░░░░░░░░░░░░` 33.7% · 8.9 kB |
|
|
104
104
|
| valibot → dist/index.mjs | `░░░░░░░░░░░░░░░░░░░░` 1.5% · 413 B |
|
|
@@ -106,7 +106,7 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
106
106
|
| **dist/apiReference-sI13y2nG.js** | 8.5 kB · gzip 3.1 kB · 8.2% of the build |
|
|
107
107
|
| src → apiReference.ts | `███████████████████░` 95.1% · 8.0 kB |
|
|
108
108
|
| (bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 4.9% · 427 B |
|
|
109
|
-
| **dist/vite.es.js** | 2.5 kB · gzip 1.1 kB · 2.
|
|
109
|
+
| **dist/vite.es.js** | 2.5 kB · gzip 1.1 kB · 2.4% of the build |
|
|
110
110
|
| src → vite.ts | `█████████████████░░░` 87.0% · 2.2 kB |
|
|
111
111
|
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 13.0% · 334 B |
|
|
112
112
|
|
|
@@ -17,6 +17,11 @@ var _e = [
|
|
|
17
17
|
reason: "'vite', used by VitePress 1.x in dpuse-kb, which affects only the local dev server on Windows",
|
|
18
18
|
reviewBy: "2026-12-31"
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
id: "GHSA-587h-7wmj-h5pm",
|
|
22
|
+
reason: "'launch-editor', bundled in 'vite' 5, used by VitePress 1.x in dpuse-kb, which affects only the local dev server on Windows",
|
|
23
|
+
reviewBy: "2026-12-31"
|
|
24
|
+
},
|
|
20
25
|
{
|
|
21
26
|
id: "GHSA-wq5f-xc86-pv6w",
|
|
22
27
|
reason: "'sharp', pinned to 0.35.4 by miniflare, Wrangler's local Workers simulator, which runs only during development and is never deployed; remove once miniflare takes 0.35.5",
|
|
@@ -1378,8 +1383,12 @@ async function xr() {
|
|
|
1378
1383
|
}
|
|
1379
1384
|
//#endregion
|
|
1380
1385
|
//#region src/utilities/cloudflare.ts
|
|
1381
|
-
var Sr =
|
|
1382
|
-
|
|
1386
|
+
var Sr = {
|
|
1387
|
+
".css": "text/css",
|
|
1388
|
+
".js": "application/javascript",
|
|
1389
|
+
".wasm": "application/wasm"
|
|
1390
|
+
}, Cr = "dpuse-sample-data-eu";
|
|
1391
|
+
async function wr() {
|
|
1383
1392
|
let e = await C("config.json"), t = {
|
|
1384
1393
|
body: JSON.stringify(e),
|
|
1385
1394
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1387,12 +1396,12 @@ async function Cr() {
|
|
|
1387
1396
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
1388
1397
|
if (!n.ok) throw Error(await n.text());
|
|
1389
1398
|
}
|
|
1390
|
-
async function
|
|
1391
|
-
let n = await
|
|
1392
|
-
for (let [e, t] of r) await
|
|
1399
|
+
async function Tr(e, t) {
|
|
1400
|
+
let n = await Ar(`${e}/${t}`, t), r = Map.groupBy(n, ({ key: e }) => c(e));
|
|
1401
|
+
for (let [e, t] of r) await kr(t, ["--content-type", e]);
|
|
1393
1402
|
}
|
|
1394
|
-
async function
|
|
1395
|
-
await
|
|
1403
|
+
async function Er(e) {
|
|
1404
|
+
await Tr(e, "application"), await Tr(e, "fileStore"), await kr(["applicationIndex.json", "fileStoreIndex.json"].map((t) => ({
|
|
1396
1405
|
file: `${e}/${t}`,
|
|
1397
1406
|
key: t
|
|
1398
1407
|
})), [
|
|
@@ -1402,7 +1411,7 @@ async function Tr(e) {
|
|
|
1402
1411
|
"no-cache"
|
|
1403
1412
|
]);
|
|
1404
1413
|
}
|
|
1405
|
-
async function
|
|
1414
|
+
async function Dr(e) {
|
|
1406
1415
|
let t = e.id, n = {
|
|
1407
1416
|
body: JSON.stringify(e),
|
|
1408
1417
|
headers: { "Content-Type": "application/json" },
|
|
@@ -1410,13 +1419,13 @@ async function Er(e) {
|
|
|
1410
1419
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
1411
1420
|
if (!r.ok) throw Error(await r.text());
|
|
1412
1421
|
}
|
|
1413
|
-
async function
|
|
1422
|
+
async function Or(e, t) {
|
|
1414
1423
|
let n = `v${e.version ?? "unknown"}`;
|
|
1415
1424
|
async function r(e, r = "") {
|
|
1416
1425
|
let i = await ee(e, { withFileTypes: !0 });
|
|
1417
1426
|
for (let a of i) {
|
|
1418
1427
|
if (a.isDirectory() || a.name.endsWith(".map")) continue;
|
|
1419
|
-
let i = `${e}/${a.name}`, o = r ? `${r}/${a.name}` : a.name, s = `${t}_${n}/${o}`.replaceAll("\\", "/"), c = a.name
|
|
1428
|
+
let i = `${e}/${a.name}`, o = r ? `${r}/${a.name}` : a.name, s = `${t}_${n}/${o}`.replaceAll("\\", "/"), c = Sr[E.extname(a.name)] ?? "application/octet-stream";
|
|
1420
1429
|
console.info(`⚙️ Uploading '${o}' → '${s}'...`), await b(void 0, "wrangler", [
|
|
1421
1430
|
"r2",
|
|
1422
1431
|
"object",
|
|
@@ -1424,7 +1433,7 @@ async function Dr(e, t) {
|
|
|
1424
1433
|
s,
|
|
1425
1434
|
`--file=${i}`,
|
|
1426
1435
|
"--content-type",
|
|
1427
|
-
|
|
1436
|
+
c,
|
|
1428
1437
|
"--jurisdiction=eu",
|
|
1429
1438
|
"--remote"
|
|
1430
1439
|
]);
|
|
@@ -1432,7 +1441,7 @@ async function Dr(e, t) {
|
|
|
1432
1441
|
}
|
|
1433
1442
|
await r("dist");
|
|
1434
1443
|
}
|
|
1435
|
-
async function
|
|
1444
|
+
async function kr(e, t) {
|
|
1436
1445
|
if (e.length === 0) return;
|
|
1437
1446
|
let n = await T.mkdtemp(E.join(ge.tmpdir(), "dpuse-r2-bulk-")), r = E.join(n, "files.json");
|
|
1438
1447
|
try {
|
|
@@ -1440,7 +1449,7 @@ async function Or(e, t) {
|
|
|
1440
1449
|
"r2",
|
|
1441
1450
|
"bulk",
|
|
1442
1451
|
"put",
|
|
1443
|
-
|
|
1452
|
+
Cr,
|
|
1444
1453
|
"--filename",
|
|
1445
1454
|
r,
|
|
1446
1455
|
...t,
|
|
@@ -1454,12 +1463,12 @@ async function Or(e, t) {
|
|
|
1454
1463
|
});
|
|
1455
1464
|
}
|
|
1456
1465
|
}
|
|
1457
|
-
async function
|
|
1466
|
+
async function Ar(e, t) {
|
|
1458
1467
|
let n = await ee(e), r = [];
|
|
1459
1468
|
for (let i of n) {
|
|
1460
1469
|
if (i.startsWith(".")) continue;
|
|
1461
1470
|
let n = `${e}/${i}`, a = `${t}/${i}`;
|
|
1462
|
-
(await h(n)).isDirectory() ? r.push(...await
|
|
1471
|
+
(await h(n)).isDirectory() ? r.push(...await Ar(n, a)) : r.push({
|
|
1463
1472
|
file: n,
|
|
1464
1473
|
key: a
|
|
1465
1474
|
});
|
|
@@ -1468,7 +1477,7 @@ async function kr(e, t) {
|
|
|
1468
1477
|
}
|
|
1469
1478
|
//#endregion
|
|
1470
1479
|
//#region src/actions/publishProject.ts
|
|
1471
|
-
async function
|
|
1480
|
+
async function jr() {
|
|
1472
1481
|
try {
|
|
1473
1482
|
l("Publish Project");
|
|
1474
1483
|
let e = await C("package.json"), t = await C("config.json"), n = g(t.id);
|
|
@@ -1478,24 +1487,24 @@ async function Ar() {
|
|
|
1478
1487
|
"app",
|
|
1479
1488
|
"kb"
|
|
1480
1489
|
].includes(n.publishedTo);
|
|
1481
|
-
i && await r("2️⃣ Deploy", "npm", ["run", "deploy"]), await
|
|
1490
|
+
i && await r("2️⃣ Deploy", "npm", ["run", "deploy"]), await Mr(i ? "3️⃣ " : "2️⃣ ", e, t, n), n.publishedTo === "sampleData" && (w("3️⃣ Upload sample data"), await Er("public")), x(`Project version '${e.version ?? "unknown"}' published.`);
|
|
1482
1491
|
} catch (e) {
|
|
1483
1492
|
console.error("❌ Error publishing project", e), process.exit(1);
|
|
1484
1493
|
}
|
|
1485
1494
|
}
|
|
1486
|
-
async function
|
|
1487
|
-
if (r.typeId === "app") w(`${e} Register module`), await
|
|
1488
|
-
else if (r.typeId === "engine") w(`${e} Register module`), await
|
|
1495
|
+
async function Mr(e, t, n, r) {
|
|
1496
|
+
if (r.typeId === "app") w(`${e} Register module`), await wr();
|
|
1497
|
+
else if (r.typeId === "engine") w(`${e} Register module`), await Or(t, `dpuse-engine-eu/${r.uploadGroupName ?? "unknown"}`), await Dr(n);
|
|
1489
1498
|
else if (r.uploadGroupName === void 0) w(`${e} Registration NOT required`);
|
|
1490
1499
|
else {
|
|
1491
1500
|
w(`${e} Register module`);
|
|
1492
1501
|
let i = n.id.split("-").slice(2).join("-");
|
|
1493
|
-
await
|
|
1502
|
+
await Or(t, `dpuse-engine-eu/${r.uploadGroupName}/${i}`), await Dr(n);
|
|
1494
1503
|
}
|
|
1495
1504
|
}
|
|
1496
1505
|
//#endregion
|
|
1497
1506
|
//#region src/actions/releaseProject.ts
|
|
1498
|
-
async function
|
|
1507
|
+
async function Nr(e = "MIT", t = !1) {
|
|
1499
1508
|
try {
|
|
1500
1509
|
l("Release Project");
|
|
1501
1510
|
let n = await C("package.json"), i = await C("config.json"), a = g(i.id);
|
|
@@ -1509,7 +1518,7 @@ async function Mr(e = "MIT", t = !1) {
|
|
|
1509
1518
|
"push",
|
|
1510
1519
|
"origin",
|
|
1511
1520
|
"main:main"
|
|
1512
|
-
]), await
|
|
1521
|
+
]), await Mr("8️⃣ ", n, o, a), a.publishedTo === "npm") {
|
|
1513
1522
|
let e = `v${n.version ?? "unknown"}`;
|
|
1514
1523
|
await r("9️⃣ Trigger GitHub release", "gh", [
|
|
1515
1524
|
"release",
|
|
@@ -1528,7 +1537,7 @@ async function Mr(e = "MIT", t = !1) {
|
|
|
1528
1537
|
}
|
|
1529
1538
|
//#endregion
|
|
1530
1539
|
//#region src/actions/syncProjectWithGitHub.ts
|
|
1531
|
-
async function
|
|
1540
|
+
async function Pr() {
|
|
1532
1541
|
try {
|
|
1533
1542
|
l("Synchronise Project with GitHub");
|
|
1534
1543
|
let e = await C("package.json"), t = await C("config.json"), n = g(t.id);
|
|
@@ -1547,12 +1556,12 @@ async function Nr() {
|
|
|
1547
1556
|
}
|
|
1548
1557
|
//#endregion
|
|
1549
1558
|
//#region src/actions/testProject.ts
|
|
1550
|
-
var
|
|
1559
|
+
var Fr = [
|
|
1551
1560
|
"1️⃣ ",
|
|
1552
1561
|
"2️⃣ ",
|
|
1553
1562
|
"3️⃣ ",
|
|
1554
1563
|
"4️⃣ "
|
|
1555
|
-
],
|
|
1564
|
+
], Ir = [{
|
|
1556
1565
|
id: "unit",
|
|
1557
1566
|
label: "Run unit tests",
|
|
1558
1567
|
command: "vitest",
|
|
@@ -1565,13 +1574,13 @@ var Pr = [
|
|
|
1565
1574
|
arguments: ["test", "--pass-with-no-tests"],
|
|
1566
1575
|
configFileName: "playwright.config.ts"
|
|
1567
1576
|
}];
|
|
1568
|
-
async function
|
|
1577
|
+
async function Lr(e = ["unit"]) {
|
|
1569
1578
|
try {
|
|
1570
1579
|
l("Test Project");
|
|
1571
1580
|
let n = 0;
|
|
1572
|
-
for (let i of
|
|
1581
|
+
for (let i of Ir) {
|
|
1573
1582
|
if (!e.includes(i.id) || await t(i.configFileName) === null) continue;
|
|
1574
|
-
let a = `${
|
|
1583
|
+
let a = `${Fr[n] ?? ""} ${i.label}`;
|
|
1575
1584
|
await r(a, i.command, i.arguments), n += 1;
|
|
1576
1585
|
}
|
|
1577
1586
|
if (n === 0) {
|
|
@@ -1585,7 +1594,7 @@ async function Ir(e = ["unit"]) {
|
|
|
1585
1594
|
}
|
|
1586
1595
|
//#endregion
|
|
1587
1596
|
//#region src/actions/triggerGitHubRelease.ts
|
|
1588
|
-
async function
|
|
1597
|
+
async function Rr() {
|
|
1589
1598
|
try {
|
|
1590
1599
|
l("Trigger GitHub Release");
|
|
1591
1600
|
let e = `v${(await C("package.json")).version ?? "unknown"}`;
|
|
@@ -1603,4 +1612,4 @@ async function Lr() {
|
|
|
1603
1612
|
}
|
|
1604
1613
|
}
|
|
1605
1614
|
//#endregion
|
|
1606
|
-
export { ye as auditDependencies, Te as buildProject, ze as checkProject, yr as documentProject, br as formatCode, xr as lintCode,
|
|
1615
|
+
export { ye as auditDependencies, Te as buildProject, ze as checkProject, yr as documentProject, br as formatCode, xr as lintCode, jr as publishProject, Nr as releaseProject, c as resolveSampleDataContentType, Pr as syncProjectWithGitHub, Lr as testProject, Rr as triggerGitHubRelease, Tr as uploadDirectoryToR2 };
|