@dpuse/dpuse-development 0.3.552 → 0.3.559

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -150,7 +150,7 @@ We use the `npm` packages [license-report](https://www.npmjs.com/package/license
150
150
  - **[nanoid](https://github.com/ai/nanoid)** 5.1.15 — this month: 2026-06-20
151
151
  - **[valibot](https://github.com/open-circle/valibot)** 1.4.1 — 1 month ago: 2026-05-24
152
152
  - **[typescript](https://github.com/microsoft/TypeScript)** 6.0.3 — 2 months ago: 2026-04-16
153
- <!-- DEPENDENCY_TREE_END -->
153
+ <!-- DEPENDENCY_TREE_END -->
154
154
 
155
155
  Insert link to other document for detailed explanation. Only show messages if issues arise.
156
156
 
@@ -1,7 +1,7 @@
1
1
  import { existsSync as e, promises as t } from "node:fs";
2
2
  import n from "node:path";
3
3
  import { promisify as r } from "node:util";
4
- import { exec as i, spawn as a } from "node:child_process";
4
+ import { execFile as i, spawn as a } from "node:child_process";
5
5
  import { fileURLToPath as o } from "node:url";
6
6
  //#region \0rolldown/runtime.js
7
7
  var s = Object.defineProperty, c = /* @__PURE__ */ ((e, t) => {
@@ -5744,10 +5744,9 @@ async function jn(e, n) {
5744
5744
  return t.readdir(e, n);
5745
5745
  }
5746
5746
  async function Mn(e, n, r = [], i) {
5747
- let a = `${n} ${r.join(" ")}`;
5748
- e !== void 0 && q(`${e} - exec(${a})`);
5749
- let { stdout: o, stderr: s } = await kn(a);
5750
- i === void 0 ? o.trim() && console.log(o.trim()) : await t.writeFile(i, o.trim(), "utf8"), s.trim() && console.error(s.trim());
5747
+ e !== void 0 && q(`${e} - exec(${n} ${r.join(" ")})`);
5748
+ let { stdout: a, stderr: o } = await kn(n, r);
5749
+ i === void 0 ? a.trim() && console.log(a.trim()) : await t.writeFile(i, a.trim(), "utf8"), o.trim() && console.error(o.trim());
5751
5750
  }
5752
5751
  async function Nn(e, t, n = [], r = !1, i = !1) {
5753
5752
  return q(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
@@ -5961,7 +5960,7 @@ function er(e, t) {
5961
5960
  }
5962
5961
  async function tr(e, t) {
5963
5962
  try {
5964
- let n = await fetch(`https://registry.npmjs.org/${e.replace("/", "%2F")}`);
5963
+ let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
5965
5964
  if (n.ok) {
5966
5965
  let e = await n.json(), r = new Map(Object.entries(e["dist-tags"] ?? {})), i = new Map(Object.entries(e.time ?? {})), a = r.get("latest") ?? "", o = i.get(t) ?? "";
5967
5966
  return {
@@ -6587,7 +6586,15 @@ async function Zr(e, t) {
6587
6586
  async function n(e, t, r) {
6588
6587
  for (let i of r) {
6589
6588
  let r = `${e}/${i}`, a = `${t}/${i}`;
6590
- (await Bn(r)).isDirectory() ? await n(r, a, await jn(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Mn(void 0, `wrangler r2 object put "dpuse-sample-data-eu/${t}/${i}" --file="${e}/${i}" --jurisdiction=eu --remote`));
6589
+ (await Bn(r)).isDirectory() ? await n(r, a, await jn(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Mn(void 0, "wrangler", [
6590
+ "r2",
6591
+ "object",
6592
+ "put",
6593
+ `dpuse-sample-data-eu/${t}/${i}`,
6594
+ `--file=${e}/${i}`,
6595
+ "--jurisdiction=eu",
6596
+ "--remote"
6597
+ ]));
6591
6598
  }
6592
6599
  }
6593
6600
  let r = await jn(`${e}/${t}/`);
@@ -6608,7 +6615,17 @@ async function $r(e, t) {
6608
6615
  for (let a of i) {
6609
6616
  if (a.isDirectory()) continue;
6610
6617
  let i = `${e}/${a.name}`, o = r ? `${r}/${a.name}` : a.name, s = `${t}_${n}/${o}`.replaceAll("\\", "/"), c = a.name.endsWith(".css") ? "text/css" : "application/octet-stream", l = a.name.endsWith(".js") ? "application/javascript" : c;
6611
- console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Mn(void 0, `wrangler r2 object put "${s}" --file="${i}" --content-type ${l} --jurisdiction=eu --remote`);
6618
+ console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Mn(void 0, "wrangler", [
6619
+ "r2",
6620
+ "object",
6621
+ "put",
6622
+ s,
6623
+ `--file=${i}`,
6624
+ "--content-type",
6625
+ l,
6626
+ "--jurisdiction=eu",
6627
+ "--remote"
6628
+ ]);
6612
6629
  }
6613
6630
  }
6614
6631
  await r("dist");