nitro-nightly 3.0.1-20251230-165713-6e801e22 → 3.0.1-20260102-142913-2fb634a2

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 (55) hide show
  1. package/dist/_build/rolldown.mjs +2 -2
  2. package/dist/_build/rollup.mjs +2 -2
  3. package/dist/_build/shared.mjs +1 -1
  4. package/dist/_build/shared2.mjs +1 -1
  5. package/dist/_build/shared3.mjs +3 -3
  6. package/dist/_build/shared4.mjs +1 -1
  7. package/dist/_build/vite.plugin.mjs +5 -5
  8. package/dist/_dev.mjs +2 -2
  9. package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +6 -5
  10. package/dist/_libs/@jridgewell/gen-mapping.mjs +1 -1
  11. package/dist/_libs/@rollup/plugin-commonjs.mjs +2 -2
  12. package/dist/_libs/@rollup/plugin-inject.mjs +1 -1
  13. package/dist/_libs/@rollup/plugin-node-resolve.mjs +1 -1
  14. package/dist/_libs/@rollup/plugin-replace.mjs +1 -1
  15. package/dist/_libs/c12.mjs +28 -11
  16. package/dist/_libs/chokidar.mjs +8 -1
  17. package/dist/_libs/confbox.mjs +28 -17
  18. package/dist/_libs/duplexer.mjs +1 -1
  19. package/dist/_libs/etag.mjs +1 -1
  20. package/dist/_libs/giget.mjs +1673 -17408
  21. package/dist/_libs/httpxy.mjs +6 -1
  22. package/dist/_libs/local-pkg.mjs +2 -2
  23. package/dist/_libs/pathe.mjs +1 -1
  24. package/dist/_libs/unimport.mjs +10 -5
  25. package/dist/_libs/unwasm.mjs +3 -3
  26. package/dist/_nitro.mjs +3 -3
  27. package/dist/_nitro2.mjs +2 -2
  28. package/dist/_presets.mjs +2 -2
  29. package/dist/_rolldown.mjs +14 -2
  30. package/dist/cli/_chunks/build.mjs +1 -1
  31. package/dist/cli/_chunks/dev.mjs +1 -1
  32. package/dist/cli/_chunks/list.mjs +1 -1
  33. package/dist/cli/_chunks/prepare.mjs +1 -1
  34. package/dist/cli/_chunks/run.mjs +1 -1
  35. package/dist/node_modules/@sindresorhus/is/distribution/index.js +46 -5
  36. package/dist/node_modules/@sindresorhus/is/package.json +1 -1
  37. package/dist/node_modules/@speed-highlight/core/dist/index.js +1 -1
  38. package/dist/node_modules/@speed-highlight/core/dist/terminal.js +1 -1
  39. package/dist/node_modules/@speed-highlight/core/package.json +2 -2
  40. package/lib/vite.types.mjs +1 -0
  41. package/package.json +5 -5
  42. package/dist/_libs/node-fetch-native.mjs +0 -173
  43. package/dist/cli/_chunks/chokidar.mjs +0 -3
  44. package/dist/cli/_chunks/detect-acorn.mjs +0 -7
  45. package/dist/cli/_chunks/dist.mjs +0 -3
  46. package/dist/cli/_chunks/dist2.mjs +0 -4
  47. package/dist/cli/_chunks/dist3.mjs +0 -3
  48. package/dist/cli/_chunks/dist4.mjs +0 -4
  49. package/dist/cli/_chunks/dist5.mjs +0 -5
  50. package/dist/cli/_chunks/json5.mjs +0 -4
  51. package/dist/cli/_chunks/jsonc.mjs +0 -3
  52. package/dist/cli/_chunks/multipart-parser.mjs +0 -7
  53. package/dist/cli/_chunks/runtime.mjs +0 -3
  54. package/dist/cli/_chunks/toml.mjs +0 -4
  55. package/dist/cli/_chunks/yaml.mjs +0 -4
