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