@dpuse/dpuse-development 0.3.496 → 0.3.497
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.
|
@@ -6316,13 +6316,16 @@ function jr(e) {
|
|
|
6316
6316
|
if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
|
|
6317
6317
|
return t;
|
|
6318
6318
|
}
|
|
6319
|
-
function Mr(e) {
|
|
6319
|
+
async function Mr(e) {
|
|
6320
|
+
return await t.stat(e);
|
|
6321
|
+
}
|
|
6322
|
+
function Nr(e) {
|
|
6320
6323
|
let t = F.extend(br()).parse(e, {
|
|
6321
6324
|
ecmaVersion: "latest",
|
|
6322
6325
|
sourceType: "module",
|
|
6323
6326
|
locations: !0
|
|
6324
6327
|
}), n = [];
|
|
6325
|
-
return
|
|
6328
|
+
return Pr(t, (e) => {
|
|
6326
6329
|
if (e.type !== "MethodDefinition") return;
|
|
6327
6330
|
let t = e, r = t.key;
|
|
6328
6331
|
if (r.type !== "Identifier") return;
|
|
@@ -6330,7 +6333,7 @@ function Mr(e) {
|
|
|
6330
6333
|
i && i !== "constructor" && t.accessibility !== "private" && n.push(i);
|
|
6331
6334
|
}), n;
|
|
6332
6335
|
}
|
|
6333
|
-
function
|
|
6336
|
+
function Pr(e, t) {
|
|
6334
6337
|
t(e);
|
|
6335
6338
|
for (let [n, r] of Object.entries(e)) {
|
|
6336
6339
|
if ([
|
|
@@ -6343,19 +6346,19 @@ function Nr(e, t) {
|
|
|
6343
6346
|
let e = r;
|
|
6344
6347
|
if (Array.isArray(e)) for (let n of e) {
|
|
6345
6348
|
let e = n;
|
|
6346
|
-
e && typeof e.type == "string" &&
|
|
6349
|
+
e && typeof e.type == "string" && Pr(e, t);
|
|
6347
6350
|
}
|
|
6348
|
-
else e && typeof e == "object" && typeof e.type == "string" &&
|
|
6351
|
+
else e && typeof e == "object" && typeof e.type == "string" && Pr(e, t);
|
|
6349
6352
|
}
|
|
6350
6353
|
}
|
|
6351
|
-
function
|
|
6354
|
+
function Fr(e, t, n, r) {
|
|
6352
6355
|
let i = e.indexOf(n), a = e.indexOf(r);
|
|
6353
6356
|
if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
|
|
6354
6357
|
return `${e.slice(0, Math.max(0, i + n.length))}\n${t}\n${e.slice(Math.max(0, a))}`;
|
|
6355
6358
|
}
|
|
6356
6359
|
//#endregion
|
|
6357
6360
|
//#region src/utilities/cloudflare.ts
|
|
6358
|
-
async function
|
|
6361
|
+
async function Ir() {
|
|
6359
6362
|
let e = await Q("config.json"), t = {
|
|
6360
6363
|
body: JSON.stringify(e),
|
|
6361
6364
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6363,7 +6366,17 @@ async function Fr() {
|
|
|
6363
6366
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
6364
6367
|
if (!n.ok) throw Error(await n.text());
|
|
6365
6368
|
}
|
|
6366
|
-
async function
|
|
6369
|
+
async function Lr(e, t) {
|
|
6370
|
+
async function n(e, t, r) {
|
|
6371
|
+
for (let i of r) {
|
|
6372
|
+
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
6373
|
+
(await Mr(r)).isDirectory() ? await n(r, a, await wr(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await X(void 0, `wrangler r2 object put "dpuse-sample-data-eu/${t}/${i}" --file="${e}/${i}" --jurisdiction=eu --remote`));
|
|
6374
|
+
}
|
|
6375
|
+
}
|
|
6376
|
+
let r = await wr(`${e}/${t}/`);
|
|
6377
|
+
await n(`${e}/${t}`, t, r);
|
|
6378
|
+
}
|
|
6379
|
+
async function Rr(e) {
|
|
6367
6380
|
let t = e.id, n = {
|
|
6368
6381
|
body: JSON.stringify(e),
|
|
6369
6382
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6371,7 +6384,7 @@ async function Ir(e) {
|
|
|
6371
6384
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
6372
6385
|
if (!r.ok) throw Error(await r.text());
|
|
6373
6386
|
}
|
|
6374
|
-
async function
|
|
6387
|
+
async function zr(e, t) {
|
|
6375
6388
|
let n = `v${e.version}`;
|
|
6376
6389
|
async function r(e, r = "") {
|
|
6377
6390
|
let i = await wr(e, { withFileTypes: !0 });
|
|
@@ -6386,12 +6399,12 @@ async function Lr(e, t) {
|
|
|
6386
6399
|
}
|
|
6387
6400
|
//#endregion
|
|
6388
6401
|
//#region src/operations/manageProject.ts
|
|
6389
|
-
var
|
|
6402
|
+
var Br = new Set([
|
|
6390
6403
|
"createObject",
|
|
6391
6404
|
"dropObject",
|
|
6392
6405
|
"removeRecords",
|
|
6393
6406
|
"upsertRecords"
|
|
6394
|
-
]),
|
|
6407
|
+
]), Vr = new Set([
|
|
6395
6408
|
"auditObjectContent",
|
|
6396
6409
|
"findObjectFolderPath",
|
|
6397
6410
|
"getReadableStream",
|
|
@@ -6401,30 +6414,30 @@ var Rr = new Set([
|
|
|
6401
6414
|
"retrieveChunks",
|
|
6402
6415
|
"retrieveRecords"
|
|
6403
6416
|
]);
|
|
6404
|
-
async function
|
|
6417
|
+
async function Hr() {
|
|
6405
6418
|
try {
|
|
6406
6419
|
kr("Build Project"), await Z("1️⃣ Bundle project", "vite", ["build"]), Ar("Project built.");
|
|
6407
6420
|
} catch (e) {
|
|
6408
6421
|
console.error("❌ Error building project.", e), process.exit(1);
|
|
6409
6422
|
}
|
|
6410
6423
|
}
|
|
6411
|
-
async function
|
|
6424
|
+
async function Ur() {
|
|
6412
6425
|
try {
|
|
6413
6426
|
kr("Release Project");
|
|
6414
6427
|
let e = await Q("package.json"), t = await Q("config.json");
|
|
6415
|
-
await
|
|
6428
|
+
await Qr("1️⃣", e);
|
|
6416
6429
|
let n = jr(t.id);
|
|
6417
6430
|
switch (n.typeId) {
|
|
6418
6431
|
case "connector":
|
|
6419
|
-
t = await
|
|
6432
|
+
t = await Gr("2️⃣", e);
|
|
6420
6433
|
break;
|
|
6421
6434
|
case "context":
|
|
6422
|
-
t = await
|
|
6435
|
+
t = await Kr("2️⃣", e);
|
|
6423
6436
|
break;
|
|
6424
6437
|
case "presenter":
|
|
6425
|
-
t = await
|
|
6438
|
+
t = await qr("2️⃣", e);
|
|
6426
6439
|
break;
|
|
6427
|
-
default: t = await
|
|
6440
|
+
default: t = await Wr("2️⃣", e);
|
|
6428
6441
|
}
|
|
6429
6442
|
if (await Z("3️⃣ Bundle project", "vite", ["build"]), await X("4️⃣ Stage changes", "git", ["add", "."]), await X("5️⃣ Commit changes", "git", [
|
|
6430
6443
|
"commit",
|
|
@@ -6434,13 +6447,13 @@ async function Vr() {
|
|
|
6434
6447
|
"push",
|
|
6435
6448
|
"origin",
|
|
6436
6449
|
"main:main"
|
|
6437
|
-
]), n.typeId === "app") $("7️⃣ Register module"), await
|
|
6438
|
-
else if (n.typeId === "engine") $("7️⃣ Register module"), await
|
|
6450
|
+
]), n.typeId === "app") $("7️⃣ Register module"), await Ir();
|
|
6451
|
+
else if (n.typeId === "engine") $("7️⃣ Register module"), await zr(e, `dpuse-engine-eu/${n.uploadGroupName}`), await Rr(t);
|
|
6439
6452
|
else if (n.uploadGroupName === void 0) $("7️⃣ Registration NOT required.");
|
|
6440
6453
|
else {
|
|
6441
6454
|
$("7️⃣ Register module");
|
|
6442
6455
|
let r = t.id.split("-").slice(2).join("-");
|
|
6443
|
-
await
|
|
6456
|
+
await zr(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Rr(t);
|
|
6444
6457
|
}
|
|
6445
6458
|
if (n.isPublished) {
|
|
6446
6459
|
let e = ".npmrc";
|
|
@@ -6459,53 +6472,53 @@ async function Vr() {
|
|
|
6459
6472
|
console.error("❌ Error releasing project.", e), process.exit(1);
|
|
6460
6473
|
}
|
|
6461
6474
|
}
|
|
6462
|
-
async function
|
|
6475
|
+
async function Wr(e, t) {
|
|
6463
6476
|
$(`${e} Build project configuration`);
|
|
6464
6477
|
let n = await Q("config.json");
|
|
6465
6478
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "").replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Dr("config.json", n), n;
|
|
6466
6479
|
}
|
|
6467
|
-
async function
|
|
6480
|
+
async function Gr(e, t) {
|
|
6468
6481
|
$(`${e} Build connector project configuration`);
|
|
6469
6482
|
let [n, r] = await Promise.all([Q("config.json"), Tr("src/index.ts")]), i = /* @__PURE__ */ m(ke, n);
|
|
6470
6483
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
|
|
6471
|
-
let a =
|
|
6472
|
-
return await
|
|
6484
|
+
let a = Nr(r);
|
|
6485
|
+
return await Yr(t, n, a, Jr(a));
|
|
6473
6486
|
}
|
|
6474
|
-
async function
|
|
6487
|
+
async function Kr(e, t) {
|
|
6475
6488
|
$(`${e} Build context project configuration`);
|
|
6476
6489
|
let [n, r] = await Promise.all([Q("config.json"), Tr("src/index.ts")]), i = /* @__PURE__ */ m(Me, n);
|
|
6477
6490
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
|
|
6478
|
-
return await
|
|
6491
|
+
return await Yr(t, n, Nr(r));
|
|
6479
6492
|
}
|
|
6480
|
-
async function
|
|
6493
|
+
async function qr(e, t) {
|
|
6481
6494
|
$(`${e} Build presenter project configuration`);
|
|
6482
6495
|
let [n, r] = await Promise.all([Q("config.json"), Tr("src/index.ts")]), i = /* @__PURE__ */ m(Pe, n);
|
|
6483
6496
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
|
|
6484
|
-
return await
|
|
6497
|
+
return await Yr(t, n, Nr(r));
|
|
6485
6498
|
}
|
|
6486
|
-
function
|
|
6499
|
+
function Jr(e) {
|
|
6487
6500
|
let t = !1, n = !1;
|
|
6488
|
-
for (let r of e)
|
|
6501
|
+
for (let r of e) Vr.has(r) && (t = !0), Br.has(r) && (n = !0);
|
|
6489
6502
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
6490
6503
|
}
|
|
6491
|
-
async function
|
|
6504
|
+
async function Yr(e, t, n, r) {
|
|
6492
6505
|
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 Dr("config.json", t), t;
|
|
6493
6506
|
}
|
|
6494
|
-
async function
|
|
6507
|
+
async function Xr() {
|
|
6495
6508
|
try {
|
|
6496
6509
|
kr("Synchronise Project with GitHub");
|
|
6497
6510
|
let e = await Q("package.json"), t = await Q("config.json");
|
|
6498
|
-
switch (await
|
|
6511
|
+
switch (await Qr("1️⃣", e), jr(t.id).typeId) {
|
|
6499
6512
|
case "connector":
|
|
6500
|
-
await
|
|
6513
|
+
await Gr("2️⃣", e);
|
|
6501
6514
|
break;
|
|
6502
6515
|
case "context":
|
|
6503
|
-
await
|
|
6516
|
+
await Kr("2️⃣", e);
|
|
6504
6517
|
break;
|
|
6505
6518
|
case "presenter":
|
|
6506
|
-
await
|
|
6519
|
+
await qr("2️⃣", e);
|
|
6507
6520
|
break;
|
|
6508
|
-
default: await
|
|
6521
|
+
default: await Wr("2️⃣", e);
|
|
6509
6522
|
}
|
|
6510
6523
|
await X("3️⃣ Stage changes", "git", ["add", "."]), await X("4️⃣ Commit changes", "git", [
|
|
6511
6524
|
"commit",
|
|
@@ -6520,14 +6533,14 @@ async function Jr() {
|
|
|
6520
6533
|
console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
|
|
6521
6534
|
}
|
|
6522
6535
|
}
|
|
6523
|
-
function
|
|
6536
|
+
function Zr() {
|
|
6524
6537
|
try {
|
|
6525
6538
|
kr("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
6526
6539
|
} catch (e) {
|
|
6527
6540
|
console.error("❌ Error testing project.", e), process.exit(1);
|
|
6528
6541
|
}
|
|
6529
6542
|
}
|
|
6530
|
-
async function
|
|
6543
|
+
async function Qr(e, t, n = "./") {
|
|
6531
6544
|
if ($(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`), await Dr(`${n}package.json`, t);
|
|
6532
6545
|
else {
|
|
6533
6546
|
let e = t.version, r = t.version.split(".");
|
|
@@ -6536,7 +6549,7 @@ async function Xr(e, t, n = "./") {
|
|
|
6536
6549
|
}
|
|
6537
6550
|
//#endregion
|
|
6538
6551
|
//#region src/operations/auditDependencies.ts
|
|
6539
|
-
var
|
|
6552
|
+
var $r = {
|
|
6540
6553
|
critical: {
|
|
6541
6554
|
color: "D32F2F",
|
|
6542
6555
|
label: "critical"
|
|
@@ -6557,8 +6570,8 @@ var Zr = {
|
|
|
6557
6570
|
color: "616161",
|
|
6558
6571
|
label: "unknown"
|
|
6559
6572
|
}
|
|
6560
|
-
},
|
|
6561
|
-
async function
|
|
6573
|
+
}, ei = "<!-- OWASP_BADGES_START -->", ti = "<!-- OWASP_BADGES_END -->";
|
|
6574
|
+
async function ni() {
|
|
6562
6575
|
try {
|
|
6563
6576
|
kr("Audit Dependencies");
|
|
6564
6577
|
let e = await Q("package.json"), t = [];
|
|
@@ -6576,12 +6589,12 @@ async function ei() {
|
|
|
6576
6589
|
"--nodePackageSkipDevDependencies",
|
|
6577
6590
|
"--nvdApiKey",
|
|
6578
6591
|
process.env.OWASP_NVD_API_KEY ?? ""
|
|
6579
|
-
]), await
|
|
6592
|
+
]), await ri("2️⃣"), await Z("3️⃣ Check using 'npm audit'", "npm", ["audit"]), Ar("Dependencies audited.");
|
|
6580
6593
|
} catch (e) {
|
|
6581
6594
|
console.error("❌ Error auditing dependencies.", e), process.exit(1);
|
|
6582
6595
|
}
|
|
6583
6596
|
}
|
|
6584
|
-
async function
|
|
6597
|
+
async function ri(e) {
|
|
6585
6598
|
$(`${e} Insert OWASP Badge(s) into 'README.md'`);
|
|
6586
6599
|
let t = await Q("dependency-check-reports/dependency-check-report.json"), n = {
|
|
6587
6600
|
critical: 0,
|
|
@@ -6594,14 +6607,14 @@ async function ti(e) {
|
|
|
6594
6607
|
let e = t.severity?.toLowerCase() ?? "unknown";
|
|
6595
6608
|
e in n ? n[e]++ : n.unknown++;
|
|
6596
6609
|
}
|
|
6597
|
-
let r = await
|
|
6598
|
-
await Or("README.md",
|
|
6610
|
+
let r = await ii(n);
|
|
6611
|
+
await Or("README.md", Fr(await Tr("./README.md"), r.join(" "), ei, ti)), console.info("OWASP audit badge(s) inserted into 'README.md'");
|
|
6599
6612
|
}
|
|
6600
|
-
async function
|
|
6613
|
+
async function ii(e) {
|
|
6601
6614
|
let t = await Q("config.json"), n = [];
|
|
6602
6615
|
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)`);
|
|
6603
6616
|
else for (let [r, i] of Object.entries(e)) {
|
|
6604
|
-
let e =
|
|
6617
|
+
let e = $r[r];
|
|
6605
6618
|
if (console.warn(`⚠️ ${i} ${e.label} vulnerability(ies) found.`), i === 0) continue;
|
|
6606
6619
|
let a = `https://img.shields.io/badge/OWASP-${i}%20${e.label}-${e.color}`;
|
|
6607
6620
|
n.push(`[](https://dpuse.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
@@ -6610,7 +6623,7 @@ async function ni(e) {
|
|
|
6610
6623
|
}
|
|
6611
6624
|
//#endregion
|
|
6612
6625
|
//#region src/operations/checkDependencies.ts
|
|
6613
|
-
async function
|
|
6626
|
+
async function ai() {
|
|
6614
6627
|
try {
|
|
6615
6628
|
kr("Check Dependencies"), await Z("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), await Z("2️⃣ Check using 'npm-check-updates'", "npm-check-updates", [
|
|
6616
6629
|
"-i",
|
|
@@ -6623,8 +6636,8 @@ async function ri() {
|
|
|
6623
6636
|
}
|
|
6624
6637
|
//#endregion
|
|
6625
6638
|
//#region src/operations/documentDependencies.ts
|
|
6626
|
-
var
|
|
6627
|
-
async function
|
|
6639
|
+
var oi = "<!-- DEPENDENCY_LICENSES_START -->", si = "<!-- DEPENDENCY_LICENSES_END -->";
|
|
6640
|
+
async function ci(e = [], t = !0) {
|
|
6628
6641
|
try {
|
|
6629
6642
|
kr("Document Dependencies");
|
|
6630
6643
|
let n = e.flatMap((e) => ["--allowed", `'${e}'`]);
|
|
@@ -6662,12 +6675,12 @@ async function oi(e = [], t = !0) {
|
|
|
6662
6675
|
"--githubToken.tokenEnvVar",
|
|
6663
6676
|
"GITHUB_TOKEN",
|
|
6664
6677
|
"--download"
|
|
6665
|
-
]), await
|
|
6678
|
+
]), await li("6️⃣", t), Ar("Dependencies documented.");
|
|
6666
6679
|
} catch (e) {
|
|
6667
6680
|
console.error("❌ Error documenting dependencies.", e), process.exit(1);
|
|
6668
6681
|
}
|
|
6669
6682
|
}
|
|
6670
|
-
async function
|
|
6683
|
+
async function li(e, t) {
|
|
6671
6684
|
$(`${e} Insert licenses into 'README.md'`);
|
|
6672
6685
|
let n = await Q("licenses/licenses.json"), r = await Q("licenses/downloads/licenses.ext.json"), i = [];
|
|
6673
6686
|
t && (i = await Q("licenses/licenseTree.json"));
|
|
@@ -6691,13 +6704,13 @@ async function si(e, t) {
|
|
|
6691
6704
|
return e.values();
|
|
6692
6705
|
})()], o = "|Name|Type|Installed|Latest|Latest Released|Deps|Document|\n|:-|:-|:-:|:-:|:-|-:|:-|\n";
|
|
6693
6706
|
for (let e of a) {
|
|
6694
|
-
let t = e.installedVersion === e.remoteVersion ? e.installedVersion : `${e.installedVersion} ⚠️`, n = e.latestRemoteModified ?
|
|
6707
|
+
let t = e.installedVersion === e.remoteVersion ? e.installedVersion : `${e.installedVersion} ⚠️`, n = e.latestRemoteModified ? ui(e.latestRemoteModified.split("T")[0]) : "n/a", r = e.dependencyCount != null && e.dependencyCount >= 0 ? e.dependencyCount : "n/a", i;
|
|
6695
6708
|
i = e.licenseFileLink == null || e.licenseFileLink == "" ? "⚠️ No license file" : `[${e.licenseFileLink.slice(Math.max(0, e.licenseFileLink.lastIndexOf("/") + 1))}](${e.licenseFileLink})`, o += `|${e.name}|${e.licenseType}|${t}|${e.remoteVersion}|${n}|${r}|${i}|\n`;
|
|
6696
6709
|
}
|
|
6697
|
-
let s =
|
|
6710
|
+
let s = Fr(await Tr("./README.md"), o, oi, si);
|
|
6698
6711
|
await Or("README.md", s), console.info("OWASP audit badge(s) inserted into 'README.md'"), await Or("README.md", s);
|
|
6699
6712
|
}
|
|
6700
|
-
function
|
|
6713
|
+
function ui(e) {
|
|
6701
6714
|
if (e == null || e === "") return "n/a";
|
|
6702
6715
|
let t = e.split("T")[0];
|
|
6703
6716
|
if (t == null || t === "") return "n/a";
|
|
@@ -6706,7 +6719,7 @@ function ci(e) {
|
|
|
6706
6719
|
}
|
|
6707
6720
|
//#endregion
|
|
6708
6721
|
//#region src/operations/formatCode.ts
|
|
6709
|
-
async function
|
|
6722
|
+
async function di() {
|
|
6710
6723
|
try {
|
|
6711
6724
|
kr("Format Code"), await Z("1️⃣ Format", "prettier", [
|
|
6712
6725
|
"--write",
|
|
@@ -6721,7 +6734,7 @@ async function li() {
|
|
|
6721
6734
|
}
|
|
6722
6735
|
//#endregion
|
|
6723
6736
|
//#region src/operations/lintCode.ts
|
|
6724
|
-
async function
|
|
6737
|
+
async function fi() {
|
|
6725
6738
|
try {
|
|
6726
6739
|
kr("Lint Code"), await Z("1️⃣ Lint", "eslint", ["."]), Ar("Code linted.");
|
|
6727
6740
|
} catch (e) {
|
|
@@ -6730,7 +6743,7 @@ async function ui() {
|
|
|
6730
6743
|
}
|
|
6731
6744
|
//#endregion
|
|
6732
6745
|
//#region src/operations/updateDPUseDependencies.ts
|
|
6733
|
-
var
|
|
6746
|
+
var pi = [
|
|
6734
6747
|
"1️⃣",
|
|
6735
6748
|
"2️⃣",
|
|
6736
6749
|
"3️⃣",
|
|
@@ -6741,23 +6754,23 @@ var di = [
|
|
|
6741
6754
|
"8️⃣",
|
|
6742
6755
|
"9️⃣"
|
|
6743
6756
|
];
|
|
6744
|
-
async function
|
|
6757
|
+
async function mi(e = []) {
|
|
6745
6758
|
try {
|
|
6746
6759
|
kr("Update '@dpuse/dpuse' Dependencies");
|
|
6747
6760
|
for (let [t, n] of e.entries()) {
|
|
6748
|
-
let e =
|
|
6749
|
-
n === "eslint" ? await Z(`${e} Update '${n}'`, "npm", ["install", "@dpuse/eslint-config-dpuse@latest"]) : (await Z(`${e} Update '${n}'`, "npm", ["install", `@dpuse/dpuse-${n}@latest`]), n === "development" && await
|
|
6761
|
+
let e = pi.at(t) ?? "🔢";
|
|
6762
|
+
n === "eslint" ? await Z(`${e} Update '${n}'`, "npm", ["install", "@dpuse/eslint-config-dpuse@latest"]) : (await Z(`${e} Update '${n}'`, "npm", ["install", `@dpuse/dpuse-${n}@latest`]), n === "development" && await hi(jr((await Q("config.json")).id)));
|
|
6750
6763
|
}
|
|
6751
6764
|
Ar("'@dpuse/dpuse' dependencies updated.");
|
|
6752
6765
|
} catch (e) {
|
|
6753
6766
|
console.error("❌ Error updating '@dpuse/dpuse' dependencies.", e), process.exit(1);
|
|
6754
6767
|
}
|
|
6755
6768
|
}
|
|
6756
|
-
async function
|
|
6769
|
+
async function hi(e) {
|
|
6757
6770
|
let t = n.dirname(s(import.meta.url));
|
|
6758
|
-
await
|
|
6771
|
+
await gi(t, "../", ".editorconfig"), await gi(t, "../", ".gitattributes"), await (e.isPublished ? gi(t, "../", ".gitignore_published", ".gitignore2") : gi(t, "../", ".gitignore_unpublished", ".gitignore2")), await gi(t, "../", ".markdownlint.json"), await gi(t, "../", "LICENSE"), await gi(t, "../", "tsconfig.json", "tsconfig2.json"), e.typeId === "eslint" || (await gi(t, "../", "eslint.config.ts", "eslint.config2.ts"), await gi(t, "../", "vite.config.ts", "vite.config2.ts"), await gi(t, "../", "vitest.config.ts", "vitest.config2.ts"));
|
|
6759
6772
|
}
|
|
6760
|
-
async function
|
|
6773
|
+
async function gi(e, t, r, i) {
|
|
6761
6774
|
let a = await Tr(n.resolve(e, `${t}${r}`)), o = n.resolve(process.cwd(), r.split("_")[0] ?? r), s = n.resolve(process.cwd(), i ?? r), c;
|
|
6762
6775
|
try {
|
|
6763
6776
|
c = await Tr(o);
|
|
@@ -6772,7 +6785,7 @@ async function mi(e, t, r, i) {
|
|
|
6772
6785
|
}
|
|
6773
6786
|
//#endregion
|
|
6774
6787
|
//#region src/index.ts
|
|
6775
|
-
async function
|
|
6788
|
+
async function _i(e) {
|
|
6776
6789
|
try {
|
|
6777
6790
|
console.info(`🚀 Building public directory index for identifier '${e}'...`);
|
|
6778
6791
|
let n = {};
|
|
@@ -6817,6 +6830,6 @@ async function hi(e) {
|
|
|
6817
6830
|
}
|
|
6818
6831
|
}
|
|
6819
6832
|
//#endregion
|
|
6820
|
-
export {
|
|
6833
|
+
export { ni as auditDependencies, _i as buildDirectoryIndex, Hr as buildProject, ai as checkDependencies, ci as documentDependencies, di as formatCode, fi as lintCode, Ur as releaseProject, Xr as syncProjectWithGitHub, Zr as testProject, mi as updateDPUseDependencies, Lr as uploadDirectoryToR2 };
|
|
6821
6834
|
|
|
6822
6835
|
//# sourceMappingURL=dpuse-development.es.js.map
|