@@ -1,173 +0,0 @@
1
- import { n as __require, t as __commonJSMin } from "../_rolldown.mjs";
2
- import { i as require_node_fetch_native_DhEqb06g, r as require_node } from "./giget.mjs";
3
-
4
- //#region node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
5
- var require_multipart_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- var y = Object.defineProperty;
7
- var c = (R, o) => y(R, "name", {
8
- value: o,
9
- configurable: !0
10
- });
11
- const node = require_node();
12
- __require("node:http"), __require("node:https"), __require("node:zlib"), __require("node:stream"), __require("node:buffer"), __require("node:util"), require_node_fetch_native_DhEqb06g(), __require("node:url"), __require("node:net"), __require("node:fs"), __require("node:path");
13
- let s = 0;
14
- const S = {
15
- START_BOUNDARY: s++,
16
- HEADER_FIELD_START: s++,
17
- HEADER_FIELD: s++,
18
- HEADER_VALUE_START: s++,
19
- HEADER_VALUE: s++,
20
- HEADER_VALUE_ALMOST_DONE: s++,
21
- HEADERS_ALMOST_DONE: s++,
22
- PART_DATA_START: s++,
23
- PART_DATA: s++,
24
- END: s++
25
- };
26
- let f = 1;
27
- const F = {
28
- PART_BOUNDARY: f,
29
- LAST_BOUNDARY: f *= 2
30
- }, LF = 10, CR = 13, SPACE = 32, HYPHEN = 45, COLON = 58, A = 97, Z = 122, lower = c((R) => R | 32, "lower"), noop = c(() => {}, "noop"), g = class g {
31
- constructor(o) {
32
- this.index = 0, this.flags = 0, this.onHeaderEnd = noop, this.onHeaderField = noop, this.onHeadersEnd = noop, this.onHeaderValue = noop, this.onPartBegin = noop, this.onPartData = noop, this.onPartEnd = noop, this.boundaryChars = {}, o = `\r
33
- --` + o;
34
- const t = new Uint8Array(o.length);
35
- for (let n = 0; n < o.length; n++) t[n] = o.charCodeAt(n), this.boundaryChars[t[n]] = !0;
36
- this.boundary = t, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = S.START_BOUNDARY;
37
- }
38
- write(o) {
39
- let t = 0;
40
- const n = o.length;
41
- let E = this.index, { lookbehind: l, boundary: h, boundaryChars: H, index: e, state: a, flags: d } = this;
42
- const b = this.boundary.length, m = b - 1, O = o.length;
43
- let r, P;
44
- const u = c((D) => {
45
- this[D + "Mark"] = t;
46
- }, "mark"), i = c((D) => {
47
- delete this[D + "Mark"];
48
- }, "clear"), T = c((D, p, _, N) => {
49
- (p === void 0 || p !== _) && this[D](N && N.subarray(p, _));
50
- }, "callback"), L = c((D, p) => {
51
- const _ = D + "Mark";
52
- _ in this && (p ? (T(D, this[_], t, o), delete this[_]) : (T(D, this[_], o.length, o), this[_] = 0));
53
- }, "dataCallback");
54
- for (t = 0; t < n; t++) switch (r = o[t], a) {
55
- case S.START_BOUNDARY:
56
- if (e === h.length - 2) {
57
- if (r === HYPHEN) d |= F.LAST_BOUNDARY;
58
- else if (r !== CR) return;
59
- e++;
60
- break;
61
- } else if (e - 1 === h.length - 2) {
62
- if (d & F.LAST_BOUNDARY && r === HYPHEN) a = S.END, d = 0;
63
- else if (!(d & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), a = S.HEADER_FIELD_START;
64
- else return;
65
- break;
66
- }
67
- r !== h[e + 2] && (e = -2), r === h[e + 2] && e++;
68
- break;
69
- case S.HEADER_FIELD_START: a = S.HEADER_FIELD, u("onHeaderField"), e = 0;
70
- case S.HEADER_FIELD:
71
- if (r === CR) {
72
- i("onHeaderField"), a = S.HEADERS_ALMOST_DONE;
73
- break;
74
- }
75
- if (e++, r === HYPHEN) break;
76
- if (r === COLON) {
77
- if (e === 1) return;
78
- L("onHeaderField", !0), a = S.HEADER_VALUE_START;
79
- break;
80
- }
81
- if (P = lower(r), P < A || P > Z) return;
82
- break;
83
- case S.HEADER_VALUE_START:
84
- if (r === SPACE) break;
85
- u("onHeaderValue"), a = S.HEADER_VALUE;
86
- case S.HEADER_VALUE:
87
- r === CR && (L("onHeaderValue", !0), T("onHeaderEnd"), a = S.HEADER_VALUE_ALMOST_DONE);
88
- break;
89
- case S.HEADER_VALUE_ALMOST_DONE:
90
- if (r !== LF) return;
91
- a = S.HEADER_FIELD_START;
92
- break;
93
- case S.HEADERS_ALMOST_DONE:
94
- if (r !== LF) return;
95
- T("onHeadersEnd"), a = S.PART_DATA_START;
96
- break;
97
- case S.PART_DATA_START: a = S.PART_DATA, u("onPartData");
98
- case S.PART_DATA:
99
- if (E = e, e === 0) {
100
- for (t += m; t < O && !(o[t] in H);) t += b;
101
- t -= m, r = o[t];
102
- }
103
- if (e < h.length) h[e] === r ? (e === 0 && L("onPartData", !0), e++) : e = 0;
104
- else if (e === h.length) e++, r === CR ? d |= F.PART_BOUNDARY : r === HYPHEN ? d |= F.LAST_BOUNDARY : e = 0;
105
- else if (e - 1 === h.length) if (d & F.PART_BOUNDARY) {
106
- if (e = 0, r === LF) {
107
- d &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), a = S.HEADER_FIELD_START;
108
- break;
109
- }
110
- } else d & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), a = S.END, d = 0) : e = 0;
111
- if (e > 0) l[e - 1] = r;
112
- else if (E > 0) {
113
- const D = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
114
- T("onPartData", 0, E, D), E = 0, u("onPartData"), t--;
115
- }
116
- break;
117
- case S.END: break;
118
- default: throw new Error(`Unexpected state entered: ${a}`);
119
- }
120
- L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = a, this.flags = d;
121
- }
122
- end() {
123
- if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
124
- else if (this.state !== S.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
125
- }
126
- };
127
- c(g, "MultipartParser");
128
- let MultipartParser = g;
129
- function _fileName(R) {
130
- const o = R.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
131
- if (!o) return;
132
- const t = o[2] || o[3] || "";
133
- let n = t.slice(t.lastIndexOf("\\") + 1);
134
- return n = n.replace(/%22/g, "\""), n = n.replace(/&#(\d{4});/g, (E, l) => String.fromCharCode(l)), n;
135
- }
136
- c(_fileName, "_fileName");
137
- async function toFormData(R, o) {
138
- if (!/multipart/i.test(o)) throw new TypeError("Failed to fetch");
139
- const t = o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
140
- if (!t) throw new TypeError("no or bad content-type header, no multipart boundary");
141
- const n = new MultipartParser(t[1] || t[2]);
142
- let E, l, h, H, e, a;
143
- const d = [], b = new node.FormData(), m = c((i) => {
144
- h += u.decode(i, { stream: !0 });
145
- }, "onPartData"), O = c((i) => {
146
- d.push(i);
147
- }, "appendToFile"), r = c(() => {
148
- const i = new node.File(d, a, { type: e });
149
- b.append(H, i);
150
- }, "appendFileToFormData"), P = c(() => {
151
- b.append(H, h);
152
- }, "appendEntryToFormData"), u = new TextDecoder("utf-8");
153
- u.decode(), n.onPartBegin = function() {
154
- n.onPartData = m, n.onPartEnd = P, E = "", l = "", h = "", H = "", e = "", a = null, d.length = 0;
155
- }, n.onHeaderField = function(i) {
156
- E += u.decode(i, { stream: !0 });
157
- }, n.onHeaderValue = function(i) {
158
- l += u.decode(i, { stream: !0 });
159
- }, n.onHeaderEnd = function() {
160
- if (l += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
161
- const i = l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
162
- i && (H = i[2] || i[3] || ""), a = _fileName(l), a && (n.onPartData = O, n.onPartEnd = r);
163
- } else E === "content-type" && (e = l);
164
- l = "", E = "";
165
- };
166
- for await (const i of R) n.write(i);
167
- return n.end(), b;
168
- }
169
- c(toFormData, "toFormData"), exports.toFormData = toFormData;
170
- }));
171
-
172
- //#endregion
173
- export { require_multipart_parser as t };
@@ -1,3 +0,0 @@
1
- import { i as watch, n as WatchHelper, r as chokidar_default, t as FSWatcher } from "../../_libs/chokidar.mjs";
2
-
3
- export { FSWatcher, WatchHelper, chokidar_default as default, watch };
@@ -1,7 +0,0 @@
1
- import "../../_rolldown.mjs";
2
- import "../../_libs/c12.mjs";
3
- import "../../_libs/@hiogawa/vite-plugin-fullstack.mjs";
4
- import "../../_libs/acorn.mjs";
5
- import { n as detectImportsAcorn, r as traveseScopes, t as createVirtualImportsAcronWalker } from "../../_libs/unimport.mjs";
6
-
7
- export { detectImportsAcorn };
@@ -1,3 +0,0 @@
1
- import { c as findNearestFile, d as readGitConfig, f as readPackageJSON, l as findWorkspaceDir, m as resolvePackageJSON, p as resolveGitConfig, s as findFile, u as parseGitConfig } from "../../_libs/c12.mjs";
2
-
3
- export { readPackageJSON };
@@ -1,4 +0,0 @@
1
- import "../../_rolldown.mjs";
2
- import { a as watchConfig, i as setupDotenv, n as loadConfig, r as loadDotenv, t as SUPPORTED_EXTENSIONS } from "../../_libs/c12.mjs";
3
-
4
- export { loadDotenv };
@@ -1,3 +0,0 @@
1
- import { n as createProxyServer, t as ProxyServer } from "../../_libs/httpxy.mjs";
2
-
3
- export { createProxyServer };
@@ -1,4 +0,0 @@
1
- import "../../_libs/c12.mjs";
2
- import { a as addDependency, c as installDependencies, l as packageManagers, o as addDevDependency, s as detectPackageManager } from "../../_libs/giget.mjs";
3
-
4
- export { addDevDependency };
@@ -1,5 +0,0 @@
1
- import "../../_rolldown.mjs";
2
- import "../../_libs/c12.mjs";
3
- import { n as registryProvider, t as downloadTemplate } from "../../_libs/giget.mjs";
4
-
5
- export { downloadTemplate };
@@ -1,4 +0,0 @@
1
- import "../../_libs/c12.mjs";
2
- import { i as Cu } from "../../_libs/confbox.mjs";
3
-
4
- export { Cu as parseJSON5 };
@@ -1,3 +0,0 @@
1
- import { _ as h } from "../../_libs/c12.mjs";
2
-
3
- export { h as parseJSONC };
@@ -1,7 +0,0 @@
1
- import "../../_rolldown.mjs";
2
- import "../../_libs/giget.mjs";
3
- import { t as require_multipart_parser } from "../../_libs/node-fetch-native.mjs";
4
-
5
- export default require_multipart_parser();
6
-
7
- export { };
@@ -1,3 +0,0 @@
1
- import { t as mergeAssets } from "../../_libs/@hiogawa/vite-plugin-fullstack.mjs";
2
-
3
- export { mergeAssets };
@@ -1,4 +0,0 @@
1
- import "../../_libs/c12.mjs";
2
- import { t as Q } from "../../_libs/confbox.mjs";
3
-
4
- export { Q as parseTOML };
@@ -1,4 +0,0 @@
1
- import "../../_libs/c12.mjs";
2
- import { n as gr, r as mr } from "../../_libs/confbox.mjs";
3
-
4
- export { mr as parseYAML };