@storm-software/git-tools 2.124.31 → 2.124.33

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
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-2.124.29-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-2.124.31-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm Git Tools](#storm-git-tools)
@@ -322,30 +322,39 @@ Stacktrace: ${error.stack}`,
322
322
  // @__NO_SIDE_EFFECTS__
323
323
  function $constructor(name, initializer2, params) {
324
324
  function init(inst, def) {
325
- var _a;
326
- Object.defineProperty(inst, "_zod", {
327
- value: inst._zod ?? {},
328
- enumerable: false
329
- });
330
- (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
325
+ if (!inst._zod) {
326
+ Object.defineProperty(inst, "_zod", {
327
+ value: {
328
+ def,
329
+ constr: _,
330
+ traits: /* @__PURE__ */ new Set()
331
+ },
332
+ enumerable: false
333
+ });
334
+ }
335
+ if (inst._zod.traits.has(name)) {
336
+ return;
337
+ }
331
338
  inst._zod.traits.add(name);
332
339
  initializer2(inst, def);
333
- for (const k in _.prototype) {
334
- if (!(k in inst))
335
- Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
340
+ const proto = _.prototype;
341
+ const keys = Object.keys(proto);
342
+ for (let i = 0; i < keys.length; i++) {
343
+ const k = keys[i];
344
+ if (!(k in inst)) {
345
+ inst[k] = proto[k].bind(inst);
346
+ }
336
347
  }
337
- inst._zod.constr = _;
338
- inst._zod.def = def;
339
348
  }
340
349
  const Parent = params?.Parent ?? Object;
341
350
  class Definition extends Parent {
342
351
  }
343
352
  Object.defineProperty(Definition, "name", { value: name });
344
353
  function _(def) {
345
- var _a;
354
+ var _a2;
346
355
  const inst = params?.Parent ? new Definition() : this;
347
356
  init(inst, def);
348
- (_a = inst._zod).deferred ?? (_a.deferred = []);
357
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
349
358
  for (const fn of inst._zod.deferred) {
350
359
  fn();
351
360
  }
@@ -372,7 +381,7 @@ function config(newConfig) {
372
381
  return globalConfig;
373
382
  }
374
383
 
375
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js
384
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js
376
385
  var util_exports = {};
377
386
  __export(util_exports, {
378
387
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -430,6 +439,7 @@ __export(util_exports, {
430
439
  required: () => required,
431
440
  safeExtend: () => safeExtend,
432
441
  shallowClone: () => shallowClone,
442
+ slugify: () => slugify,
433
443
  stringifyPrimitive: () => stringifyPrimitive,
434
444
  uint8ArrayToBase64: () => uint8ArrayToBase64,
435
445
  uint8ArrayToBase64url: () => uint8ArrayToBase64url,
@@ -568,6 +578,9 @@ function randomString(length = 10) {
568
578
  function esc(str) {
569
579
  return JSON.stringify(str);
570
580
  }
581
+ function slugify(input) {
582
+ return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
583
+ }
571
584
  var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
572
585
  };
573
586
  function isObject(data) {
@@ -591,6 +604,8 @@ function isPlainObject(o) {
591
604
  const ctor = o.constructor;
592
605
  if (ctor === void 0)
593
606
  return true;
607
+ if (typeof ctor !== "function")
608
+ return true;
594
609
  const prot = ctor.prototype;
595
610
  if (isObject(prot) === false)
596
611
  return false;
@@ -907,8 +922,8 @@ function aborted(x, startIndex = 0) {
907
922
  }
908
923
  function prefixIssues(path, issues) {
909
924
  return issues.map((iss) => {
910
- var _a;
911
- (_a = iss).path ?? (_a.path = []);
925
+ var _a2;
926
+ (_a2 = iss).path ?? (_a2.path = []);
912
927
  iss.path.unshift(path);
913
928
  return iss;
914
929
  });
@@ -1004,7 +1019,7 @@ var Class = class {
1004
1019
  }
1005
1020
  };
1006
1021
 
1007
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js
1022
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/errors.js
1008
1023
  var initializer = (inst, def) => {
1009
1024
  inst.name = "$ZodError";
1010
1025
  Object.defineProperty(inst, "_zod", {
@@ -1024,7 +1039,7 @@ var initializer = (inst, def) => {
1024
1039
  var $ZodError = $constructor("$ZodError", initializer);
1025
1040
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1026
1041
 
1027
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js
1042
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/parse.js
1028
1043
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1029
1044
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1030
1045
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1075,26 +1090,23 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1075
1090
  } : { success: true, data: result.value };
1076
1091
  };
1077
1092
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1078
-
1079
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.js
1080
- var hostname = /^(?=.{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])?)*\.?$/;
1081
1093
  var string = (params) => {
1082
1094
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
1083
1095
  return new RegExp(`^${regex}$`);
1084
1096
  };
1085
1097
  var boolean = /^(?:true|false)$/i;
1086
1098
 
1087
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js
1099
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js
1088
1100
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1089
- var _a;
1101
+ var _a2;
1090
1102
  inst._zod ?? (inst._zod = {});
1091
1103
  inst._zod.def = def;
1092
- (_a = inst._zod).onattach ?? (_a.onattach = []);
1104
+ (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
1093
1105
  });
1094
1106
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
1095
- var _a;
1107
+ var _a2;
1096
1108
  $ZodCheck.init(inst, def);
1097
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1109
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1098
1110
  const val = payload.value;
1099
1111
  return !nullish(val) && val.length !== void 0;
1100
1112
  });
@@ -1123,7 +1135,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
1123
1135
  };
1124
1136
  });
1125
1137
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
1126
- var _a, _b;
1138
+ var _a2, _b;
1127
1139
  $ZodCheck.init(inst, def);
1128
1140
  inst._zod.onattach.push((inst2) => {
1129
1141
  const bag = inst2._zod.bag;
@@ -1134,7 +1146,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
1134
1146
  }
1135
1147
  });
1136
1148
  if (def.pattern)
1137
- (_a = inst._zod).check ?? (_a.check = (payload) => {
1149
+ (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
1138
1150
  def.pattern.lastIndex = 0;
1139
1151
  if (def.pattern.test(payload.value))
1140
1152
  return;
@@ -1176,16 +1188,16 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
1176
1188
  };
1177
1189
  });
1178
1190
 
1179
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.js
1191
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/versions.js
1180
1192
  var version = {
1181
1193
  major: 4,
1182
1194
  minor: 1,
1183
- patch: 12
1195
+ patch: 13
1184
1196
  };
1185
1197
 
1186
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js
1198
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js
1187
1199
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1188
- var _a;
1200
+ var _a2;
1189
1201
  inst ?? (inst = {});
1190
1202
  inst._zod.def = def;
1191
1203
  inst._zod.bag = inst._zod.bag || {};
@@ -1200,7 +1212,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1200
1212
  }
1201
1213
  }
1202
1214
  if (checks.length === 0) {
1203
- (_a = inst._zod).deferred ?? (_a.deferred = []);
1215
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
1204
1216
  inst._zod.deferred?.push(() => {
1205
1217
  inst._zod.run = inst._zod.parse;
1206
1218
  });
@@ -1330,7 +1342,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1330
1342
  code: "invalid_format",
1331
1343
  format: "url",
1332
1344
  note: "Invalid hostname",
1333
- pattern: hostname.source,
1345
+ pattern: def.hostname.source,
1334
1346
  input: payload.value,
1335
1347
  inst,
1336
1348
  continue: !def.abort
@@ -1465,7 +1477,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1465
1477
  const keySet = def.keySet;
1466
1478
  const _catchall = def.catchall._zod;
1467
1479
  const t = _catchall.def.type;
1468
- for (const key of Object.keys(input)) {
1480
+ for (const key in input) {
1469
1481
  if (keySet.has(key))
1470
1482
  continue;
1471
1483
  if (t === "never") {
@@ -1635,11 +1647,13 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1635
1647
  return payload;
1636
1648
  }
1637
1649
  const proms = [];
1638
- if (def.keyType._zod.values) {
1639
- const values = def.keyType._zod.values;
1650
+ const values = def.keyType._zod.values;
1651
+ if (values) {
1640
1652
  payload.value = {};
1653
+ const recordKeys = /* @__PURE__ */ new Set();
1641
1654
  for (const key of values) {
1642
1655
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1656
+ recordKeys.add(typeof key === "number" ? key.toString() : key);
1643
1657
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1644
1658
  if (result instanceof Promise) {
1645
1659
  proms.push(result.then((result2) => {
@@ -1658,7 +1672,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1658
1672
  }
1659
1673
  let unrecognized;
1660
1674
  for (const key in input) {
1661
- if (!values.has(key)) {
1675
+ if (!recordKeys.has(key)) {
1662
1676
  unrecognized = unrecognized ?? [];
1663
1677
  unrecognized.push(key);
1664
1678
  }
@@ -1739,11 +1753,12 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
1739
1753
  if (def.values.length === 0) {
1740
1754
  throw new Error("Cannot create literal schema with no valid values");
1741
1755
  }
1742
- inst._zod.values = new Set(def.values);
1756
+ const values = new Set(def.values);
1757
+ inst._zod.values = values;
1743
1758
  inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
1744
1759
  inst._zod.parse = (payload, _ctx) => {
1745
1760
  const input = payload.value;
1746
- if (inst._zod.values.has(input)) {
1761
+ if (values.has(input)) {
1747
1762
  return payload;
1748
1763
  }
1749
1764
  payload.issues.push({
@@ -1827,19 +1842,22 @@ function handleDefaultResult(payload, def) {
1827
1842
  }
1828
1843
  return payload;
1829
1844
  }
1845
+
1846
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/registries.js
1847
+ var _a;
1830
1848
  var $ZodRegistry = class {
1831
1849
  constructor() {
1832
1850
  this._map = /* @__PURE__ */ new WeakMap();
1833
1851
  this._idmap = /* @__PURE__ */ new Map();
1834
1852
  }
1835
1853
  add(schema, ..._meta) {
1836
- const meta = _meta[0];
1837
- this._map.set(schema, meta);
1838
- if (meta && typeof meta === "object" && "id" in meta) {
1839
- if (this._idmap.has(meta.id)) {
1840
- throw new Error(`ID ${meta.id} already exists in the registry`);
1854
+ const meta2 = _meta[0];
1855
+ this._map.set(schema, meta2);
1856
+ if (meta2 && typeof meta2 === "object" && "id" in meta2) {
1857
+ if (this._idmap.has(meta2.id)) {
1858
+ throw new Error(`ID ${meta2.id} already exists in the registry`);
1841
1859
  }
1842
- this._idmap.set(meta.id, schema);
1860
+ this._idmap.set(meta2.id, schema);
1843
1861
  }
1844
1862
  return this;
1845
1863
  }
@@ -1849,9 +1867,9 @@ var $ZodRegistry = class {
1849
1867
  return this;
1850
1868
  }
1851
1869
  remove(schema) {
1852
- const meta = this._map.get(schema);
1853
- if (meta && typeof meta === "object" && "id" in meta) {
1854
- this._idmap.delete(meta.id);
1870
+ const meta2 = this._map.get(schema);
1871
+ if (meta2 && typeof meta2 === "object" && "id" in meta2) {
1872
+ this._idmap.delete(meta2.id);
1855
1873
  }
1856
1874
  this._map.delete(schema);
1857
1875
  return this;
@@ -1873,8 +1891,9 @@ var $ZodRegistry = class {
1873
1891
  function registry() {
1874
1892
  return new $ZodRegistry();
1875
1893
  }
1894
+ (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
1876
1895
 
1877
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.js
1896
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/api.js
1878
1897
  function _string(Class2, params) {
1879
1898
  return new Class2({
1880
1899
  type: "string",
@@ -1929,7 +1948,7 @@ function _toLowerCase() {
1929
1948
  return _overwrite((input) => input.toLowerCase());
1930
1949
  }
1931
1950
 
1932
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/mini/schemas.js
1951
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/mini/schemas.js
1933
1952
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1934
1953
  if (!inst._zod)
1935
1954
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -1954,8 +1973,8 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1954
1973
  };
1955
1974
  inst.clone = (_def, params) => clone(inst, _def, params);
1956
1975
  inst.brand = () => inst;
1957
- inst.register = ((reg, meta) => {
1958
- reg.add(inst, meta);
1976
+ inst.register = ((reg, meta2) => {
1977
+ reg.add(inst, meta2);
1959
1978
  return inst;
1960
1979
  });
1961
1980
  });
@@ -3776,5 +3795,5 @@ exports.writeInfo = writeInfo;
3776
3795
  exports.writeSuccess = writeSuccess;
3777
3796
  exports.writeTrace = writeTrace;
3778
3797
  exports.writeWarning = writeWarning;
3779
- //# sourceMappingURL=chunk-F65GQVIX.cjs.map
3780
- //# sourceMappingURL=chunk-F65GQVIX.cjs.map
3798
+ //# sourceMappingURL=chunk-H6AB32CG.cjs.map
3799
+ //# sourceMappingURL=chunk-H6AB32CG.cjs.map