@nuxt/nitro-server-nightly 4.4.0-29544389.d497aa6f → 4.4.0-29545160.b3b2cb82
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/index.mjs +13 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -19,16 +19,23 @@ import { isWindows } from "std-env";
|
|
|
19
19
|
import { ImpoundPlugin } from "impound";
|
|
20
20
|
import { resolveModulePath } from "exsolve";
|
|
21
21
|
import { runtimeDependencies } from "nitropack/runtime/meta";
|
|
22
|
-
|
|
22
|
+
//#region package.json
|
|
23
|
+
var version = "4.4.0-29545160.b3b2cb82";
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/utils.ts
|
|
23
26
|
function toArray(value) {
|
|
24
27
|
return Array.isArray(value) ? value : [value];
|
|
25
28
|
}
|
|
26
29
|
let _distDir = dirname(fileURLToPath(import.meta.url));
|
|
27
30
|
if (/(?:chunks|shared)$/.test(_distDir)) _distDir = dirname(_distDir);
|
|
28
31
|
const distDir = _distDir;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ../ui-templates/dist/templates/spa-loading-icon.ts
|
|
29
34
|
const template = () => {
|
|
30
35
|
return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" fill=\"none\" class=\"nuxt-spa-loading\" viewBox=\"0 0 37 25\"><path d=\"M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567\"/></svg><style>.nuxt-spa-loading{left:50%;position:fixed;top:50%;transform:translate(-50%,-50%)}.nuxt-spa-loading>path{animation:nuxt-spa-loading-move 3s linear infinite;fill:none;stroke:#00dc82;stroke-dasharray:128;stroke-dashoffset:128;stroke-linecap:round;stroke-linejoin:round;stroke-width:4px}@keyframes nuxt-spa-loading-move{to{stroke-dashoffset:-128}}</style>";
|
|
31
36
|
};
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../nuxt/src/core/plugins/import-protection.ts
|
|
32
39
|
function createImportProtectionPatterns(nuxt, options) {
|
|
33
40
|
const patterns = [];
|
|
34
41
|
const context = contextFlags[options.context];
|
|
@@ -54,6 +61,8 @@ const contextFlags = {
|
|
|
54
61
|
"nuxt-app": "the Vue part of your app",
|
|
55
62
|
"shared": "the #shared directory"
|
|
56
63
|
};
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/templates.ts
|
|
57
66
|
const nitroSchemaTemplate = {
|
|
58
67
|
filename: "types/nitro-nuxt.d.ts",
|
|
59
68
|
async getContents({ nuxt }) {
|
|
@@ -130,6 +139,8 @@ declare module 'nitropack/types' {
|
|
|
130
139
|
function renderReference(ref, baseDir) {
|
|
131
140
|
return `/// <reference ${"path" in ref ? `path="${isAbsolute(ref.path) ? relative(baseDir, ref.path) : ref.path}"` : `types="${ref.types}"`} />`;
|
|
132
141
|
}
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/index.ts
|
|
133
144
|
const logLevelMapReverse = {
|
|
134
145
|
silent: 0,
|
|
135
146
|
info: 3,
|
|
@@ -772,4 +783,5 @@ async function spaLoadingTemplate(nuxt) {
|
|
|
772
783
|
if (nuxt.options.spaLoadingTemplate) logger.warn(`Could not load custom \`spaLoadingTemplate\` path as it does not exist: \`${nuxt.options.spaLoadingTemplate}\`.`);
|
|
773
784
|
return "";
|
|
774
785
|
}
|
|
786
|
+
//#endregion
|
|
775
787
|
export { bundle };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/nitro-server-nightly",
|
|
3
|
-
"version": "4.4.0-
|
|
3
|
+
"version": "4.4.0-29545160.b3b2cb82",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@nuxt/devalue": "^2.0.2",
|
|
30
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.4.0-
|
|
30
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.4.0-29545160.b3b2cb82",
|
|
31
31
|
"@unhead/vue": "^2.1.10",
|
|
32
32
|
"@vue/shared": "^3.5.29",
|
|
33
33
|
"consola": "^3.4.2",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"vue-devtools-stub": "^0.1.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"nuxt": "npm:nuxt-nightly@4.4.0-
|
|
58
|
+
"nuxt": "npm:nuxt-nightly@4.4.0-29545160.b3b2cb82"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.4.0-
|
|
62
|
-
"nuxt": "npm:nuxt-nightly@4.4.0-
|
|
61
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.4.0-29545160.b3b2cb82",
|
|
62
|
+
"nuxt": "npm:nuxt-nightly@4.4.0-29545160.b3b2cb82",
|
|
63
63
|
"obuild": "0.4.31",
|
|
64
64
|
"vitest": "4.0.18"
|
|
65
65
|
},
|