@dpuse/dpuse-development 0.3.666 → 0.3.667
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 +6 -4
- package/dist/dpuse-development.es.js +236 -236
- package/dist/dpuse-development.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -5964,78 +5964,78 @@ async function $n() {
|
|
|
5964
5964
|
}
|
|
5965
5965
|
//#endregion
|
|
5966
5966
|
//#region src/actions/documentBundleSizes.ts
|
|
5967
|
-
var er = "<!-- BUNDLE_START -->", tr = "<!-- BUNDLE_END -->", nr = " ", rr = 20;
|
|
5968
|
-
async function
|
|
5967
|
+
var er = "<!-- BUNDLE_START -->", tr = "<!-- BUNDLE_END -->", nr = " ", rr = 20, ir = "The Bundle Analysis Report is generated automatically on each release using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates. Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS.";
|
|
5968
|
+
async function ar(e) {
|
|
5969
5969
|
try {
|
|
5970
5970
|
G("Document Bundle Sizes"), q("1️⃣ Read bundle analysis report");
|
|
5971
5971
|
let t = await W("./bundle-analysis-reports/sonda/index.json");
|
|
5972
5972
|
q("2️⃣ Insert table into 'README.md'");
|
|
5973
|
-
let n =
|
|
5974
|
-
await Bn("README.md", Gn(await Ln("./README.md"), `\n${n}\n`, er, tr)), K("Bundle sizes documented");
|
|
5973
|
+
let n = or(t, e?.moduleLevel ?? !1);
|
|
5974
|
+
await Bn("README.md", Gn(await Ln("./README.md"), `\n${ir}\n\n${n}\n`, er, tr)), K("Bundle sizes documented");
|
|
5975
5975
|
} catch (e) {
|
|
5976
5976
|
console.error("❌ Error documenting bundle sizes", e), process.exit(1);
|
|
5977
5977
|
}
|
|
5978
5978
|
}
|
|
5979
|
-
function
|
|
5980
|
-
let n =
|
|
5979
|
+
function or(e, t) {
|
|
5980
|
+
let n = fr(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, gr(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
|
|
5981
5981
|
for (let [e, o] of i) {
|
|
5982
|
-
let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ?
|
|
5982
|
+
let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? sr(e, o, ur(i), r, t) : cr(e, o, i, r, t);
|
|
5983
5983
|
a.push(...s);
|
|
5984
5984
|
}
|
|
5985
5985
|
return a.join("\n");
|
|
5986
5986
|
}
|
|
5987
|
-
function
|
|
5987
|
+
function sr(e, t, n, r, i) {
|
|
5988
5988
|
let [a, { sizes: o, files: s }] = n, c = r > 0 ? o.uncompressed / r * 100 : 0;
|
|
5989
|
-
if (s.size === 1) return [`| ${e} → ${a} → ${
|
|
5990
|
-
let l = [`| ${e} → ${a} | ${
|
|
5991
|
-
return i || l.push(...
|
|
5989
|
+
if (s.size === 1) return [`| ${e} → ${a} → ${dr(s)} | ${_r(t)} · ${vr(c)} |`];
|
|
5990
|
+
let l = [`| ${e} → ${a} | ${_r(t)} · ${vr(c)} |`];
|
|
5991
|
+
return i || l.push(...lr(s, nr, r)), l;
|
|
5992
5992
|
}
|
|
5993
|
-
function
|
|
5994
|
-
let a = [`| ${e} | ${
|
|
5993
|
+
function cr(e, t, n, r, i) {
|
|
5994
|
+
let a = [`| ${e} | ${_r(t)} |`];
|
|
5995
5995
|
for (let [e, { sizes: t, files: o }] of n) {
|
|
5996
5996
|
let n = r > 0 ? t.uncompressed / r * 100 : 0;
|
|
5997
5997
|
if (o.size === 1) {
|
|
5998
|
-
let t =
|
|
5999
|
-
a.push(`| ${nr}${e} → ${t} | ${
|
|
5998
|
+
let t = dr(o);
|
|
5999
|
+
a.push(`| ${nr}${e} → ${t} | ${vr(n)} |`);
|
|
6000
6000
|
continue;
|
|
6001
6001
|
}
|
|
6002
|
-
a.push(`| ${nr}${e} | ${
|
|
6002
|
+
a.push(`| ${nr}${e} | ${vr(n)} |`), i || a.push(...lr(o, `${nr}${nr}`, r));
|
|
6003
6003
|
}
|
|
6004
6004
|
return a;
|
|
6005
6005
|
}
|
|
6006
|
-
function
|
|
6007
|
-
return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${
|
|
6006
|
+
function lr(e, t, n) {
|
|
6007
|
+
return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${vr(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
|
|
6008
6008
|
}
|
|
6009
|
-
function
|
|
6009
|
+
function ur(e) {
|
|
6010
6010
|
let [t] = e;
|
|
6011
6011
|
if (t === void 0) throw Error("Expected exactly one entry");
|
|
6012
6012
|
return t;
|
|
6013
6013
|
}
|
|
6014
|
-
function
|
|
6014
|
+
function dr(e) {
|
|
6015
6015
|
let [t] = e.keys();
|
|
6016
6016
|
if (t === void 0) throw Error("Expected exactly one file");
|
|
6017
6017
|
return t;
|
|
6018
6018
|
}
|
|
6019
|
-
function
|
|
6020
|
-
let t =
|
|
6019
|
+
function fr(e) {
|
|
6020
|
+
let t = pr(e.dependencies), n = /* @__PURE__ */ new Map();
|
|
6021
6021
|
for (let r of e.resources) {
|
|
6022
6022
|
if (r.kind !== "chunk" || !r.parent) continue;
|
|
6023
|
-
let { group: e, file: i } =
|
|
6023
|
+
let { group: e, file: i } = mr(r.name, t), a = gr(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
|
|
6024
6024
|
n.set(r.parent, o);
|
|
6025
6025
|
let s = o.get(e) ?? {
|
|
6026
|
-
sizes:
|
|
6026
|
+
sizes: yr(),
|
|
6027
6027
|
files: /* @__PURE__ */ new Map()
|
|
6028
6028
|
};
|
|
6029
|
-
o.set(e, s),
|
|
6030
|
-
let c = s.files.get(i) ??
|
|
6031
|
-
s.files.set(i, c),
|
|
6029
|
+
o.set(e, s), br(s.sizes, a);
|
|
6030
|
+
let c = s.files.get(i) ?? yr();
|
|
6031
|
+
s.files.set(i, c), br(c, a);
|
|
6032
6032
|
}
|
|
6033
6033
|
return n;
|
|
6034
6034
|
}
|
|
6035
|
-
function
|
|
6035
|
+
function pr(e) {
|
|
6036
6036
|
return e.flatMap((e) => e.paths.map((t) => [t, e.name])).toSorted((e, t) => t[0].length - e[0].length);
|
|
6037
6037
|
}
|
|
6038
|
-
function
|
|
6038
|
+
function mr(e, t) {
|
|
6039
6039
|
let n = t.find(([t]) => e === t || e.startsWith(`${t}/`));
|
|
6040
6040
|
if (n) {
|
|
6041
6041
|
let [t, r] = n;
|
|
@@ -6052,49 +6052,49 @@ function pr(e, t) {
|
|
|
6052
6052
|
file: e.slice(1)
|
|
6053
6053
|
} : e.startsWith("rust/") || e.includes("vite-plugin-wasm") ? {
|
|
6054
6054
|
group: "wasm",
|
|
6055
|
-
file:
|
|
6055
|
+
file: hr(e)
|
|
6056
6056
|
} : {
|
|
6057
6057
|
group: "src",
|
|
6058
|
-
file:
|
|
6058
|
+
file: hr(e)
|
|
6059
6059
|
};
|
|
6060
6060
|
}
|
|
6061
|
-
function
|
|
6061
|
+
function hr(e) {
|
|
6062
6062
|
return e.split("/").at(-1) ?? e;
|
|
6063
6063
|
}
|
|
6064
|
-
function
|
|
6064
|
+
function gr(e) {
|
|
6065
6065
|
return {
|
|
6066
6066
|
uncompressed: e.uncompressed,
|
|
6067
6067
|
brotli: e.brotli ?? 0
|
|
6068
6068
|
};
|
|
6069
6069
|
}
|
|
6070
|
-
function gr(e) {
|
|
6071
|
-
return `${br(e.uncompressed)} · brotli ${br(e.brotli)}`;
|
|
6072
|
-
}
|
|
6073
6070
|
function _r(e) {
|
|
6071
|
+
return `${xr(e.uncompressed)} · brotli ${xr(e.brotli)}`;
|
|
6072
|
+
}
|
|
6073
|
+
function vr(e) {
|
|
6074
6074
|
let t = Math.round(e / 100 * rr);
|
|
6075
6075
|
return `\`${"█".repeat(t)}${"░".repeat(rr - t)}\` ${e.toFixed(1)}%`;
|
|
6076
6076
|
}
|
|
6077
|
-
function
|
|
6077
|
+
function yr() {
|
|
6078
6078
|
return {
|
|
6079
6079
|
uncompressed: 0,
|
|
6080
6080
|
brotli: 0
|
|
6081
6081
|
};
|
|
6082
6082
|
}
|
|
6083
|
-
function
|
|
6083
|
+
function br(e, t) {
|
|
6084
6084
|
e.uncompressed += t.uncompressed, e.brotli += t.brotli;
|
|
6085
6085
|
}
|
|
6086
|
-
function
|
|
6086
|
+
function xr(e) {
|
|
6087
6087
|
return e < 1024 ? `${String(e)} B` : `${(e / 1024).toFixed(1)} kB`;
|
|
6088
6088
|
}
|
|
6089
6089
|
//#endregion
|
|
6090
6090
|
//#region src/actions/documentDependencies.ts
|
|
6091
|
-
var
|
|
6092
|
-
async function
|
|
6091
|
+
var Sr = "<!-- DEPENDENCY_LICENSES_START -->", Cr = "<!-- DEPENDENCY_LICENSES_END -->", wr = "<!-- DEPENDENCY_TREE_START -->", Tr = "<!-- DEPENDENCY_TREE_END -->", Er = "The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are simply mature and stable, requiring no active development.";
|
|
6092
|
+
async function Dr(e = "MIT") {
|
|
6093
6093
|
try {
|
|
6094
6094
|
G("Document Dependencies");
|
|
6095
6095
|
let t = await W("package.json");
|
|
6096
6096
|
if (t.name === "@dpuse/dpuse-development") {
|
|
6097
|
-
await
|
|
6097
|
+
await Or(), K("Dependencies documented");
|
|
6098
6098
|
return;
|
|
6099
6099
|
}
|
|
6100
6100
|
await Mn("1️⃣ Clear downloaded licenses", "licenses/downloads"), q("2️⃣ Identify production licenses"), await new Promise((n, r) => {
|
|
@@ -6116,38 +6116,38 @@ async function Er(e = "MIT") {
|
|
|
6116
6116
|
"--all",
|
|
6117
6117
|
"--json",
|
|
6118
6118
|
"--omit=dev"
|
|
6119
|
-
], "licenses/licenseTree.json"), await
|
|
6119
|
+
], "licenses/licenseTree.json"), await kr("4️⃣ ", e), K("Dependencies documented");
|
|
6120
6120
|
} catch (e) {
|
|
6121
6121
|
console.error("❌ Error documenting dependencies", e), process.exit(1);
|
|
6122
6122
|
}
|
|
6123
6123
|
}
|
|
6124
|
-
async function
|
|
6124
|
+
async function Or() {
|
|
6125
6125
|
q("1️⃣ Skip: @dpuse/dpuse-development is a development-only tool and is never part of a production release");
|
|
6126
6126
|
let e = "> [!WARNING]\n> Dependency licenses are not documented here: @dpuse/dpuse-development is a development-only tool and is never part of a production release";
|
|
6127
|
-
await Bn("README.md", Gn(Gn(await Ln("./README.md"), e,
|
|
6127
|
+
await Bn("README.md", Gn(Gn(await Ln("./README.md"), e, Sr, Cr), e, wr, Tr));
|
|
6128
6128
|
}
|
|
6129
|
-
async function
|
|
6129
|
+
async function kr(e, t) {
|
|
6130
6130
|
q(`${e} Insert licenses into 'README.md'`);
|
|
6131
6131
|
let [n, r] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), i = /* @__PURE__ */ new Map();
|
|
6132
|
-
for (let [e, t] of Object.entries(n)) i.set(e,
|
|
6132
|
+
for (let [e, t] of Object.entries(n)) i.set(e, Mr(e, t));
|
|
6133
6133
|
await Promise.all(i.values().map(async (e) => {
|
|
6134
|
-
let t = await
|
|
6134
|
+
let t = await Nr(e.name, e.installedVersion);
|
|
6135
6135
|
e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
|
|
6136
6136
|
}));
|
|
6137
|
-
let a = `${
|
|
6138
|
-
for (let e of i.values()) a +=
|
|
6137
|
+
let a = `${Ar(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
|
|
6138
|
+
for (let e of i.values()) a += Pr(e);
|
|
6139
6139
|
let o = [];
|
|
6140
|
-
r.dependencies != null &&
|
|
6141
|
-
let s = `${
|
|
6142
|
-
await Bn("README.md", Gn(Gn(await Ln("./README.md"), a,
|
|
6143
|
-
}
|
|
6144
|
-
function kr(e) {
|
|
6145
|
-
return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${Ar(e.split(";"))} — all permissive, commercially-friendly licenses. Developers cloning this repository should independently verify development dependencies; users of the uploaded library are covered by these checks.`;
|
|
6140
|
+
r.dependencies != null && Fr(r.dependencies, i, o, 0);
|
|
6141
|
+
let s = `${Er}\n\n${o.join("\n")}`;
|
|
6142
|
+
await Bn("README.md", Gn(Gn(await Ln("./README.md"), a, Sr, Cr), s, wr, Tr));
|
|
6146
6143
|
}
|
|
6147
6144
|
function Ar(e) {
|
|
6145
|
+
return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${jr(e.split(";"))} — all permissive, commercially-friendly licenses. Developers cloning this repository should independently verify development dependencies; users of the uploaded library are covered by these checks.`;
|
|
6146
|
+
}
|
|
6147
|
+
function jr(e) {
|
|
6148
6148
|
return e.length === 1 ? e[0] ?? "" : e.length === 2 ? `${String(e[0])} or ${String(e[1])}` : `${e.slice(0, -1).join(", ")}, or ${String(e.at(-1))}`;
|
|
6149
6149
|
}
|
|
6150
|
-
function
|
|
6150
|
+
function Mr(e, t) {
|
|
6151
6151
|
let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
|
|
6152
6152
|
return {
|
|
6153
6153
|
name: r,
|
|
@@ -6161,7 +6161,7 @@ function jr(e, t) {
|
|
|
6161
6161
|
...t.licenseFile != null && { licenseFileLink: t.licenseFile }
|
|
6162
6162
|
};
|
|
6163
6163
|
}
|
|
6164
|
-
async function
|
|
6164
|
+
async function Nr(e, t) {
|
|
6165
6165
|
try {
|
|
6166
6166
|
let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
|
|
6167
6167
|
if (n.ok) {
|
|
@@ -6179,25 +6179,25 @@ async function Mr(e, t) {
|
|
|
6179
6179
|
publishedDate: ""
|
|
6180
6180
|
};
|
|
6181
6181
|
}
|
|
6182
|
-
function
|
|
6182
|
+
function Pr(e) {
|
|
6183
6183
|
let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
|
|
6184
6184
|
return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
|
|
6185
6185
|
}
|
|
6186
|
-
function
|
|
6186
|
+
function Fr(e, t, n, r) {
|
|
6187
6187
|
let i = " ".repeat(r);
|
|
6188
6188
|
for (let [a, o] of Object.entries(e)) {
|
|
6189
|
-
let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l =
|
|
6190
|
-
n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null &&
|
|
6189
|
+
let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Ir(s);
|
|
6190
|
+
n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Fr(o.dependencies, t, n, r + 1);
|
|
6191
6191
|
}
|
|
6192
6192
|
}
|
|
6193
|
-
function
|
|
6193
|
+
function Ir(e) {
|
|
6194
6194
|
if (e == null) return "";
|
|
6195
|
-
let t = e.publishedDate ?
|
|
6195
|
+
let t = e.publishedDate ? Lr(e.publishedDate.split("T", 1)[0]) : "";
|
|
6196
6196
|
if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
|
|
6197
|
-
let n = e.latestPublishedDate ?
|
|
6197
|
+
let n = e.latestPublishedDate ? Lr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
|
|
6198
6198
|
return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
|
|
6199
6199
|
}
|
|
6200
|
-
function
|
|
6200
|
+
function Lr(e) {
|
|
6201
6201
|
if (e == null || e === "") return "n/a";
|
|
6202
6202
|
let t = e.split("T", 1)[0];
|
|
6203
6203
|
if (t == null || t === "") return "n/a";
|
|
@@ -6206,43 +6206,43 @@ function Ir(e) {
|
|
|
6206
6206
|
}
|
|
6207
6207
|
//#endregion
|
|
6208
6208
|
//#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-dBVLwQIt.js
|
|
6209
|
-
var
|
|
6209
|
+
var Rr, zr = {
|
|
6210
6210
|
lang: void 0,
|
|
6211
6211
|
message: void 0,
|
|
6212
6212
|
abortEarly: void 0,
|
|
6213
6213
|
abortPipeEarly: void 0
|
|
6214
6214
|
};
|
|
6215
6215
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6216
|
-
function
|
|
6217
|
-
return !e && !
|
|
6218
|
-
lang: e?.lang ??
|
|
6216
|
+
function Br(e) {
|
|
6217
|
+
return !e && !Rr ? zr : {
|
|
6218
|
+
lang: e?.lang ?? Rr?.lang,
|
|
6219
6219
|
message: e?.message,
|
|
6220
|
-
abortEarly: e?.abortEarly ??
|
|
6221
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
6220
|
+
abortEarly: e?.abortEarly ?? Rr?.abortEarly,
|
|
6221
|
+
abortPipeEarly: e?.abortPipeEarly ?? Rr?.abortPipeEarly
|
|
6222
6222
|
};
|
|
6223
6223
|
}
|
|
6224
|
-
var
|
|
6224
|
+
var Vr;
|
|
6225
6225
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6226
|
-
function
|
|
6227
|
-
return
|
|
6226
|
+
function Hr(e) {
|
|
6227
|
+
return Vr?.get(e);
|
|
6228
6228
|
}
|
|
6229
|
-
var
|
|
6229
|
+
var Ur;
|
|
6230
6230
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6231
|
-
function
|
|
6232
|
-
return
|
|
6231
|
+
function Wr(e) {
|
|
6232
|
+
return Ur?.get(e);
|
|
6233
6233
|
}
|
|
6234
|
-
var
|
|
6234
|
+
var Gr;
|
|
6235
6235
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6236
|
-
function
|
|
6237
|
-
return
|
|
6236
|
+
function Kr(e, t) {
|
|
6237
|
+
return Gr?.get(e)?.get(t);
|
|
6238
6238
|
}
|
|
6239
6239
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6240
|
-
function
|
|
6240
|
+
function qr(e) {
|
|
6241
6241
|
let t = typeof e;
|
|
6242
6242
|
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
6243
6243
|
}
|
|
6244
6244
|
function Y(e, t, n, r, i) {
|
|
6245
|
-
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */
|
|
6245
|
+
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ qr(a), c = {
|
|
6246
6246
|
kind: e.kind,
|
|
6247
6247
|
type: e.type,
|
|
6248
6248
|
input: a,
|
|
@@ -6255,20 +6255,20 @@ function Y(e, t, n, r, i) {
|
|
|
6255
6255
|
lang: r.lang,
|
|
6256
6256
|
abortEarly: r.abortEarly,
|
|
6257
6257
|
abortPipeEarly: r.abortPipeEarly
|
|
6258
|
-
}, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */
|
|
6258
|
+
}, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Kr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Wr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Hr(c.lang);
|
|
6259
6259
|
u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
|
|
6260
6260
|
}
|
|
6261
|
-
var
|
|
6261
|
+
var Jr = /* @__PURE__ */ new WeakMap();
|
|
6262
6262
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6263
|
-
function
|
|
6264
|
-
let t =
|
|
6263
|
+
function X(e) {
|
|
6264
|
+
let t = Jr.get(e);
|
|
6265
6265
|
return t || (t = {
|
|
6266
6266
|
version: 1,
|
|
6267
6267
|
vendor: "valibot",
|
|
6268
6268
|
validate(t) {
|
|
6269
|
-
return e["~run"]({ value: t }, /* @__PURE__ */
|
|
6269
|
+
return e["~run"]({ value: t }, /* @__PURE__ */ Br());
|
|
6270
6270
|
}
|
|
6271
|
-
},
|
|
6271
|
+
}, Jr.set(e, t)), t;
|
|
6272
6272
|
}
|
|
6273
6273
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6274
6274
|
function Yr(e, t) {
|
|
@@ -6298,7 +6298,7 @@ function $r(e, t) {
|
|
|
6298
6298
|
item: e,
|
|
6299
6299
|
message: t,
|
|
6300
6300
|
get "~standard"() {
|
|
6301
|
-
return /* @__PURE__ */
|
|
6301
|
+
return /* @__PURE__ */ X(this);
|
|
6302
6302
|
},
|
|
6303
6303
|
"~run"(e, t) {
|
|
6304
6304
|
let n = e.value;
|
|
@@ -6337,7 +6337,7 @@ function ei(e) {
|
|
|
6337
6337
|
async: !1,
|
|
6338
6338
|
message: e,
|
|
6339
6339
|
get "~standard"() {
|
|
6340
|
-
return /* @__PURE__ */
|
|
6340
|
+
return /* @__PURE__ */ X(this);
|
|
6341
6341
|
},
|
|
6342
6342
|
"~run"(e, t) {
|
|
6343
6343
|
return typeof e.value == "boolean" ? e.typed = !0 : Y(this, "type", e, t), e;
|
|
@@ -6350,12 +6350,12 @@ function ti(e, t) {
|
|
|
6350
6350
|
kind: "schema",
|
|
6351
6351
|
type: "literal",
|
|
6352
6352
|
reference: ti,
|
|
6353
|
-
expects: /* @__PURE__ */
|
|
6353
|
+
expects: /* @__PURE__ */ qr(e),
|
|
6354
6354
|
async: !1,
|
|
6355
6355
|
literal: e,
|
|
6356
6356
|
message: t,
|
|
6357
6357
|
get "~standard"() {
|
|
6358
|
-
return /* @__PURE__ */
|
|
6358
|
+
return /* @__PURE__ */ X(this);
|
|
6359
6359
|
},
|
|
6360
6360
|
"~run"(e, t) {
|
|
6361
6361
|
return e.value === this.literal ? e.typed = !0 : Y(this, "type", e, t), e;
|
|
@@ -6363,17 +6363,17 @@ function ti(e, t) {
|
|
|
6363
6363
|
};
|
|
6364
6364
|
}
|
|
6365
6365
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6366
|
-
function
|
|
6366
|
+
function Z(e, t) {
|
|
6367
6367
|
return {
|
|
6368
6368
|
kind: "schema",
|
|
6369
6369
|
type: "nullable",
|
|
6370
|
-
reference:
|
|
6370
|
+
reference: Z,
|
|
6371
6371
|
expects: `(${e.expects} | null)`,
|
|
6372
6372
|
async: !1,
|
|
6373
6373
|
wrapped: e,
|
|
6374
6374
|
default: t,
|
|
6375
6375
|
get "~standard"() {
|
|
6376
|
-
return /* @__PURE__ */
|
|
6376
|
+
return /* @__PURE__ */ X(this);
|
|
6377
6377
|
},
|
|
6378
6378
|
"~run"(e, t) {
|
|
6379
6379
|
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Qr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
@@ -6390,7 +6390,7 @@ function ni(e) {
|
|
|
6390
6390
|
async: !1,
|
|
6391
6391
|
message: e,
|
|
6392
6392
|
get "~standard"() {
|
|
6393
|
-
return /* @__PURE__ */
|
|
6393
|
+
return /* @__PURE__ */ X(this);
|
|
6394
6394
|
},
|
|
6395
6395
|
"~run"(e, t) {
|
|
6396
6396
|
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : Y(this, "type", e, t), e;
|
|
@@ -6398,17 +6398,17 @@ function ni(e) {
|
|
|
6398
6398
|
};
|
|
6399
6399
|
}
|
|
6400
6400
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6401
|
-
function
|
|
6401
|
+
function Q(e, t) {
|
|
6402
6402
|
return {
|
|
6403
6403
|
kind: "schema",
|
|
6404
6404
|
type: "object",
|
|
6405
|
-
reference:
|
|
6405
|
+
reference: Q,
|
|
6406
6406
|
expects: "Object",
|
|
6407
6407
|
async: !1,
|
|
6408
6408
|
entries: e,
|
|
6409
6409
|
message: t,
|
|
6410
6410
|
get "~standard"() {
|
|
6411
|
-
return /* @__PURE__ */
|
|
6411
|
+
return /* @__PURE__ */ X(this);
|
|
6412
6412
|
},
|
|
6413
6413
|
"~run"(e, t) {
|
|
6414
6414
|
let n = e.value;
|
|
@@ -6452,17 +6452,17 @@ function Z(e, t) {
|
|
|
6452
6452
|
};
|
|
6453
6453
|
}
|
|
6454
6454
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6455
|
-
function
|
|
6455
|
+
function ri(e, t) {
|
|
6456
6456
|
return {
|
|
6457
6457
|
kind: "schema",
|
|
6458
6458
|
type: "optional",
|
|
6459
|
-
reference:
|
|
6459
|
+
reference: ri,
|
|
6460
6460
|
expects: `(${e.expects} | undefined)`,
|
|
6461
6461
|
async: !1,
|
|
6462
6462
|
wrapped: e,
|
|
6463
6463
|
default: t,
|
|
6464
6464
|
get "~standard"() {
|
|
6465
|
-
return /* @__PURE__ */
|
|
6465
|
+
return /* @__PURE__ */ X(this);
|
|
6466
6466
|
},
|
|
6467
6467
|
"~run"(e, t) {
|
|
6468
6468
|
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Qr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
@@ -6470,18 +6470,18 @@ function Q(e, t) {
|
|
|
6470
6470
|
};
|
|
6471
6471
|
}
|
|
6472
6472
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6473
|
-
function
|
|
6473
|
+
function ii(e, t, n) {
|
|
6474
6474
|
return {
|
|
6475
6475
|
kind: "schema",
|
|
6476
6476
|
type: "record",
|
|
6477
|
-
reference:
|
|
6477
|
+
reference: ii,
|
|
6478
6478
|
expects: "Object",
|
|
6479
6479
|
async: !1,
|
|
6480
6480
|
key: e,
|
|
6481
6481
|
value: t,
|
|
6482
6482
|
message: n,
|
|
6483
6483
|
get "~standard"() {
|
|
6484
|
-
return /* @__PURE__ */
|
|
6484
|
+
return /* @__PURE__ */ X(this);
|
|
6485
6485
|
},
|
|
6486
6486
|
"~run"(e, t) {
|
|
6487
6487
|
let n = e.value;
|
|
@@ -6535,7 +6535,7 @@ function $(e) {
|
|
|
6535
6535
|
async: !1,
|
|
6536
6536
|
message: e,
|
|
6537
6537
|
get "~standard"() {
|
|
6538
|
-
return /* @__PURE__ */
|
|
6538
|
+
return /* @__PURE__ */ X(this);
|
|
6539
6539
|
},
|
|
6540
6540
|
"~run"(e, t) {
|
|
6541
6541
|
return typeof e.value == "string" ? e.typed = !0 : Y(this, "type", e, t), e;
|
|
@@ -6543,24 +6543,24 @@ function $(e) {
|
|
|
6543
6543
|
};
|
|
6544
6544
|
}
|
|
6545
6545
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6546
|
-
function
|
|
6546
|
+
function ai(e) {
|
|
6547
6547
|
let t;
|
|
6548
6548
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
6549
6549
|
else t = n.issues;
|
|
6550
6550
|
return t;
|
|
6551
6551
|
}
|
|
6552
6552
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6553
|
-
function
|
|
6553
|
+
function oi(e, t) {
|
|
6554
6554
|
return {
|
|
6555
6555
|
kind: "schema",
|
|
6556
6556
|
type: "union",
|
|
6557
|
-
reference:
|
|
6557
|
+
reference: oi,
|
|
6558
6558
|
expects: /* @__PURE__ */ Xr(e.map((e) => e.expects), "|"),
|
|
6559
6559
|
async: !1,
|
|
6560
6560
|
options: e,
|
|
6561
6561
|
message: t,
|
|
6562
6562
|
get "~standard"() {
|
|
6563
|
-
return /* @__PURE__ */
|
|
6563
|
+
return /* @__PURE__ */ X(this);
|
|
6564
6564
|
},
|
|
6565
6565
|
"~run"(e, t) {
|
|
6566
6566
|
let n, r, i;
|
|
@@ -6576,24 +6576,24 @@ function ai(e, t) {
|
|
|
6576
6576
|
if (n) return n;
|
|
6577
6577
|
if (r) {
|
|
6578
6578
|
if (r.length === 1) return r[0];
|
|
6579
|
-
Y(this, "type", e, t, { issues: /* @__PURE__ */
|
|
6579
|
+
Y(this, "type", e, t, { issues: /* @__PURE__ */ ai(r) }), e.typed = !0;
|
|
6580
6580
|
} else if (i?.length === 1) return i[0];
|
|
6581
|
-
else Y(this, "type", e, t, { issues: /* @__PURE__ */
|
|
6581
|
+
else Y(this, "type", e, t, { issues: /* @__PURE__ */ ai(i) });
|
|
6582
6582
|
return e;
|
|
6583
6583
|
}
|
|
6584
6584
|
};
|
|
6585
6585
|
}
|
|
6586
|
-
var
|
|
6586
|
+
var si = (e) => /* @__PURE__ */ oi(e.map((e) => /* @__PURE__ */ ti(e))), ci = /* @__PURE__ */ Q({
|
|
6587
6587
|
en: /* @__PURE__ */ $(),
|
|
6588
6588
|
es: /* @__PURE__ */ $()
|
|
6589
|
-
}),
|
|
6590
|
-
en: /* @__PURE__ */
|
|
6591
|
-
es: /* @__PURE__ */
|
|
6592
|
-
}),
|
|
6593
|
-
en: /* @__PURE__ */
|
|
6594
|
-
es: /* @__PURE__ */
|
|
6589
|
+
}), li = /* @__PURE__ */ Q({
|
|
6590
|
+
en: /* @__PURE__ */ ri(/* @__PURE__ */ $r(/* @__PURE__ */ $())),
|
|
6591
|
+
es: /* @__PURE__ */ ri(/* @__PURE__ */ $r(/* @__PURE__ */ $()))
|
|
6592
|
+
}), ui = /* @__PURE__ */ Q({
|
|
6593
|
+
en: /* @__PURE__ */ ri(/* @__PURE__ */ $()),
|
|
6594
|
+
es: /* @__PURE__ */ ri(/* @__PURE__ */ $())
|
|
6595
6595
|
});
|
|
6596
|
-
|
|
6596
|
+
si([
|
|
6597
6597
|
"app",
|
|
6598
6598
|
"connection",
|
|
6599
6599
|
"connector",
|
|
@@ -6618,12 +6618,12 @@ oi([
|
|
|
6618
6618
|
"presenterPresentation",
|
|
6619
6619
|
"tool"
|
|
6620
6620
|
]);
|
|
6621
|
-
var
|
|
6621
|
+
var di = si([
|
|
6622
6622
|
"amber",
|
|
6623
6623
|
"green",
|
|
6624
6624
|
"red",
|
|
6625
6625
|
"other"
|
|
6626
|
-
]),
|
|
6626
|
+
]), fi = si([
|
|
6627
6627
|
"alpha",
|
|
6628
6628
|
"beta",
|
|
6629
6629
|
"generalAvailability",
|
|
@@ -6633,31 +6633,31 @@ var ui = oi([
|
|
|
6633
6633
|
"releaseCandidate",
|
|
6634
6634
|
"unavailable",
|
|
6635
6635
|
"underReview"
|
|
6636
|
-
]),
|
|
6637
|
-
color:
|
|
6636
|
+
]), pi = /* @__PURE__ */ Q({
|
|
6637
|
+
color: di,
|
|
6638
6638
|
label: /* @__PURE__ */ $()
|
|
6639
|
-
}),
|
|
6639
|
+
}), mi = /* @__PURE__ */ Q({
|
|
6640
6640
|
id: /* @__PURE__ */ $(),
|
|
6641
|
-
label:
|
|
6642
|
-
description:
|
|
6643
|
-
icon: /* @__PURE__ */
|
|
6644
|
-
iconDark: /* @__PURE__ */
|
|
6645
|
-
iconNeutral: /* @__PURE__ */
|
|
6641
|
+
label: ui,
|
|
6642
|
+
description: li,
|
|
6643
|
+
icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6644
|
+
iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6645
|
+
iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6646
6646
|
order: /* @__PURE__ */ ni(),
|
|
6647
6647
|
path: /* @__PURE__ */ $()
|
|
6648
|
-
}),
|
|
6648
|
+
}), hi = {
|
|
6649
6649
|
id: /* @__PURE__ */ $(),
|
|
6650
|
-
label:
|
|
6651
|
-
description:
|
|
6652
|
-
firstCreatedAt: /* @__PURE__ */
|
|
6653
|
-
icon: /* @__PURE__ */
|
|
6654
|
-
iconDark: /* @__PURE__ */
|
|
6655
|
-
iconNeutral: /* @__PURE__ */
|
|
6656
|
-
lastUpdatedAt: /* @__PURE__ */
|
|
6657
|
-
status: /* @__PURE__ */
|
|
6658
|
-
statusId: /* @__PURE__ */
|
|
6650
|
+
label: ui,
|
|
6651
|
+
description: li,
|
|
6652
|
+
firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ni()),
|
|
6653
|
+
icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6654
|
+
iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6655
|
+
iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6656
|
+
lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ni()),
|
|
6657
|
+
status: /* @__PURE__ */ Z(pi),
|
|
6658
|
+
statusId: /* @__PURE__ */ Z(fi)
|
|
6659
6659
|
};
|
|
6660
|
-
({ ...
|
|
6660
|
+
({ ...hi }), si([
|
|
6661
6661
|
"app",
|
|
6662
6662
|
"engine",
|
|
6663
6663
|
"connector",
|
|
@@ -6668,14 +6668,14 @@ var ui = oi([
|
|
|
6668
6668
|
]);
|
|
6669
6669
|
//#endregion
|
|
6670
6670
|
//#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CUHmgYLu.js
|
|
6671
|
-
var
|
|
6672
|
-
...
|
|
6671
|
+
var gi = {
|
|
6672
|
+
...hi,
|
|
6673
6673
|
version: /* @__PURE__ */ $()
|
|
6674
6674
|
};
|
|
6675
|
-
({ ...
|
|
6675
|
+
({ ...gi });
|
|
6676
6676
|
//#endregion
|
|
6677
6677
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
|
|
6678
|
-
var
|
|
6678
|
+
var _i = si([
|
|
6679
6679
|
"abortOperation",
|
|
6680
6680
|
"auditObjectContent",
|
|
6681
6681
|
"createObject",
|
|
@@ -6690,35 +6690,35 @@ var gi = oi([
|
|
|
6690
6690
|
"retrieveChunks",
|
|
6691
6691
|
"retrieveRecords",
|
|
6692
6692
|
"upsertRecords"
|
|
6693
|
-
]),
|
|
6693
|
+
]), vi = si([
|
|
6694
6694
|
"application",
|
|
6695
6695
|
"curatedDataset",
|
|
6696
6696
|
"database",
|
|
6697
6697
|
"fileStore"
|
|
6698
|
-
]),
|
|
6699
|
-
authMethodId:
|
|
6698
|
+
]), yi = /* @__PURE__ */ Q({ label: ci }), bi = /* @__PURE__ */ Q({
|
|
6699
|
+
authMethodId: si([
|
|
6700
6700
|
"apiKey",
|
|
6701
6701
|
"disabled",
|
|
6702
6702
|
"oAuth2",
|
|
6703
6703
|
"none"
|
|
6704
6704
|
]),
|
|
6705
|
-
activeConnectionCount: /* @__PURE__ */
|
|
6706
|
-
canDescribe: /* @__PURE__ */
|
|
6707
|
-
id: /* @__PURE__ */
|
|
6708
|
-
label: /* @__PURE__ */
|
|
6709
|
-
maxConnectionCount: /* @__PURE__ */
|
|
6710
|
-
params: /* @__PURE__ */
|
|
6711
|
-
}),
|
|
6705
|
+
activeConnectionCount: /* @__PURE__ */ ri(/* @__PURE__ */ ni()),
|
|
6706
|
+
canDescribe: /* @__PURE__ */ ri(/* @__PURE__ */ ei()),
|
|
6707
|
+
id: /* @__PURE__ */ ri(/* @__PURE__ */ $()),
|
|
6708
|
+
label: /* @__PURE__ */ ri(ci),
|
|
6709
|
+
maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ ni()),
|
|
6710
|
+
params: /* @__PURE__ */ ri(/* @__PURE__ */ $r(/* @__PURE__ */ ii(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
|
|
6711
|
+
}), xi = /* @__PURE__ */ Q({
|
|
6712
6712
|
typeId: /* @__PURE__ */ ti("connector"),
|
|
6713
|
-
...
|
|
6714
|
-
actionNames: /* @__PURE__ */ $r(
|
|
6715
|
-
category: /* @__PURE__ */
|
|
6716
|
-
categoryId:
|
|
6717
|
-
implementations: /* @__PURE__ */
|
|
6718
|
-
vendorAccountURL: /* @__PURE__ */
|
|
6719
|
-
vendorDocumentationURL: /* @__PURE__ */
|
|
6720
|
-
vendorHomeURL: /* @__PURE__ */
|
|
6721
|
-
}),
|
|
6713
|
+
...gi,
|
|
6714
|
+
actionNames: /* @__PURE__ */ $r(_i),
|
|
6715
|
+
category: /* @__PURE__ */ Z(yi),
|
|
6716
|
+
categoryId: vi,
|
|
6717
|
+
implementations: /* @__PURE__ */ ii(/* @__PURE__ */ $(), bi),
|
|
6718
|
+
vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6719
|
+
vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
|
|
6720
|
+
vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
|
|
6721
|
+
}), Si = {
|
|
6722
6722
|
abortOperation: "Abort Operation",
|
|
6723
6723
|
auditObjectContent: "Audit Object Content",
|
|
6724
6724
|
createObject: "Create Object",
|
|
@@ -6733,12 +6733,12 @@ var gi = oi([
|
|
|
6733
6733
|
retrieveChunks: "Retrieve Chunks",
|
|
6734
6734
|
retrieveRecords: "Retrieve Records",
|
|
6735
6735
|
upsertRecords: "Upsert Records"
|
|
6736
|
-
},
|
|
6736
|
+
}, Ci = /* @__PURE__ */ new Set([
|
|
6737
6737
|
"createObject",
|
|
6738
6738
|
"dropObject",
|
|
6739
6739
|
"removeRecords",
|
|
6740
6740
|
"upsertRecords"
|
|
6741
|
-
]),
|
|
6741
|
+
]), wi = /* @__PURE__ */ new Set([
|
|
6742
6742
|
"auditObjectContent",
|
|
6743
6743
|
"findObject",
|
|
6744
6744
|
"getReadableStream",
|
|
@@ -6748,37 +6748,37 @@ var gi = oi([
|
|
|
6748
6748
|
"retrieveChunks",
|
|
6749
6749
|
"retrieveRecords"
|
|
6750
6750
|
]);
|
|
6751
|
-
function
|
|
6751
|
+
function Ti(e) {
|
|
6752
6752
|
let t = !1, n = !1;
|
|
6753
|
-
for (let r of e)
|
|
6753
|
+
for (let r of e) wi.has(r) && (t = !0), Ci.has(r) && (n = !0);
|
|
6754
6754
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
6755
6755
|
}
|
|
6756
|
-
function
|
|
6756
|
+
function Ei(e) {
|
|
6757
6757
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
6758
6758
|
n += "|:----|:-------:|\n";
|
|
6759
|
-
for (let e of Object.keys(
|
|
6759
|
+
for (let e of Object.keys(Si)) n += `| ${Si[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
6760
6760
|
return n;
|
|
6761
6761
|
}
|
|
6762
6762
|
//#endregion
|
|
6763
6763
|
//#region src/actions/documentActions.ts
|
|
6764
|
-
var
|
|
6764
|
+
var Di = "<!-- CONNECTOR_ACTIONS_START -->", Oi = "<!-- CONNECTOR_ACTIONS_END -->", ki = "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.", Ai = {
|
|
6765
6765
|
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.",
|
|
6766
6766
|
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.",
|
|
6767
6767
|
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.",
|
|
6768
6768
|
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."
|
|
6769
|
-
},
|
|
6770
|
-
async function
|
|
6769
|
+
}, ji = "The table below lists all connector actions and highlights those supported by this connector.";
|
|
6770
|
+
async function Mi() {
|
|
6771
6771
|
try {
|
|
6772
6772
|
G("Document Actions"), q("1️⃣ Insert actions description and table into 'README.md'");
|
|
6773
|
-
let e = (await W("config.json")).actionNames ?? [], t =
|
|
6774
|
-
await Bn("README.md", Gn(await Ln("./README.md"), r,
|
|
6773
|
+
let e = (await W("config.json")).actionNames ?? [], t = Ti(e), n = Ei(e), r = `${ki}\n\n${Ai[t]} ${ji}\n\n${n}`;
|
|
6774
|
+
await Bn("README.md", Gn(await Ln("./README.md"), r, Di, Oi)), K("Actions documented");
|
|
6775
6775
|
} catch (e) {
|
|
6776
6776
|
console.error("❌ Error documenting actions", e), process.exit(1);
|
|
6777
6777
|
}
|
|
6778
6778
|
}
|
|
6779
6779
|
//#endregion
|
|
6780
6780
|
//#region src/actions/formatCode.ts
|
|
6781
|
-
async function
|
|
6781
|
+
async function Ni() {
|
|
6782
6782
|
try {
|
|
6783
6783
|
G("Format Code"), await Fn("1️⃣ Format", "prettier", [
|
|
6784
6784
|
"--write",
|
|
@@ -6793,7 +6793,7 @@ async function Mi() {
|
|
|
6793
6793
|
}
|
|
6794
6794
|
//#endregion
|
|
6795
6795
|
//#region src/actions/lintCode.ts
|
|
6796
|
-
async function
|
|
6796
|
+
async function Pi() {
|
|
6797
6797
|
try {
|
|
6798
6798
|
G("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), K("Code linted");
|
|
6799
6799
|
} catch (e) {
|
|
@@ -6802,7 +6802,7 @@ async function Ni() {
|
|
|
6802
6802
|
}
|
|
6803
6803
|
//#endregion
|
|
6804
6804
|
//#region src/utilities/cloudflare.ts
|
|
6805
|
-
async function
|
|
6805
|
+
async function Fi() {
|
|
6806
6806
|
let e = await W("config.json"), t = {
|
|
6807
6807
|
body: JSON.stringify(e),
|
|
6808
6808
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6810,7 +6810,7 @@ async function Pi() {
|
|
|
6810
6810
|
}, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
|
|
6811
6811
|
if (!n.ok) throw Error(await n.text());
|
|
6812
6812
|
}
|
|
6813
|
-
async function
|
|
6813
|
+
async function Ii(e, t) {
|
|
6814
6814
|
async function n(e, t, r) {
|
|
6815
6815
|
for (let i of r) {
|
|
6816
6816
|
let r = `${e}/${i}`, a = `${t}/${i}`;
|
|
@@ -6828,7 +6828,7 @@ async function Fi(e, t) {
|
|
|
6828
6828
|
let r = await Nn(`${e}/${t}/`);
|
|
6829
6829
|
await n(`${e}/${t}`, t, r);
|
|
6830
6830
|
}
|
|
6831
|
-
async function
|
|
6831
|
+
async function Li(e) {
|
|
6832
6832
|
let t = e.id, n = {
|
|
6833
6833
|
body: JSON.stringify(e),
|
|
6834
6834
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6836,7 +6836,7 @@ async function Ii(e) {
|
|
|
6836
6836
|
}, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
|
|
6837
6837
|
if (!r.ok) throw Error(await r.text());
|
|
6838
6838
|
}
|
|
6839
|
-
async function
|
|
6839
|
+
async function Ri(e, t) {
|
|
6840
6840
|
let n = `v${e.version ?? "unknown"}`;
|
|
6841
6841
|
async function r(e, r = "") {
|
|
6842
6842
|
let i = await Nn(e, { withFileTypes: !0 });
|
|
@@ -6860,24 +6860,24 @@ async function Li(e, t) {
|
|
|
6860
6860
|
}
|
|
6861
6861
|
//#endregion
|
|
6862
6862
|
//#region node_modules/valibot/dist/index.mjs
|
|
6863
|
-
var
|
|
6863
|
+
var zi, Bi = {
|
|
6864
6864
|
lang: void 0,
|
|
6865
6865
|
message: void 0,
|
|
6866
6866
|
abortEarly: void 0,
|
|
6867
6867
|
abortPipeEarly: void 0
|
|
6868
6868
|
};
|
|
6869
6869
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6870
|
-
function
|
|
6871
|
-
return !e && !
|
|
6872
|
-
lang: e?.lang ??
|
|
6870
|
+
function Vi(e) {
|
|
6871
|
+
return !e && !zi ? Bi : {
|
|
6872
|
+
lang: e?.lang ?? zi?.lang,
|
|
6873
6873
|
message: e?.message,
|
|
6874
|
-
abortEarly: e?.abortEarly ??
|
|
6875
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
6874
|
+
abortEarly: e?.abortEarly ?? zi?.abortEarly,
|
|
6875
|
+
abortPipeEarly: e?.abortPipeEarly ?? zi?.abortPipeEarly
|
|
6876
6876
|
};
|
|
6877
6877
|
}
|
|
6878
6878
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6879
|
-
function
|
|
6880
|
-
let r = e["~run"]({ value: t }, /* @__PURE__ */
|
|
6879
|
+
function Hi(e, t, n) {
|
|
6880
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ Vi(n));
|
|
6881
6881
|
return {
|
|
6882
6882
|
typed: r.typed,
|
|
6883
6883
|
success: !r.issues,
|
|
@@ -6887,69 +6887,69 @@ function Vi(e, t, n) {
|
|
|
6887
6887
|
}
|
|
6888
6888
|
//#endregion
|
|
6889
6889
|
//#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
|
|
6890
|
-
var
|
|
6890
|
+
var Ui = /* @__PURE__ */ Q({
|
|
6891
6891
|
typeId: /* @__PURE__ */ ti("contextArea"),
|
|
6892
|
-
...
|
|
6893
|
-
modelRefs: /* @__PURE__ */ $r(
|
|
6892
|
+
...hi,
|
|
6893
|
+
modelRefs: /* @__PURE__ */ $r(mi),
|
|
6894
6894
|
order: /* @__PURE__ */ ni()
|
|
6895
|
-
}),
|
|
6895
|
+
}), Wi = si(["listContextFocuses"]), Gi = /* @__PURE__ */ Q({
|
|
6896
6896
|
typeId: /* @__PURE__ */ ti("context"),
|
|
6897
|
-
...
|
|
6898
|
-
actionNames: /* @__PURE__ */ $r(
|
|
6899
|
-
models: /* @__PURE__ */ $r(
|
|
6900
|
-
}),
|
|
6897
|
+
...gi,
|
|
6898
|
+
actionNames: /* @__PURE__ */ $r(Wi),
|
|
6899
|
+
models: /* @__PURE__ */ $r(Ui)
|
|
6900
|
+
}), Ki = si([
|
|
6901
6901
|
"list",
|
|
6902
6902
|
"render",
|
|
6903
6903
|
"setColorMode"
|
|
6904
|
-
]),
|
|
6904
|
+
]), qi = /* @__PURE__ */ Q({
|
|
6905
6905
|
typeId: /* @__PURE__ */ ti("presenter"),
|
|
6906
|
-
...
|
|
6907
|
-
actionNames: /* @__PURE__ */ $r(
|
|
6908
|
-
presentations: /* @__PURE__ */ $r(
|
|
6906
|
+
...gi,
|
|
6907
|
+
actionNames: /* @__PURE__ */ $r(Ki),
|
|
6908
|
+
presentations: /* @__PURE__ */ $r(mi)
|
|
6909
6909
|
});
|
|
6910
6910
|
//#endregion
|
|
6911
6911
|
//#region src/actions/manageProject.ts
|
|
6912
|
-
async function
|
|
6912
|
+
async function Ji() {
|
|
6913
6913
|
try {
|
|
6914
6914
|
G("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), K("Project built");
|
|
6915
6915
|
} catch (e) {
|
|
6916
6916
|
console.error("❌ Error building project", e), process.exit(1);
|
|
6917
6917
|
}
|
|
6918
6918
|
}
|
|
6919
|
-
async function
|
|
6919
|
+
async function Yi() {
|
|
6920
6920
|
try {
|
|
6921
6921
|
G("Publish Project");
|
|
6922
6922
|
let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
|
|
6923
|
-
if (n.typeId === "app") q("1️⃣ Register module"), await
|
|
6924
|
-
else if (n.typeId === "engine") q("1️⃣ Register module"), await
|
|
6923
|
+
if (n.typeId === "app") q("1️⃣ Register module"), await Fi();
|
|
6924
|
+
else if (n.typeId === "engine") q("1️⃣ Register module"), await Ri(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Li(t);
|
|
6925
6925
|
else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required");
|
|
6926
6926
|
else {
|
|
6927
6927
|
q("1️⃣ Register module");
|
|
6928
6928
|
let r = t.id.split("-").slice(2).join("-");
|
|
6929
|
-
await
|
|
6929
|
+
await Ri(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Li(t);
|
|
6930
6930
|
}
|
|
6931
6931
|
K(`Project version '${e.version ?? "unknown"}' published.`);
|
|
6932
6932
|
} catch (e) {
|
|
6933
6933
|
console.error("❌ Error publishing project", e), process.exit(1);
|
|
6934
6934
|
}
|
|
6935
6935
|
}
|
|
6936
|
-
async function
|
|
6936
|
+
async function Xi() {
|
|
6937
6937
|
try {
|
|
6938
6938
|
G("Release Project");
|
|
6939
6939
|
let e = await W("package.json"), t = await W("config.json");
|
|
6940
|
-
await
|
|
6940
|
+
await ia("1️⃣ ", e);
|
|
6941
6941
|
let n = Vn(t.id);
|
|
6942
6942
|
switch (n.typeId) {
|
|
6943
6943
|
case "connector":
|
|
6944
|
-
t = await
|
|
6944
|
+
t = await Qi("2️⃣ ", e);
|
|
6945
6945
|
break;
|
|
6946
6946
|
case "context":
|
|
6947
|
-
t = await
|
|
6947
|
+
t = await $i("2️⃣ ", e);
|
|
6948
6948
|
break;
|
|
6949
6949
|
case "presenter":
|
|
6950
|
-
t = await
|
|
6950
|
+
t = await ea("2️⃣ ", e);
|
|
6951
6951
|
break;
|
|
6952
|
-
default: t = await
|
|
6952
|
+
default: t = await Zi("2️⃣ ", e);
|
|
6953
6953
|
}
|
|
6954
6954
|
if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
|
|
6955
6955
|
"commit",
|
|
@@ -6959,13 +6959,13 @@ async function Yi() {
|
|
|
6959
6959
|
"push",
|
|
6960
6960
|
"origin",
|
|
6961
6961
|
"main:main"
|
|
6962
|
-
]), n.typeId === "app") q("7️⃣ Register module"), await
|
|
6963
|
-
else if (n.typeId === "engine") q("7️⃣ Register module"), await
|
|
6962
|
+
]), n.typeId === "app") q("7️⃣ Register module"), await Fi();
|
|
6963
|
+
else if (n.typeId === "engine") q("7️⃣ Register module"), await Ri(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Li(t);
|
|
6964
6964
|
else if (n.uploadGroupName === void 0) q("7️⃣ Registration NOT required");
|
|
6965
6965
|
else {
|
|
6966
6966
|
q("7️⃣ Register module");
|
|
6967
6967
|
let r = t.id.split("-").slice(2).join("-");
|
|
6968
|
-
await
|
|
6968
|
+
await Ri(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Li(t);
|
|
6969
6969
|
}
|
|
6970
6970
|
if (n.publishedTo === "npm") {
|
|
6971
6971
|
let e = ".npmrc";
|
|
@@ -6984,48 +6984,48 @@ async function Yi() {
|
|
|
6984
6984
|
console.error("❌ Error releasing project", e), process.exit(1);
|
|
6985
6985
|
}
|
|
6986
6986
|
}
|
|
6987
|
-
async function
|
|
6987
|
+
async function Zi(e, t) {
|
|
6988
6988
|
q(`${e} Build project configuration`);
|
|
6989
6989
|
let n = await W("config.json");
|
|
6990
6990
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await zn("config.json", n), n;
|
|
6991
6991
|
}
|
|
6992
|
-
async function
|
|
6992
|
+
async function Qi(e, t) {
|
|
6993
6993
|
q(`${e} Build connector project configuration`);
|
|
6994
|
-
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */
|
|
6994
|
+
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Hi(xi, n);
|
|
6995
6995
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
6996
6996
|
let a = Un(r);
|
|
6997
|
-
return await
|
|
6997
|
+
return await ta(t, n, a, Ti(a));
|
|
6998
6998
|
}
|
|
6999
|
-
async function
|
|
6999
|
+
async function $i(e, t) {
|
|
7000
7000
|
q(`${e} Build context project configuration`);
|
|
7001
|
-
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */
|
|
7001
|
+
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Hi(Gi, n);
|
|
7002
7002
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7003
|
-
return await
|
|
7003
|
+
return await ta(t, n, Un(r));
|
|
7004
7004
|
}
|
|
7005
|
-
async function
|
|
7005
|
+
async function ea(e, t) {
|
|
7006
7006
|
q(`${e} Build presenter project configuration`);
|
|
7007
|
-
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */
|
|
7007
|
+
let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Hi(qi, n);
|
|
7008
7008
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
7009
|
-
return await
|
|
7009
|
+
return await ta(t, n, Un(r));
|
|
7010
7010
|
}
|
|
7011
|
-
async function
|
|
7011
|
+
async function ta(e, t, n, r) {
|
|
7012
7012
|
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;
|
|
7013
7013
|
}
|
|
7014
|
-
async function
|
|
7014
|
+
async function na() {
|
|
7015
7015
|
try {
|
|
7016
7016
|
G("Synchronise Project with GitHub");
|
|
7017
7017
|
let e = await W("package.json"), t = await W("config.json");
|
|
7018
|
-
switch (await
|
|
7018
|
+
switch (await ia("1️⃣ ", e), Vn(t.id).typeId) {
|
|
7019
7019
|
case "connector":
|
|
7020
|
-
await
|
|
7020
|
+
await Qi("2️⃣ ", e);
|
|
7021
7021
|
break;
|
|
7022
7022
|
case "context":
|
|
7023
|
-
await
|
|
7023
|
+
await $i("2️⃣ ", e);
|
|
7024
7024
|
break;
|
|
7025
7025
|
case "presenter":
|
|
7026
|
-
await
|
|
7026
|
+
await ea("2️⃣ ", e);
|
|
7027
7027
|
break;
|
|
7028
|
-
default: await
|
|
7028
|
+
default: await Zi("2️⃣ ", e);
|
|
7029
7029
|
}
|
|
7030
7030
|
await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
|
|
7031
7031
|
"commit",
|
|
@@ -7040,14 +7040,14 @@ async function ta() {
|
|
|
7040
7040
|
console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
|
|
7041
7041
|
}
|
|
7042
7042
|
}
|
|
7043
|
-
function
|
|
7043
|
+
function ra() {
|
|
7044
7044
|
try {
|
|
7045
7045
|
G("Test Project"), console.error("\n❌ No tests implemented.\n");
|
|
7046
7046
|
} catch (e) {
|
|
7047
7047
|
console.error("❌ Error testing project", e), process.exit(1);
|
|
7048
7048
|
}
|
|
7049
7049
|
}
|
|
7050
|
-
async function
|
|
7050
|
+
async function ia(e, t, n = "./") {
|
|
7051
7051
|
if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
7052
7052
|
else {
|
|
7053
7053
|
let e = t.version, n = t.version.split(".");
|
|
@@ -7056,6 +7056,6 @@ async function ra(e, t, n = "./") {
|
|
|
7056
7056
|
await zn(`${n}package.json`, t);
|
|
7057
7057
|
}
|
|
7058
7058
|
//#endregion
|
|
7059
|
-
export { Kn as auditDependencies,
|
|
7059
|
+
export { Kn as auditDependencies, Ji as buildProject, qn as checkConfigFiles, $n as checkDependencies, Mi as documentActions, ar as documentBundleSizes, Dr as documentDependencies, Ni as formatCode, Pi as lintCode, Yi as publishProject, Xi as releaseProject, na as syncProjectWithGitHub, ra as testProject, Ii as uploadDirectoryToR2 };
|
|
7060
7060
|
|
|
7061
7061
|
//# sourceMappingURL=dpuse-development.es.js.map
|