@dpuse/dpuse-development 0.3.675 → 0.3.677
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
|
@@ -104,10 +104,10 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
104
104
|
|
|
105
105
|
|Chunk/Module/File|Composition|
|
|
106
106
|
|:------ |:-----------|
|
|
107
|
-
| dist/dpuse-development.es.js |
|
|
108
|
-
| acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░`
|
|
109
|
-
| acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░`
|
|
110
|
-
| src | `██░░░░░░░░░░░░░░░░░░`
|
|
107
|
+
| dist/dpuse-development.es.js | 311.8 kB · brotli 62.9 kB |
|
|
108
|
+
| acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 41.9% |
|
|
109
|
+
| acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 36.7% |
|
|
110
|
+
| src | `██░░░░░░░░░░░░░░░░░░` 10.1% |
|
|
111
111
|
| documentDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
|
|
112
112
|
| manageProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
|
|
113
113
|
| index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.5% |
|
|
@@ -116,18 +116,19 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
116
116
|
| documentGovernance.ts | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
117
117
|
| documentActions.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
118
118
|
| cloudflare.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
119
|
+
| documentOpening.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
119
120
|
| documentUsage.ts | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
120
121
|
| checkDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
121
122
|
| formatCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
122
123
|
| auditDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
123
124
|
| lintCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
124
|
-
| (unassigned) → [unassigned] | `█░░░░░░░░░░░░░░░░░░░`
|
|
125
|
-
| @dpuse/dpuse-shared | `█░░░░░░░░░░░░░░░░░░░`
|
|
126
|
-
| dist/componentConfig.schema-
|
|
125
|
+
| (unassigned) → [unassigned] | `█░░░░░░░░░░░░░░░░░░░` 7.2% |
|
|
126
|
+
| @dpuse/dpuse-shared | `█░░░░░░░░░░░░░░░░░░░` 3.9% |
|
|
127
|
+
| dist/componentConfig.schema-DzuoA1f0.js | `█░░░░░░░░░░░░░░░░░░░` 2.9% |
|
|
127
128
|
| dist/dpuse-shared-componentModuleConnector.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
128
129
|
| dist/dpuse-shared-componentModuleContext.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
129
130
|
| dist/dpuse-shared-componentModulePresenter.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
130
|
-
| dist/moduleConfig.schema-
|
|
131
|
+
| dist/moduleConfig.schema-COF8ocp_.js | `░░░░░░░░░░░░░░░░░░░░` 0.0% |
|
|
131
132
|
| valibot → dist/index.mjs | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
132
133
|
|
|
133
134
|
<!-- BUNDLE_END -->
|
|
@@ -6284,7 +6284,7 @@ This project is licensed under the MIT License, permitting free use, modificatio
|
|
|
6284
6284
|
[MIT](./LICENSE) © ${r}-present ${n}`;
|
|
6285
6285
|
}
|
|
6286
6286
|
//#endregion
|
|
6287
|
-
//#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-
|
|
6287
|
+
//#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-DzuoA1f0.js
|
|
6288
6288
|
var Wr, Gr = {
|
|
6289
6289
|
lang: void 0,
|
|
6290
6290
|
message: void 0,
|
|
@@ -6320,7 +6320,7 @@ function $r(e) {
|
|
|
6320
6320
|
let t = typeof e;
|
|
6321
6321
|
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
6322
6322
|
}
|
|
6323
|
-
function
|
|
6323
|
+
function ei(e, t, n, r, i) {
|
|
6324
6324
|
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ $r(a), c = {
|
|
6325
6325
|
kind: e.kind,
|
|
6326
6326
|
type: e.type,
|
|
@@ -6337,17 +6337,17 @@ function X(e, t, n, r, i) {
|
|
|
6337
6337
|
}, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Qr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Xr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Jr(c.lang);
|
|
6338
6338
|
u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
|
|
6339
6339
|
}
|
|
6340
|
-
var
|
|
6340
|
+
var ti = /* @__PURE__ */ new WeakMap();
|
|
6341
6341
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6342
|
-
function
|
|
6343
|
-
let t =
|
|
6342
|
+
function X(e) {
|
|
6343
|
+
let t = ti.get(e);
|
|
6344
6344
|
return t || (t = {
|
|
6345
6345
|
version: 1,
|
|
6346
6346
|
vendor: "valibot",
|
|
6347
6347
|
validate(t) {
|
|
6348
6348
|
return e["~run"]({ value: t }, /* @__PURE__ */ Kr());
|
|
6349
6349
|
}
|
|
6350
|
-
},
|
|
6350
|
+
}, ti.set(e, t)), t;
|
|
6351
6351
|
}
|
|
6352
6352
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6353
6353
|
function ni(e, t) {
|
|
@@ -6377,7 +6377,7 @@ function oi(e, t) {
|
|
|
6377
6377
|
item: e,
|
|
6378
6378
|
message: t,
|
|
6379
6379
|
get "~standard"() {
|
|
6380
|
-
return /* @__PURE__ */
|
|
6380
|
+
return /* @__PURE__ */ X(this);
|
|
6381
6381
|
},
|
|
6382
6382
|
"~run"(e, t) {
|
|
6383
6383
|
let n = e.value;
|
|
@@ -6401,7 +6401,7 @@ function oi(e, t) {
|
|
|
6401
6401
|
}
|
|
6402
6402
|
a.typed || (e.typed = !1), e.value.push(a.value);
|
|
6403
6403
|
}
|
|
6404
|
-
} else
|
|
6404
|
+
} else ei(this, "type", e, t);
|
|
6405
6405
|
return e;
|
|
6406
6406
|
}
|
|
6407
6407
|
};
|
|
@@ -6416,10 +6416,10 @@ function si(e) {
|
|
|
6416
6416
|
async: !1,
|
|
6417
6417
|
message: e,
|
|
6418
6418
|
get "~standard"() {
|
|
6419
|
-
return /* @__PURE__ */
|
|
6419
|
+
return /* @__PURE__ */ X(this);
|
|
6420
6420
|
},
|
|
6421
6421
|
"~run"(e, t) {
|
|
6422
|
-
return typeof e.value == "boolean" ? e.typed = !0 :
|
|
6422
|
+
return typeof e.value == "boolean" ? e.typed = !0 : ei(this, "type", e, t), e;
|
|
6423
6423
|
}
|
|
6424
6424
|
};
|
|
6425
6425
|
}
|
|
@@ -6434,10 +6434,10 @@ function ci(e, t) {
|
|
|
6434
6434
|
literal: e,
|
|
6435
6435
|
message: t,
|
|
6436
6436
|
get "~standard"() {
|
|
6437
|
-
return /* @__PURE__ */
|
|
6437
|
+
return /* @__PURE__ */ X(this);
|
|
6438
6438
|
},
|
|
6439
6439
|
"~run"(e, t) {
|
|
6440
|
-
return e.value === this.literal ? e.typed = !0 :
|
|
6440
|
+
return e.value === this.literal ? e.typed = !0 : ei(this, "type", e, t), e;
|
|
6441
6441
|
}
|
|
6442
6442
|
};
|
|
6443
6443
|
}
|
|
@@ -6452,7 +6452,7 @@ function Z(e, t) {
|
|
|
6452
6452
|
wrapped: e,
|
|
6453
6453
|
default: t,
|
|
6454
6454
|
get "~standard"() {
|
|
6455
|
-
return /* @__PURE__ */
|
|
6455
|
+
return /* @__PURE__ */ X(this);
|
|
6456
6456
|
},
|
|
6457
6457
|
"~run"(e, t) {
|
|
6458
6458
|
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ ai(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
@@ -6469,10 +6469,10 @@ function li(e) {
|
|
|
6469
6469
|
async: !1,
|
|
6470
6470
|
message: e,
|
|
6471
6471
|
get "~standard"() {
|
|
6472
|
-
return /* @__PURE__ */
|
|
6472
|
+
return /* @__PURE__ */ X(this);
|
|
6473
6473
|
},
|
|
6474
6474
|
"~run"(e, t) {
|
|
6475
|
-
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 :
|
|
6475
|
+
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : ei(this, "type", e, t), e;
|
|
6476
6476
|
}
|
|
6477
6477
|
};
|
|
6478
6478
|
}
|
|
@@ -6487,7 +6487,7 @@ function Q(e, t) {
|
|
|
6487
6487
|
entries: e,
|
|
6488
6488
|
message: t,
|
|
6489
6489
|
get "~standard"() {
|
|
6490
|
-
return /* @__PURE__ */
|
|
6490
|
+
return /* @__PURE__ */ X(this);
|
|
6491
6491
|
},
|
|
6492
6492
|
"~run"(e, t) {
|
|
6493
6493
|
let n = e.value;
|
|
@@ -6513,7 +6513,7 @@ function Q(e, t) {
|
|
|
6513
6513
|
}
|
|
6514
6514
|
o.typed || (e.typed = !1), e.value[r] = o.value;
|
|
6515
6515
|
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ii(i);
|
|
6516
|
-
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (
|
|
6516
|
+
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (ei(this, "key", e, t, {
|
|
6517
6517
|
input: void 0,
|
|
6518
6518
|
expected: `"${r}"`,
|
|
6519
6519
|
path: [{
|
|
@@ -6525,7 +6525,7 @@ function Q(e, t) {
|
|
|
6525
6525
|
}]
|
|
6526
6526
|
}), t.abortEarly)) break;
|
|
6527
6527
|
}
|
|
6528
|
-
} else
|
|
6528
|
+
} else ei(this, "type", e, t);
|
|
6529
6529
|
return e;
|
|
6530
6530
|
}
|
|
6531
6531
|
};
|
|
@@ -6541,7 +6541,7 @@ function ui(e, t) {
|
|
|
6541
6541
|
wrapped: e,
|
|
6542
6542
|
default: t,
|
|
6543
6543
|
get "~standard"() {
|
|
6544
|
-
return /* @__PURE__ */
|
|
6544
|
+
return /* @__PURE__ */ X(this);
|
|
6545
6545
|
},
|
|
6546
6546
|
"~run"(e, t) {
|
|
6547
6547
|
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ ai(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
@@ -6560,7 +6560,7 @@ function di(e, t, n) {
|
|
|
6560
6560
|
value: t,
|
|
6561
6561
|
message: n,
|
|
6562
6562
|
get "~standard"() {
|
|
6563
|
-
return /* @__PURE__ */
|
|
6563
|
+
return /* @__PURE__ */ X(this);
|
|
6564
6564
|
},
|
|
6565
6565
|
"~run"(e, t) {
|
|
6566
6566
|
let n = e.value;
|
|
@@ -6599,7 +6599,7 @@ function di(e, t, n) {
|
|
|
6599
6599
|
}
|
|
6600
6600
|
(!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
|
|
6601
6601
|
}
|
|
6602
|
-
} else
|
|
6602
|
+
} else ei(this, "type", e, t);
|
|
6603
6603
|
return e;
|
|
6604
6604
|
}
|
|
6605
6605
|
};
|
|
@@ -6614,10 +6614,10 @@ function $(e) {
|
|
|
6614
6614
|
async: !1,
|
|
6615
6615
|
message: e,
|
|
6616
6616
|
get "~standard"() {
|
|
6617
|
-
return /* @__PURE__ */
|
|
6617
|
+
return /* @__PURE__ */ X(this);
|
|
6618
6618
|
},
|
|
6619
6619
|
"~run"(e, t) {
|
|
6620
|
-
return typeof e.value == "string" ? e.typed = !0 :
|
|
6620
|
+
return typeof e.value == "string" ? e.typed = !0 : ei(this, "type", e, t), e;
|
|
6621
6621
|
}
|
|
6622
6622
|
};
|
|
6623
6623
|
}
|
|
@@ -6639,7 +6639,7 @@ function pi(e, t) {
|
|
|
6639
6639
|
options: e,
|
|
6640
6640
|
message: t,
|
|
6641
6641
|
get "~standard"() {
|
|
6642
|
-
return /* @__PURE__ */
|
|
6642
|
+
return /* @__PURE__ */ X(this);
|
|
6643
6643
|
},
|
|
6644
6644
|
"~run"(e, t) {
|
|
6645
6645
|
let n, r, i;
|
|
@@ -6655,9 +6655,9 @@ function pi(e, t) {
|
|
|
6655
6655
|
if (n) return n;
|
|
6656
6656
|
if (r) {
|
|
6657
6657
|
if (r.length === 1) return r[0];
|
|
6658
|
-
|
|
6658
|
+
ei(this, "type", e, t, { issues: /* @__PURE__ */ fi(r) }), e.typed = !0;
|
|
6659
6659
|
} else if (i?.length === 1) return i[0];
|
|
6660
|
-
else
|
|
6660
|
+
else ei(this, "type", e, t, { issues: /* @__PURE__ */ fi(i) });
|
|
6661
6661
|
return e;
|
|
6662
6662
|
}
|
|
6663
6663
|
};
|
|
@@ -6721,7 +6721,6 @@ var vi = mi([
|
|
|
6721
6721
|
description: gi,
|
|
6722
6722
|
icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6723
6723
|
iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6724
|
-
iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6725
6724
|
order: /* @__PURE__ */ li(),
|
|
6726
6725
|
path: /* @__PURE__ */ $()
|
|
6727
6726
|
}), Si = {
|
|
@@ -6731,7 +6730,6 @@ var vi = mi([
|
|
|
6731
6730
|
firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ li()),
|
|
6732
6731
|
icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6733
6732
|
iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6734
|
-
iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6735
6733
|
lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ li()),
|
|
6736
6734
|
status: /* @__PURE__ */ Z(bi),
|
|
6737
6735
|
statusId: /* @__PURE__ */ Z(yi)
|
|
@@ -6746,7 +6744,7 @@ var vi = mi([
|
|
|
6746
6744
|
"tool"
|
|
6747
6745
|
]);
|
|
6748
6746
|
//#endregion
|
|
6749
|
-
//#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-
|
|
6747
|
+
//#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-COF8ocp_.js
|
|
6750
6748
|
var Ci = {
|
|
6751
6749
|
...Si,
|
|
6752
6750
|
version: /* @__PURE__ */ $()
|
|
@@ -6856,32 +6854,73 @@ async function zi() {
|
|
|
6856
6854
|
}
|
|
6857
6855
|
}
|
|
6858
6856
|
//#endregion
|
|
6859
|
-
//#region src/actions/
|
|
6860
|
-
var Bi = "<!--
|
|
6857
|
+
//#region src/actions/documentOpening.ts
|
|
6858
|
+
var Bi = "<!-- OPENING_START -->", Vi = "<!-- OPENING_END -->";
|
|
6861
6859
|
async function Hi() {
|
|
6860
|
+
try {
|
|
6861
|
+
K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
|
|
6862
|
+
let e = await W("package.json"), { owner: t, repo: n } = Ui(e), r = Gi(t, n, Wi(e));
|
|
6863
|
+
await zn("README.md", Wn(await G("./README.md"), r, Bi, Vi)), q("Opening documented");
|
|
6864
|
+
} catch (e) {
|
|
6865
|
+
console.error("❌ Error documenting opening", e), process.exit(1);
|
|
6866
|
+
}
|
|
6867
|
+
}
|
|
6868
|
+
function Ui(e) {
|
|
6869
|
+
let t = e.repository, n = typeof t == "string" ? t : t?.url;
|
|
6870
|
+
if (n == null || n === "") throw Error("package.json 'repository' field is required to document opening.");
|
|
6871
|
+
let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
|
|
6872
|
+
if (i?.[1] == null || i[2] == null) throw Error(`Unable to parse GitHub owner/repo from '${n}'.`);
|
|
6873
|
+
return {
|
|
6874
|
+
owner: i[1],
|
|
6875
|
+
repo: i[2]
|
|
6876
|
+
};
|
|
6877
|
+
}
|
|
6878
|
+
function Wi(e) {
|
|
6879
|
+
let t = e.license;
|
|
6880
|
+
if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
|
|
6881
|
+
return t;
|
|
6882
|
+
}
|
|
6883
|
+
function Gi(e, t, n) {
|
|
6884
|
+
let r = `https://github.com/${e}/${t}`;
|
|
6885
|
+
return `[}-blue.svg)](./LICENSE)
|
|
6886
|
+
[](${r}/releases/latest)
|
|
6887
|
+
[](${r}/actions/workflows/ci.yml)
|
|
6888
|
+
[](${r}/actions/workflows/codeql.yml)
|
|
6889
|
+
[](https://sonarcloud.io/summary/new_code?id=${e}_${t})
|
|
6890
|
+
|
|
6891
|
+
[Documentation](https://www.dpuse.app) · [Report a Vulnerability](${r}/security/advisories/new) · [Open an Issue](${r}/issues)
|
|
6892
|
+
|
|
6893
|
+
## About DPUse
|
|
6894
|
+
|
|
6895
|
+
DPUse (Data Positioning & Use) is an in-browser application that positions your data for use through three core activities: sourcing, contextualising, and publishing. **Sourcing** uses a library of [Connectors](https://www.dpuse.app) to establish [Connections](https://www.dpuse.app) to applications, databases, file stores, and curated datasets; these connections are subsequently used to configure structured [Data Views](https://www.dpuse.app) from the underlying sources. **Contextualising** extracts chronological events from those [Data Views](https://www.dpuse.app) and maps them into comprehensive [Context Models](https://www.dpuse.app). This provides the DPUse Engine with the structural framework required to generate deterministic transactions, facts, or observations. **Publishing** employs a library of [Presenters](https://www.dpuse.app) to render standard [Presentations](https://www.dpuse.app) immediately using the contextualised data; additionally, [Cookbooks](https://www.dpuse.app) of [Recipes](https://www.dpuse.app) allow you to build Data Apps using your preferred tools.`;
|
|
6896
|
+
}
|
|
6897
|
+
//#endregion
|
|
6898
|
+
//#region src/actions/documentUsage.ts
|
|
6899
|
+
var Ki = "<!-- USAGE_START -->", qi = "<!-- USAGE_END -->";
|
|
6900
|
+
async function Ji() {
|
|
6862
6901
|
try {
|
|
6863
6902
|
K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
|
|
6864
|
-
let e = await W("package.json"), t =
|
|
6865
|
-
await zn("README.md", Wn(await G("./README.md"), n,
|
|
6903
|
+
let e = await W("package.json"), t = Yi(e), n = Qi(t, Xi(t), Zi(e.engines?.node), Zi(e.engines?.npm), Zi(e.devDependencies?.typescript));
|
|
6904
|
+
await zn("README.md", Wn(await G("./README.md"), n, Ki, qi)), q("Usage documented");
|
|
6866
6905
|
} catch (e) {
|
|
6867
6906
|
console.error("❌ Error documenting usage", e), process.exit(1);
|
|
6868
6907
|
}
|
|
6869
6908
|
}
|
|
6870
|
-
function
|
|
6909
|
+
function Yi(e) {
|
|
6871
6910
|
let t = e.repository, n = typeof t == "string" ? t : t?.url;
|
|
6872
6911
|
if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
|
|
6873
6912
|
return n.replace(/^git\+/, "");
|
|
6874
6913
|
}
|
|
6875
|
-
function
|
|
6914
|
+
function Xi(e) {
|
|
6876
6915
|
return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
|
|
6877
6916
|
}
|
|
6878
|
-
function
|
|
6879
|
-
if (e == null) throw Error("package.json
|
|
6880
|
-
let t = /\d
|
|
6881
|
-
if (t == null) throw Error(`Unable to parse
|
|
6917
|
+
function Zi(e) {
|
|
6918
|
+
if (e == null) throw Error("package.json version range is required to document usage.");
|
|
6919
|
+
let t = /\d+/.exec(e);
|
|
6920
|
+
if (t == null) throw Error(`Unable to parse major version from '${e}'.`);
|
|
6882
6921
|
return t[0];
|
|
6883
6922
|
}
|
|
6884
|
-
function
|
|
6923
|
+
function Qi(e, t, n, r, i) {
|
|
6885
6924
|
return `This connector is automatically uploaded to the DPUse Engine cloud once released and becomes instantly available to all new browser app instances, with existing instances notified of the update.
|
|
6886
6925
|
|
|
6887
6926
|
You may view or clone this repository for your own purposes, such as building a new, similar connector, though there is currently no process to accept third-party connectors into DPUse at this stage. Cloned or forked code is unsupported and isn't guaranteed to remain compatible with the DPUse Engine as it evolves.
|
|
@@ -6892,11 +6931,11 @@ cd ${t}
|
|
|
6892
6931
|
npm install
|
|
6893
6932
|
\`\`\`
|
|
6894
6933
|
|
|
6895
|
-
_Requires [Node.js](https://nodejs.org/) ${n} or later
|
|
6934
|
+
_Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.com/) ${r} or later, and [TypeScript](https://www.typescriptlang.org/) ${i} or later._`;
|
|
6896
6935
|
}
|
|
6897
6936
|
//#endregion
|
|
6898
6937
|
//#region src/actions/formatCode.ts
|
|
6899
|
-
async function
|
|
6938
|
+
async function $i() {
|
|
6900
6939
|
try {
|
|
6901
6940
|
K("Format Code"), await Fn("1️⃣ Format", "prettier", [
|
|
6902
6941
|
"--write",
|
|
@@ -6911,7 +6950,7 @@ async function qi() {
|
|
|
6911
6950
|
}
|
|
6912
6951
|
//#endregion
|
|
6913
6952
|
//#region src/actions/lintCode.ts
|
|
6914
|
-
async function
|
|
6953
|
+
async function ea() {
|
|
6915
6954
|
try {
|
|
6916
6955
|
K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
|
|
6917
6956
|
} catch (e) {
|
|
@@ -6920,7 +6959,7 @@ async function Ji() {
|
|
|
6920
6959
|
}
|
|
6921
6960
|
//#endregion
|
|
6922
6961
|
//#region src/utilities/cloudflare.ts
|
|
6923
|
-
async function
|
|
6962
|
+
async function ta() {
|
|
6924
6963
|
let e = await W("config.json"), t = {
|
|
6925
6964
|
body: JSON.stringify(e),
|
|
6926
6965
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6928,7 +6967,7 @@ async function Yi() {
|
|
|
6928
6967
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
6929
6968
|
if (!n.ok) throw Error(await n.text());
|
|
6930
6969
|
}
|
|
6931
|
-
async function
|
|
6970
|
+
async function na(e, t) {
|
|
6932
6971
|
async function n(e, t, r) {
|
|
6933
6972
|
for (let i of r) {
|
|
6934
6973
|
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
@@ -6946,7 +6985,7 @@ async function Xi(e, t) {
|
|
|
6946
6985
|
let r = await Nn(`${e}/${t}/`);
|
|
6947
6986
|
await n(`${e}/${t}`, t, r);
|
|
6948
6987
|
}
|
|
6949
|
-
async function
|
|
6988
|
+
async function ra(e) {
|
|
6950
6989
|
let t = e.id, n = {
|
|
6951
6990
|
body: JSON.stringify(e),
|
|
6952
6991
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6954,7 +6993,7 @@ async function Zi(e) {
|
|
|
6954
6993
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
6955
6994
|
if (!r.ok) throw Error(await r.text());
|
|
6956
6995
|
}
|
|
6957
|
-
async function
|
|
6996
|
+
async function ia(e, t) {
|
|
6958
6997
|
let n = `v${e.version ?? "unknown"}`;
|
|
6959
6998
|
async function r(e, r = "") {
|
|
6960
6999
|
let i = await Nn(e, { withFileTypes: !0 });
|
|
@@ -6978,24 +7017,24 @@ async function Qi(e, t) {
|
|
|
6978
7017
|
}
|
|
6979
7018
|
//#endregion
|
|
6980
7019
|
//#region node_modules/valibot/dist/index.mjs
|
|
6981
|
-
var
|
|
7020
|
+
var aa, oa = {
|
|
6982
7021
|
lang: void 0,
|
|
6983
7022
|
message: void 0,
|
|
6984
7023
|
abortEarly: void 0,
|
|
6985
7024
|
abortPipeEarly: void 0
|
|
6986
7025
|
};
|
|
6987
7026
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6988
|
-
function
|
|
6989
|
-
return !e &&
|
|
6990
|
-
lang: e?.lang ??
|
|
7027
|
+
function sa(e) {
|
|
7028
|
+
return !e && !aa ? oa : {
|
|
7029
|
+
lang: e?.lang ?? aa?.lang,
|
|
6991
7030
|
message: e?.message,
|
|
6992
|
-
abortEarly: e?.abortEarly ??
|
|
6993
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
7031
|
+
abortEarly: e?.abortEarly ?? aa?.abortEarly,
|
|
7032
|
+
abortPipeEarly: e?.abortPipeEarly ?? aa?.abortPipeEarly
|
|
6994
7033
|
};
|
|
6995
7034
|
}
|
|
6996
7035
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6997
|
-
function
|
|
6998
|
-
let r = e["~run"]({ value: t }, /* @__PURE__ */
|
|
7036
|
+
function ca(e, t, n) {
|
|
7037
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ sa(n));
|
|
6999
7038
|
return {
|
|
7000
7039
|
typed: r.typed,
|
|
7001
7040
|
success: !r.issues,
|
|
@@ -7005,69 +7044,69 @@ function na(e, t, n) {
|
|
|
7005
7044
|
}
|
|
7006
7045
|
//#endregion
|
|
7007
7046
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
|
|
7008
|
-
var
|
|
7047
|
+
var la = /* @__PURE__ */ Q({
|
|
7009
7048
|
typeId: /* @__PURE__ */ ci("contextArea"),
|
|
7010
7049
|
...Si,
|
|
7011
7050
|
modelRefs: /* @__PURE__ */ oi(xi),
|
|
7012
7051
|
order: /* @__PURE__ */ li()
|
|
7013
|
-
}),
|
|
7052
|
+
}), ua = mi(["listContextFocuses"]), da = /* @__PURE__ */ Q({
|
|
7014
7053
|
typeId: /* @__PURE__ */ ci("context"),
|
|
7015
7054
|
...Ci,
|
|
7016
|
-
actionNames: /* @__PURE__ */ oi(
|
|
7017
|
-
models: /* @__PURE__ */ oi(
|
|
7018
|
-
}),
|
|
7055
|
+
actionNames: /* @__PURE__ */ oi(ua),
|
|
7056
|
+
models: /* @__PURE__ */ oi(la)
|
|
7057
|
+
}), fa = mi([
|
|
7019
7058
|
"list",
|
|
7020
7059
|
"render",
|
|
7021
7060
|
"setColorMode"
|
|
7022
|
-
]),
|
|
7061
|
+
]), pa = /* @__PURE__ */ Q({
|
|
7023
7062
|
typeId: /* @__PURE__ */ ci("presenter"),
|
|
7024
7063
|
...Ci,
|
|
7025
|
-
actionNames: /* @__PURE__ */ oi(
|
|
7064
|
+
actionNames: /* @__PURE__ */ oi(fa),
|
|
7026
7065
|
presentations: /* @__PURE__ */ oi(xi)
|
|
7027
7066
|
});
|
|
7028
7067
|
//#endregion
|
|
7029
7068
|
//#region src/actions/manageProject.ts
|
|
7030
|
-
async function
|
|
7069
|
+
async function ma() {
|
|
7031
7070
|
try {
|
|
7032
7071
|
K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
|
|
7033
7072
|
} catch (e) {
|
|
7034
7073
|
console.error("❌ Error building project", e), process.exit(1);
|
|
7035
7074
|
}
|
|
7036
7075
|
}
|
|
7037
|
-
async function
|
|
7076
|
+
async function ha() {
|
|
7038
7077
|
try {
|
|
7039
7078
|
K("Publish Project");
|
|
7040
7079
|
let e = await W("package.json"), t = await W("config.json"), n = Bn(t.id);
|
|
7041
|
-
if (n.typeId === "app") J("1️⃣ Register module"), await
|
|
7042
|
-
else if (n.typeId === "engine") J("1️⃣ Register module"), await
|
|
7080
|
+
if (n.typeId === "app") J("1️⃣ Register module"), await ta();
|
|
7081
|
+
else if (n.typeId === "engine") J("1️⃣ Register module"), await ia(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ra(t);
|
|
7043
7082
|
else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
|
|
7044
7083
|
else {
|
|
7045
7084
|
J("1️⃣ Register module");
|
|
7046
7085
|
let r = t.id.split("-").slice(2).join("-");
|
|
7047
|
-
await
|
|
7086
|
+
await ia(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ra(t);
|
|
7048
7087
|
}
|
|
7049
7088
|
q(`Project version '${e.version ?? "unknown"}' published.`);
|
|
7050
7089
|
} catch (e) {
|
|
7051
7090
|
console.error("❌ Error publishing project", e), process.exit(1);
|
|
7052
7091
|
}
|
|
7053
7092
|
}
|
|
7054
|
-
async function
|
|
7093
|
+
async function ga() {
|
|
7055
7094
|
try {
|
|
7056
7095
|
K("Release Project");
|
|
7057
7096
|
let e = await W("package.json"), t = await W("config.json");
|
|
7058
|
-
await
|
|
7097
|
+
await wa("1️⃣ ", e);
|
|
7059
7098
|
let n = Bn(t.id);
|
|
7060
7099
|
switch (n.typeId) {
|
|
7061
7100
|
case "connector":
|
|
7062
|
-
t = await
|
|
7101
|
+
t = await va("2️⃣ ", e);
|
|
7063
7102
|
break;
|
|
7064
7103
|
case "context":
|
|
7065
|
-
t = await
|
|
7104
|
+
t = await ya("2️⃣ ", e);
|
|
7066
7105
|
break;
|
|
7067
7106
|
case "presenter":
|
|
7068
|
-
t = await
|
|
7107
|
+
t = await ba("2️⃣ ", e);
|
|
7069
7108
|
break;
|
|
7070
|
-
default: t = await
|
|
7109
|
+
default: t = await _a("2️⃣ ", e);
|
|
7071
7110
|
}
|
|
7072
7111
|
if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
|
|
7073
7112
|
"commit",
|
|
@@ -7077,13 +7116,13 @@ async function ua() {
|
|
|
7077
7116
|
"push",
|
|
7078
7117
|
"origin",
|
|
7079
7118
|
"main:main"
|
|
7080
|
-
]), n.typeId === "app") J("7️⃣ Register module"), await
|
|
7081
|
-
else if (n.typeId === "engine") J("7️⃣ Register module"), await
|
|
7119
|
+
]), n.typeId === "app") J("7️⃣ Register module"), await ta();
|
|
7120
|
+
else if (n.typeId === "engine") J("7️⃣ Register module"), await ia(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ra(t);
|
|
7082
7121
|
else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
|
|
7083
7122
|
else {
|
|
7084
7123
|
J("7️⃣ Register module");
|
|
7085
7124
|
let r = t.id.split("-").slice(2).join("-");
|
|
7086
|
-
await
|
|
7125
|
+
await ia(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ra(t);
|
|
7087
7126
|
}
|
|
7088
7127
|
if (n.publishedTo === "npm") {
|
|
7089
7128
|
let e = ".npmrc";
|
|
@@ -7102,48 +7141,48 @@ async function ua() {
|
|
|
7102
7141
|
console.error("❌ Error releasing project", e), process.exit(1);
|
|
7103
7142
|
}
|
|
7104
7143
|
}
|
|
7105
|
-
async function
|
|
7144
|
+
async function _a(e, t) {
|
|
7106
7145
|
J(`${e} Build project configuration`);
|
|
7107
7146
|
let n = await W("config.json");
|
|
7108
7147
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Rn("config.json", n), n;
|
|
7109
7148
|
}
|
|
7110
|
-
async function
|
|
7149
|
+
async function va(e, t) {
|
|
7111
7150
|
J(`${e} Build connector project configuration`);
|
|
7112
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7151
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ca(Oi, n);
|
|
7113
7152
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7114
7153
|
let a = Hn(r);
|
|
7115
|
-
return await
|
|
7154
|
+
return await xa(t, n, a, Mi(a));
|
|
7116
7155
|
}
|
|
7117
|
-
async function
|
|
7156
|
+
async function ya(e, t) {
|
|
7118
7157
|
J(`${e} Build context project configuration`);
|
|
7119
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7158
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ca(da, n);
|
|
7120
7159
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7121
|
-
return await
|
|
7160
|
+
return await xa(t, n, Hn(r));
|
|
7122
7161
|
}
|
|
7123
|
-
async function
|
|
7162
|
+
async function ba(e, t) {
|
|
7124
7163
|
J(`${e} Build presenter project configuration`);
|
|
7125
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */
|
|
7164
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ca(pa, n);
|
|
7126
7165
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7127
|
-
return await
|
|
7166
|
+
return await xa(t, n, Hn(r));
|
|
7128
7167
|
}
|
|
7129
|
-
async function
|
|
7168
|
+
async function xa(e, t, n, r) {
|
|
7130
7169
|
return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, await Rn("config.json", t), t;
|
|
7131
7170
|
}
|
|
7132
|
-
async function
|
|
7171
|
+
async function Sa() {
|
|
7133
7172
|
try {
|
|
7134
7173
|
K("Synchronise Project with GitHub");
|
|
7135
7174
|
let e = await W("package.json"), t = await W("config.json");
|
|
7136
|
-
switch (await
|
|
7175
|
+
switch (await wa("1️⃣ ", e), Bn(t.id).typeId) {
|
|
7137
7176
|
case "connector":
|
|
7138
|
-
await
|
|
7177
|
+
await va("2️⃣ ", e);
|
|
7139
7178
|
break;
|
|
7140
7179
|
case "context":
|
|
7141
|
-
await
|
|
7180
|
+
await ya("2️⃣ ", e);
|
|
7142
7181
|
break;
|
|
7143
7182
|
case "presenter":
|
|
7144
|
-
await
|
|
7183
|
+
await ba("2️⃣ ", e);
|
|
7145
7184
|
break;
|
|
7146
|
-
default: await
|
|
7185
|
+
default: await _a("2️⃣ ", e);
|
|
7147
7186
|
}
|
|
7148
7187
|
await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
|
|
7149
7188
|
"commit",
|
|
@@ -7158,14 +7197,14 @@ async function ga() {
|
|
|
7158
7197
|
console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
|
|
7159
7198
|
}
|
|
7160
7199
|
}
|
|
7161
|
-
function
|
|
7200
|
+
function Ca() {
|
|
7162
7201
|
try {
|
|
7163
7202
|
K("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
7164
7203
|
} catch (e) {
|
|
7165
7204
|
console.error("❌ Error testing project", e), process.exit(1);
|
|
7166
7205
|
}
|
|
7167
7206
|
}
|
|
7168
|
-
async function
|
|
7207
|
+
async function wa(e, t, n = "./") {
|
|
7169
7208
|
if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
7170
7209
|
else {
|
|
7171
7210
|
let e = t.version, n = t.version.split(".");
|
|
@@ -7174,6 +7213,6 @@ async function va(e, t, n = "./") {
|
|
|
7174
7213
|
await Rn(`${n}package.json`, t);
|
|
7175
7214
|
}
|
|
7176
7215
|
//#endregion
|
|
7177
|
-
export { Gn as auditDependencies,
|
|
7216
|
+
export { Gn as auditDependencies, ma as buildProject, Kn as checkConfigFiles, Qn as checkDependencies, zi as documentActions, ir as documentBundleSizes, Er as documentDependencies, zr as documentGovernance, Hi as documentOpening, Ji as documentUsage, $i as formatCode, ea as lintCode, ha as publishProject, ga as releaseProject, Sa as syncProjectWithGitHub, Ca as testProject, na as uploadDirectoryToR2 };
|
|
7178
7217
|
|
|
7179
7218
|
//# sourceMappingURL=dpuse-development.es.js.map
|