@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
@@ -0,0 +1,84 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+
4
+ var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
5
+
6
+ // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
7
+ _chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
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
+ _chunkRBSVNX4Wjs.__name.call(void 0, g, "g");
34
+ function T(e, t) {
35
+ return (e === d ? "s" : "t") + String(t);
36
+ }
37
+ _chunkRBSVNX4Wjs.__name.call(void 0, 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
+ _chunkRBSVNX4Wjs.__name.call(void 0, 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
+ _chunkRBSVNX4Wjs.__name.call(void 0, E, "E");
49
+ function S(e, t) {
50
+ return (e === d ? " " : " ").repeat(t);
51
+ }
52
+ _chunkRBSVNX4Wjs.__name.call(void 0, 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
+ _chunkRBSVNX4Wjs.__name.call(void 0, _, "_");
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, _optionalChain([t, 'optionalAccess', _2 => _2.sampleSize]) || 1024), i = t.preserveWhitespace === false ? void 0 : { start: _optionalChain([k, 'access', _3 => _3.exec, 'call', _4 => _4(e), 'optionalAccess', _5 => _5[0]]) || "", end: _optionalChain([v, 'access', _6 => _6.exec, 'call', _7 => _7(e), 'optionalAccess', _8 => _8[0]]) || "" };
67
+ return { sample: n, whiteSpace: i };
68
+ }
69
+ _chunkRBSVNX4Wjs.__name.call(void 0, 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
+ _chunkRBSVNX4Wjs.__name.call(void 0, N, "N");
74
+ function C(e, t) {
75
+ if (!e || typeof e != "object" || !(m in e)) return { indent: _optionalChain([t, 'optionalAccess', _9 => _9.indent]), whitespace: { start: "", end: "" } };
76
+ const n = e[m];
77
+ return { indent: _optionalChain([t, 'optionalAccess', _10 => _10.indent]) || _(n.sample || "").indent, whitespace: n.whiteSpace || { start: "", end: "" } };
78
+ }
79
+ _chunkRBSVNX4Wjs.__name.call(void 0, C, "C");
80
+
81
+
82
+
83
+
84
+ exports.N = N; exports.C = C;
@@ -0,0 +1,6 @@
1
+ import {
2
+ init_esm_shims
3
+ } from "./chunk-3TNHGERR.mjs";
4
+
5
+ // src/types.ts
6
+ init_esm_shims();
@@ -1,11 +1,13 @@
1
1
  import {
2
2
  writeInfo
3
- } from "./chunk-B5GGHMTB.mjs";
3
+ } from "./chunk-J3DIENOH.mjs";
4
4
  import {
5
- __name
6
- } from "./chunk-LPEX4YW6.mjs";
5
+ __name,
6
+ init_esm_shims
7
+ } from "./chunk-3TNHGERR.mjs";
7
8
 
8
9
  // src/plugins/analyze.ts
10
+ init_esm_shims();
9
11
  var formatBytes = /* @__PURE__ */ __name((bytes) => {
10
12
  if (bytes === 0) return "0 Byte";
11
13
  const k = 1e3;
@@ -1,8 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
3
+
4
+ var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
4
5
 
5
6
  // src/plugins/type-definitions.ts
7
+ _chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
6
8
  var _path = require('path');
7
9
  function typeDefinitions(projectRoot) {
8
10
  return {
@@ -31,7 +33,7 @@ export { default } from ${relativeSourceDtsName};
31
33
  }
32
34
  };
33
35
  }
34
- _chunk3GQAWCBQjs.__name.call(void 0, typeDefinitions, "typeDefinitions");
36
+ _chunkRBSVNX4Wjs.__name.call(void 0, typeDefinitions, "typeDefinitions");
35
37
 
36
38
 
37
39
 
@@ -1,12 +1,14 @@
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/analyze.ts
9
- var formatBytes = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bytes) => {
10
+ _chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
11
+ var formatBytes = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (bytes) => {
10
12
  if (bytes === 0) return "0 Byte";
11
13
  const k = 1e3;
12
14
  const dm = 3;
@@ -19,13 +21,13 @@ var formatBytes = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bytes) =
19
21
  const i = Math.floor(Math.log(bytes) / Math.log(k));
20
22
  return `${parseFloat((bytes / k ** i).toFixed(dm))} ${sizes[i]}`;
21
23
  }, "formatBytes");
22
- var analyzePlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => {
24
+ var analyzePlugin = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (options, resolvedOptions) => {
23
25
  return {
24
26
  name: "storm:analyzer",
25
27
  renderChunk(source, chunk) {
26
28
  const sourceBytes = formatBytes(source.length);
27
29
  const fileName = chunk.fileName;
28
- _chunkOQPSH7GEjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, resolvedOptions.config);
30
+ _chunkX6Y2OZGWjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, resolvedOptions.config);
29
31
  }
30
32
  };
31
33
  }, "analyzePlugin");
@@ -0,0 +1,49 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __esm = (fn, res) => function __init() {
15
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
+ };
17
+ var __commonJS = (cb, mod) => function __require2() {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+
37
+ // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js
38
+ var init_cjs_shims = __esm({
39
+ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js"() {
40
+ }
41
+ });
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+ exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;