@storm-software/unbuild 0.23.0 → 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 (73) hide show
  1. package/README.md +1 -1
  2. package/bin/unbuild.js +49761 -1652
  3. package/bin/unbuild.mjs +49737 -1611
  4. package/dist/build.js +16 -10
  5. package/dist/build.mjs +15 -9
  6. package/dist/chunk-26H2BQTK.mjs +2446 -0
  7. package/dist/{chunk-3OJD7CO4.js → chunk-27VOTZLA.js} +7 -5
  8. package/dist/chunk-3TNHGERR.mjs +49 -0
  9. package/dist/chunk-45FJ3WQ6.js +7528 -0
  10. package/dist/{chunk-BIZYEBW3.mjs → chunk-4ENAOJ33.mjs} +4 -2
  11. package/dist/chunk-4HFICKAT.js +451 -0
  12. package/dist/chunk-4IU7LXNH.mjs +4054 -0
  13. package/dist/{chunk-IIVTCNH5.mjs → chunk-4QTKZ7Y7.mjs} +5 -3
  14. package/dist/chunk-7G3WYTPJ.js +6 -0
  15. package/dist/chunk-AMTVM7UD.js +4054 -0
  16. package/dist/{chunk-WPOEGALQ.js → chunk-D4WJVAJM.js} +7 -5
  17. package/dist/chunk-DIRFSBOA.mjs +84 -0
  18. package/dist/chunk-EGCWTBMT.mjs +1120 -0
  19. package/dist/chunk-EKTZK3IJ.mjs +765 -0
  20. package/dist/chunk-FAXWFK7Q.mjs +7528 -0
  21. package/dist/chunk-J3DIENOH.mjs +3056 -0
  22. package/dist/{chunk-AICX43E6.mjs → chunk-JLKG5B52.mjs} +6584 -143
  23. package/dist/chunk-K5SQO3GD.mjs +451 -0
  24. package/dist/{chunk-DFIGNXGY.js → chunk-L76UPCDF.js} +7631 -1190
  25. package/dist/chunk-NMYL4VJJ.js +84 -0
  26. package/dist/chunk-NOVWJHZD.mjs +6 -0
  27. package/dist/{chunk-FDF3FMZP.mjs → chunk-NXZFF473.mjs} +5 -3
  28. package/dist/{chunk-RCEWRXM5.js → chunk-P6LWSWAQ.js} +4 -2
  29. package/dist/{chunk-XEAFTDQ7.js → chunk-QPMFJ7G7.js} +7 -5
  30. package/dist/chunk-RBSVNX4W.js +49 -0
  31. package/dist/chunk-RM7SW35Z.js +1120 -0
  32. package/dist/chunk-RNM4JSUG.js +29 -0
  33. package/dist/chunk-S532A3LO.js +510 -0
  34. package/dist/{chunk-T5NKX2EJ.mjs → chunk-TCARWZKA.mjs} +8 -6
  35. package/dist/{chunk-OG2CKJQU.mjs → chunk-UT4OJQUT.mjs} +5 -3
  36. package/dist/chunk-VJI72AA6.mjs +510 -0
  37. package/dist/chunk-W7YS7HE5.js +765 -0
  38. package/dist/chunk-X6Y2OZGW.js +3056 -0
  39. package/dist/chunk-YXF5LOZH.js +2449 -0
  40. package/dist/clean.js +4 -4
  41. package/dist/clean.mjs +3 -3
  42. package/dist/config.js +8 -8
  43. package/dist/config.mjs +7 -7
  44. package/dist/dist-JWSUGJW5.js +17571 -0
  45. package/dist/dist-LXRVOZWD.mjs +17570 -0
  46. package/dist/esm-2JSYGY2W.js +1716 -0
  47. package/dist/esm-2LICJFKF.mjs +1716 -0
  48. package/dist/execa-2KYLC5PR.mjs +2424 -0
  49. package/dist/execa-QRX32ES4.js +2424 -0
  50. package/dist/index.js +22 -11
  51. package/dist/index.mjs +21 -10
  52. package/dist/json5-JI6Y4EBT.mjs +10 -0
  53. package/dist/json5-ZRUT32KA.js +10 -0
  54. package/dist/jsonc-2MC7UMCL.js +15 -0
  55. package/dist/jsonc-PDDMSRDH.mjs +15 -0
  56. package/dist/multipart-parser-FQDS23TV.mjs +187 -0
  57. package/dist/multipart-parser-IX66WIWH.js +187 -0
  58. package/dist/toml-IHKP66UV.mjs +10 -0
  59. package/dist/toml-MDHAEB3G.js +10 -0
  60. package/dist/types.js +2 -1
  61. package/dist/types.mjs +2 -1
  62. package/dist/yaml-GMY56OHD.mjs +10 -0
  63. package/dist/yaml-UTMAXQ2T.js +10 -0
  64. package/package.json +3 -3
  65. package/dist/chunk-3GQAWCBQ.js +0 -13
  66. package/dist/chunk-AW52DUNE.mjs +0 -1043
  67. package/dist/chunk-AYRYNROK.js +0 -27
  68. package/dist/chunk-B5GGHMTB.mjs +0 -604
  69. package/dist/chunk-ERHVDARL.mjs +0 -0
  70. package/dist/chunk-LPEX4YW6.mjs +0 -13
  71. package/dist/chunk-OQPSH7GE.js +0 -604
  72. package/dist/chunk-OULCUN6I.js +0 -1
  73. package/dist/chunk-T2OTJN2D.js +0 -1043
@@ -1,16 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOQPSH7GEjs = require('./chunk-OQPSH7GE.js');
3
+ var _chunkX6Y2OZGWjs = require('./chunk-X6Y2OZGW.js');
4
4
 
5
5
 
6
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
6
+
7
+ var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
7
8
 
8
9
  // src/plugins/on-error.ts
9
- var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
10
+ _chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
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
- _chunkOQPSH7GEjs.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
- _chunkOQPSH7GEjs.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
+ };