nitro-nightly 3.0.1-20260106-202835-5325b208 → 3.0.1-20260106-205209-b085a480
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 +24899 -0
- package/dist/_build/rolldown.mjs +6 -9
- package/dist/_build/rollup.mjs +6 -8
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/{_dev.mjs → _chunks/dev.mjs} +4 -7
- package/dist/{_nitro.mjs → _chunks/nitro.mjs} +16 -195
- package/dist/_chunks/nitro2.mjs +101 -0
- package/dist/_chunks/utils.mjs +278 -0
- package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +32 -4
- package/dist/_libs/@jridgewell/gen-mapping.mjs +304 -2
- package/dist/_libs/@jridgewell/remapping.mjs +1 -2
- package/dist/_libs/@rollup/plugin-commonjs.mjs +75 -31
- package/dist/_libs/@rollup/plugin-inject.mjs +1 -3
- package/dist/_libs/@rollup/plugin-json.mjs +1 -1
- package/dist/_libs/@rollup/plugin-node-resolve.mjs +1111 -7
- package/dist/_libs/c12.mjs +597 -41
- package/dist/_libs/chokidar.mjs +235 -2
- package/dist/_libs/confbox.mjs +454 -1476
- package/dist/_libs/estree-walker.mjs +1 -144
- package/dist/_libs/giget.mjs +2235 -1377
- package/dist/_libs/httpxy.mjs +1 -1
- package/dist/_libs/unimport.mjs +1547 -1772
- package/dist/_presets.mjs +3 -9
- package/dist/builder.mjs +7 -12
- package/dist/cli/_chunks/{build2.mjs → build.mjs} +1 -1
- package/dist/cli/_chunks/dev.mjs +3 -5
- 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/index.mjs +1 -1
- package/dist/vite.mjs +14 -1128
- package/package.json +1 -1
- package/dist/_build/rollup2.mjs +0 -56
- package/dist/_build/shared.mjs +0 -60
- package/dist/_build/shared2.mjs +0 -40
- package/dist/_build/shared3.mjs +0 -68
- package/dist/_libs/@jridgewell/resolve-uri.mjs +0 -166
- package/dist/_libs/@jridgewell/sourcemap-codec.mjs +0 -167
- package/dist/_libs/@jridgewell/trace-mapping.mjs +0 -141
- package/dist/_libs/@rolldown/pluginutils.mjs +0 -31
- package/dist/_libs/@rollup/plugin-replace.mjs +0 -104
- package/dist/_libs/@rollup/pluginutils.mjs +0 -241
- package/dist/_libs/acorn.mjs +0 -5034
- package/dist/_libs/commondir.mjs +0 -22
- package/dist/_libs/deepmerge.mjs +0 -86
- package/dist/_libs/dot-prop.mjs +0 -138
- package/dist/_libs/dotenv.mjs +0 -345
- package/dist/_libs/duplexer.mjs +0 -71
- package/dist/_libs/etag.mjs +0 -80
- package/dist/_libs/exsolve.mjs +0 -1007
- package/dist/_libs/fdir.mjs +0 -514
- package/dist/_libs/function-bind.mjs +0 -63
- package/dist/_libs/gzip-size.mjs +0 -21
- package/dist/_libs/hasown.mjs +0 -14
- package/dist/_libs/is-core-module.mjs +0 -220
- package/dist/_libs/is-module.mjs +0 -13
- package/dist/_libs/is-reference.mjs +0 -33
- package/dist/_libs/js-tokens.mjs +0 -382
- package/dist/_libs/knitwork.mjs +0 -124
- package/dist/_libs/local-pkg.mjs +0 -125
- package/dist/_libs/magic-string.mjs +0 -939
- package/dist/_libs/mime.mjs +0 -1391
- package/dist/_libs/mlly.mjs +0 -1415
- package/dist/_libs/node-fetch-native.mjs +0 -7
- package/dist/_libs/nypm.mjs +0 -239
- package/dist/_libs/path-parse.mjs +0 -47
- package/dist/_libs/pathe.mjs +0 -202
- package/dist/_libs/perfect-debounce.mjs +0 -89
- package/dist/_libs/picomatch.mjs +0 -1673
- package/dist/_libs/pkg-types.mjs +0 -197
- package/dist/_libs/pretty-bytes.mjs +0 -116
- package/dist/_libs/quansync.mjs +0 -90
- package/dist/_libs/rc9.mjs +0 -136
- package/dist/_libs/readdirp.mjs +0 -237
- package/dist/_libs/resolve.mjs +0 -689
- package/dist/_libs/std-env.mjs +0 -158
- package/dist/_libs/strip-literal.mjs +0 -51
- package/dist/_libs/tinyexec.mjs +0 -627
- package/dist/_libs/tinyglobby.mjs +0 -292
- package/dist/_libs/unplugin-utils.mjs +0 -61
- package/dist/_libs/unplugin.mjs +0 -1225
- package/dist/_libs/untyped.mjs +0 -271
- package/dist/_libs/unwasm.mjs +0 -5895
- package/dist/_libs/webpack-virtual-modules.mjs +0 -272
- package/dist/_nitro2.mjs +0 -303
- /package/dist/{_rolldown.mjs → _common.mjs} +0 -0
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 };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { i as __toESM } from "../_rolldown.mjs";
|
|
2
|
-
import { t as require_js_tokens } from "./js-tokens.mjs";
|
|
3
|
-
|
|
4
|
-
//#region node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs
|
|
5
|
-
var import_js_tokens = /* @__PURE__ */ __toESM(require_js_tokens(), 1);
|
|
6
|
-
const FILL_COMMENT = " ";
|
|
7
|
-
function stripLiteralFromToken(token, fillChar, filter) {
|
|
8
|
-
if (token.type === "SingleLineComment") return FILL_COMMENT.repeat(token.value.length);
|
|
9
|
-
if (token.type === "MultiLineComment") return token.value.replace(/[^\n]/g, FILL_COMMENT);
|
|
10
|
-
if (token.type === "StringLiteral") {
|
|
11
|
-
if (!token.closed) return token.value;
|
|
12
|
-
const body = token.value.slice(1, -1);
|
|
13
|
-
if (filter(body)) return token.value[0] + fillChar.repeat(body.length) + token.value[token.value.length - 1];
|
|
14
|
-
}
|
|
15
|
-
if (token.type === "NoSubstitutionTemplate") {
|
|
16
|
-
const body = token.value.slice(1, -1);
|
|
17
|
-
if (filter(body)) return `\`${body.replace(/[^\n]/g, fillChar)}\``;
|
|
18
|
-
}
|
|
19
|
-
if (token.type === "RegularExpressionLiteral") {
|
|
20
|
-
const body = token.value;
|
|
21
|
-
if (filter(body)) return body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${fillChar.repeat($1.length)}/${$2}`);
|
|
22
|
-
}
|
|
23
|
-
if (token.type === "TemplateHead") {
|
|
24
|
-
const body = token.value.slice(1, -2);
|
|
25
|
-
if (filter(body)) return `\`${body.replace(/[^\n]/g, fillChar)}\${`;
|
|
26
|
-
}
|
|
27
|
-
if (token.type === "TemplateTail") {
|
|
28
|
-
const body = token.value.slice(0, -2);
|
|
29
|
-
if (filter(body)) return `}${body.replace(/[^\n]/g, fillChar)}\``;
|
|
30
|
-
}
|
|
31
|
-
if (token.type === "TemplateMiddle") {
|
|
32
|
-
const body = token.value.slice(1, -2);
|
|
33
|
-
if (filter(body)) return `}${body.replace(/[^\n]/g, fillChar)}\${`;
|
|
34
|
-
}
|
|
35
|
-
return token.value;
|
|
36
|
-
}
|
|
37
|
-
function optionsWithDefaults(options) {
|
|
38
|
-
return {
|
|
39
|
-
fillChar: options?.fillChar ?? " ",
|
|
40
|
-
filter: options?.filter ?? (() => true)
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function stripLiteral(code, options) {
|
|
44
|
-
let result = "";
|
|
45
|
-
const _options = optionsWithDefaults(options);
|
|
46
|
-
for (const token of (0, import_js_tokens.default)(code, { jsx: false })) result += stripLiteralFromToken(token, _options.fillChar, _options.filter);
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
//#endregion
|
|
51
|
-
export { stripLiteral as t };
|