@datapos/datapos-development 0.3.268 → 0.3.269

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.
@@ -1,4 +1,4 @@
1
- import { promises as Pe } from "node:fs";
1
+ import { promises as Ce } from "node:fs";
2
2
  import { nanoid as Os } from "nanoid";
3
3
  import { promisify as Rs } from "node:util";
4
4
  import { exec as Ds, spawn as Ms } from "node:child_process";
@@ -22,7 +22,7 @@ function ui(e, t) {
22
22
  }
23
23
  return !1;
24
24
  }
25
- function Ce(e, t) {
25
+ function Ae(e, t) {
26
26
  return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Fs.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e, kr);
27
27
  }
28
28
  function De(e, t) {
@@ -465,7 +465,7 @@ A.isLet = function(e) {
465
465
  return !1;
466
466
  if (r === 123 || r > 55295 && r < 56320)
467
467
  return !0;
468
- if (Ce(r, !0)) {
468
+ if (Ae(r, !0)) {
469
469
  for (var n = i + 1; De(r = this.input.charCodeAt(n), !0); )
470
470
  ++n;
471
471
  if (r === 92 || r > 55295 && r < 56320)
@@ -505,7 +505,7 @@ A.isUsingKeyword = function(e, t) {
505
505
  return !1;
506
506
  }
507
507
  var o = this.input.charCodeAt(r);
508
- return Ce(o, !0) || o === 92;
508
+ return Ae(o, !0) || o === 92;
509
509
  };
510
510
  A.isAwaitUsing = function(e) {
511
511
  return this.isUsingKeyword(!0, e);
@@ -944,8 +944,8 @@ A.isDirectiveCandidate = function(e) {
944
944
  return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && // Reject parenthesized strings.
945
945
  (this.input[e.start] === '"' || this.input[e.start] === "'");
946
946
  };
947
- var we = X.prototype;
948
- we.toAssignable = function(e, t, i) {
947
+ var Se = X.prototype;
948
+ Se.toAssignable = function(e, t, i) {
949
949
  if (this.options.ecmaVersion >= 6 && e)
950
950
  switch (e.type) {
951
951
  case "Identifier":
@@ -990,7 +990,7 @@ we.toAssignable = function(e, t, i) {
990
990
  else i && this.checkPatternErrors(i, !0);
991
991
  return e;
992
992
  };
993
- we.toAssignableList = function(e, t) {
993
+ Se.toAssignableList = function(e, t) {
994
994
  for (var i = e.length, r = 0; r < i; r++) {
995
995
  var n = e[r];
996
996
  n && this.toAssignable(n, t);
@@ -1001,15 +1001,15 @@ we.toAssignableList = function(e, t) {
1001
1001
  }
1002
1002
  return e;
1003
1003
  };
1004
- we.parseSpread = function(e) {
1004
+ Se.parseSpread = function(e) {
1005
1005
  var t = this.startNode();
1006
1006
  return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
1007
1007
  };
1008
- we.parseRestBinding = function() {
1008
+ Se.parseRestBinding = function() {
1009
1009
  var e = this.startNode();
1010
1010
  return this.next(), this.options.ecmaVersion === 6 && this.type !== p.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
1011
1011
  };
1012
- we.parseBindingAtom = function() {
1012
+ Se.parseBindingAtom = function() {
1013
1013
  if (this.options.ecmaVersion >= 6)
1014
1014
  switch (this.type) {
1015
1015
  case p.bracketL:
@@ -1020,7 +1020,7 @@ we.parseBindingAtom = function() {
1020
1020
  }
1021
1021
  return this.parseIdent();
1022
1022
  };
1023
- we.parseBindingList = function(e, t, i, r) {
1023
+ Se.parseBindingList = function(e, t, i, r) {
1024
1024
  for (var n = [], u = !0; !this.eat(e); )
1025
1025
  if (u ? u = !1 : this.expect(p.comma), t && this.type === p.comma)
1026
1026
  n.push(null);
@@ -1036,20 +1036,20 @@ we.parseBindingList = function(e, t, i, r) {
1036
1036
  }
1037
1037
  return n;
1038
1038
  };
1039
- we.parseAssignableListItem = function(e) {
1039
+ Se.parseAssignableListItem = function(e) {
1040
1040
  var t = this.parseMaybeDefault(this.start, this.startLoc);
1041
1041
  return this.parseBindingListItem(t), t;
1042
1042
  };
1043
- we.parseBindingListItem = function(e) {
1043
+ Se.parseBindingListItem = function(e) {
1044
1044
  return e;
1045
1045
  };
1046
- we.parseMaybeDefault = function(e, t, i) {
1046
+ Se.parseMaybeDefault = function(e, t, i) {
1047
1047
  if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(p.eq))
1048
1048
  return i;
1049
1049
  var r = this.startNodeAt(e, t);
1050
1050
  return r.left = i, r.right = this.parseMaybeAssign(), this.finishNode(r, "AssignmentPattern");
1051
1051
  };
1052
- we.checkLValSimple = function(e, t, i) {
1052
+ Se.checkLValSimple = function(e, t, i) {
1053
1053
  t === void 0 && (t = Mt);
1054
1054
  var r = t !== Mt;
1055
1055
  switch (e.type) {
@@ -1068,7 +1068,7 @@ we.checkLValSimple = function(e, t, i) {
1068
1068
  this.raise(e.start, (r ? "Binding" : "Assigning to") + " rvalue");
1069
1069
  }
1070
1070
  };
1071
- we.checkLValPattern = function(e, t, i) {
1071
+ Se.checkLValPattern = function(e, t, i) {
1072
1072
  switch (t === void 0 && (t = Mt), e.type) {
1073
1073
  case "ObjectPattern":
1074
1074
  for (var r = 0, n = e.properties; r < n.length; r += 1) {
@@ -1086,7 +1086,7 @@ we.checkLValPattern = function(e, t, i) {
1086
1086
  this.checkLValSimple(e, t, i);
1087
1087
  }
1088
1088
  };
1089
- we.checkLValInnerPattern = function(e, t, i) {
1089
+ Se.checkLValInnerPattern = function(e, t, i) {
1090
1090
  switch (t === void 0 && (t = Mt), e.type) {
1091
1091
  case "Property":
1092
1092
  this.checkLValInnerPattern(e.value, t, i);
@@ -2119,7 +2119,7 @@ P.regexp_eatRegExpIdentifierStart = function(e) {
2119
2119
  return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue), ln(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2120
2120
  };
2121
2121
  function ln(e) {
2122
- return Ce(e, !0) || e === 36 || e === 95;
2122
+ return Ae(e, !0) || e === 36 || e === 95;
2123
2123
  }
2124
2124
  P.regexp_eatRegExpIdentifierPart = function(e) {
2125
2125
  var t = e.pos, i = this.options.ecmaVersion >= 11, r = e.current(i);
@@ -2623,7 +2623,7 @@ j.nextToken = function() {
2623
2623
  this.readToken(this.fullCharCodeAtPos());
2624
2624
  };
2625
2625
  j.readToken = function(e) {
2626
- return Ce(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2626
+ return Ae(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2627
2627
  };
2628
2628
  j.fullCharCodeAtPos = function() {
2629
2629
  var e = this.input.charCodeAt(this.pos);
@@ -2763,7 +2763,7 @@ j.readToken_question = function() {
2763
2763
  };
2764
2764
  j.readToken_numberSign = function() {
2765
2765
  var e = this.options.ecmaVersion, t = 35;
2766
- if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Ce(t, !0) || t === 92))
2766
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Ae(t, !0) || t === 92))
2767
2767
  return this.finishToken(p.privateId, this.readWord1());
2768
2768
  this.raise(this.pos, "Unexpected character '" + Me(t) + "'");
2769
2769
  };
@@ -2911,7 +2911,7 @@ j.readRadixNumber = function(e) {
2911
2911
  var t = this.pos;
2912
2912
  this.pos += 2;
2913
2913
  var i = this.readInt(e);
2914
- return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = es(this.input.slice(t, this.pos)), ++this.pos) : Ce(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(p.num, i);
2914
+ return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = es(this.input.slice(t, this.pos)), ++this.pos) : Ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(p.num, i);
2915
2915
  };
2916
2916
  j.readNumber = function(e) {
2917
2917
  var t = this.pos;
@@ -2921,9 +2921,9 @@ j.readNumber = function(e) {
2921
2921
  var r = this.input.charCodeAt(this.pos);
2922
2922
  if (!i && !e && this.options.ecmaVersion >= 11 && r === 110) {
2923
2923
  var n = es(this.input.slice(t, this.pos));
2924
- return ++this.pos, Ce(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(p.num, n);
2924
+ return ++this.pos, Ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(p.num, n);
2925
2925
  }
2926
- i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), r === 46 && !i && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !i && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), Ce(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2926
+ i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), r === 46 && !i && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !i && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), Ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2927
2927
  var u = bn(this.input.slice(t, this.pos), i);
2928
2928
  return this.finishToken(p.num, u);
2929
2929
  };
@@ -3086,7 +3086,7 @@ j.readWord1 = function() {
3086
3086
  var u = this.pos;
3087
3087
  this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
3088
3088
  var h = this.readCodePoint();
3089
- (t ? Ce : De)(h, r) || this.invalidStringToken(u, "Invalid Unicode escape"), e += Me(h), i = this.pos;
3089
+ (t ? Ae : De)(h, r) || this.invalidStringToken(u, "Invalid Unicode escape"), e += Me(h), i = this.pos;
3090
3090
  } else
3091
3091
  break;
3092
3092
  t = !1;
@@ -3112,7 +3112,7 @@ X.acorn = {
3112
3112
  TokContext: ue,
3113
3113
  tokContexts: q,
3114
3114
  isIdentifierChar: De,
3115
- isIdentifierStart: Ce,
3115
+ isIdentifierStart: Ae,
3116
3116
  Token: Kt,
3117
3117
  isNewLine: Je,
3118
3118
  lineBreak: ce,
@@ -3140,7 +3140,7 @@ const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3140
3140
  defaultOptions: Dt,
3141
3141
  getLineInfo: vi,
3142
3142
  isIdentifierChar: De,
3143
- isIdentifierStart: Ce,
3143
+ isIdentifierStart: Ae,
3144
3144
  isNewLine: Je,
3145
3145
  keywordTypes: st,
3146
3146
  lineBreak: ce,
@@ -3319,7 +3319,7 @@ function Wi(e) {
3319
3319
  function Dn(e) {
3320
3320
  var t = {}, i = t.dts, r = i !== void 0 && i, n = t.allowSatisfies, u = n !== void 0 && n;
3321
3321
  return function(h) {
3322
- var d = h.acorn || Sn, y = Pn(d), o = d.tokTypes, w = d.keywordTypes, E = d.isIdentifierStart, D = d.lineBreak, B = d.isNewLine, H = d.tokContexts, Ee = d.isIdentifierChar, R = y.tokTypes, ne = y.tokContexts, dt = y.keywordsRegExp, Te = y.tokenIsLiteralPropertyName, xe = y.tokenIsTemplate, Ge = y.tokenIsTSDeclarationStart, U = y.tokenIsIdentifier, Ct = y.tokenIsKeywordOrIdentifier, Is = y.tokenIsTSTypeOperator;
3322
+ var d = h.acorn || Sn, y = Pn(d), o = d.tokTypes, w = d.keywordTypes, E = d.isIdentifierStart, D = d.lineBreak, B = d.isNewLine, H = d.tokContexts, Ee = d.isIdentifierChar, R = y.tokTypes, ne = y.tokContexts, dt = y.keywordsRegExp, Pe = y.tokenIsLiteralPropertyName, xe = y.tokenIsTemplate, Ge = y.tokenIsTSDeclarationStart, U = y.tokenIsIdentifier, Ct = y.tokenIsKeywordOrIdentifier, Is = y.tokenIsTSTypeOperator;
3323
3323
  function Ns(T, pe, oe) {
3324
3324
  oe === void 0 && (oe = T.length);
3325
3325
  for (var te = pe; te < oe; te++) {
@@ -3694,7 +3694,7 @@ function Dn(e) {
3694
3694
  l ? m[a] = c : Object.defineProperty(m, a, { enumerable: l, value: c });
3695
3695
  }
3696
3696
  }, f.isLiteralPropertyName = function() {
3697
- return Te(this.type);
3697
+ return Pe(this.type);
3698
3698
  }, f.hasPrecedingLineBreak = function() {
3699
3699
  return D.test(this.input.slice(this.lastTokEndLoc.index, this.start));
3700
3700
  }, f.createIdentifier = function(s, a) {
@@ -5084,10 +5084,10 @@ async function ke(e, t, i = [], r) {
5084
5084
  const n = `${t} ${i.join(" ")}`;
5085
5085
  e !== void 0 && se(`${e} - exec(${n})`);
5086
5086
  const { stdout: u, stderr: h } = await Mn(n);
5087
- r === void 0 ? u.trim() && console.log(u.trim()) : await Pe.writeFile(r, u.trim(), "utf8"), h.trim() && console.error(h.trim());
5087
+ r === void 0 ? u.trim() && console.log(u.trim()) : await Ce.writeFile(r, u.trim(), "utf8"), h.trim() && console.error(h.trim());
5088
5088
  }
5089
5089
  async function Vn(e, t) {
5090
- return Pe.readdir(e, t);
5090
+ return Ce.readdir(e, t);
5091
5091
  }
5092
5092
  async function zn() {
5093
5093
  se("Load environment variables"), (await import("dotenv")).config();
@@ -5107,11 +5107,11 @@ function se(e) {
5107
5107
  ${e}
5108
5108
  `);
5109
5109
  }
5110
- async function Ae(e) {
5111
- return JSON.parse(await Pe.readFile(e, "utf8"));
5110
+ async function we(e) {
5111
+ return JSON.parse(await Ce.readFile(e, "utf8"));
5112
5112
  }
5113
5113
  async function at(e) {
5114
- return await Pe.readFile(e, "utf8");
5114
+ return await Ce.readFile(e, "utf8");
5115
5115
  }
5116
5116
  async function Ie(e, t, i = [], r = !1) {
5117
5117
  return se(`${e} - spawn(${t} ${i.join(" ")})`), new Promise((n, u) => {
@@ -5121,10 +5121,10 @@ async function Ie(e, t, i = [], r = !1) {
5121
5121
  });
5122
5122
  }
5123
5123
  async function ot(e, t) {
5124
- await Pe.writeFile(e, JSON.stringify(t, void 0, 4), "utf8");
5124
+ await Ce.writeFile(e, JSON.stringify(t, void 0, 4), "utf8");
5125
5125
  }
5126
5126
  async function ss(e, t) {
5127
- await Pe.writeFile(e, t, "utf8");
5127
+ await Ce.writeFile(e, t, "utf8");
5128
5128
  }
5129
5129
  function li(e, t) {
5130
5130
  t(e);
@@ -6311,19 +6311,19 @@ const Io = /* @__PURE__ */ k("$ZodObject", (e, t) => {
6311
6311
  }), No = /* @__PURE__ */ k("$ZodObjectJIT", (e, t) => {
6312
6312
  Io.init(e, t);
6313
6313
  const i = e._zod.parse, r = Si(() => bs(t)), n = (D) => {
6314
- const B = new Xa(["shape", "payload", "ctx"]), H = r.value, Ee = (Te) => {
6315
- const xe = Gi(Te);
6314
+ const B = new Xa(["shape", "payload", "ctx"]), H = r.value, Ee = (Pe) => {
6315
+ const xe = Gi(Pe);
6316
6316
  return `shape[${xe}]._zod.run({ value: input[${xe}], issues: [] }, ctx)`;
6317
6317
  };
6318
6318
  B.write("const input = payload.value;");
6319
6319
  const R = /* @__PURE__ */ Object.create(null);
6320
6320
  let ne = 0;
6321
- for (const Te of H.keys)
6322
- R[Te] = `key_${ne++}`;
6321
+ for (const Pe of H.keys)
6322
+ R[Pe] = `key_${ne++}`;
6323
6323
  B.write("const newResult = {};");
6324
- for (const Te of H.keys) {
6325
- const xe = R[Te], Ge = Gi(Te);
6326
- B.write(`const ${xe} = ${Ee(Te)};`), B.write(`
6324
+ for (const Pe of H.keys) {
6325
+ const xe = R[Pe], Ge = Gi(Pe);
6326
+ B.write(`const ${xe} = ${Ee(Pe)};`), B.write(`
6327
6327
  if (${xe}.issues.length) {
6328
6328
  payload.issues = payload.issues.concat(${xe}.issues.map(iss => ({
6329
6329
  ...iss,
@@ -6344,7 +6344,7 @@ const Io = /* @__PURE__ */ k("$ZodObject", (e, t) => {
6344
6344
  }
6345
6345
  B.write("payload.value = newResult;"), B.write("return payload;");
6346
6346
  const dt = B.compile();
6347
- return (Te, xe) => dt(D, Te, xe);
6347
+ return (Pe, xe) => dt(D, Pe, xe);
6348
6348
  };
6349
6349
  let u;
6350
6350
  const h = Ft, d = !as.jitless, o = d && Un.value, w = t.catchall;
@@ -7196,9 +7196,9 @@ const Gu = (e, t) => {
7196
7196
  // enumerable: false,
7197
7197
  }
7198
7198
  });
7199
- }, Se = k("ZodError", Gu, {
7199
+ }, Te = k("ZodError", Gu, {
7200
7200
  Parent: Error
7201
- }), Ju = /* @__PURE__ */ Ai(Se), Xu = /* @__PURE__ */ Ei(Se), Qu = /* @__PURE__ */ Gt(Se), Yu = /* @__PURE__ */ Jt(Se), ec = /* @__PURE__ */ na(Se), tc = /* @__PURE__ */ aa(Se), ic = /* @__PURE__ */ oa(Se), rc = /* @__PURE__ */ ua(Se), sc = /* @__PURE__ */ ca(Se), nc = /* @__PURE__ */ ha(Se), ac = /* @__PURE__ */ pa(Se), oc = /* @__PURE__ */ la(Se), ee = /* @__PURE__ */ k("ZodType", (e, t) => (Q.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...i) => e.clone(Ye(t, {
7201
+ }), Ju = /* @__PURE__ */ Ai(Te), Xu = /* @__PURE__ */ Ei(Te), Qu = /* @__PURE__ */ Gt(Te), Yu = /* @__PURE__ */ Jt(Te), ec = /* @__PURE__ */ na(Te), tc = /* @__PURE__ */ aa(Te), ic = /* @__PURE__ */ oa(Te), rc = /* @__PURE__ */ ua(Te), sc = /* @__PURE__ */ ca(Te), nc = /* @__PURE__ */ ha(Te), ac = /* @__PURE__ */ pa(Te), oc = /* @__PURE__ */ la(Te), ee = /* @__PURE__ */ k("ZodType", (e, t) => (Q.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...i) => e.clone(Ye(t, {
7202
7202
  checks: [
7203
7203
  ...t.checks ?? [],
7204
7204
  ...i.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
@@ -7699,7 +7699,7 @@ const ih = re([g("amber"), g("green"), g("red"), g("other")]), rh = re([
7699
7699
  typeId: g("presenter")
7700
7700
  });
7701
7701
  async function Vh() {
7702
- const e = await Ae("config.json"), t = {
7702
+ const e = await we("config.json"), t = {
7703
7703
  body: JSON.stringify(e),
7704
7704
  headers: { "Content-Type": "application/json" },
7705
7705
  method: "PUT"
@@ -7707,7 +7707,7 @@ async function Vh() {
7707
7707
  if (!i.ok) throw new Error(await i.text());
7708
7708
  }
7709
7709
  async function xr() {
7710
- const e = await Ae("config.json"), t = e.id, i = {
7710
+ const e = await we("config.json"), t = e.id, i = {
7711
7711
  body: JSON.stringify(e),
7712
7712
  headers: { "Content-Type": "application/json" },
7713
7713
  method: "PUT"
@@ -7715,7 +7715,7 @@ async function xr() {
7715
7715
  if (!r.ok) throw new Error(await r.text());
7716
7716
  }
7717
7717
  async function gr(e) {
7718
- const i = `v${JSON.parse(await Pe.readFile("package.json", "utf8")).version}`;
7718
+ const i = `v${JSON.parse(await Ce.readFile("package.json", "utf8")).version}`;
7719
7719
  async function r(n, u = "") {
7720
7720
  const h = await Vn(n, { withFileTypes: !0 });
7721
7721
  for (const d of h) {
@@ -7737,7 +7737,7 @@ async function rp() {
7737
7737
  async function sp() {
7738
7738
  try {
7739
7739
  Oe("Release Project");
7740
- const e = await Ae("package.json"), t = await Ae("config.json");
7740
+ const e = await we("package.json"), t = await we("config.json");
7741
7741
  await Es("1️⃣", e);
7742
7742
  const i = Uh(e);
7743
7743
  switch (i) {
@@ -7774,7 +7774,7 @@ async function sp() {
7774
7774
  async function np() {
7775
7775
  try {
7776
7776
  Oe("Synchronise Project with GitHub");
7777
- const e = await Ae("package.json");
7777
+ const e = await we("package.json");
7778
7778
  se("Bump project version"), await Es("1️⃣", e), await ke("2️⃣ Stage changes", "git", ["add", "."]), await ke("3️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await ke("4️⃣ Push changes", "git", ["push", "origin", "main:main"]), $e(`Project version '${e.version}' synchronised with GitHub.`);
7779
7779
  } catch (e) {
7780
7780
  console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
@@ -7791,12 +7791,12 @@ function ap() {
7791
7791
  }
7792
7792
  async function zh(e, t) {
7793
7793
  se(`${e} Build project configuration`);
7794
- const i = await Ae("config.json");
7794
+ const i = await we("config.json");
7795
7795
  t.name != null && (i.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (i.version = t.version), await ot("config.json", i);
7796
7796
  }
7797
7797
  async function jh(e, t) {
7798
7798
  se(`${e} Build connector project configuration`);
7799
- const [i, r] = await Promise.all([Ae("config.json"), at("src/index.ts")]), n = yh.safeParse(i);
7799
+ const [i, r] = await Promise.all([we("config.json"), at("src/index.ts")]), n = yh.safeParse(i);
7800
7800
  if (!n.success) {
7801
7801
  console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
7802
7802
  return;
@@ -7806,7 +7806,7 @@ async function jh(e, t) {
7806
7806
  }
7807
7807
  async function $h(e, t) {
7808
7808
  se(`${e} Build context project configuration`);
7809
- const [i, r] = await Promise.all([Ae("config.json"), at("src/index.ts")]), n = Ph.safeParse(i);
7809
+ const [i, r] = await Promise.all([we("config.json"), at("src/index.ts")]), n = Ph.safeParse(i);
7810
7810
  if (!n.success) {
7811
7811
  console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
7812
7812
  return;
@@ -7816,7 +7816,7 @@ async function $h(e, t) {
7816
7816
  }
7817
7817
  async function Fh(e, t) {
7818
7818
  se(`${e} Build presenter project configuration`);
7819
- const [i, r] = await Promise.all([Ae("config.json"), at("src/index.ts")]), n = Mh.safeParse(i);
7819
+ const [i, r] = await Promise.all([we("config.json"), at("src/index.ts")]), n = Mh.safeParse(i);
7820
7820
  if (!n.success) {
7821
7821
  console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
7822
7822
  return;
@@ -7882,7 +7882,7 @@ async function op() {
7882
7882
  }
7883
7883
  async function Kh(e) {
7884
7884
  se(`${e} Insert OWASP Badge(s) into 'README.md'`);
7885
- const t = await Ae("./dependency-check-reports/dependency-check-report.json"), i = { critical: 0, high: 0, moderate: 0, low: 0, unknown: 0 };
7885
+ const t = await we("./dependency-check-reports/dependency-check-report.json"), i = { critical: 0, high: 0, moderate: 0, low: 0, unknown: 0 };
7886
7886
  for (const o of t.dependencies)
7887
7887
  if (o.vulnerabilities != null)
7888
7888
  for (const w of o.vulnerabilities) {
@@ -7902,7 +7902,7 @@ async function Kh(e) {
7902
7902
  await ss("README.md", y), console.info("OWASP audit badge(s) inserted into 'README.md'");
7903
7903
  }
7904
7904
  async function Gh(e) {
7905
- const t = await Ae("config.json"), i = [];
7905
+ const t = await we("config.json"), i = [];
7906
7906
  if (Object.values(e).reduce((n, u) => n + u, 0) === 0)
7907
7907
  console.info("No vulnerabilities found."), i.push(`[![OWASP](https://img.shields.io/badge/OWASP-passed-4CAF50)](https://data-positioning.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
7908
7908
  else
@@ -7925,18 +7925,18 @@ const _r = "<!-- DEPENDENCY_LICENSES_START -->", Jh = "<!-- DEPENDENCY_LICENSES_
7925
7925
  async function cp(e = [], t = !0) {
7926
7926
  try {
7927
7927
  Oe("Document Dependencies");
7928
- const i = e.flatMap((r) => ["--allowed", r]);
7928
+ const i = await we("package.json"), r = e.flatMap((n) => ["--allowed", n]);
7929
7929
  await ke(
7930
7930
  "1️⃣ Generate 'licenses.json' file",
7931
7931
  "license-report",
7932
- ["--only=prod,peer", "--output=json", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
7932
+ ["--only=prod,peer", "--output=json", `--project=${i.name}`, "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
7933
7933
  "licenses.json"
7934
- ), await ke("2️⃣ Generate 'licenses.md' file", "license-report", ["--config", "license-report-config.json", "--only=prod,peer", "--output=markdown"], "licenses.md"), await ke("3️⃣ Check 'licenses.json' file", "license-report-check", ["--source", "./licenses.json", "--output=table", ...i]), t ? (await ke(
7934
+ ), await ke("2️⃣ Generate 'licenses.md' file", "license-report", ["--config", "license-report-config.json", "--only=prod,peer", "--output=markdown"], "licenses.md"), await ke("3️⃣ Check 'licenses.json' file", "license-report-check", ["--source", "./licenses.json", "--output=table", ...r]), t ? (await ke(
7935
7935
  "4️⃣ Generate 'licenseTree.json' file",
7936
7936
  "license-report-recursive",
7937
7937
  ["--only=prod,peer", "--output=tree", " --recurse", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
7938
7938
  "licenseTree.json"
7939
- ), await ke("5️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "./licenseTree.json", "--output=table", ...i])) : (se("4️⃣ Skip 'licenseTree.json' file generate"), se("5️⃣ Skip 'licenseTree.json' file check")), await Xh("6️⃣"), $e("Dependencies documented.");
7939
+ ), await ke("5️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "./licenseTree.json", "--output=table", ...r])) : (se("4️⃣ Skip 'licenseTree.json' file generate"), se("5️⃣ Skip 'licenseTree.json' file check")), await Xh("6️⃣"), $e("Dependencies documented.");
7940
7940
  } catch (i) {
7941
7941
  console.error("❌ Error documenting dependencies.", i), process.exit(1);
7942
7942
  }
@@ -7991,9 +7991,9 @@ async function fp(e) {
7991
7991
  for (const y of u) {
7992
7992
  const o = `${n}/${y}`;
7993
7993
  try {
7994
- const w = await Pe.stat(o);
7994
+ const w = await Ce.stat(o);
7995
7995
  if (w.isDirectory()) {
7996
- const E = await Pe.readdir(o), D = { childCount: E.length, name: y, typeId: "folder" };
7996
+ const E = await Ce.readdir(o), D = { childCount: E.length, name: y, typeId: "folder" };
7997
7997
  h.push(D), await i(o, E);
7998
7998
  } else {
7999
7999
  const E = { id: Os(), lastModifiedAt: w.mtimeMs, name: y, size: w.size, typeId: "object" };
@@ -8008,8 +8008,8 @@ async function fp(e) {
8008
8008
  return w === 0 ? y.name.localeCompare(o.name) : w;
8009
8009
  });
8010
8010
  }
8011
- const r = await Pe.readdir(`public/${e}`);
8012
- await i(`public/${e}`, r), await Pe.writeFile(`./public/${e}Index.json`, JSON.stringify(t), "utf8"), console.info("✅ Public directory index built.");
8011
+ const r = await Ce.readdir(`public/${e}`);
8012
+ await i(`public/${e}`, r), await Ce.writeFile(`./public/${e}Index.json`, JSON.stringify(t), "utf8"), console.info("✅ Public directory index built.");
8013
8013
  } catch (t) {
8014
8014
  console.error("❌ Error building public directory index.", t);
8015
8015
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.268",
3
+ "version": "0.3.269",
4
4
  "description": "A library of utilities for managing the Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",