@storm-software/unbuild 0.23.1 → 0.23.2

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.
Files changed (58) hide show
  1. package/README.md +1 -1
  2. package/bin/unbuild.js +47614 -7629
  3. package/bin/unbuild.mjs +47605 -7624
  4. package/dist/build.js +14 -7
  5. package/dist/build.mjs +13 -6
  6. package/dist/chunk-26H2BQTK.mjs +2446 -0
  7. package/dist/{chunk-T5JY3PDF.js → chunk-27VOTZLA.js} +6 -3
  8. package/dist/chunk-45FJ3WQ6.js +7528 -0
  9. package/dist/chunk-4HFICKAT.js +451 -0
  10. package/dist/chunk-4IU7LXNH.mjs +4054 -0
  11. package/dist/{chunk-K7L2WB3G.mjs → chunk-4QTKZ7Y7.mjs} +4 -1
  12. package/dist/chunk-AMTVM7UD.js +4054 -0
  13. package/dist/{chunk-SLC5BBLC.js → chunk-D4WJVAJM.js} +5 -3
  14. package/dist/chunk-DIRFSBOA.mjs +84 -0
  15. package/dist/chunk-EGCWTBMT.mjs +1120 -0
  16. package/dist/chunk-EKTZK3IJ.mjs +765 -0
  17. package/dist/chunk-FAXWFK7Q.mjs +7528 -0
  18. package/dist/chunk-J3DIENOH.mjs +3056 -0
  19. package/dist/{chunk-67M6JMGM.mjs → chunk-JLKG5B52.mjs} +3 -1
  20. package/dist/chunk-K5SQO3GD.mjs +451 -0
  21. package/dist/{chunk-TAHELANG.js → chunk-L76UPCDF.js} +4 -2
  22. package/dist/chunk-NMYL4VJJ.js +84 -0
  23. package/dist/{chunk-OUDNDBMR.mjs → chunk-NXZFF473.mjs} +3 -1
  24. package/dist/{chunk-LYYHOUCS.js → chunk-QPMFJ7G7.js} +4 -2
  25. package/dist/chunk-RM7SW35Z.js +1120 -0
  26. package/dist/{chunk-5A3XPRPO.js → chunk-RNM4JSUG.js} +6 -6
  27. package/dist/chunk-S532A3LO.js +510 -0
  28. package/dist/{chunk-XPX5NQ4D.mjs → chunk-TCARWZKA.mjs} +3 -3
  29. package/dist/{chunk-AQ2MDNLT.mjs → chunk-UT4OJQUT.mjs} +3 -1
  30. package/dist/chunk-VJI72AA6.mjs +510 -0
  31. package/dist/chunk-W7YS7HE5.js +765 -0
  32. package/dist/chunk-X6Y2OZGW.js +3056 -0
  33. package/dist/chunk-YXF5LOZH.js +2449 -0
  34. package/dist/clean.js +3 -2
  35. package/dist/clean.mjs +2 -1
  36. package/dist/config.js +6 -5
  37. package/dist/config.mjs +5 -4
  38. package/dist/dist-JWSUGJW5.js +17571 -0
  39. package/dist/dist-LXRVOZWD.mjs +17570 -0
  40. package/dist/esm-2JSYGY2W.js +1716 -0
  41. package/dist/esm-2LICJFKF.mjs +1716 -0
  42. package/dist/execa-2KYLC5PR.mjs +2424 -0
  43. package/dist/execa-QRX32ES4.js +2424 -0
  44. package/dist/index.js +14 -7
  45. package/dist/index.mjs +13 -6
  46. package/dist/json5-JI6Y4EBT.mjs +10 -0
  47. package/dist/json5-ZRUT32KA.js +10 -0
  48. package/dist/jsonc-2MC7UMCL.js +15 -0
  49. package/dist/jsonc-PDDMSRDH.mjs +15 -0
  50. package/dist/multipart-parser-FQDS23TV.mjs +187 -0
  51. package/dist/multipart-parser-IX66WIWH.js +187 -0
  52. package/dist/toml-IHKP66UV.mjs +10 -0
  53. package/dist/toml-MDHAEB3G.js +10 -0
  54. package/dist/yaml-GMY56OHD.mjs +10 -0
  55. package/dist/yaml-UTMAXQ2T.js +10 -0
  56. package/package.json +4 -4
  57. package/dist/chunk-NA6OVNJI.js +0 -287
  58. package/dist/chunk-Q6WN55YR.mjs +0 -287
@@ -1,16 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
+ var _chunkX6Y2OZGWjs = require('./chunk-X6Y2OZGW.js');
4
+
5
+
3
6
 
4
7
  var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
5
8
 
6
9
  // src/plugins/on-error.ts
7
10
  _chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
