@dpuse/dpuse-development 0.3.664 → 0.3.665
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 +9 -9
- package/dist/dpuse-development.es.js +90 -83
- package/dist/dpuse-development.es.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -100,25 +100,25 @@ The Bundle Analysis Reports provide detailed breakdowns of the bundle's composit
|
|
|
100
100
|
|
|
101
101
|
|Chunk/Module/File|Composition|
|
|
102
102
|
|:------ |:-----------|
|
|
103
|
-
| dist/dpuse-development.es.js |
|
|
104
|
-
| acorn → dist/acorn.mjs | `█████████░░░░░░░░░░░` 43.
|
|
105
|
-
| acorn-typescript → lib/index.mjs | `████████░░░░░░░░░░░░` 38.
|
|
106
|
-
| src | `██░░░░░░░░░░░░░░░░░░` 8.
|
|
107
|
-
| manageProject.ts | `░░░░░░░░░░░░░░░░░░░░`
|
|
103
|
+
| dist/dpuse-development.es.js | 301.3 kB · brotli 60.0 kB |
|
|
104
|
+
| acorn → dist/acorn.mjs | `█████████░░░░░░░░░░░` 43.4% |
|
|
105
|
+
| acorn-typescript → lib/index.mjs | `████████░░░░░░░░░░░░` 38.0% |
|
|
106
|
+
| src | `██░░░░░░░░░░░░░░░░░░` 8.3% |
|
|
107
|
+
| manageProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
|
|
108
108
|
| index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.5% |
|
|
109
|
-
| documentDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 1.
|
|
109
|
+
| documentDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 1.4% |
|
|
110
110
|
| documentBundleSizes.ts | `░░░░░░░░░░░░░░░░░░░░` 1.2% |
|
|
111
111
|
| checkConfigFiles.ts | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
|
|
112
|
+
| documentActions.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
112
113
|
| cloudflare.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
113
114
|
| checkDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
114
|
-
| documentActions.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
115
115
|
| formatCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
116
116
|
| auditDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
117
117
|
| lintCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
118
118
|
| (unassigned) → [unassigned] | `█░░░░░░░░░░░░░░░░░░░` 6.1% |
|
|
119
|
-
| @dpuse/dpuse-shared | `█░░░░░░░░░░░░░░░░░░░`
|
|
119
|
+
| @dpuse/dpuse-shared | `█░░░░░░░░░░░░░░░░░░░` 4.1% |
|
|
120
120
|
| dist/componentConfig.schema-dBVLwQIt.js | `█░░░░░░░░░░░░░░░░░░░` 3.1% |
|
|
121
|
-
| dist/dpuse-shared-componentModuleConnector.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.
|
|
121
|
+
| dist/dpuse-shared-componentModuleConnector.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
|
|
122
122
|
| dist/dpuse-shared-componentModuleContext.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
123
123
|
| dist/dpuse-shared-componentModulePresenter.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
124
124
|
| dist/moduleConfig.schema-CUHmgYLu.js | `░░░░░░░░░░░░░░░░░░░░` 0.0% |
|
|
@@ -6725,8 +6725,27 @@ var pi = ri([
|
|
|
6725
6725
|
retrieveChunks: "Retrieve Chunks",
|
|
6726
6726
|
retrieveRecords: "Retrieve Records",
|
|
6727
6727
|
upsertRecords: "Upsert Records"
|
|
6728
|
-
}
|
|
6729
|
-
|
|
6728
|
+
}, yi = /* @__PURE__ */ new Set([
|
|
6729
|
+
"createObject",
|
|
6730
|
+
"dropObject",
|
|
6731
|
+
"removeRecords",
|
|
6732
|
+
"upsertRecords"
|
|
6733
|
+
]), bi = /* @__PURE__ */ new Set([
|
|
6734
|
+
"auditObjectContent",
|
|
6735
|
+
"findObject",
|
|
6736
|
+
"getReadableStream",
|
|
6737
|
+
"getRecord",
|
|
6738
|
+
"listNodes",
|
|
6739
|
+
"previewObject",
|
|
6740
|
+
"retrieveChunks",
|
|
6741
|
+
"retrieveRecords"
|
|
6742
|
+
]);
|
|
6743
|
+
function xi(e) {
|
|
6744
|
+
let t = !1, n = !1;
|
|
6745
|
+
for (let r of e) bi.has(r) && (t = !0), yi.has(r) && (n = !0);
|
|
6746
|
+
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
6747
|
+
}
|
|
6748
|
+
function Si(e) {
|
|
6730
6749
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
6731
6750
|
n += "|:----|:-------:|\n";
|
|
6732
6751
|
for (let e of Object.keys(vi)) n += `| ${vi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
@@ -6734,19 +6753,24 @@ function yi(e) {
|
|
|
6734
6753
|
}
|
|
6735
6754
|
//#endregion
|
|
6736
6755
|
//#region src/actions/documentActions.ts
|
|
6737
|
-
var
|
|
6738
|
-
|
|
6756
|
+
var Ci = "<!-- CONNECTOR_ACTIONS_START -->", wi = "<!-- CONNECTOR_ACTIONS_END -->", Ti = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Ei = {
|
|
6757
|
+
source: "This connector is a Source connector that supports only read actions. Connectors can also function as a Destination (write-only) or Bidirectional (read/write), depending on the actions they support.",
|
|
6758
|
+
destination: "This connector is a Destination connector that supports only write actions. Connectors can also function as a Source (read-only) or Bidirectional (read/write), depending on the actions they support.",
|
|
6759
|
+
bidirectional: "This connector is a Bidirectional connector that supports both read and write actions. Connectors can also function as a Source (read-only) or Destination (write-only), depending on the actions they support.",
|
|
6760
|
+
unknown: "This connector does not yet implement any read or write actions, so its type cannot be determined. Connectors function as a Source (read-only), a Destination (write-only), or Bidirectional (read/write), depending on the actions they support."
|
|
6761
|
+
}, Di = "The table below lists all connector actions and highlights those supported by this connector.";
|
|
6762
|
+
async function Oi() {
|
|
6739
6763
|
try {
|
|
6740
|
-
G("Document Actions"), q("1️⃣ Insert actions table into 'README.md'");
|
|
6741
|
-
let e =
|
|
6742
|
-
await Bn("README.md", Gn(await Ln("./README.md"),
|
|
6764
|
+
G("Document Actions"), q("1️⃣ Insert actions description and table into 'README.md'");
|
|
6765
|
+
let e = (await W("config.json")).actionNames ?? [], t = xi(e), n = Si(e), r = `${Ti}\n\n${Ei[t]} ${Di}\n\n${n}`;
|
|
6766
|
+
await Bn("README.md", Gn(await Ln("./README.md"), r, Ci, wi)), K("Actions documented");
|
|
6743
6767
|
} catch (e) {
|
|
6744
6768
|
console.error("❌ Error documenting actions", e), process.exit(1);
|
|
6745
6769
|
}
|
|
6746
6770
|
}
|
|
6747
6771
|
//#endregion
|
|
6748
6772
|
//#region src/actions/formatCode.ts
|
|
6749
|
-
async function
|
|
6773
|
+
async function ki() {
|
|
6750
6774
|
try {
|
|
6751
6775
|
G("Format Code"), await Fn("1️⃣ Format", "prettier", [
|
|
6752
6776
|
"--write",
|
|
@@ -6761,7 +6785,7 @@ async function Ci() {
|
|
|
6761
6785
|
}
|
|
6762
6786
|
//#endregion
|
|
6763
6787
|
//#region src/actions/lintCode.ts
|
|
6764
|
-
async function
|
|
6788
|
+
async function Ai() {
|
|
6765
6789
|
try {
|
|
6766
6790
|
G("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), K("Code linted");
|
|
6767
6791
|
} catch (e) {
|
|
@@ -6770,7 +6794,7 @@ async function wi() {
|
|
|
6770
6794
|
}
|
|
6771
6795
|
//#endregion
|
|
6772
6796
|
//#region src/utilities/cloudflare.ts
|
|
6773
|
-
async function
|
|
6797
|
+
async function ji() {
|
|
6774
6798
|
let e = await W("config.json"), t = {
|
|
6775
6799
|
body: JSON.stringify(e),
|
|
6776
6800
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6778,7 +6802,7 @@ async function Ti() {
|
|
|
6778
6802
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
6779
6803
|
if (!n.ok) throw Error(await n.text());
|
|
6780
6804
|
}
|
|
6781
|
-
async function
|
|
6805
|
+
async function Mi(e, t) {
|
|
6782
6806
|
async function n(e, t, r) {
|
|
6783
6807
|
for (let i of r) {
|
|
6784
6808
|
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
@@ -6796,7 +6820,7 @@ async function Ei(e, t) {
|
|
|
6796
6820
|
let r = await Nn(`${e}/${t}/`);
|
|
6797
6821
|
await n(`${e}/${t}`, t, r);
|
|
6798
6822
|
}
|
|
6799
|
-
async function
|
|
6823
|
+
async function Ni(e) {
|
|
6800
6824
|
let t = e.id, n = {
|
|
6801
6825
|
body: JSON.stringify(e),
|
|
6802
6826
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6804,7 +6828,7 @@ async function Di(e) {
|
|
|
6804
6828
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
6805
6829
|
if (!r.ok) throw Error(await r.text());
|
|
6806
6830
|
}
|
|
6807
|
-
async function
|
|
6831
|
+
async function Pi(e, t) {
|
|
6808
6832
|
let n = `v${e.version ?? "unknown"}`;
|
|
6809
6833
|
async function r(e, r = "") {
|
|
6810
6834
|
let i = await Nn(e, { withFileTypes: !0 });
|
|
@@ -6828,24 +6852,24 @@ async function Oi(e, t) {
|
|
|
6828
6852
|
}
|
|
6829
6853
|
//#endregion
|
|
6830
6854
|
//#region node_modules/valibot/dist/index.mjs
|
|
6831
|
-
var
|
|
6855
|
+
var Fi, Ii = {
|
|
6832
6856
|
lang: void 0,
|
|
6833
6857
|
message: void 0,
|
|
6834
6858
|
abortEarly: void 0,
|
|
6835
6859
|
abortPipeEarly: void 0
|
|
6836
6860
|
};
|
|
6837
6861
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6838
|
-
function
|
|
6839
|
-
return !e && !
|
|
6840
|
-
lang: e?.lang ??
|
|
6862
|
+
function Li(e) {
|
|
6863
|
+
return !e && !Fi ? Ii : {
|
|
6864
|
+
lang: e?.lang ?? Fi?.lang,
|
|
6841
6865
|
message: e?.message,
|
|
6842
|
-
abortEarly: e?.abortEarly ??
|
|
6843
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
6866
|
+
abortEarly: e?.abortEarly ?? Fi?.abortEarly,
|
|
6867
|
+
abortPipeEarly: e?.abortPipeEarly ?? Fi?.abortPipeEarly
|
|
6844
6868
|
};
|
|
6845
6869
|
}
|
|
6846
6870
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6847
|
-
function
|
|
6848
|
-
let r = e["~run"]({ value: t }, /* @__PURE__ */
|
|
6871
|
+
function Ri(e, t, n) {
|
|
6872
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ Li(n));
|
|
6849
6873
|
return {
|
|
6850
6874
|
typed: r.typed,
|
|
6851
6875
|
success: !r.issues,
|
|
@@ -6855,81 +6879,69 @@ function Mi(e, t, n) {
|
|
|
6855
6879
|
}
|
|
6856
6880
|
//#endregion
|
|
6857
6881
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
|
|
6858
|
-
var
|
|
6882
|
+
var zi = /* @__PURE__ */ Q({
|
|
6859
6883
|
typeId: /* @__PURE__ */ Zr("contextArea"),
|
|
6860
6884
|
...di,
|
|
6861
6885
|
modelRefs: /* @__PURE__ */ Yr(ui),
|
|
6862
6886
|
order: /* @__PURE__ */ Qr()
|
|
6863
|
-
}),
|
|
6887
|
+
}), Bi = ri(["listContextFocuses"]), Vi = /* @__PURE__ */ Q({
|
|
6864
6888
|
typeId: /* @__PURE__ */ Zr("context"),
|
|
6865
6889
|
...fi,
|
|
6866
|
-
actionNames: /* @__PURE__ */ Yr(
|
|
6867
|
-
models: /* @__PURE__ */ Yr(
|
|
6868
|
-
}),
|
|
6890
|
+
actionNames: /* @__PURE__ */ Yr(Bi),
|
|
6891
|
+
models: /* @__PURE__ */ Yr(zi)
|
|
6892
|
+
}), Hi = ri([
|
|
6869
6893
|
"list",
|
|
6870
6894
|
"render",
|
|
6871
6895
|
"setColorMode"
|
|
6872
|
-
]),
|
|
6896
|
+
]), Ui = /* @__PURE__ */ Q({
|
|
6873
6897
|
typeId: /* @__PURE__ */ Zr("presenter"),
|
|
6874
6898
|
...fi,
|
|
6875
|
-
actionNames: /* @__PURE__ */ Yr(
|
|
6899
|
+
actionNames: /* @__PURE__ */ Yr(Hi),
|
|
6876
6900
|
presentations: /* @__PURE__ */ Yr(ui)
|
|
6877
|
-
})
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
"upsertRecords"
|
|
6882
|
-
]), zi = /* @__PURE__ */ new Set([
|
|
6883
|
-
"auditObjectContent",
|
|
6884
|
-
"findObjectFolderPath",
|
|
6885
|
-
"getReadableStream",
|
|
6886
|
-
"getRecord",
|
|
6887
|
-
"listNodes",
|
|
6888
|
-
"previewObject",
|
|
6889
|
-
"retrieveChunks",
|
|
6890
|
-
"retrieveRecords"
|
|
6891
|
-
]);
|
|
6892
|
-
async function Bi() {
|
|
6901
|
+
});
|
|
6902
|
+
//#endregion
|
|
6903
|
+
//#region src/actions/manageProject.ts
|
|
6904
|
+
async function Wi() {
|
|
6893
6905
|
try {
|
|
6894
6906
|
G("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), K("Project built");
|
|
6895
6907
|
} catch (e) {
|
|
6896
6908
|
console.error("❌ Error building project", e), process.exit(1);
|
|
6897
6909
|
}
|
|
6898
6910
|
}
|
|
6899
|
-
async function
|
|
6911
|
+
async function Gi() {
|
|
6900
6912
|
try {
|
|
6901
6913
|
G("Publish Project");
|
|
6902
6914
|
let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
|
|
6903
|
-
if (n.typeId === "app") q("1️⃣ Register module"), await
|
|
6904
|
-
else if (n.typeId === "engine") q("1️⃣ Register module"), await
|
|
6915
|
+
if (n.typeId === "app") q("1️⃣ Register module"), await ji();
|
|
6916
|
+
else if (n.typeId === "engine") q("1️⃣ Register module"), await Pi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Ni(t);
|
|
6905
6917
|
else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required");
|
|
6906
6918
|
else {
|
|
6907
6919
|
q("1️⃣ Register module");
|
|
6908
6920
|
let r = t.id.split("-").slice(2).join("-");
|
|
6909
|
-
await
|
|
6921
|
+
await Pi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Ni(t);
|
|
6910
6922
|
}
|
|
6911
6923
|
K(`Project version '${e.version ?? "unknown"}' published.`);
|
|
6912
6924
|
} catch (e) {
|
|
6913
6925
|
console.error("❌ Error publishing project", e), process.exit(1);
|
|
6914
6926
|
}
|
|
6915
6927
|
}
|
|
6916
|
-
async function
|
|
6928
|
+
async function Ki() {
|
|
6917
6929
|
try {
|
|
6918
6930
|
G("Release Project");
|
|
6919
6931
|
let e = await W("package.json"), t = await W("config.json");
|
|
6920
|
-
await
|
|
6932
|
+
await ea("1️⃣ ", e);
|
|
6921
6933
|
let n = Vn(t.id);
|
|
6922
6934
|
switch (n.typeId) {
|
|
6923
6935
|
case "connector":
|
|
6924
|
-
t = await
|
|
6936
|
+
t = await Ji("2️⃣ ", e);
|
|
6925
6937
|
break;
|
|
6926
6938
|
case "context":
|
|
6927
|
-
t = await
|
|
6939
|
+
t = await Yi("2️⃣ ", e);
|
|
6928
6940
|
break;
|
|
6929
6941
|
case "presenter":
|
|
6930
|
-
t = await
|
|
6942
|
+
t = await Xi("2️⃣ ", e);
|
|
6931
6943
|
break;
|
|
6932
|
-
default: t = await
|
|
6944
|
+
default: t = await qi("2️⃣ ", e);
|
|
6933
6945
|
}
|
|
6934
6946
|
if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
|
|
6935
6947
|
"commit",
|
|
@@ -6939,13 +6951,13 @@ async function Hi() {
|
|
|
6939
6951
|
"push",
|
|
6940
6952
|
"origin",
|
|
6941
6953
|
"main:main"
|
|
6942
|
-
]), n.typeId === "app") q("7️⃣ Register module"), await
|
|
6943
|
-
else if (n.typeId === "engine") q("7️⃣ Register module"), await
|
|
6954
|
+
]), n.typeId === "app") q("7️⃣ Register module"), await ji();
|
|
6955
|
+
else if (n.typeId === "engine") q("7️⃣ Register module"), await Pi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Ni(t);
|
|
6944
6956
|
else if (n.uploadGroupName === void 0) q("7️⃣ Registration NOT required");
|
|
6945
6957
|
else {
|
|
6946
6958
|
q("7️⃣ Register module");
|
|
6947
6959
|
let r = t.id.split("-").slice(2).join("-");
|
|
6948
|
-
await
|
|
6960
|
+
await Pi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Ni(t);
|
|
6949
6961
|
}
|
|
6950
6962
|
if (n.publishedTo === "npm") {
|
|
6951
6963
|
let e = ".npmrc";
|
|
@@ -6964,53 +6976,48 @@ async function Hi() {
|
|
|
6964
6976
|
console.error("❌ Error releasing project", e), process.exit(1);
|
|
6965
6977
|
}
|
|
6966
6978
|
}
|
|
6967
|
-
async function
|
|
6979
|
+
async function qi(e, t) {
|
|
6968
6980
|
q(`${e} Build project configuration`);
|
|
6969
6981
|
let n = await W("config.json");
|
|
6970
6982
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await zn("config.json", n), n;
|
|
6971
6983
|
}
|
|
6972
|
-
async function
|
|
6984
|
+
async function Ji(e, t) {
|
|
6973
6985
|
q(`${e} Build connector project configuration`);
|
|
6974
|
-
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */
|
|
6986
|
+
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Ri(_i, n);
|
|
6975
6987
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
6976
6988
|
let a = Un(r);
|
|
6977
|
-
return await
|
|
6989
|
+
return await Zi(t, n, a, xi(a));
|
|
6978
6990
|
}
|
|
6979
|
-
async function
|
|
6991
|
+
async function Yi(e, t) {
|
|
6980
6992
|
q(`${e} Build context project configuration`);
|
|
6981
|
-
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */
|
|
6993
|
+
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Ri(Vi, n);
|
|
6982
6994
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
6983
|
-
return await
|
|
6995
|
+
return await Zi(t, n, Un(r));
|
|
6984
6996
|
}
|
|
6985
|
-
async function
|
|
6997
|
+
async function Xi(e, t) {
|
|
6986
6998
|
q(`${e} Build presenter project configuration`);
|
|
6987
|
-
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */
|
|
6999
|
+
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Ri(Ui, n);
|
|
6988
7000
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
6989
|
-
return await
|
|
6990
|
-
}
|
|
6991
|
-
function qi(e) {
|
|
6992
|
-
let t = !1, n = !1;
|
|
6993
|
-
for (let r of e) zi.has(r) && (t = !0), Ri.has(r) && (n = !0);
|
|
6994
|
-
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
7001
|
+
return await Zi(t, n, Un(r));
|
|
6995
7002
|
}
|
|
6996
|
-
async function
|
|
6997
|
-
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") : console.info(`ℹ️ Supports '${r
|
|
7003
|
+
async function Zi(e, t, n, r) {
|
|
7004
|
+
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 zn("config.json", t), t;
|
|
6998
7005
|
}
|
|
6999
|
-
async function
|
|
7006
|
+
async function Qi() {
|
|
7000
7007
|
try {
|
|
7001
7008
|
G("Synchronise Project with GitHub");
|
|
7002
7009
|
let e = await W("package.json"), t = await W("config.json");
|
|
7003
|
-
switch (await
|
|
7010
|
+
switch (await ea("1️⃣ ", e), Vn(t.id).typeId) {
|
|
7004
7011
|
case "connector":
|
|
7005
|
-
await
|
|
7012
|
+
await Ji("2️⃣ ", e);
|
|
7006
7013
|
break;
|
|
7007
7014
|
case "context":
|
|
7008
|
-
await
|
|
7015
|
+
await Yi("2️⃣ ", e);
|
|
7009
7016
|
break;
|
|
7010
7017
|
case "presenter":
|
|
7011
|
-
await
|
|
7018
|
+
await Xi("2️⃣ ", e);
|
|
7012
7019
|
break;
|
|
7013
|
-
default: await
|
|
7020
|
+
default: await qi("2️⃣ ", e);
|
|
7014
7021
|
}
|
|
7015
7022
|
await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
|
|
7016
7023
|
"commit",
|
|
@@ -7025,14 +7032,14 @@ async function Yi() {
|
|
|
7025
7032
|
console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
|
|
7026
7033
|
}
|
|
7027
7034
|
}
|
|
7028
|
-
function
|
|
7035
|
+
function $i() {
|
|
7029
7036
|
try {
|
|
7030
7037
|
G("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
7031
7038
|
} catch (e) {
|
|
7032
7039
|
console.error("❌ Error testing project", e), process.exit(1);
|
|
7033
7040
|
}
|
|
7034
7041
|
}
|
|
7035
|
-
async function
|
|
7042
|
+
async function ea(e, t, n = "./") {
|
|
7036
7043
|
if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
7037
7044
|
else {
|
|
7038
7045
|
let e = t.version, n = t.version.split(".");
|
|
@@ -7041,6 +7048,6 @@ async function Zi(e, t, n = "./") {
|
|
|
7041
7048
|
await zn(`${n}package.json`, t);
|
|
7042
7049
|
}
|
|
7043
7050
|
//#endregion
|
|
7044
|
-
export { Kn as auditDependencies,
|
|
7051
|
+
export { Kn as auditDependencies, Wi as buildProject, qn as checkConfigFiles, $n as checkDependencies, Oi as documentActions, ir as documentBundleSizes, Tr as documentDependencies, ki as formatCode, Ai as lintCode, Gi as publishProject, Ki as releaseProject, Qi as syncProjectWithGitHub, $i as testProject, Mi as uploadDirectoryToR2 };
|
|
7045
7052
|
|
|
7046
7053
|
//# sourceMappingURL=dpuse-development.es.js.map
|