@datapos/datapos-development 0.3.79 → 0.3.81

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.
@@ -291,13 +291,13 @@ function Sn(n, t) {
291
291
  return (o = e).path ?? (o.path = []), e.path.unshift(n), e;
292
292
  });
293
293
  }
294
- function D(n) {
294
+ function R(n) {
295
295
  return typeof n == "string" ? n : n?.message;
296
296
  }
297
297
  function j(n, t, e) {
298
298
  const o = { ...n, path: n.path ?? [] };
299
299
  if (!n.message) {
300
- const r = D(n.inst?._zod.def?.error?.(n)) ?? D(t?.error?.(n)) ?? D(e.customError?.(n)) ?? D(e.localeError?.(n)) ?? "Invalid input";
300
+ const r = R(n.inst?._zod.def?.error?.(n)) ?? R(t?.error?.(n)) ?? R(e.customError?.(n)) ?? R(e.localeError?.(n)) ?? "Invalid input";
301
301
  o.message = r;
302
302
  }
303
303
  return delete o.inst, delete o.continue, t?.reportInput || delete o.input, o;
@@ -401,7 +401,7 @@ const rn = (n) => (t, e, o, r) => {
401
401
  function Tt() {
402
402
  return new RegExp(It, "u");
403
403
  }
404
- const Nt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ft = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Ct = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Jt = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Dt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Tn = /^[A-Za-z0-9_-]*$/, Rt = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Ut = /^\+(?:[0-9]){6,14}[0-9]$/, Nn = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Vt = /* @__PURE__ */ new RegExp(`^${Nn}$`);
404
+ const Nt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ft = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Ct = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Jt = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Rt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Tn = /^[A-Za-z0-9_-]*$/, Dt = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Ut = /^\+(?:[0-9]){6,14}[0-9]$/, Nn = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Vt = /* @__PURE__ */ new RegExp(`^${Nn}$`);
405
405
  function Fn(n) {
406
406
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
407
407
  return typeof n.precision == "number" ? n.precision === -1 ? `${t}` : n.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${n.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
@@ -726,7 +726,7 @@ const ie = {
726
726
  code: "invalid_format",
727
727
  format: "url",
728
728
  note: "Invalid hostname",
729
- pattern: Rt.source,
729
+ pattern: Dt.source,
730
730
  input: e.value,
731
731
  inst: n,
732
732
  continue: !t.abort
@@ -834,7 +834,7 @@ function Cn(n) {
834
834
  }
835
835
  }
836
836
  const Ze = /* @__PURE__ */ a("$ZodBase64", (n, t) => {
837
- t.pattern ?? (t.pattern = Dt), v.init(n, t), n._zod.onattach.push((e) => {
837
+ t.pattern ?? (t.pattern = Rt), v.init(n, t), n._zod.onattach.push((e) => {
838
838
  e._zod.bag.contentEncoding = "base64";
839
839
  }), n._zod.check = (e) => {
840
840
  Cn(e.value) || e.issues.push({
@@ -943,7 +943,7 @@ function Jn(n) {
943
943
  optionalKeys: new Set(e)
944
944
  };
945
945
  }
946
- function Dn(n, t, e, o, r, i) {
946
+ function Rn(n, t, e, o, r, i) {
947
947
  const s = [], c = r.keySet, u = r.catchall._zod, d = u.def.type;
948
948
  for (const l of Object.keys(t)) {
949
949
  if (c.has(l))
@@ -1005,7 +1005,7 @@ const Te = /* @__PURE__ */ a("$ZodObject", (n, t) => {
1005
1005
  const m = l[p]._zod.run({ value: u[p], issues: [] }, c);
1006
1006
  m instanceof Promise ? d.push(m.then((z) => W(z, s, p, u))) : W(m, s, p, u);
1007
1007
  }
1008
- return r ? Dn(d, u, s, c, e.value, n) : d.length ? Promise.all(d).then(() => s) : s;
1008
+ return r ? Rn(d, u, s, c, e.value, n) : d.length ? Promise.all(d).then(() => s) : s;
1009
1009
  };
1010
1010
  }), Ne = /* @__PURE__ */ a("$ZodObjectJIT", (n, t) => {
1011
1011
  Te.init(n, t);
@@ -1051,7 +1051,7 @@ const Te = /* @__PURE__ */ a("$ZodObject", (n, t) => {
1051
1051
  n._zod.parse = (p, m) => {
1052
1052
  l ?? (l = o.value);
1053
1053
  const z = p.value;
1054
- return s(z) ? c && u && m?.async === !1 && m.jitless !== !0 ? (i || (i = r(t.shape)), p = i(p, m), d ? Dn([], z, p, m, l, n) : p) : e(p, m) : (p.issues.push({
1054
+ return s(z) ? c && u && m?.async === !1 && m.jitless !== !0 ? (i || (i = r(t.shape)), p = i(p, m), d ? Rn([], z, p, m, l, n) : p) : e(p, m) : (p.issues.push({
1055
1055
  expected: "object",
1056
1056
  code: "invalid_type",
1057
1057
  input: z,
@@ -1163,7 +1163,7 @@ const Je = /* @__PURE__ */ a("$ZodEnum", (n, t) => {
1163
1163
  inst: n
1164
1164
  }), r;
1165
1165
  };
1166
- }), De = /* @__PURE__ */ a("$ZodTransform", (n, t) => {
1166
+ }), Re = /* @__PURE__ */ a("$ZodTransform", (n, t) => {
1167
1167
  _.init(n, t), n._zod.parse = (e, o) => {
1168
1168
  if (o.direction === "backward")
1169
1169
  throw new On(n.constructor.name);
@@ -1178,7 +1178,7 @@ const Je = /* @__PURE__ */ a("$ZodEnum", (n, t) => {
1178
1178
  function mn(n, t) {
1179
1179
  return n.issues.length && t === void 0 ? { issues: [], value: void 0 } : n;
1180
1180
  }
1181
- const Re = /* @__PURE__ */ a("$ZodOptional", (n, t) => {
1181
+ const De = /* @__PURE__ */ a("$ZodOptional", (n, t) => {
1182
1182
  _.init(n, t), n._zod.optin = "optional", n._zod.optout = "optional", g(n._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), g(n._zod, "pattern", () => {
1183
1183
  const e = t.innerType._zod.pattern;
1184
1184
  return e ? new RegExp(`^(${en(e.source)})?$`) : void 0;
@@ -1249,13 +1249,13 @@ const Me = /* @__PURE__ */ a("$ZodCatch", (n, t) => {
1249
1249
  _.init(n, t), g(n._zod, "values", () => t.in._zod.values), g(n._zod, "optin", () => t.in._zod.optin), g(n._zod, "optout", () => t.out._zod.optout), g(n._zod, "propValues", () => t.in._zod.propValues), n._zod.parse = (e, o) => {
1250
1250
  if (o.direction === "backward") {
1251
1251
  const i = t.out._zod.run(e, o);
1252
- return i instanceof Promise ? i.then((s) => R(s, t.in, o)) : R(i, t.in, o);
1252
+ return i instanceof Promise ? i.then((s) => D(s, t.in, o)) : D(i, t.in, o);
1253
1253
  }
1254
1254
  const r = t.in._zod.run(e, o);
1255
- return r instanceof Promise ? r.then((i) => R(i, t.out, o)) : R(r, t.out, o);
1255
+ return r instanceof Promise ? r.then((i) => D(i, t.out, o)) : D(r, t.out, o);
1256
1256
  };
1257
1257
  });
1258
- function R(n, t, e) {
1258
+ function D(n, t, e) {
1259
1259
  return n.issues.length ? (n.aborted = !0, n) : t._zod.run({ value: n.value, issues: n.issues }, e);
1260
1260
  }
1261
1261
  const Ke = /* @__PURE__ */ a("$ZodReadonly", (n, t) => {
@@ -1584,7 +1584,7 @@ function Zo(n, t) {
1584
1584
  ...f(t)
1585
1585
  });
1586
1586
  }
1587
- function Rn(n, t) {
1587
+ function Dn(n, t) {
1588
1588
  return new Gt({
1589
1589
  check: "max_length",
1590
1590
  ...f(t),
@@ -1688,7 +1688,7 @@ function Co(n, t, e) {
1688
1688
  });
1689
1689
  }
1690
1690
  function Jo(n) {
1691
- const t = Do((e) => (e.addIssue = (o) => {
1691
+ const t = Ro((e) => (e.addIssue = (o) => {
1692
1692
  if (typeof o == "string")
1693
1693
  e.issues.push(C(o, e.value, t._zod.def));
1694
1694
  else {
@@ -1698,18 +1698,18 @@ function Jo(n) {
1698
1698
  }, n(e.value, e)));
1699
1699
  return t;
1700
1700
  }
1701
- function Do(n, t) {
1701
+ function Ro(n, t) {
1702
1702
  const e = new $({
1703
1703
  check: "custom",
1704
1704
  ...f(t)
1705
1705
  });
1706
1706
  return e._zod.check = n, e;
1707
1707
  }
1708
- const Ro = /* @__PURE__ */ a("ZodISODateTime", (n, t) => {
1708
+ const Do = /* @__PURE__ */ a("ZodISODateTime", (n, t) => {
1709
1709
  ve.init(n, t), y.init(n, t);
1710
1710
  });
1711
1711
  function Uo(n) {
1712
- return wo(Ro, n);
1712
+ return wo(Do, n);
1713
1713
  }
1714
1714
  const Vo = /* @__PURE__ */ a("ZodISODate", (n, t) => {
1715
1715
  ye.init(n, t), y.init(n, t);
@@ -1765,7 +1765,7 @@ const Go = (n, t) => {
1765
1765
  ...t.checks ?? [],
1766
1766
  ...e.map((o) => typeof o == "function" ? { _zod: { check: o, def: { check: "custom" }, onattach: [] } } : o)
1767
1767
  ]
1768
- })), n.clone = (e, o) => O(n, e, o), n.brand = () => n, n.register = (e, o) => (e.add(n, o), n), n.parse = (e, o) => Ho(n, e, o, { callee: n.parse }), n.safeParse = (e, o) => Yo(n, e, o), n.parseAsync = async (e, o) => qo(n, e, o, { callee: n.parseAsync }), n.safeParseAsync = async (e, o) => Xo(n, e, o), n.spa = n.safeParseAsync, n.encode = (e, o) => Qo(n, e, o), n.decode = (e, o) => nr(n, e, o), n.encodeAsync = async (e, o) => tr(n, e, o), n.decodeAsync = async (e, o) => er(n, e, o), n.safeEncode = (e, o) => or(n, e, o), n.safeDecode = (e, o) => rr(n, e, o), n.safeEncodeAsync = async (e, o) => ir(n, e, o), n.safeDecodeAsync = async (e, o) => sr(n, e, o), n.refine = (e, o) => n.check(Hr(e, o)), n.superRefine = (e) => n.check(qr(e)), n.overwrite = (e) => n.check(J(e)), n.optional = () => bn(n), n.nullable = () => kn(n), n.nullish = () => bn(kn(n)), n.nonoptional = (e) => Vr(n, e), n.array = () => Er(n), n.or = (e) => Ar([n, e]), n.and = (e) => Tr(n, e), n.transform = (e) => $n(n, Fr(e)), n.default = (e) => Dr(n, e), n.prefault = (e) => Ur(n, e), n.catch = (e) => Wr(n, e), n.pipe = (e) => $n(n, e), n.readonly = () => Kr(n), n.describe = (e) => {
1768
+ })), n.clone = (e, o) => O(n, e, o), n.brand = () => n, n.register = (e, o) => (e.add(n, o), n), n.parse = (e, o) => Ho(n, e, o, { callee: n.parse }), n.safeParse = (e, o) => Yo(n, e, o), n.parseAsync = async (e, o) => qo(n, e, o, { callee: n.parseAsync }), n.safeParseAsync = async (e, o) => Xo(n, e, o), n.spa = n.safeParseAsync, n.encode = (e, o) => Qo(n, e, o), n.decode = (e, o) => nr(n, e, o), n.encodeAsync = async (e, o) => tr(n, e, o), n.decodeAsync = async (e, o) => er(n, e, o), n.safeEncode = (e, o) => or(n, e, o), n.safeDecode = (e, o) => rr(n, e, o), n.safeEncodeAsync = async (e, o) => ir(n, e, o), n.safeDecodeAsync = async (e, o) => sr(n, e, o), n.refine = (e, o) => n.check(Hr(e, o)), n.superRefine = (e) => n.check(qr(e)), n.overwrite = (e) => n.check(J(e)), n.optional = () => bn(n), n.nullable = () => kn(n), n.nullish = () => bn(kn(n)), n.nonoptional = (e) => Vr(n, e), n.array = () => Er(n), n.or = (e) => Ar([n, e]), n.and = (e) => Tr(n, e), n.transform = (e) => $n(n, Fr(e)), n.default = (e) => Rr(n, e), n.prefault = (e) => Ur(n, e), n.catch = (e) => Wr(n, e), n.pipe = (e) => $n(n, e), n.readonly = () => Kr(n), n.describe = (e) => {
1769
1769
  const o = n.clone();
1770
1770
  return U.add(o, { description: e }), o;
1771
1771
  }, Object.defineProperty(n, "description", {
@@ -1781,7 +1781,7 @@ const Go = (n, t) => {
1781
1781
  }, n.isOptional = () => n.safeParse(void 0).success, n.isNullable = () => n.safeParse(null).success, n)), Vn = /* @__PURE__ */ a("_ZodString", (n, t) => {
1782
1782
  an.init(n, t), w.init(n, t);
1783
1783
  const e = n._zod.bag;
1784
- n.format = e.format ?? null, n.minLength = e.minimum ?? null, n.maxLength = e.maximum ?? null, n.regex = (...o) => n.check(Oo(...o)), n.includes = (...o) => n.check(Eo(...o)), n.startsWith = (...o) => n.check(So(...o)), n.endsWith = (...o) => n.check(Po(...o)), n.min = (...o) => n.check(M(...o)), n.max = (...o) => n.check(Rn(...o)), n.length = (...o) => n.check(Un(...o)), n.nonempty = (...o) => n.check(M(1, ...o)), n.lowercase = (o) => n.check(xo(o)), n.uppercase = (o) => n.check(jo(o)), n.trim = () => n.check(Io()), n.normalize = (...o) => n.check(Ao(...o)), n.toLowerCase = () => n.check(To()), n.toUpperCase = () => n.check(No());
1784
+ n.format = e.format ?? null, n.minLength = e.minimum ?? null, n.maxLength = e.maximum ?? null, n.regex = (...o) => n.check(Oo(...o)), n.includes = (...o) => n.check(Eo(...o)), n.startsWith = (...o) => n.check(So(...o)), n.endsWith = (...o) => n.check(Po(...o)), n.min = (...o) => n.check(M(...o)), n.max = (...o) => n.check(Dn(...o)), n.length = (...o) => n.check(Un(...o)), n.nonempty = (...o) => n.check(M(1, ...o)), n.lowercase = (o) => n.check(xo(o)), n.uppercase = (o) => n.check(jo(o)), n.trim = () => n.check(Io()), n.normalize = (...o) => n.check(Ao(...o)), n.toLowerCase = () => n.check(To()), n.toUpperCase = () => n.check(No());
1785
1785
  }), ar = /* @__PURE__ */ a("ZodString", (n, t) => {
1786
1786
  an.init(n, t), Vn.init(n, t), n.email = (e) => n.check(Xe(cr, e)), n.url = (e) => n.check(oo(ur, e)), n.jwt = (e) => n.check(_o($r, e)), n.emoji = (e) => n.check(ro(dr, e)), n.guid = (e) => n.check(wn(zn, e)), n.uuid = (e) => n.check(Qe(V, e)), n.uuidv4 = (e) => n.check(no(V, e)), n.uuidv6 = (e) => n.check(to(V, e)), n.uuidv7 = (e) => n.check(eo(V, e)), n.nanoid = (e) => n.check(io(fr, e)), n.guid = (e) => n.check(wn(zn, e)), n.cuid = (e) => n.check(so(lr, e)), n.cuid2 = (e) => n.check(ao(pr, e)), n.ulid = (e) => n.check(co(hr, e)), n.base64 = (e) => n.check(go(zr, e)), n.base64url = (e) => n.check(vo(br, e)), n.xid = (e) => n.check(uo(mr, e)), n.ksuid = (e) => n.check(fo(gr, e)), n.ipv4 = (e) => n.check(lo(vr, e)), n.ipv6 = (e) => n.check(po(yr, e)), n.cidrv4 = (e) => n.check(ho(_r, e)), n.cidrv6 = (e) => n.check(mo(wr, e)), n.e164 = (e) => n.check(yo(kr, e)), n.datetime = (e) => n.check(Uo(e)), n.date = (e) => n.check(Lo(e)), n.time = (e) => n.check(Mo(e)), n.duration = (e) => n.check(Ko(e));
1787
1787
  });
@@ -1841,7 +1841,7 @@ function xr(n) {
1841
1841
  return Zo(Or, n);
1842
1842
  }
1843
1843
  const jr = /* @__PURE__ */ a("ZodArray", (n, t) => {
1844
- Ie.init(n, t), w.init(n, t), n.element = t.element, n.min = (e, o) => n.check(M(e, o)), n.nonempty = (e) => n.check(M(1, e)), n.max = (e, o) => n.check(Rn(e, o)), n.length = (e, o) => n.check(Un(e, o)), n.unwrap = () => n.element;
1844
+ Ie.init(n, t), w.init(n, t), n.element = t.element, n.min = (e, o) => n.check(M(e, o)), n.nonempty = (e) => n.check(M(1, e)), n.max = (e, o) => n.check(Dn(e, o)), n.length = (e, o) => n.check(Un(e, o)), n.unwrap = () => n.element;
1845
1845
  });
1846
1846
  function Er(n, t) {
1847
1847
  return Fo(jr, n, t);
@@ -1917,7 +1917,7 @@ function Wn(n, t) {
1917
1917
  });
1918
1918
  }
1919
1919
  const Nr = /* @__PURE__ */ a("ZodTransform", (n, t) => {
1920
- De.init(n, t), w.init(n, t), n._zod.parse = (e, o) => {
1920
+ Re.init(n, t), w.init(n, t), n._zod.parse = (e, o) => {
1921
1921
  if (o.direction === "backward")
1922
1922
  throw new On(n.constructor.name);
1923
1923
  e.addIssue = (i) => {
@@ -1939,7 +1939,7 @@ function Fr(n) {
1939
1939
  });
1940
1940
  }
1941
1941
  const Mn = /* @__PURE__ */ a("ZodOptional", (n, t) => {
1942
- Re.init(n, t), w.init(n, t), n.unwrap = () => n._zod.def.innerType;
1942
+ De.init(n, t), w.init(n, t), n.unwrap = () => n._zod.def.innerType;
1943
1943
  });
1944
1944
  function bn(n) {
1945
1945
  return new Mn({
@@ -1959,7 +1959,7 @@ function kn(n) {
1959
1959
  const Jr = /* @__PURE__ */ a("ZodDefault", (n, t) => {
1960
1960
  Ve.init(n, t), w.init(n, t), n.unwrap = () => n._zod.def.innerType, n.removeDefault = n.unwrap;
1961
1961
  });
1962
- function Dr(n, t) {
1962
+ function Rr(n, t) {
1963
1963
  return new Jr({
1964
1964
  type: "default",
1965
1965
  innerType: n,
@@ -1968,11 +1968,11 @@ function Dr(n, t) {
1968
1968
  }
1969
1969
  });
1970
1970
  }
1971
- const Rr = /* @__PURE__ */ a("ZodPrefault", (n, t) => {
1971
+ const Dr = /* @__PURE__ */ a("ZodPrefault", (n, t) => {
1972
1972
  Le.init(n, t), w.init(n, t), n.unwrap = () => n._zod.def.innerType;
1973
1973
  });
1974
1974
  function Ur(n, t) {
1975
- return new Rr({
1975
+ return new Dr({
1976
1976
  type: "prefault",
1977
1977
  innerType: n,
1978
1978
  get defaultValue() {
@@ -2177,7 +2177,7 @@ async function li(n, t) {
2177
2177
  const p = await h.readdir(u);
2178
2178
  await e(u, d, p);
2179
2179
  } else {
2180
- console.info(`⚙️ Uploading '${r}/${c}'.`);
2180
+ console.info(`⚙️ Uploading '${r}/${c}'...`);
2181
2181
  const p = `wrangler r2 object put "datapos-sample-data-eu/${i}/${c}" --file="${r}/${c}" --jurisdiction=eu --remote`, m = await N(p);
2182
2182
  if (m.stderr) throw new Error(m.stderr);
2183
2183
  }
@@ -2203,26 +2203,27 @@ async function pi() {
2203
2203
  console.error("❌ Error uploading module configuration.", n);
2204
2204
  }
2205
2205
  }
2206
- async function hi(n, t) {
2206
+ async function hi(n) {
2207
2207
  try {
2208
2208
  console.info("🚀 Uploading module to R2...");
2209
- const o = `v${JSON.parse(await h.readFile("package.json", "utf8")).version}`;
2210
- async function r(i, s = "") {
2211
- const c = await h.readdir(i, { withFileTypes: !0 });
2212
- for (const u of c) {
2213
- const d = `${i}/${u.name}`, l = s ? `${s}/${u.name}` : u.name;
2214
- if (u.isDirectory())
2215
- await r(d, l);
2209
+ const e = `v${JSON.parse(await h.readFile("package.json", "utf8")).version}`;
2210
+ async function o(r, i = "") {
2211
+ const s = await h.readdir(r, { withFileTypes: !0 });
2212
+ for (const c of s) {
2213
+ const u = `${r}/${c.name}`, d = i ? `${i}/${c.name}` : c.name;
2214
+ if (c.isDirectory())
2215
+ await o(u, d);
2216
2216
  else {
2217
- const p = `${t}/${o}/${l}`.replace(/\\/g, "/"), m = u.name.endsWith(".js") ? "application/javascript" : u.name.endsWith(".css") ? "text/css" : "application/octet-stream", { stderr: z } = await N(`wrangler r2 object put "${p}" --file="${d}" --content-type ${m} --jurisdiction=eu --remote`);
2218
- if (z) throw new Error(z);
2219
- console.info(`✅ Uploaded ${l} ${p}`);
2217
+ const l = `${n}/${e}/${d}`.replace(/\\/g, "/"), p = c.name.endsWith(".js") ? "application/javascript" : c.name.endsWith(".css") ? "text/css" : "application/octet-stream";
2218
+ console.info(`⚙️ Uploading '${d}' → '${l}'...`);
2219
+ const { stderr: m } = await N(`wrangler r2 object put "${l}" --file="${u}" --content-type ${p} --jurisdiction=eu --remote`);
2220
+ if (m) throw new Error(m);
2220
2221
  }
2221
2222
  }
2222
2223
  }
2223
- await r("dist"), console.info("✅ Module uploaded to R2.");
2224
- } catch (e) {
2225
- console.error("❌ Error uploading module to R2.", e);
2224
+ await o("dist"), console.info("✅ Module uploaded to R2.");
2225
+ } catch (t) {
2226
+ console.error("❌ Error uploading module to R2.", t);
2226
2227
  }
2227
2228
  }
2228
2229
  export {
@@ -13,5 +13,5 @@ declare function sendDeploymentNotice(): Promise<void>;
13
13
  declare function syncWithGitHub(): Promise<void>;
14
14
  declare function uploadDirectoryToR2(sourceDirectory: string, uploadDirectory: string): Promise<void>;
15
15
  declare function uploadModuleConfigToDO(): Promise<void>;
16
- declare function uploadModuleToR2(distDir: string, presenterDir: string): Promise<void>;
16
+ declare function uploadModuleToR2(uploadDirPath: string): Promise<void>;
17
17
  export { buildConfig, buildConnectorConfig, buildContextConfig, buildInformerConfig, buildPresenterConfig, buildPublicDirectoryIndex, bumpVersion, echoScriptNotImplemented, sendDeploymentNotice, syncWithGitHub, uploadDirectoryToR2, uploadModuleConfigToDO, uploadModuleToR2 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.79",
3
+ "version": "0.3.81",
4
4
  "description": "A TypeScript library of utilities for managing the Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",