nitro-nightly 3.0.1-20260120-020848-6786d069 → 3.0.1-20260120-133205-cbfce96c
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/@hiogawa/vite-plugin-fullstack.mjs +652 -0
- package/dist/_libs/@jridgewell/gen-mapping.mjs +448 -0
- package/dist/_libs/@jridgewell/remapping.mjs +117 -0
- package/dist/_libs/@rollup/plugin-alias.mjs +64 -0
- package/dist/_libs/@rollup/plugin-commonjs.d.mts +241 -0
- package/dist/_libs/@rollup/plugin-commonjs.mjs +1300 -0
- package/dist/_libs/{plugin-alias+plugin-inject.mjs → @rollup/plugin-inject.mjs} +2 -65
- package/dist/_libs/@rollup/plugin-json.mjs +36 -0
- package/dist/_libs/@rollup/plugin-node-resolve.mjs +1972 -0
- package/dist/_libs/c12.d.mts +214 -0
- package/dist/_libs/{c12+dotenv+rc9.mjs → c12.mjs} +105 -12
- package/dist/_libs/{chokidar+readdirp.mjs → chokidar.mjs} +8 -1
- 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/giget.mjs +3550 -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/pkg-types.d.mts +23 -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/unimport.d.mts +426 -0
- package/dist/_libs/unimport.mjs +1781 -5
- 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 +36 -1405
- package/dist/vite.mjs +18 -641
- package/package.json +2 -2
- 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/gen-mapping+remapping+resolve-uri+trace-mapping+unimport+unplugin+unplugin-utils+webpack-virtual-modules.mjs +0 -2150
- 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/vite-plugin-fullstack.mjs +0 -26
|
@@ -1,69 +1,6 @@
|
|
|
1
|
-
import { S as MagicString } from "
|
|
2
|
-
import { d as walk, o as attachScopes, s as createFilter, u as makeLegalIdentifier } from "../_chunks/nitro7.mjs";
|
|
1
|
+
import { S as MagicString, c as createFilter, d as makeLegalIdentifier, f as walk, s as attachScopes } from "../../_build/common.mjs";
|
|
3
2
|
import { sep } from "path";
|
|
4
|
-
import path$1 from "node:path";
|
|
5
3
|
|
|
6
|
-
//#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.55.2/node_modules/@rollup/plugin-alias/dist/index.js
|
|
7
|
-
function matches(pattern, importee) {
|
|
8
|
-
if (pattern instanceof RegExp) return pattern.test(importee);
|
|
9
|
-
if (importee.length < pattern.length) return false;
|
|
10
|
-
if (importee === pattern) return true;
|
|
11
|
-
return importee.startsWith(pattern + "/");
|
|
12
|
-
}
|
|
13
|
-
function getEntries({ entries, customResolver }) {
|
|
14
|
-
if (!entries) return [];
|
|
15
|
-
const resolverFunctionFromOptions = resolveCustomResolver(customResolver);
|
|
16
|
-
if (Array.isArray(entries)) return entries.map((entry) => {
|
|
17
|
-
return {
|
|
18
|
-
find: entry.find,
|
|
19
|
-
replacement: entry.replacement,
|
|
20
|
-
resolverFunction: resolveCustomResolver(entry.customResolver) || resolverFunctionFromOptions
|
|
21
|
-
};
|
|
22
|
-
});
|
|
23
|
-
return Object.entries(entries).map(([key, value]) => {
|
|
24
|
-
return {
|
|
25
|
-
find: key,
|
|
26
|
-
replacement: value,
|
|
27
|
-
resolverFunction: resolverFunctionFromOptions
|
|
28
|
-
};
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function getHookFunction(hook) {
|
|
32
|
-
if (typeof hook === "function") return hook;
|
|
33
|
-
if (hook && "handler" in hook && typeof hook.handler === "function") return hook.handler;
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
function resolveCustomResolver(customResolver) {
|
|
37
|
-
if (typeof customResolver === "function") return customResolver;
|
|
38
|
-
if (customResolver) return getHookFunction(customResolver.resolveId);
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
function alias(options = {}) {
|
|
42
|
-
const entries = getEntries(options);
|
|
43
|
-
if (entries.length === 0) return {
|
|
44
|
-
name: "alias",
|
|
45
|
-
resolveId: () => null
|
|
46
|
-
};
|
|
47
|
-
return {
|
|
48
|
-
name: "alias",
|
|
49
|
-
async buildStart(inputOptions) {
|
|
50
|
-
await Promise.all([...Array.isArray(options.entries) ? options.entries : [], options].map(({ customResolver }) => customResolver && getHookFunction(customResolver.buildStart)?.call(this, inputOptions)));
|
|
51
|
-
},
|
|
52
|
-
resolveId(importee, importer, resolveOptions) {
|
|
53
|
-
const matchedEntry = entries.find((entry) => matches(entry.find, importee));
|
|
54
|
-
if (!matchedEntry) return null;
|
|
55
|
-
const updatedId = importee.replace(matchedEntry.find, matchedEntry.replacement);
|
|
56
|
-
if (matchedEntry.resolverFunction) return matchedEntry.resolverFunction.call(this, updatedId, importer, resolveOptions);
|
|
57
|
-
return this.resolve(updatedId, importer, Object.assign({ skipSelf: true }, resolveOptions)).then((resolved) => {
|
|
58
|
-
if (resolved) return resolved;
|
|
59
|
-
if (!path$1.isAbsolute(updatedId)) this.warn(`rewrote ${importee} to ${updatedId} but was not an absolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.`);
|
|
60
|
-
return { id: updatedId };
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
//#endregion
|
|
67
4
|
//#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.55.2/node_modules/@rollup/plugin-inject/dist/es/index.js
|
|
68
5
|
var escape = function(str) {
|
|
69
6
|
return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
@@ -193,4 +130,4 @@ function inject(options) {
|
|
|
193
130
|
}
|
|
194
131
|
|
|
195
132
|
//#endregion
|
|
196
|
-
export {
|
|
133
|
+
export { inject as t };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { c as createFilter, l as dataToEsm } from "../../_build/common.mjs";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.55.2/node_modules/@rollup/plugin-json/dist/es/index.js
|
|
4
|
+
function json(options) {
|
|
5
|
+
if (options === void 0) options = {};
|
|
6
|
+
var filter = createFilter(options.include, options.exclude);
|
|
7
|
+
var indent = "indent" in options ? options.indent : " ";
|
|
8
|
+
return {
|
|
9
|
+
name: "json",
|
|
10
|
+
transform: function transform(code, id) {
|
|
11
|
+
if (id.slice(-5) !== ".json" || !filter(id)) return null;
|
|
12
|
+
try {
|
|
13
|
+
return {
|
|
14
|
+
code: dataToEsm(JSON.parse(code), {
|
|
15
|
+
preferConst: options.preferConst,
|
|
16
|
+
compact: options.compact,
|
|
17
|
+
namedExports: options.namedExports,
|
|
18
|
+
includeArbitraryNames: options.includeArbitraryNames,
|
|
19
|
+
indent
|
|
20
|
+
}),
|
|
21
|
+
map: { mappings: "" }
|
|
22
|
+
};
|
|
23
|
+
} catch (err) {
|
|
24
|
+
this.error({
|
|
25
|
+
message: "Could not parse JSON file",
|
|
26
|
+
id,
|
|
27
|
+
cause: err
|
|
28
|
+
});
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { json as t };
|