nitro-nightly 3.0.1-20260120-020848-6786d069 → 3.0.1-20260120-133849-ca1a9dee
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/dist/_build/common.mjs +24931 -0
- package/dist/_build/rolldown.mjs +6 -11
- package/dist/_build/rollup.mjs +201 -0
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/_chunks/dev.mjs +4 -6
- package/dist/_chunks/nitro.mjs +1183 -24
- package/dist/_chunks/nitro2.mjs +91 -248
- package/dist/_chunks/utils.mjs +254 -0
- package/dist/_common.mjs +45 -0
- package/dist/_libs/c12+giget+readdirp+chokidar.d.mts +214 -0
- package/dist/_libs/citty.mjs +140 -110
- package/dist/_libs/commondir+is-reference.mjs +1300 -0
- package/dist/_libs/compatx.d.mts +47 -0
- package/dist/_libs/confbox.mjs +2488 -70
- package/dist/_libs/esbuild.d.mts +20 -0
- package/dist/_libs/escape-string-regexp.mjs +8 -0
- package/dist/_libs/estree-walker.mjs +187 -0
- package/dist/_libs/hasown+resolve+deepmerge.mjs +1972 -0
- package/dist/_libs/httpxy.d.mts +79 -0
- package/dist/_libs/httpxy.mjs +6 -1
- package/dist/_libs/klona.mjs +38 -0
- package/dist/_libs/magic-string.d.mts +220 -0
- package/dist/_libs/mlly.d.mts +57 -0
- package/dist/_libs/nypm+giget+tinyexec.mjs +3603 -0
- package/dist/_libs/pkg-types.d.mts +23 -0
- package/dist/_libs/plugin-alias.mjs +64 -0
- package/dist/_libs/{plugin-alias+plugin-inject.mjs → plugin-inject.mjs} +2 -65
- package/dist/_libs/plugin-json.mjs +36 -0
- package/dist/_libs/pluginutils+plugin-commonjs.d.mts +241 -0
- package/dist/_libs/pluginutils.mjs +652 -0
- package/dist/_libs/{c12+dotenv+rc9.mjs → rc9+c12+dotenv.mjs} +105 -12
- package/dist/_libs/{chokidar+readdirp.mjs → readdirp+chokidar.mjs} +8 -1
- package/dist/_libs/remapping.mjs +117 -0
- package/dist/_libs/resolve-uri+gen-mapping.mjs +448 -0
- package/dist/_libs/rou3.d.mts +43 -0
- package/dist/_libs/rou3.mjs +322 -0
- package/dist/_libs/std-env.d.mts +4 -0
- package/dist/_libs/tsconfck.mjs +832 -0
- package/dist/_libs/ultrahtml.mjs +138 -0
- package/dist/_libs/{gen-mapping+remapping+resolve-uri+trace-mapping+unimport+unplugin+unplugin-utils+webpack-virtual-modules.mjs → unimport+unplugin.mjs} +228 -593
- package/dist/_libs/unplugin+unimport.d.mts +426 -0
- package/dist/_libs/unwasm.d.mts +29 -0
- package/dist/_presets.mjs +3 -8
- package/dist/builder.mjs +6 -8
- package/dist/cli/_chunks/build.mjs +1 -1
- package/dist/cli/_chunks/dev.mjs +2 -3
- package/dist/cli/_chunks/list.mjs +1 -1
- package/dist/cli/_chunks/prepare.mjs +1 -1
- package/dist/cli/_chunks/run.mjs +1 -1
- package/dist/cli/_chunks/task.mjs +16 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
- package/dist/presets/netlify/runtime/netlify-edge.d.mts +0 -1
- package/dist/presets/winterjs/runtime/winterjs.d.mts +0 -1
- package/dist/runtime/internal/error/dev.d.mts +0 -1
- package/dist/runtime/internal/route-rules.d.mts +0 -4
- package/dist/runtime/internal/routes/openapi.d.mts +0 -1
- package/dist/runtime/internal/routes/scalar.d.mts +0 -1
- package/dist/runtime/internal/routes/swagger.d.mts +0 -1
- package/dist/runtime/internal/runtime-config.d.mts +0 -1
- package/dist/runtime/nitro.d.mts +0 -3
- package/dist/runtime/virtual/renderer-template.d.mts +0 -1
- package/dist/types/index.d.mts +25 -1394
- package/dist/vite.mjs +18 -641
- package/package.json +5 -5
- package/dist/_chunks/nitro3.mjs +0 -2696
- package/dist/_chunks/nitro4.mjs +0 -176
- package/dist/_chunks/nitro5.mjs +0 -733
- package/dist/_chunks/nitro6.mjs +0 -1458
- package/dist/_chunks/nitro7.mjs +0 -7561
- package/dist/_chunks/nitro8.mjs +0 -3524
- package/dist/_chunks/nitro9.mjs +0 -1729
- package/dist/_libs/_.mjs +0 -3
- package/dist/_libs/_2.mjs +0 -3
- package/dist/_libs/_3.mjs +0 -4
- package/dist/_libs/_4.mjs +0 -6
- package/dist/_libs/_5.mjs +0 -3
- package/dist/_libs/_6.mjs +0 -3
- package/dist/_libs/acorn+confbox+js-tokens+magic-string+mlly+pkg-types+sourcemap-codec+strip-literal+unimport.mjs +0 -8900
- package/dist/_libs/confbox+exsolve+pkg-types.mjs +0 -1249
- package/dist/_libs/confbox2.mjs +0 -786
- package/dist/_libs/confbox3.mjs +0 -404
- package/dist/_libs/confbox4.mjs +0 -3
- package/dist/_libs/estree-walker+unimport.mjs +0 -378
- package/dist/_libs/fdir+picomatch+tinyglobby.mjs +0 -2471
- package/dist/_libs/giget+node-fetch-native.mjs +0 -2692
- package/dist/_libs/local-pkg+quansync+unimport.mjs +0 -1526
- package/dist/_libs/nypm+tinyexec.mjs +0 -858
- package/dist/_libs/pathe.mjs +0 -164
- package/dist/_libs/perfect-debounce.mjs +0 -89
- package/dist/_libs/std-env.mjs +0 -158
- package/dist/_libs/unimport.mjs +0 -9
- package/dist/_libs/vite-plugin-fullstack.mjs +0 -26
package/dist/_libs/pathe.mjs
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
2
|
-
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
3
|
-
function normalizeWindowsPath(input = "") {
|
|
4
|
-
if (!input) return input;
|
|
5
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
6
|
-
}
|
|
7
|
-
const _UNC_REGEX = /^[/\\]{2}/;
|
|
8
|
-
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
9
|
-
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
10
|
-
const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
11
|
-
const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
|
|
12
|
-
const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
|
|
13
|
-
const normalize = function(path) {
|
|
14
|
-
if (path.length === 0) return ".";
|
|
15
|
-
path = normalizeWindowsPath(path);
|
|
16
|
-
const isUNCPath = path.match(_UNC_REGEX);
|
|
17
|
-
const isPathAbsolute = isAbsolute(path);
|
|
18
|
-
const trailingSeparator = path[path.length - 1] === "/";
|
|
19
|
-
path = normalizeString(path, !isPathAbsolute);
|
|
20
|
-
if (path.length === 0) {
|
|
21
|
-
if (isPathAbsolute) return "/";
|
|
22
|
-
return trailingSeparator ? "./" : ".";
|
|
23
|
-
}
|
|
24
|
-
if (trailingSeparator) path += "/";
|
|
25
|
-
if (_DRIVE_LETTER_RE.test(path)) path += "/";
|
|
26
|
-
if (isUNCPath) {
|
|
27
|
-
if (!isPathAbsolute) return `//./${path}`;
|
|
28
|
-
return `//${path}`;
|
|
29
|
-
}
|
|
30
|
-
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
31
|
-
};
|
|
32
|
-
const join = function(...segments) {
|
|
33
|
-
let path = "";
|
|
34
|
-
for (const seg of segments) {
|
|
35
|
-
if (!seg) continue;
|
|
36
|
-
if (path.length > 0) {
|
|
37
|
-
const pathTrailing = path[path.length - 1] === "/";
|
|
38
|
-
const segLeading = seg[0] === "/";
|
|
39
|
-
if (pathTrailing && segLeading) path += seg.slice(1);
|
|
40
|
-
else path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
41
|
-
} else path += seg;
|
|
42
|
-
}
|
|
43
|
-
return normalize(path);
|
|
44
|
-
};
|
|
45
|
-
function cwd() {
|
|
46
|
-
if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
|
|
47
|
-
return "/";
|
|
48
|
-
}
|
|
49
|
-
const resolve = function(...arguments_) {
|
|
50
|
-
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
51
|
-
let resolvedPath = "";
|
|
52
|
-
let resolvedAbsolute = false;
|
|
53
|
-
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
54
|
-
const path = index >= 0 ? arguments_[index] : cwd();
|
|
55
|
-
if (!path || path.length === 0) continue;
|
|
56
|
-
resolvedPath = `${path}/${resolvedPath}`;
|
|
57
|
-
resolvedAbsolute = isAbsolute(path);
|
|
58
|
-
}
|
|
59
|
-
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
60
|
-
if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
|
|
61
|
-
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
62
|
-
};
|
|
63
|
-
function normalizeString(path, allowAboveRoot) {
|
|
64
|
-
let res = "";
|
|
65
|
-
let lastSegmentLength = 0;
|
|
66
|
-
let lastSlash = -1;
|
|
67
|
-
let dots = 0;
|
|
68
|
-
let char = null;
|
|
69
|
-
for (let index = 0; index <= path.length; ++index) {
|
|
70
|
-
if (index < path.length) char = path[index];
|
|
71
|
-
else if (char === "/") break;
|
|
72
|
-
else char = "/";
|
|
73
|
-
if (char === "/") {
|
|
74
|
-
if (lastSlash === index - 1 || dots === 1);
|
|
75
|
-
else if (dots === 2) {
|
|
76
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
77
|
-
if (res.length > 2) {
|
|
78
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
79
|
-
if (lastSlashIndex === -1) {
|
|
80
|
-
res = "";
|
|
81
|
-
lastSegmentLength = 0;
|
|
82
|
-
} else {
|
|
83
|
-
res = res.slice(0, lastSlashIndex);
|
|
84
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
85
|
-
}
|
|
86
|
-
lastSlash = index;
|
|
87
|
-
dots = 0;
|
|
88
|
-
continue;
|
|
89
|
-
} else if (res.length > 0) {
|
|
90
|
-
res = "";
|
|
91
|
-
lastSegmentLength = 0;
|
|
92
|
-
lastSlash = index;
|
|
93
|
-
dots = 0;
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
if (allowAboveRoot) {
|
|
98
|
-
res += res.length > 0 ? "/.." : "..";
|
|
99
|
-
lastSegmentLength = 2;
|
|
100
|
-
}
|
|
101
|
-
} else {
|
|
102
|
-
if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
|
|
103
|
-
else res = path.slice(lastSlash + 1, index);
|
|
104
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
105
|
-
}
|
|
106
|
-
lastSlash = index;
|
|
107
|
-
dots = 0;
|
|
108
|
-
} else if (char === "." && dots !== -1) ++dots;
|
|
109
|
-
else dots = -1;
|
|
110
|
-
}
|
|
111
|
-
return res;
|
|
112
|
-
}
|
|
113
|
-
const isAbsolute = function(p) {
|
|
114
|
-
return _IS_ABSOLUTE_RE.test(p);
|
|
115
|
-
};
|
|
116
|
-
const extname = function(p) {
|
|
117
|
-
if (p === "..") return "";
|
|
118
|
-
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
119
|
-
return match && match[1] || "";
|
|
120
|
-
};
|
|
121
|
-
const relative = function(from, to) {
|
|
122
|
-
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
123
|
-
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
124
|
-
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) return _to.join("/");
|
|
125
|
-
const _fromCopy = [..._from];
|
|
126
|
-
for (const segment of _fromCopy) {
|
|
127
|
-
if (_to[0] !== segment) break;
|
|
128
|
-
_from.shift();
|
|
129
|
-
_to.shift();
|
|
130
|
-
}
|
|
131
|
-
return [..._from.map(() => ".."), ..._to].join("/");
|
|
132
|
-
};
|
|
133
|
-
const dirname = function(p) {
|
|
134
|
-
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
135
|
-
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) segments[0] += "/";
|
|
136
|
-
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
137
|
-
};
|
|
138
|
-
const basename = function(p, extension) {
|
|
139
|
-
const segments = normalizeWindowsPath(p).split("/");
|
|
140
|
-
let lastSegment = "";
|
|
141
|
-
for (let i = segments.length - 1; i >= 0; i--) {
|
|
142
|
-
const val = segments[i];
|
|
143
|
-
if (val) {
|
|
144
|
-
lastSegment = val;
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
149
|
-
};
|
|
150
|
-
const parse = function(p) {
|
|
151
|
-
const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
|
|
152
|
-
const base = basename(p);
|
|
153
|
-
const extension = extname(base);
|
|
154
|
-
return {
|
|
155
|
-
root,
|
|
156
|
-
dir: dirname(p),
|
|
157
|
-
base,
|
|
158
|
-
ext: extension,
|
|
159
|
-
name: base.slice(0, base.length - extension.length)
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
//#endregion
|
|
164
|
-
export { join as a, parse as c, isAbsolute as i, relative as l, dirname as n, normalize as o, extname as r, normalizeWindowsPath as s, basename as t, resolve as u };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/perfect-debounce@2.0.0/node_modules/perfect-debounce/dist/index.mjs
|
|
2
|
-
const DEBOUNCE_DEFAULTS = { trailing: true };
|
|
3
|
-
/**
|
|
4
|
-
Debounce functions
|
|
5
|
-
@param fn - Promise-returning/async function to debounce.
|
|
6
|
-
@param wait - Milliseconds to wait before calling `fn`. Default value is 25ms
|
|
7
|
-
@returns A function that delays calling `fn` until after `wait` milliseconds have elapsed since the last time it was called.
|
|
8
|
-
@example
|
|
9
|
-
```
|
|
10
|
-
import { debounce } from 'perfect-debounce';
|
|
11
|
-
const expensiveCall = async input => input;
|
|
12
|
-
const debouncedFn = debounce(expensiveCall, 200);
|
|
13
|
-
for (const number of [1, 2, 3]) {
|
|
14
|
-
console.log(await debouncedFn(number));
|
|
15
|
-
}
|
|
16
|
-
//=> 1
|
|
17
|
-
//=> 2
|
|
18
|
-
//=> 3
|
|
19
|
-
```
|
|
20
|
-
*/
|
|
21
|
-
function debounce(fn, wait = 25, options = {}) {
|
|
22
|
-
options = {
|
|
23
|
-
...DEBOUNCE_DEFAULTS,
|
|
24
|
-
...options
|
|
25
|
-
};
|
|
26
|
-
if (!Number.isFinite(wait)) throw new TypeError("Expected `wait` to be a finite number");
|
|
27
|
-
let leadingValue;
|
|
28
|
-
let timeout;
|
|
29
|
-
let resolveList = [];
|
|
30
|
-
let currentPromise;
|
|
31
|
-
let trailingArgs;
|
|
32
|
-
const applyFn = (_this, args) => {
|
|
33
|
-
currentPromise = _applyPromised(fn, _this, args);
|
|
34
|
-
currentPromise.finally(() => {
|
|
35
|
-
currentPromise = null;
|
|
36
|
-
if (options.trailing && trailingArgs && !timeout) {
|
|
37
|
-
const promise = applyFn(_this, trailingArgs);
|
|
38
|
-
trailingArgs = null;
|
|
39
|
-
return promise;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
return currentPromise;
|
|
43
|
-
};
|
|
44
|
-
const debounced = function(...args) {
|
|
45
|
-
if (options.trailing) trailingArgs = args;
|
|
46
|
-
if (currentPromise) return currentPromise;
|
|
47
|
-
return new Promise((resolve) => {
|
|
48
|
-
const shouldCallNow = !timeout && options.leading;
|
|
49
|
-
clearTimeout(timeout);
|
|
50
|
-
timeout = setTimeout(() => {
|
|
51
|
-
timeout = null;
|
|
52
|
-
const promise = options.leading ? leadingValue : applyFn(this, args);
|
|
53
|
-
trailingArgs = null;
|
|
54
|
-
for (const _resolve of resolveList) _resolve(promise);
|
|
55
|
-
resolveList = [];
|
|
56
|
-
}, wait);
|
|
57
|
-
if (shouldCallNow) {
|
|
58
|
-
leadingValue = applyFn(this, args);
|
|
59
|
-
resolve(leadingValue);
|
|
60
|
-
} else resolveList.push(resolve);
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
const _clearTimeout = (timer) => {
|
|
64
|
-
if (timer) {
|
|
65
|
-
clearTimeout(timer);
|
|
66
|
-
timeout = null;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
debounced.isPending = () => !!timeout;
|
|
70
|
-
debounced.cancel = () => {
|
|
71
|
-
_clearTimeout(timeout);
|
|
72
|
-
resolveList = [];
|
|
73
|
-
trailingArgs = null;
|
|
74
|
-
};
|
|
75
|
-
debounced.flush = () => {
|
|
76
|
-
_clearTimeout(timeout);
|
|
77
|
-
if (!trailingArgs || currentPromise) return;
|
|
78
|
-
const args = trailingArgs;
|
|
79
|
-
trailingArgs = null;
|
|
80
|
-
return applyFn(this, args);
|
|
81
|
-
};
|
|
82
|
-
return debounced;
|
|
83
|
-
}
|
|
84
|
-
async function _applyPromised(fn, _this, args) {
|
|
85
|
-
return await fn.apply(_this, args);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
//#endregion
|
|
89
|
-
export { debounce as t };
|
package/dist/_libs/std-env.mjs
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/std-env@3.10.0/node_modules/std-env/dist/index.mjs
|
|
2
|
-
const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis), o = new Proxy(r, {
|
|
3
|
-
get(e, s) {
|
|
4
|
-
return i()[s] ?? r[s];
|
|
5
|
-
},
|
|
6
|
-
has(e, s) {
|
|
7
|
-
return s in i() || s in r;
|
|
8
|
-
},
|
|
9
|
-
set(e, s, E) {
|
|
10
|
-
const B = i(!0);
|
|
11
|
-
return B[s] = E, !0;
|
|
12
|
-
},
|
|
13
|
-
deleteProperty(e, s) {
|
|
14
|
-
if (!s) return !1;
|
|
15
|
-
const E = i(!0);
|
|
16
|
-
return delete E[s], !0;
|
|
17
|
-
},
|
|
18
|
-
ownKeys() {
|
|
19
|
-
const e = i(!0);
|
|
20
|
-
return Object.keys(e);
|
|
21
|
-
}
|
|
22
|
-
}), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f = [
|
|
23
|
-
["APPVEYOR"],
|
|
24
|
-
[
|
|
25
|
-
"AWS_AMPLIFY",
|
|
26
|
-
"AWS_APP_ID",
|
|
27
|
-
{ ci: !0 }
|
|
28
|
-
],
|
|
29
|
-
["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
|
|
30
|
-
["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],
|
|
31
|
-
["APPCIRCLE", "AC_APPCIRCLE"],
|
|
32
|
-
["BAMBOO", "bamboo_planKey"],
|
|
33
|
-
["BITBUCKET", "BITBUCKET_COMMIT"],
|
|
34
|
-
["BITRISE", "BITRISE_IO"],
|
|
35
|
-
["BUDDY", "BUDDY_WORKSPACE_ID"],
|
|
36
|
-
["BUILDKITE"],
|
|
37
|
-
["CIRCLE", "CIRCLECI"],
|
|
38
|
-
["CIRRUS", "CIRRUS_CI"],
|
|
39
|
-
[
|
|
40
|
-
"CLOUDFLARE_PAGES",
|
|
41
|
-
"CF_PAGES",
|
|
42
|
-
{ ci: !0 }
|
|
43
|
-
],
|
|
44
|
-
[
|
|
45
|
-
"CLOUDFLARE_WORKERS",
|
|
46
|
-
"WORKERS_CI",
|
|
47
|
-
{ ci: !0 }
|
|
48
|
-
],
|
|
49
|
-
["CODEBUILD", "CODEBUILD_BUILD_ARN"],
|
|
50
|
-
["CODEFRESH", "CF_BUILD_ID"],
|
|
51
|
-
["DRONE"],
|
|
52
|
-
["DRONE", "DRONE_BUILD_EVENT"],
|
|
53
|
-
["DSARI"],
|
|
54
|
-
["GITHUB_ACTIONS"],
|
|
55
|
-
["GITLAB", "GITLAB_CI"],
|
|
56
|
-
["GITLAB", "CI_MERGE_REQUEST_ID"],
|
|
57
|
-
["GOCD", "GO_PIPELINE_LABEL"],
|
|
58
|
-
["LAYERCI"],
|
|
59
|
-
["HUDSON", "HUDSON_URL"],
|
|
60
|
-
["JENKINS", "JENKINS_URL"],
|
|
61
|
-
["MAGNUM"],
|
|
62
|
-
["NETLIFY"],
|
|
63
|
-
[
|
|
64
|
-
"NETLIFY",
|
|
65
|
-
"NETLIFY_LOCAL",
|
|
66
|
-
{ ci: !1 }
|
|
67
|
-
],
|
|
68
|
-
["NEVERCODE"],
|
|
69
|
-
["RENDER"],
|
|
70
|
-
["SAIL", "SAILCI"],
|
|
71
|
-
["SEMAPHORE"],
|
|
72
|
-
["SCREWDRIVER"],
|
|
73
|
-
["SHIPPABLE"],
|
|
74
|
-
["SOLANO", "TDDIUM"],
|
|
75
|
-
["STRIDER"],
|
|
76
|
-
["TEAMCITY", "TEAMCITY_VERSION"],
|
|
77
|
-
["TRAVIS"],
|
|
78
|
-
["VERCEL", "NOW_BUILDER"],
|
|
79
|
-
[
|
|
80
|
-
"VERCEL",
|
|
81
|
-
"VERCEL",
|
|
82
|
-
{ ci: !1 }
|
|
83
|
-
],
|
|
84
|
-
[
|
|
85
|
-
"VERCEL",
|
|
86
|
-
"VERCEL_ENV",
|
|
87
|
-
{ ci: !1 }
|
|
88
|
-
],
|
|
89
|
-
["APPCENTER", "APPCENTER_BUILD_ID"],
|
|
90
|
-
[
|
|
91
|
-
"CODESANDBOX",
|
|
92
|
-
"CODESANDBOX_SSE",
|
|
93
|
-
{ ci: !1 }
|
|
94
|
-
],
|
|
95
|
-
[
|
|
96
|
-
"CODESANDBOX",
|
|
97
|
-
"CODESANDBOX_HOST",
|
|
98
|
-
{ ci: !1 }
|
|
99
|
-
],
|
|
100
|
-
["STACKBLITZ"],
|
|
101
|
-
["STORMKIT"],
|
|
102
|
-
["CLEAVR"],
|
|
103
|
-
["ZEABUR"],
|
|
104
|
-
[
|
|
105
|
-
"CODESPHERE",
|
|
106
|
-
"CODESPHERE_APP_ID",
|
|
107
|
-
{ ci: !0 }
|
|
108
|
-
],
|
|
109
|
-
["RAILWAY", "RAILWAY_PROJECT_ID"],
|
|
110
|
-
["RAILWAY", "RAILWAY_SERVICE_ID"],
|
|
111
|
-
["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"],
|
|
112
|
-
[
|
|
113
|
-
"FIREBASE_APP_HOSTING",
|
|
114
|
-
"FIREBASE_APP_HOSTING",
|
|
115
|
-
{ ci: !0 }
|
|
116
|
-
]
|
|
117
|
-
];
|
|
118
|
-
function b() {
|
|
119
|
-
if (globalThis.process?.env) for (const e of f) {
|
|
120
|
-
const s = e[1] || e[0];
|
|
121
|
-
if (globalThis.process?.env[s]) return {
|
|
122
|
-
name: e[0].toLowerCase(),
|
|
123
|
-
...e[2]
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
return globalThis.process?.env?.SHELL === "/bin/jsh" && globalThis.process?.versions?.webcontainer ? {
|
|
127
|
-
name: "stackblitz",
|
|
128
|
-
ci: !1
|
|
129
|
-
} : {
|
|
130
|
-
name: "",
|
|
131
|
-
ci: !1
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
const l = b(), p = l.name;
|
|
135
|
-
function n(e) {
|
|
136
|
-
return e ? e !== "false" : !1;
|
|
137
|
-
}
|
|
138
|
-
const I = globalThis.process?.platform || "", T = n(o.CI) || l.ci !== !1, R = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), U = typeof window < "u", d = n(o.DEBUG), a = t === "test" || n(o.TEST), g = t === "production", h = t === "dev" || t === "development", v = n(o.MINIMAL) || T || a || !R, A = /^win/i.test(I), M = /^linux/i.test(I), m = /^darwin/i.test(I), Y = !n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (R || A) && o.TERM !== "dumb" || T), C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null, V = Number(C?.split(".")[0]) || null, W = globalThis.process || Object.create(null), _ = { versions: {} }, y = new Proxy(W, { get(e, s) {
|
|
139
|
-
if (s === "env") return o;
|
|
140
|
-
if (s in e) return e[s];
|
|
141
|
-
if (s in _) return _[s];
|
|
142
|
-
} }), O = globalThis.process?.release?.name === "node", c = !!globalThis.Bun || !!globalThis.process?.versions?.bun, D = !!globalThis.Deno, L = !!globalThis.fastly, S = !!globalThis.Netlify, u = !!globalThis.EdgeRuntime, N = globalThis.navigator?.userAgent === "Cloudflare-Workers", F = [
|
|
143
|
-
[S, "netlify"],
|
|
144
|
-
[u, "edge-light"],
|
|
145
|
-
[N, "workerd"],
|
|
146
|
-
[L, "fastly"],
|
|
147
|
-
[D, "deno"],
|
|
148
|
-
[c, "bun"],
|
|
149
|
-
[O, "node"]
|
|
150
|
-
];
|
|
151
|
-
function G() {
|
|
152
|
-
const e = F.find((s) => s[0]);
|
|
153
|
-
if (e) return { name: e[1] };
|
|
154
|
-
}
|
|
155
|
-
const P = G(), K = P?.name || "";
|
|
156
|
-
|
|
157
|
-
//#endregion
|
|
158
|
-
export { d as a, a as i, K as n, p as o, T as r, A as t };
|
package/dist/_libs/unimport.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/@hiogawa+vite-plugin-fullstack@0.0.11_vite@8.0.0-beta.8_@types+node@25.0.9_esbuild@0.27_577572ae8fc6296e77b8a4205393d7c0/node_modules/@hiogawa/vite-plugin-fullstack/dist/runtime.js
|
|
2
|
-
function mergeAssets(...args) {
|
|
3
|
-
const js = uniqBy(args.flatMap((h) => h.js), (a) => a.href);
|
|
4
|
-
const css = uniqBy(args.flatMap((h) => h.css), (a) => a.href);
|
|
5
|
-
const raw = {
|
|
6
|
-
entry: args.filter((arg) => arg.entry)?.[0]?.entry,
|
|
7
|
-
js,
|
|
8
|
-
css
|
|
9
|
-
};
|
|
10
|
-
return {
|
|
11
|
-
...raw,
|
|
12
|
-
merge: (...args$1) => mergeAssets(raw, ...args$1)
|
|
13
|
-
};
|
|
14
|
-
function uniqBy(array, key) {
|
|
15
|
-
const seen = /* @__PURE__ */ new Set();
|
|
16
|
-
return array.filter((item) => {
|
|
17
|
-
const k = key(item);
|
|
18
|
-
if (seen.has(k)) return false;
|
|
19
|
-
seen.add(k);
|
|
20
|
-
return true;
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { mergeAssets };
|