8
- var _configtools = require('@storm-software/config-tools');
9
11
  var onErrorPlugin = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (options, resolvedOptions) => ({
10
12
  name: "storm:on-error",
11
13
  buildEnd(error) {
12
14
  if (error) {
13
- _configtools.writeError.call(void 0, `The following errors occurred during the build:
15
+ _chunkX6Y2OZGWjs.writeError.call(void 0, `The following errors occurred during the build:
14
16
  ${error ? error.message : "Unknown build error"}
15
17
 
16
18
  `, resolvedOptions.config);
@@ -18,7 +20,7 @@ ${error ? error.message : "Unknown build error"}
18
20
  }
19
21
  },
20
22
  renderError(error) {
21
- _configtools.writeError.call(void 0, `The following errors occurred during the build:
23
+ _chunkX6Y2OZGWjs.writeError.call(void 0, `The following errors occurred during the build:
22
24
  ${error ? error.message : "Unknown build error"}
23
25
 
24
26
  `, resolvedOptions.config);
@@ -0,0 +1,84 @@
1
+ import {
2
+ __name,
3
+ init_esm_shims
4
+ } from "./chunk-3TNHGERR.mjs";
5
+
6
+ // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
7
+ init_esm_shims();
8
+ var b = /^(?:( )+|\t+)/;
9
+ var d = "space";
10
+ var h = "tab";
11
+ function g(e, t) {
12
+ const n = /* @__PURE__ */ new Map();
13
+ let i = 0, s, o;
14
+ for (const c of e.split(/\n/g)) {
15
+ if (!c) continue;
16
+ let f, a, l, p, r;
17
+ const y = c.match(b);
18
+ if (y === null) i = 0, s = "";
19
+ else {
20
+ if (f = y[0].length, a = y[1] ? d : h, t && a === d && f === 1) continue;
21
+ a !== s && (i = 0), s = a, l = 1, p = 0;
22
+ const u = f - i;
23
+ if (i = f, u === 0) l = 0, p = 1;
24
+ else {
25
+ const I = u > 0 ? u : -u;
26
+ o = T(a, I);
27
+ }
28
+ r = n.get(o), r = r === void 0 ? [1, 0] : [r[0] + l, r[1] + p], n.set(o, r);
29
+ }
30
+ }
31
+ return n;
32
+ }
33
+ __name(g, "g");
34
+ function T(e, t) {
35
+ return (e === d ? "s" : "t") + String(t);
36
+ }
37
+ __name(T, "T");
38
+ function w(e) {
39
+ const n = e[0] === "s" ? d : h, i = Number(e.slice(1));
40
+ return { type: n, amount: i };
41
+ }
42
+ __name(w, "w");
43
+ function E(e) {
44
+ let t, n = 0, i = 0;
45
+ for (const [s, [o, c]] of e) (o > n || o === n && c > i) && (n = o, i = c, t = s);
46
+ return t;
47
+ }
48
+ __name(E, "E");
49
+ function S(e, t) {
50
+ return (e === d ? " " : " ").repeat(t);
51
+ }
52
+ __name(S, "S");
53
+ function _(e) {
54
+ if (typeof e != "string") throw new TypeError("Expected a string");
55
+ let t = g(e, true);
56
+ t.size === 0 && (t = g(e, false));
57
+ const n = E(t);
58
+ let i, s = 0, o = "";
59
+ return n !== void 0 && ({ type: i, amount: s } = w(n), o = S(i, s)), { amount: s, type: i, indent: o };
60
+ }
61
+ __name(_, "_");
62
+ var m = Symbol.for("__confbox_fmt__");
63
+ var k = /^(\s+)/;
64
+ var v = /(\s+)$/;
65
+ function x(e, t = {}) {
66
+ const n = t.indent === void 0 && t.preserveIndentation !== false && e.slice(0, t?.sampleSize || 1024), i = t.preserveWhitespace === false ? void 0 : { start: k.exec(e)?.[0] || "", end: v.exec(e)?.[0] || "" };
67
+ return { sample: n, whiteSpace: i };
68
+ }
69
+ __name(x, "x");
70
+ function N(e, t, n) {
71
+ !t || typeof t != "object" || Object.defineProperty(t, m, { enumerable: false, configurable: true, writable: true, value: x(e, n) });
72
+ }
73
+ __name(N, "N");
74
+ function C(e, t) {
75
+ if (!e || typeof e != "object" || !(m in e)) return { indent: t?.indent, whitespace: { start: "", end: "" } };
76
+ const n = e[m];
77
+ return { indent: t?.indent || _(n.sample || "").indent, whitespace: n.whiteSpace || { start: "", end: "" } };
78
+ }
79
+ __name(C, "C");
80
+
81
+ export {
82
+ N,
83
+ C
84
+ };