nitro-nightly 3.0.1-20251125-140343-cd142cc3 → 3.0.1-20251127-003817-dd47a8df
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/rolldown.mjs +2 -2
- package/dist/_build/rollup.mjs +3 -3
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/_build/vite.plugin.mjs +3 -3
- package/dist/_chunks/{BEZ4Lko0.mjs → BT4o98A6.mjs} +3 -3
- package/dist/_dev.mjs +3 -3
- package/dist/_libs/c12.mjs +21 -21
- package/dist/_libs/chokidar.mjs +1627 -32
- package/dist/_libs/giget.mjs +3 -3
- package/dist/_libs/local-pkg.mjs +2 -2
- package/dist/_libs/tsconfck.mjs +2 -2
- package/dist/vite.mjs +1 -1
- package/package.json +9 -9
package/dist/_build/rolldown.mjs
CHANGED
|
@@ -20,10 +20,10 @@ import "../_libs/pathe.mjs";
|
|
|
20
20
|
import "../_libs/untyped.mjs";
|
|
21
21
|
import "../_libs/knitwork.mjs";
|
|
22
22
|
import { n as writeBuildInfo } from "./common.mjs";
|
|
23
|
-
import {
|
|
23
|
+
import { a as watch$1 } from "../_libs/chokidar.mjs";
|
|
24
24
|
import "../_libs/estree-walker.mjs";
|
|
25
25
|
import "../_libs/plugin-commonjs.mjs";
|
|
26
|
-
import { n as getChunkName, r as baseBuildConfig, t as baseBuildPlugins } from "../_chunks/
|
|
26
|
+
import { n as getChunkName, r as baseBuildConfig, t as baseBuildPlugins } from "../_chunks/BT4o98A6.mjs";
|
|
27
27
|
import "../_libs/remapping.mjs";
|
|
28
28
|
import "../_libs/unwasm.mjs";
|
|
29
29
|
import "../_libs/plugin-replace.mjs";
|
package/dist/_build/rollup.mjs
CHANGED
|
@@ -20,12 +20,12 @@ import "../_libs/pathe.mjs";
|
|
|
20
20
|
import "../_libs/untyped.mjs";
|
|
21
21
|
import "../_libs/knitwork.mjs";
|
|
22
22
|
import { n as writeBuildInfo } from "./common.mjs";
|
|
23
|
-
import {
|
|
23
|
+
import { a as watch$1 } from "../_libs/chokidar.mjs";
|
|
24
24
|
import { t as alias } from "../_libs/plugin-alias.mjs";
|
|
25
25
|
import "../_libs/estree-walker.mjs";
|
|
26
26
|
import { t as commonjs } from "../_libs/plugin-commonjs.mjs";
|
|
27
27
|
import { t as inject } from "../_libs/plugin-inject.mjs";
|
|
28
|
-
import { n as getChunkName, r as baseBuildConfig, t as baseBuildPlugins } from "../_chunks/
|
|
28
|
+
import { n as getChunkName, r as baseBuildConfig, t as baseBuildPlugins } from "../_chunks/BT4o98A6.mjs";
|
|
29
29
|
import "../_libs/remapping.mjs";
|
|
30
30
|
import "../_libs/unwasm.mjs";
|
|
31
31
|
import "../_libs/plugin-replace.mjs";
|
|
@@ -184,7 +184,7 @@ async function watchDev(nitro, rollupConfig) {
|
|
|
184
184
|
"unlink",
|
|
185
185
|
"unlinkDir"
|
|
186
186
|
]);
|
|
187
|
-
const scanDirsWatcher = watch$1(scanDirs, { ignoreInitial: true }).on("all", (event, path, stat) => {
|
|
187
|
+
const scanDirsWatcher = watch$1(scanDirs, { ignoreInitial: true }).on("all", (event, path, stat$1) => {
|
|
188
188
|
if (watchReloadEvents.has(event)) reload();
|
|
189
189
|
});
|
|
190
190
|
const rootDirWatcher = watch(nitro.options.rootDir, { persistent: false }, (_event, filename) => {
|
|
@@ -33,7 +33,7 @@ import "../_libs/plugin-alias.mjs";
|
|
|
33
33
|
import "../_libs/estree-walker.mjs";
|
|
34
34
|
import "../_libs/plugin-commonjs.mjs";
|
|
35
35
|
import "../_libs/plugin-inject.mjs";
|
|
36
|
-
import "../_chunks/
|
|
36
|
+
import "../_chunks/BT4o98A6.mjs";
|
|
37
37
|
import "../_libs/remapping.mjs";
|
|
38
38
|
import "../_libs/unwasm.mjs";
|
|
39
39
|
import "../_libs/plugin-replace.mjs";
|
|
@@ -7,10 +7,10 @@ import { n as prettyPath } from "../_chunks/DJvLZH4H.mjs";
|
|
|
7
7
|
import { i as scanHandlers } from "../_chunks/XHOrB-Xs.mjs";
|
|
8
8
|
import { n as writeBuildInfo, t as getBuildInfo } from "./common.mjs";
|
|
9
9
|
import { i as NodeDevWorker, r as NitroDevApp } from "../_dev.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { a as watch$1 } from "../_libs/chokidar.mjs";
|
|
11
11
|
import { t as alias } from "../_libs/plugin-alias.mjs";
|
|
12
12
|
import { t as inject } from "../_libs/plugin-inject.mjs";
|
|
13
|
-
import { n as getChunkName, r as baseBuildConfig, t as baseBuildPlugins } from "../_chunks/
|
|
13
|
+
import { n as getChunkName, r as baseBuildConfig, t as baseBuildPlugins } from "../_chunks/BT4o98A6.mjs";
|
|
14
14
|
import { t as assetsPlugin } from "../_libs/vite-plugin-fullstack.mjs";
|
|
15
15
|
import consola$1 from "consola";
|
|
16
16
|
import { join, resolve } from "node:path";
|
|
@@ -284,7 +284,7 @@ async function configureViteDevServer(ctx, server) {
|
|
|
284
284
|
"unlink",
|
|
285
285
|
"unlinkDir"
|
|
286
286
|
]);
|
|
287
|
-
const scanDirsWatcher = watch$1(scanDirs, { ignoreInitial: true }).on("all", (event, path$1, stat$
|
|
287
|
+
const scanDirsWatcher = watch$1(scanDirs, { ignoreInitial: true }).on("all", (event, path$1, stat$2) => {
|
|
288
288
|
if (watchReloadEvents.has(event)) reload();
|
|
289
289
|
});
|
|
290
290
|
const rootDirWatcher = watch(nitro$1.options.rootDir, { persistent: false }, (_event, filename) => {
|
|
@@ -381,7 +381,7 @@ function publicAssets(nitro) {
|
|
|
381
381
|
const fullPath = resolve(nitro.options.output.publicDir, id);
|
|
382
382
|
const assetData = await promises.readFile(fullPath);
|
|
383
383
|
const etag = (0, import_etag$1.default)(assetData);
|
|
384
|
-
const stat$
|
|
384
|
+
const stat$2 = await promises.stat(fullPath);
|
|
385
385
|
const assetId = joinURL(nitro.options.baseURL, decodeURIComponent(id));
|
|
386
386
|
let encoding;
|
|
387
387
|
if (id.endsWith(".gz")) encoding = "gzip";
|
|
@@ -390,8 +390,8 @@ function publicAssets(nitro) {
|
|
|
390
390
|
type: nitro._prerenderMeta?.[assetId]?.contentType || mimeType,
|
|
391
391
|
encoding,
|
|
392
392
|
etag,
|
|
393
|
-
mtime: stat$
|
|
394
|
-
size: stat$
|
|
393
|
+
mtime: stat$2.mtime.toJSON(),
|
|
394
|
+
size: stat$2.size,
|
|
395
395
|
path: relative(nitro.options.output.serverDir, fullPath),
|
|
396
396
|
data: nitro.options.serveStatic === "inline" ? assetData.toString("base64") : void 0
|
|
397
397
|
};
|
package/dist/_dev.mjs
CHANGED
|
@@ -3,12 +3,12 @@ import { n as T, r as a } from "./_libs/std-env.mjs";
|
|
|
3
3
|
import { t as src_default } from "./_libs/mime.mjs";
|
|
4
4
|
import { r as writeDevBuildInfo } from "./_build/common.mjs";
|
|
5
5
|
import { n as createProxyServer } from "./_libs/httpxy.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { a as watch$1 } from "./_libs/chokidar.mjs";
|
|
7
7
|
import consola$1 from "consola";
|
|
8
8
|
import { dirname, resolve } from "node:path";
|
|
9
9
|
import { createReadStream, existsSync } from "node:fs";
|
|
10
10
|
import { joinURL } from "ufo";
|
|
11
|
-
import { readFile, rm, stat } from "node:fs/promises";
|
|
11
|
+
import { readFile, rm, stat as stat$1 } from "node:fs/promises";
|
|
12
12
|
import { createBrotliCompress, createGzip } from "node:zlib";
|
|
13
13
|
import { Worker } from "node:worker_threads";
|
|
14
14
|
import { H3, HTTPError, defineHandler, fromNodeHandler, getRequestIP, getRequestURL, serveStatic, toEventHandler } from "h3";
|
|
@@ -508,7 +508,7 @@ function serveStaticDir(event, opts) {
|
|
|
508
508
|
getMeta: async (id) => {
|
|
509
509
|
const path$1 = r(id);
|
|
510
510
|
if (!path$1) return;
|
|
511
|
-
const s = await stat(path$1).catch(() => null);
|
|
511
|
+
const s = await stat$1(path$1).catch(() => null);
|
|
512
512
|
if (!s?.isFile()) return;
|
|
513
513
|
const ext = extname$1(path$1);
|
|
514
514
|
return {
|
package/dist/_libs/c12.mjs
CHANGED
|
@@ -874,8 +874,8 @@ let userStackTraceLimit;
|
|
|
874
874
|
* The list type to be inserted before the last element.
|
|
875
875
|
* @returns {string}
|
|
876
876
|
*/
|
|
877
|
-
function formatList(array, type = "and") {
|
|
878
|
-
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array.at(-1)}`;
|
|
877
|
+
function formatList(array, type$1 = "and") {
|
|
878
|
+
return array.length < 3 ? array.join(` ${type$1} `) : `${array.slice(0, -1).join(", ")}, ${type$1} ${array.at(-1)}`;
|
|
879
879
|
}
|
|
880
880
|
/**
|
|
881
881
|
* Utility function for registering the error codes.
|
|
@@ -973,8 +973,8 @@ createError("ERR_INVALID_ARG_TYPE", (name, expected, actual) => {
|
|
|
973
973
|
let message = "The ";
|
|
974
974
|
if (name.endsWith(" argument")) message += `${name} `;
|
|
975
975
|
else {
|
|
976
|
-
const type = name.includes(".") ? "property" : "argument";
|
|
977
|
-
message += `"${name}" ${type} `;
|
|
976
|
+
const type$1 = name.includes(".") ? "property" : "argument";
|
|
977
|
+
message += `"${name}" ${type$1} `;
|
|
978
978
|
}
|
|
979
979
|
message += "must be ";
|
|
980
980
|
const types = [];
|
|
@@ -1538,8 +1538,8 @@ function packageResolve(specifier, base, conditions) {
|
|
|
1538
1538
|
let packageJsonPath = fileURLToPath(packageJsonUrl);
|
|
1539
1539
|
let lastPath;
|
|
1540
1540
|
do {
|
|
1541
|
-
const stat$
|
|
1542
|
-
if (!stat$
|
|
1541
|
+
const stat$2 = tryStatSync(packageJsonPath.slice(0, -13));
|
|
1542
|
+
if (!stat$2 || !stat$2.isDirectory()) {
|
|
1543
1543
|
lastPath = packageJsonPath;
|
|
1544
1544
|
packageJsonUrl = new URL$1((isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json", packageJsonUrl);
|
|
1545
1545
|
packageJsonPath = fileURLToPath(packageJsonUrl);
|
|
@@ -1639,12 +1639,12 @@ function resolveModuleURL(input, options) {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
1641
|
if (absolutePath) try {
|
|
1642
|
-
const stat$
|
|
1643
|
-
if (stat$
|
|
1642
|
+
const stat$2 = lstatSync(absolutePath);
|
|
1643
|
+
if (stat$2.isSymbolicLink()) {
|
|
1644
1644
|
absolutePath = realpathSync(absolutePath);
|
|
1645
1645
|
url = pathToFileURL(absolutePath);
|
|
1646
1646
|
}
|
|
1647
|
-
if (stat$
|
|
1647
|
+
if (stat$2.isFile()) {
|
|
1648
1648
|
if (cacheObj) cacheObj.set(cacheKey, url.href);
|
|
1649
1649
|
return url.href;
|
|
1650
1650
|
}
|
|
@@ -2263,9 +2263,9 @@ function flatten(target, opts) {
|
|
|
2263
2263
|
Object.keys(object).forEach(function(key) {
|
|
2264
2264
|
const value = object[key];
|
|
2265
2265
|
const isarray = opts.safe && Array.isArray(value);
|
|
2266
|
-
const type = Object.prototype.toString.call(value);
|
|
2266
|
+
const type$1 = Object.prototype.toString.call(value);
|
|
2267
2267
|
const isbuffer = isBuffer(value);
|
|
2268
|
-
const isobject = type === "[object Object]" || type === "[object Array]";
|
|
2268
|
+
const isobject = type$1 === "[object Object]" || type$1 === "[object Array]";
|
|
2269
2269
|
const newKey = prev ? prev + delimiter$1 + transformKey(key) : transformKey(key);
|
|
2270
2270
|
if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!opts.maxDepth || currentDepth < maxDepth)) return step(value, newKey, currentDepth + 1);
|
|
2271
2271
|
output[newKey] = value;
|
|
@@ -2292,16 +2292,16 @@ function unflatten(target, opts) {
|
|
|
2292
2292
|
}, recipient);
|
|
2293
2293
|
}
|
|
2294
2294
|
function isEmpty(val) {
|
|
2295
|
-
const type = Object.prototype.toString.call(val);
|
|
2296
|
-
const isArray = type === "[object Array]";
|
|
2297
|
-
const isObject = type === "[object Object]";
|
|
2295
|
+
const type$1 = Object.prototype.toString.call(val);
|
|
2296
|
+
const isArray = type$1 === "[object Array]";
|
|
2297
|
+
const isObject = type$1 === "[object Object]";
|
|
2298
2298
|
if (!val) return true;
|
|
2299
2299
|
else if (isArray) return !val.length;
|
|
2300
2300
|
else if (isObject) return !Object.keys(val).length;
|
|
2301
2301
|
}
|
|
2302
2302
|
target = Object.keys(target).reduce(function(result$1, key) {
|
|
2303
|
-
const type = Object.prototype.toString.call(target[key]);
|
|
2304
|
-
if (!(type === "[object Object]" || type === "[object Array]") || isEmpty(target[key])) {
|
|
2303
|
+
const type$1 = Object.prototype.toString.call(target[key]);
|
|
2304
|
+
if (!(type$1 === "[object Object]" || type$1 === "[object Array]") || isEmpty(target[key])) {
|
|
2305
2305
|
result$1[key] = target[key];
|
|
2306
2306
|
return result$1;
|
|
2307
2307
|
} else return addKeys(key, result$1, flatten(target[key], opts));
|
|
@@ -2313,8 +2313,8 @@ function unflatten(target, opts) {
|
|
|
2313
2313
|
let recipient = result;
|
|
2314
2314
|
while (key2 !== void 0) {
|
|
2315
2315
|
if (key1 === "__proto__") return;
|
|
2316
|
-
const type = Object.prototype.toString.call(recipient[key1]);
|
|
2317
|
-
const isobject = type === "[object Object]" || type === "[object Array]";
|
|
2316
|
+
const type$1 = Object.prototype.toString.call(recipient[key1]);
|
|
2317
|
+
const isobject = type$1 === "[object Object]" || type$1 === "[object Array]";
|
|
2318
2318
|
if (!overwrite && !isobject && typeof recipient[key1] !== "undefined") return;
|
|
2319
2319
|
if (overwrite && !isobject || !overwrite && recipient[key1] == null) recipient[key1] = typeof key2 === "number" && !opts.object ? [] : {};
|
|
2320
2320
|
recipient = recipient[key1];
|
|
@@ -2818,10 +2818,10 @@ async function watchConfig(options) {
|
|
|
2818
2818
|
...options.chokidarOptions
|
|
2819
2819
|
});
|
|
2820
2820
|
const onChange = async (event, path$2) => {
|
|
2821
|
-
const type = eventMap[event];
|
|
2822
|
-
if (!type) return;
|
|
2821
|
+
const type$1 = eventMap[event];
|
|
2822
|
+
if (!type$1) return;
|
|
2823
2823
|
if (options.onWatch) await options.onWatch({
|
|
2824
|
-
type,
|
|
2824
|
+
type: type$1,
|
|
2825
2825
|
path: path$2
|
|
2826
2826
|
});
|
|
2827
2827
|
const oldConfig = config$1;
|