@nuxt/bridge-edge 3.0.0-27672061.a645f7f → 3.0.0-27690335.da95eff
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/chunks/module.mjs +1 -1
- package/dist/chunks/vite.mjs +4 -158
- package/dist/module.mjs +2 -1
- package/dist/runtime/capi.legacy.d.ts +1 -1
- package/dist/runtime/head/components.d.ts +16 -16
- package/dist/runtime/nitro/renderer.mjs +21 -24
- package/dist/runtime/vite/mock/whatwg-url.d.mts +1 -1
- package/dist/shared/{bridge-edge.aaaa85ea.mjs → bridge-edge.54ede1d7.mjs} +149 -8
- package/package.json +14 -14
package/dist/chunks/module.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import hash from 'hash-sum';
|
|
|
3
3
|
import { resolve } from 'pathe';
|
|
4
4
|
import { genImport, genObjectFromRawEntries } from 'knitwork';
|
|
5
5
|
|
|
6
|
-
const version = "3.0.0-
|
|
6
|
+
const version = "3.0.0-27690335.da95eff";
|
|
7
7
|
|
|
8
8
|
const middlewareTemplate = {
|
|
9
9
|
filename: "middleware.js",
|
package/dist/chunks/vite.mjs
CHANGED
|
@@ -4,17 +4,16 @@ import { logger, isIgnored } from '@nuxt/kit';
|
|
|
4
4
|
import { findExports, sanitizeFilePath } from 'mlly';
|
|
5
5
|
import { getPort } from 'get-port-please';
|
|
6
6
|
import { joinURL, withoutLeadingSlash } from 'ufo';
|
|
7
|
-
import { d as distDir } from '../shared/bridge-edge.
|
|
7
|
+
import { i as isCSS, h as hashId, u as uniq, g as generateDevSSRManifest, d as distDir, p as prepareManifests } from '../shared/bridge-edge.54ede1d7.mjs';
|
|
8
8
|
import { createUnplugin } from 'unplugin';
|
|
9
9
|
import escapeRE from 'escape-string-regexp';
|
|
10
10
|
import MagicString from 'magic-string';
|
|
11
11
|
import createVuePlugin from '@vitejs/plugin-vue2';
|
|
12
12
|
import PluginLegacy from '@vitejs/plugin-legacy';
|
|
13
|
-
import { createHash } from 'crypto';
|
|
14
|
-
import { existsSync } from 'fs';
|
|
15
13
|
import fse from 'fs-extra';
|
|
16
14
|
import { debounce } from 'perfect-debounce';
|
|
17
15
|
import { pathToFileURL } from 'url';
|
|
16
|
+
import { existsSync } from 'fs';
|
|
18
17
|
import { builtinModules } from 'module';
|
|
19
18
|
import { ExternalsDefaults, isExternal as isExternal$1 } from 'externality';
|
|
20
19
|
import { genObjectFromRawEntries, genDynamicImport } from 'knitwork';
|
|
@@ -25,12 +24,14 @@ import 'nitropack';
|
|
|
25
24
|
import 'h3';
|
|
26
25
|
import 'path';
|
|
27
26
|
import 'untyped';
|
|
27
|
+
import 'crypto';
|
|
28
28
|
import 'acorn';
|
|
29
29
|
import 'estree-walker';
|
|
30
30
|
import 'util';
|
|
31
31
|
import 'enhanced-resolve';
|
|
32
32
|
import 'unimport';
|
|
33
33
|
import 'scule';
|
|
34
|
+
import 'vue-bundle-renderer';
|
|
34
35
|
|
|
35
36
|
async function warmupViteServer(server, entries) {
|
|
36
37
|
const warmedUrls = /* @__PURE__ */ new Set();
|
|
@@ -131,25 +132,6 @@ const DynamicBasePlugin = createUnplugin(function(options = {}) {
|
|
|
131
132
|
};
|
|
132
133
|
});
|
|
133
134
|
|
|
134
|
-
function uniq(arr) {
|
|
135
|
-
return Array.from(new Set(arr));
|
|
136
|
-
}
|
|
137
|
-
const IS_JS_RE = /\.[cm]?js(\?[^.]+)?$/;
|
|
138
|
-
const HAS_EXT_RE = /[^./]+\.[^./]+$/;
|
|
139
|
-
const IS_CSS_RE = /\.(?:css|scss|sass|postcss|less|stylus|styl)(\?[^.]+)?$/;
|
|
140
|
-
function isJS(file) {
|
|
141
|
-
return IS_JS_RE.test(file) || !HAS_EXT_RE.test(file);
|
|
142
|
-
}
|
|
143
|
-
function isCSS(file) {
|
|
144
|
-
return IS_CSS_RE.test(file);
|
|
145
|
-
}
|
|
146
|
-
function hashId(id) {
|
|
147
|
-
return "$id_" + hash(id);
|
|
148
|
-
}
|
|
149
|
-
function hash(input, length = 8) {
|
|
150
|
-
return createHash("sha256").update(input).digest("hex").slice(0, length);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
135
|
function devStyleSSRPlugin(options) {
|
|
154
136
|
return {
|
|
155
137
|
name: "nuxt:dev-style-ssr",
|
|
@@ -425,142 +407,6 @@ const wpfs = {
|
|
|
425
407
|
join
|
|
426
408
|
};
|
|
427
409
|
|
|
428
|
-
const DEFAULT_APP_TEMPLATE = `
|
|
429
|
-
<!DOCTYPE html>
|
|
430
|
-
<html {{ HTML_ATTRS }}>
|
|
431
|
-
<head {{ HEAD_ATTRS }}>
|
|
432
|
-
{{ HEAD }}
|
|
433
|
-
</head>
|
|
434
|
-
<body {{ BODY_ATTRS }}>
|
|
435
|
-
{{ APP }}
|
|
436
|
-
</body>
|
|
437
|
-
</html>
|
|
438
|
-
`;
|
|
439
|
-
async function prepareManifests(ctx) {
|
|
440
|
-
const rDist = (...args) => resolve(ctx.nuxt.options.buildDir, "dist", ...args);
|
|
441
|
-
await fse.mkdirp(rDist("server"));
|
|
442
|
-
const customAppTemplateFile = resolve(ctx.nuxt.options.srcDir, "app.html");
|
|
443
|
-
const APP_TEMPLATE = fse.existsSync(customAppTemplateFile) ? await fse.readFile(customAppTemplateFile, "utf-8") : DEFAULT_APP_TEMPLATE;
|
|
444
|
-
const DEV_TEMPLATE = APP_TEMPLATE.replace(
|
|
445
|
-
"</body>",
|
|
446
|
-
'<script type="module" src="/@vite/client"><\/script><script type="module" src="/.nuxt/client.js"><\/script></body>'
|
|
447
|
-
);
|
|
448
|
-
const SPA_TEMPLATE = ctx.nuxt.options.dev ? DEV_TEMPLATE : APP_TEMPLATE;
|
|
449
|
-
const SSR_TEMPLATE = ctx.nuxt.options.dev ? DEV_TEMPLATE : APP_TEMPLATE;
|
|
450
|
-
await fse.writeFile(rDist("server/index.ssr.html"), SSR_TEMPLATE);
|
|
451
|
-
await fse.writeFile(rDist("server/index.spa.html"), SPA_TEMPLATE);
|
|
452
|
-
if (ctx.nuxt.options.dev) {
|
|
453
|
-
await stubManifest(ctx);
|
|
454
|
-
} else {
|
|
455
|
-
await generateBuildManifest(ctx);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
async function generateBuildManifest(ctx) {
|
|
459
|
-
const rDist = (...args) => resolve(ctx.nuxt.options.buildDir, "dist", ...args);
|
|
460
|
-
const viteClientManifest = await fse.readJSON(rDist("client/manifest.json"));
|
|
461
|
-
const clientEntries = Object.entries(viteClientManifest);
|
|
462
|
-
const asyncEntries = uniq(clientEntries.filter((id) => id[1].isDynamicEntry).flatMap(getModuleIds)).filter(Boolean);
|
|
463
|
-
const initialEntries = uniq(clientEntries.filter((id) => !id[1].isDynamicEntry).flatMap(getModuleIds)).filter(Boolean);
|
|
464
|
-
const initialJs = initialEntries.filter(isJS);
|
|
465
|
-
const initialAssets = initialEntries.filter(isCSS);
|
|
466
|
-
const polyfillName = initialEntries.find((id) => id.startsWith("polyfills-legacy."));
|
|
467
|
-
const polyfill = await fse.readFile(rDist("client/" + polyfillName), "utf-8");
|
|
468
|
-
const clientImports = initialJs.filter((id) => id !== polyfillName);
|
|
469
|
-
const clientEntryCode = [
|
|
470
|
-
polyfill,
|
|
471
|
-
"var appConfig = window && window.__NUXT__ && window.__NUXT__.config.app || {}",
|
|
472
|
-
'var publicBase = appConfig.cdnURL || appConfig.baseURL || "/"',
|
|
473
|
-
`var imports = ${JSON.stringify(clientImports)};`,
|
|
474
|
-
"imports.reduce(function(p, id){return p.then(function(){return System.import(publicBase + appConfig.buildAssetsDir.slice(1) + id)})}, Promise.resolve())"
|
|
475
|
-
].join("\n");
|
|
476
|
-
const clientEntryName = "entry-legacy." + hash(clientEntryCode) + ".js";
|
|
477
|
-
const clientManifest = {
|
|
478
|
-
publicPath: ctx.nuxt.options.app.buildAssetsDir,
|
|
479
|
-
all: uniq([
|
|
480
|
-
clientEntryName,
|
|
481
|
-
...clientEntries.flatMap(getModuleIds)
|
|
482
|
-
]).filter(Boolean),
|
|
483
|
-
initial: [
|
|
484
|
-
clientEntryName,
|
|
485
|
-
...initialAssets
|
|
486
|
-
].filter(Boolean),
|
|
487
|
-
async: [
|
|
488
|
-
...initialJs,
|
|
489
|
-
...asyncEntries
|
|
490
|
-
].filter(Boolean),
|
|
491
|
-
modules: {},
|
|
492
|
-
assetsMapping: {}
|
|
493
|
-
};
|
|
494
|
-
const serverManifest = {
|
|
495
|
-
entry: "server.js",
|
|
496
|
-
files: {
|
|
497
|
-
"server.js": "server.js",
|
|
498
|
-
...Object.fromEntries(clientEntries.map(([id, entry]) => [id, entry.file]))
|
|
499
|
-
},
|
|
500
|
-
maps: {}
|
|
501
|
-
};
|
|
502
|
-
await fse.writeFile(rDist("client", clientEntryName), clientEntryCode, "utf-8");
|
|
503
|
-
await writeClientManifest(clientManifest, ctx.nuxt.options.buildDir);
|
|
504
|
-
await writeServerManifest(serverManifest, ctx.nuxt.options.buildDir);
|
|
505
|
-
await fse.remove(rDist("client/manifest.json"));
|
|
506
|
-
await fse.remove(rDist("client/ssr-manifest.json"));
|
|
507
|
-
}
|
|
508
|
-
async function stubManifest(ctx) {
|
|
509
|
-
const clientManifest = {
|
|
510
|
-
publicPath: "",
|
|
511
|
-
all: [
|
|
512
|
-
"empty.js"
|
|
513
|
-
],
|
|
514
|
-
initial: [
|
|
515
|
-
"empty.js"
|
|
516
|
-
],
|
|
517
|
-
async: [],
|
|
518
|
-
modules: {},
|
|
519
|
-
assetsMapping: {}
|
|
520
|
-
};
|
|
521
|
-
const serverManifest = {
|
|
522
|
-
entry: "server.js",
|
|
523
|
-
files: {
|
|
524
|
-
"server.js": "server.js"
|
|
525
|
-
},
|
|
526
|
-
maps: {}
|
|
527
|
-
};
|
|
528
|
-
await writeClientManifest(clientManifest, ctx.nuxt.options.buildDir);
|
|
529
|
-
await writeServerManifest(serverManifest, ctx.nuxt.options.buildDir);
|
|
530
|
-
}
|
|
531
|
-
async function generateDevSSRManifest(ctx, extraEntries = []) {
|
|
532
|
-
const entires = [
|
|
533
|
-
"@vite/client",
|
|
534
|
-
"entry.mjs",
|
|
535
|
-
...extraEntries
|
|
536
|
-
];
|
|
537
|
-
const clientManifest = {
|
|
538
|
-
publicPath: "",
|
|
539
|
-
all: entires,
|
|
540
|
-
initial: entires,
|
|
541
|
-
async: [],
|
|
542
|
-
modules: {},
|
|
543
|
-
assetsMapping: {}
|
|
544
|
-
};
|
|
545
|
-
await writeClientManifest(clientManifest, ctx.nuxt.options.buildDir);
|
|
546
|
-
}
|
|
547
|
-
async function writeServerManifest(serverManifest, buildDir) {
|
|
548
|
-
const serverManifestJSON = JSON.stringify(serverManifest, null, 2);
|
|
549
|
-
await fse.writeFile(resolve(buildDir, "dist/server/server.manifest.json"), serverManifestJSON, "utf-8");
|
|
550
|
-
await fse.writeFile(resolve(buildDir, "dist/server/server.manifest.mjs"), `export default ${serverManifestJSON}`, "utf-8");
|
|
551
|
-
}
|
|
552
|
-
async function writeClientManifest(clientManifest, buildDir) {
|
|
553
|
-
const clientManifestJSON = JSON.stringify(clientManifest, null, 2);
|
|
554
|
-
await fse.writeFile(resolve(buildDir, "dist/server/client.manifest.json"), clientManifestJSON, "utf-8");
|
|
555
|
-
await fse.writeFile(resolve(buildDir, "dist/server/client.manifest.mjs"), `export default ${clientManifestJSON}`, "utf-8");
|
|
556
|
-
}
|
|
557
|
-
function getModuleIds([, value]) {
|
|
558
|
-
if (!value) {
|
|
559
|
-
return [];
|
|
560
|
-
}
|
|
561
|
-
return [value.file, ...value.css || []].filter((id) => isCSS(id) || id.match(/-legacy\./));
|
|
562
|
-
}
|
|
563
|
-
|
|
564
410
|
async function buildServer(ctx) {
|
|
565
411
|
const _env = process.env.NODE_ENV;
|
|
566
412
|
process.env.NODE_ENV = "production";
|
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'module';
|
|
2
2
|
import '@nuxt/kit';
|
|
3
|
-
export { m as default } from './shared/bridge-edge.
|
|
3
|
+
export { m as default } from './shared/bridge-edge.54ede1d7.mjs';
|
|
4
4
|
import 'fs';
|
|
5
5
|
import 'url';
|
|
6
6
|
import 'node-fetch';
|
|
@@ -23,3 +23,4 @@ import 'util';
|
|
|
23
23
|
import 'enhanced-resolve';
|
|
24
24
|
import 'unimport';
|
|
25
25
|
import 'scule';
|
|
26
|
+
import 'vue-bundle-renderer';
|
|
@@ -31,7 +31,7 @@ export declare const useContext: () => {
|
|
|
31
31
|
$parent: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>;
|
|
32
32
|
$root: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>;
|
|
33
33
|
$children: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>[];
|
|
34
|
-
$options: import("vue").ComponentOptions<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, import("vue/types/options").DefaultData<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>>, import("vue/types/options").DefaultMethods<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>>, import("vue/types/options").DefaultComputed, import("vue/types/options").PropsDefinition<import("vue/types/options").DefaultProps>, import("vue/types/options").DefaultProps, {}>;
|
|
34
|
+
$options: import("vue").ComponentOptions<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, import("vue/types/options").DefaultData<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>>, import("vue/types/options").DefaultMethods<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>>, import("vue/types/options").DefaultComputed, import("vue/types/options").PropsDefinition<import("vue/types/options").DefaultProps>, import("vue/types/options").DefaultProps, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin>;
|
|
35
35
|
$emit: (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>;
|
|
36
36
|
$el: Element;
|
|
37
37
|
$refs: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Script: import("vue
|
|
1
|
+
export declare const Script: import("vue").DefineComponent<{
|
|
2
2
|
async: BooleanConstructor;
|
|
3
3
|
crossorigin: {
|
|
4
4
|
type: (BooleanConstructor | StringConstructor)[];
|
|
@@ -57,7 +57,7 @@ export declare const Script: import("vue/types/v3-define-component").DefineCompo
|
|
|
57
57
|
tabindex: StringConstructor;
|
|
58
58
|
title: StringConstructor;
|
|
59
59
|
translate: StringConstructor;
|
|
60
|
-
}, () => import("vue").VNode[],
|
|
60
|
+
}, () => import("vue").VNode[], {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
61
61
|
async: BooleanConstructor;
|
|
62
62
|
crossorigin: {
|
|
63
63
|
type: (BooleanConstructor | StringConstructor)[];
|
|
@@ -127,7 +127,7 @@ export declare const Script: import("vue/types/v3-define-component").DefineCompo
|
|
|
127
127
|
hidden: boolean;
|
|
128
128
|
spellcheck: boolean;
|
|
129
129
|
}>;
|
|
130
|
-
export declare const Link: import("vue
|
|
130
|
+
export declare const Link: import("vue").DefineComponent<{
|
|
131
131
|
as: StringConstructor;
|
|
132
132
|
crossorigin: StringConstructor;
|
|
133
133
|
disabled: BooleanConstructor;
|
|
@@ -192,7 +192,7 @@ export declare const Link: import("vue/types/v3-define-component").DefineCompone
|
|
|
192
192
|
style: StringConstructor;
|
|
193
193
|
tabindex: StringConstructor;
|
|
194
194
|
translate: StringConstructor;
|
|
195
|
-
}, () => import("vue").VNode[],
|
|
195
|
+
}, () => import("vue").VNode[], {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
196
196
|
as: StringConstructor;
|
|
197
197
|
crossorigin: StringConstructor;
|
|
198
198
|
disabled: BooleanConstructor;
|
|
@@ -266,7 +266,7 @@ export declare const Link: import("vue/types/v3-define-component").DefineCompone
|
|
|
266
266
|
disabled: boolean;
|
|
267
267
|
prefetch: boolean;
|
|
268
268
|
}>;
|
|
269
|
-
export declare const Base: import("vue
|
|
269
|
+
export declare const Base: import("vue").DefineComponent<{
|
|
270
270
|
href: StringConstructor;
|
|
271
271
|
target: StringConstructor;
|
|
272
272
|
accesskey: StringConstructor;
|
|
@@ -312,7 +312,7 @@ export declare const Base: import("vue/types/v3-define-component").DefineCompone
|
|
|
312
312
|
tabindex: StringConstructor;
|
|
313
313
|
title: StringConstructor;
|
|
314
314
|
translate: StringConstructor;
|
|
315
|
-
}, () => import("vue").VNode[],
|
|
315
|
+
}, () => import("vue").VNode[], {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
316
316
|
href: StringConstructor;
|
|
317
317
|
target: StringConstructor;
|
|
318
318
|
accesskey: StringConstructor;
|
|
@@ -365,8 +365,8 @@ export declare const Base: import("vue/types/v3-define-component").DefineCompone
|
|
|
365
365
|
hidden: boolean;
|
|
366
366
|
spellcheck: boolean;
|
|
367
367
|
}>;
|
|
368
|
-
export declare const Title: import("vue
|
|
369
|
-
export declare const Meta: import("vue
|
|
368
|
+
export declare const Title: import("vue").DefineComponent<{}, () => import("vue").VNode[], {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
369
|
+
export declare const Meta: import("vue").DefineComponent<{
|
|
370
370
|
charset: StringConstructor;
|
|
371
371
|
content: StringConstructor;
|
|
372
372
|
httpEquiv: StringConstructor;
|
|
@@ -414,7 +414,7 @@ export declare const Meta: import("vue/types/v3-define-component").DefineCompone
|
|
|
414
414
|
tabindex: StringConstructor;
|
|
415
415
|
title: StringConstructor;
|
|
416
416
|
translate: StringConstructor;
|
|
417
|
-
}, () => import("vue").VNode[],
|
|
417
|
+
}, () => import("vue").VNode[], {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
418
418
|
charset: StringConstructor;
|
|
419
419
|
content: StringConstructor;
|
|
420
420
|
httpEquiv: StringConstructor;
|
|
@@ -469,7 +469,7 @@ export declare const Meta: import("vue/types/v3-define-component").DefineCompone
|
|
|
469
469
|
hidden: boolean;
|
|
470
470
|
spellcheck: boolean;
|
|
471
471
|
}>;
|
|
472
|
-
export declare const Style: import("vue
|
|
472
|
+
export declare const Style: import("vue").DefineComponent<{
|
|
473
473
|
type: StringConstructor;
|
|
474
474
|
media: StringConstructor;
|
|
475
475
|
nonce: StringConstructor;
|
|
@@ -520,7 +520,7 @@ export declare const Style: import("vue/types/v3-define-component").DefineCompon
|
|
|
520
520
|
style: StringConstructor;
|
|
521
521
|
tabindex: StringConstructor;
|
|
522
522
|
translate: StringConstructor;
|
|
523
|
-
}, () => import("vue").VNode[],
|
|
523
|
+
}, () => import("vue").VNode[], {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
524
524
|
type: StringConstructor;
|
|
525
525
|
media: StringConstructor;
|
|
526
526
|
nonce: StringConstructor;
|
|
@@ -579,8 +579,8 @@ export declare const Style: import("vue/types/v3-define-component").DefineCompon
|
|
|
579
579
|
spellcheck: boolean;
|
|
580
580
|
scoped: boolean;
|
|
581
581
|
}>;
|
|
582
|
-
export declare const Head: import("vue
|
|
583
|
-
export declare const Html: import("vue
|
|
582
|
+
export declare const Head: import("vue").DefineComponent<{}, () => import("vue").VNode[], {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
583
|
+
export declare const Html: import("vue").DefineComponent<{
|
|
584
584
|
manifest: StringConstructor;
|
|
585
585
|
version: StringConstructor;
|
|
586
586
|
xmlns: StringConstructor;
|
|
@@ -627,7 +627,7 @@ export declare const Html: import("vue/types/v3-define-component").DefineCompone
|
|
|
627
627
|
tabindex: StringConstructor;
|
|
628
628
|
title: StringConstructor;
|
|
629
629
|
translate: StringConstructor;
|
|
630
|
-
}, () => import("vue").VNode[],
|
|
630
|
+
}, () => import("vue").VNode[], {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
631
631
|
manifest: StringConstructor;
|
|
632
632
|
version: StringConstructor;
|
|
633
633
|
xmlns: StringConstructor;
|
|
@@ -681,7 +681,7 @@ export declare const Html: import("vue/types/v3-define-component").DefineCompone
|
|
|
681
681
|
hidden: boolean;
|
|
682
682
|
spellcheck: boolean;
|
|
683
683
|
}>;
|
|
684
|
-
export declare const Body: import("vue
|
|
684
|
+
export declare const Body: import("vue").DefineComponent<{
|
|
685
685
|
accesskey: StringConstructor;
|
|
686
686
|
autocapitalize: StringConstructor;
|
|
687
687
|
autofocus: {
|
|
@@ -725,7 +725,7 @@ export declare const Body: import("vue/types/v3-define-component").DefineCompone
|
|
|
725
725
|
tabindex: StringConstructor;
|
|
726
726
|
title: StringConstructor;
|
|
727
727
|
translate: StringConstructor;
|
|
728
|
-
}, () => import("vue").VNode[],
|
|
728
|
+
}, () => import("vue").VNode[], {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
729
729
|
accesskey: StringConstructor;
|
|
730
730
|
autocapitalize: StringConstructor;
|
|
731
731
|
autofocus: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRenderer } from "vue-bundle-renderer";
|
|
2
|
-
import { eventHandler,
|
|
1
|
+
import { createRenderer } from "vue-bundle-renderer/runtime";
|
|
2
|
+
import { eventHandler, getQuery } from "h3";
|
|
3
3
|
import devalue from "@nuxt/devalue";
|
|
4
4
|
import { useRuntimeConfig } from "#internal/nitro";
|
|
5
5
|
import { buildAssetsURL } from "#paths";
|
|
@@ -7,11 +7,11 @@ import htmlTemplate from "#build/views/document.template.mjs";
|
|
|
7
7
|
import { renderToString } from "#vue-renderer";
|
|
8
8
|
const STATIC_ASSETS_BASE = process.env.NUXT_STATIC_BASE + "/" + process.env.NUXT_STATIC_VERSION;
|
|
9
9
|
const PAYLOAD_JS = "/payload.js";
|
|
10
|
-
const getClientManifest = () => import("#build/dist/server/client.manifest.mjs").then((r) => r.default || r);
|
|
11
|
-
const getServerEntry = () =>
|
|
10
|
+
const getClientManifest = () => import("#build/dist/server/client.manifest.mjs").then((r) => r.default || r).then((r) => typeof r === "function" ? r() : r);
|
|
11
|
+
const getServerEntry = () => import("#build/dist/server/server.mjs").then((r) => r.default || r);
|
|
12
12
|
const getSSRRenderer = lazyCachedFunction(async () => {
|
|
13
|
-
const
|
|
14
|
-
if (!
|
|
13
|
+
const manifest = await getClientManifest();
|
|
14
|
+
if (!manifest) {
|
|
15
15
|
throw new Error("client.manifest is not available");
|
|
16
16
|
}
|
|
17
17
|
const createSSRApp = await getServerEntry();
|
|
@@ -19,40 +19,37 @@ const getSSRRenderer = lazyCachedFunction(async () => {
|
|
|
19
19
|
throw new Error("Server bundle is not available");
|
|
20
20
|
}
|
|
21
21
|
return createRenderer(createSSRApp, {
|
|
22
|
-
|
|
22
|
+
manifest,
|
|
23
23
|
renderToString,
|
|
24
|
-
|
|
24
|
+
buildAssetsURL
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
const getSPARenderer = lazyCachedFunction(async () => {
|
|
28
|
-
const
|
|
28
|
+
const manifest = await getClientManifest();
|
|
29
|
+
const options = {
|
|
30
|
+
manifest,
|
|
31
|
+
renderToString: () => '<div id="__nuxt"></div>',
|
|
32
|
+
buildAssetsURL
|
|
33
|
+
};
|
|
34
|
+
const renderer = createRenderer(() => () => {
|
|
35
|
+
}, options);
|
|
36
|
+
const result = await renderer.renderToString({});
|
|
29
37
|
const renderToString2 = (ssrContext) => {
|
|
30
38
|
const config = useRuntimeConfig();
|
|
31
|
-
ssrContext.
|
|
39
|
+
ssrContext.payload = {
|
|
32
40
|
serverRendered: false,
|
|
33
41
|
config: {
|
|
34
42
|
public: config.public,
|
|
35
43
|
app: config.app
|
|
36
44
|
}
|
|
37
45
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
entryFiles = clientManifest.initial.map((file) => ({ file }));
|
|
41
|
-
}
|
|
42
|
-
return Promise.resolve({
|
|
43
|
-
html: '<div id="__nuxt"></div>',
|
|
44
|
-
renderResourceHints: () => "",
|
|
45
|
-
renderStyles: () => entryFiles.flatMap(({ css }) => css).filter((css) => css != null).map((file) => `<link rel="stylesheet" href="${buildAssetsURL(file)}">`).join(""),
|
|
46
|
-
renderScripts: () => entryFiles.map(({ file }) => {
|
|
47
|
-
const isMJS = !file.endsWith(".js");
|
|
48
|
-
return `<script ${isMJS ? 'type="module"' : ""} src="${buildAssetsURL(file)}"><\/script>`;
|
|
49
|
-
}).join("")
|
|
50
|
-
});
|
|
46
|
+
ssrContext.renderMeta = ssrContext.renderMeta ?? (() => Promise.resolve({}));
|
|
47
|
+
return Promise.resolve(result);
|
|
51
48
|
};
|
|
52
49
|
return { renderToString: renderToString2 };
|
|
53
50
|
});
|
|
54
51
|
export default eventHandler(async (event) => {
|
|
55
|
-
const ssrError = event.req.url?.startsWith("/__nuxt_error") ?
|
|
52
|
+
const ssrError = event.req.url?.startsWith("/__nuxt_error") ? getQuery(event) : null;
|
|
56
53
|
let url = ssrError?.url || event.req.url;
|
|
57
54
|
let isPayloadReq = false;
|
|
58
55
|
if (url.startsWith(STATIC_ASSETS_BASE) && url.endsWith(PAYLOAD_JS)) {
|
|
@@ -5,7 +5,7 @@ export const URL: {
|
|
|
5
5
|
revokeObjectURL(url: string): void;
|
|
6
6
|
};
|
|
7
7
|
export const URLSearchParams: {
|
|
8
|
-
new (init?: string | URLSearchParams | string[][]
|
|
8
|
+
new (init?: string | Record<string, string> | URLSearchParams | string[][]): URLSearchParams;
|
|
9
9
|
prototype: URLSearchParams;
|
|
10
10
|
toString(): string;
|
|
11
11
|
};
|
|
@@ -15,13 +15,14 @@ import { genDynamicImport, genString } from 'knitwork';
|
|
|
15
15
|
import { generateTypes, resolveSchema } from 'untyped';
|
|
16
16
|
import MagicString from 'magic-string';
|
|
17
17
|
import { createUnplugin } from 'unplugin';
|
|
18
|
-
import crypto from 'crypto';
|
|
18
|
+
import crypto, { createHash } from 'crypto';
|
|
19
19
|
import { parse } from 'acorn';
|
|
20
20
|
import { walk } from 'estree-walker';
|
|
21
21
|
import { promisify } from 'util';
|
|
22
22
|
import enhancedResolve from 'enhanced-resolve';
|
|
23
23
|
import { defineUnimportPreset, createUnimport, toImports } from 'unimport';
|
|
24
24
|
import { camelCase } from 'scule';
|
|
25
|
+
import { normalizeViteManifest, normalizeWebpackManifest } from 'vue-bundle-renderer';
|
|
25
26
|
|
|
26
27
|
class AsyncLoadingPlugin {
|
|
27
28
|
constructor(opts) {
|
|
@@ -202,6 +203,7 @@ async function setupNitroBridge() {
|
|
|
202
203
|
};
|
|
203
204
|
}
|
|
204
205
|
const _nitroConfig = nuxt.options.nitro || {};
|
|
206
|
+
const routes = Array.isArray(nuxt.options.generate.routes) ? nuxt.options.generate.routes : [];
|
|
205
207
|
const nitroConfig = defu(_nitroConfig, {
|
|
206
208
|
rootDir: resolve(nuxt.options.rootDir),
|
|
207
209
|
srcDir: resolve(nuxt.options.srcDir, "server"),
|
|
@@ -235,7 +237,7 @@ async function setupNitroBridge() {
|
|
|
235
237
|
],
|
|
236
238
|
prerender: {
|
|
237
239
|
crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false,
|
|
238
|
-
routes: [].concat(nuxt.options._generate ? ["/", ...
|
|
240
|
+
routes: [].concat(nuxt.options._generate ? ["/", ...routes] : []).concat(nuxt.options.ssr === false ? ["/", "/200", "/404"] : [])
|
|
239
241
|
},
|
|
240
242
|
externals: {
|
|
241
243
|
inline: [
|
|
@@ -267,6 +269,10 @@ async function setupNitroBridge() {
|
|
|
267
269
|
nitroConfig.virtual["#build/dist/server/server.mjs"] = "export default () => {}";
|
|
268
270
|
}
|
|
269
271
|
delete nitroConfig.alias["#build"];
|
|
272
|
+
if (nuxt.options.generate.routes instanceof Function && !nuxt.options.dev && !nuxt.options._prepare) {
|
|
273
|
+
console.warn("It is recommended to migrate the `generate.routes` function to the `nitro:config` hook instead. See https://github.com/nuxt/bridge/pull/475.");
|
|
274
|
+
nitroConfig.prerender.routes.push(...await nuxt.options.generate.routes() || []);
|
|
275
|
+
}
|
|
270
276
|
await nuxt.callHook("nitro:config", nitroConfig);
|
|
271
277
|
const nitro = await createNitro(nitroConfig);
|
|
272
278
|
await nuxt.callHook("nitro:init", nitro);
|
|
@@ -402,11 +408,11 @@ async function setupNitroBridge() {
|
|
|
402
408
|
});
|
|
403
409
|
nuxt.options.nitro = nuxt.options.nitro || {};
|
|
404
410
|
if (!nuxt.options.dev && nuxt.options._generate) {
|
|
405
|
-
const
|
|
411
|
+
const routes2 = /* @__PURE__ */ new Set();
|
|
406
412
|
nuxt.hook("build:extendRoutes", (pages) => {
|
|
407
|
-
|
|
413
|
+
routes2.clear();
|
|
408
414
|
for (const path of nuxt.options.nitro.prerender?.routes || []) {
|
|
409
|
-
|
|
415
|
+
routes2.add(path);
|
|
410
416
|
}
|
|
411
417
|
const processPages = (pages2, currentPath = "/") => {
|
|
412
418
|
for (const page of pages2) {
|
|
@@ -414,7 +420,7 @@ async function setupNitroBridge() {
|
|
|
414
420
|
continue;
|
|
415
421
|
}
|
|
416
422
|
const path = joinURL(currentPath, page.path);
|
|
417
|
-
|
|
423
|
+
routes2.add(path);
|
|
418
424
|
if (page.children) {
|
|
419
425
|
processPages(page.children, path);
|
|
420
426
|
}
|
|
@@ -423,7 +429,7 @@ async function setupNitroBridge() {
|
|
|
423
429
|
processPages(pages);
|
|
424
430
|
});
|
|
425
431
|
nuxt.hook("nitro:build:before", (nitro2) => {
|
|
426
|
-
nitro2.options.prerender.routes = [...
|
|
432
|
+
nitro2.options.prerender.routes = [...routes2];
|
|
427
433
|
});
|
|
428
434
|
}
|
|
429
435
|
if (nuxt.options.dev) {
|
|
@@ -1240,6 +1246,136 @@ const setupTranspile = () => {
|
|
|
1240
1246
|
});
|
|
1241
1247
|
};
|
|
1242
1248
|
|
|
1249
|
+
function uniq(arr) {
|
|
1250
|
+
return Array.from(new Set(arr));
|
|
1251
|
+
}
|
|
1252
|
+
const IS_CSS_RE = /\.(?:css|scss|sass|postcss|less|stylus|styl)(\?[^.]+)?$/;
|
|
1253
|
+
function isCSS(file) {
|
|
1254
|
+
return IS_CSS_RE.test(file);
|
|
1255
|
+
}
|
|
1256
|
+
function hashId(id) {
|
|
1257
|
+
return "$id_" + hash(id);
|
|
1258
|
+
}
|
|
1259
|
+
function hash(input, length = 8) {
|
|
1260
|
+
return createHash("sha256").update(input).digest("hex").slice(0, length);
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
const DEFAULT_APP_TEMPLATE = `
|
|
1264
|
+
<!DOCTYPE html>
|
|
1265
|
+
<html {{ HTML_ATTRS }}>
|
|
1266
|
+
<head {{ HEAD_ATTRS }}>
|
|
1267
|
+
{{ HEAD }}
|
|
1268
|
+
</head>
|
|
1269
|
+
<body {{ BODY_ATTRS }}>
|
|
1270
|
+
{{ APP }}
|
|
1271
|
+
</body>
|
|
1272
|
+
</html>
|
|
1273
|
+
`;
|
|
1274
|
+
async function prepareManifests(ctx) {
|
|
1275
|
+
const rDist = (...args) => resolve(ctx.nuxt.options.buildDir, "dist", ...args);
|
|
1276
|
+
await fse.mkdirp(rDist("server"));
|
|
1277
|
+
const customAppTemplateFile = resolve(ctx.nuxt.options.srcDir, "app.html");
|
|
1278
|
+
const APP_TEMPLATE = fse.existsSync(customAppTemplateFile) ? await fse.readFile(customAppTemplateFile, "utf-8") : DEFAULT_APP_TEMPLATE;
|
|
1279
|
+
const DEV_TEMPLATE = APP_TEMPLATE.replace(
|
|
1280
|
+
"</body>",
|
|
1281
|
+
'<script type="module" src="/@vite/client"><\/script><script type="module" src="/.nuxt/client.js"><\/script></body>'
|
|
1282
|
+
);
|
|
1283
|
+
const SPA_TEMPLATE = ctx.nuxt.options.dev ? DEV_TEMPLATE : APP_TEMPLATE;
|
|
1284
|
+
const SSR_TEMPLATE = ctx.nuxt.options.dev ? DEV_TEMPLATE : APP_TEMPLATE;
|
|
1285
|
+
await fse.writeFile(rDist("server/index.ssr.html"), SSR_TEMPLATE);
|
|
1286
|
+
await fse.writeFile(rDist("server/index.spa.html"), SPA_TEMPLATE);
|
|
1287
|
+
if (ctx.nuxt.options.dev) {
|
|
1288
|
+
await stubManifest(ctx);
|
|
1289
|
+
} else {
|
|
1290
|
+
await generateBuildManifest(ctx);
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
async function generateBuildManifest(ctx) {
|
|
1294
|
+
const rDist = (...args) => resolve(ctx.nuxt.options.buildDir, "dist", ...args);
|
|
1295
|
+
const viteClientManifest = await fse.readJSON(rDist("client/manifest.json"));
|
|
1296
|
+
const polyfillName = Object.values(viteClientManifest).find((entry) => entry.file.startsWith("polyfills-legacy."))?.file;
|
|
1297
|
+
const polyfill = await fse.readFile(rDist("client/" + polyfillName), "utf-8");
|
|
1298
|
+
const clientImports = /* @__PURE__ */ new Set();
|
|
1299
|
+
const clientEntry = {
|
|
1300
|
+
assets: /* @__PURE__ */ new Set(),
|
|
1301
|
+
css: /* @__PURE__ */ new Set(),
|
|
1302
|
+
dynamicImports: /* @__PURE__ */ new Set()
|
|
1303
|
+
};
|
|
1304
|
+
for (const entry in viteClientManifest) {
|
|
1305
|
+
if (!viteClientManifest[entry].file.startsWith("polyfills-legacy")) {
|
|
1306
|
+
clientImports.add(viteClientManifest[entry].file);
|
|
1307
|
+
for (const key of ["css", "assets", "dynamicImports"]) {
|
|
1308
|
+
for (const file of viteClientManifest[entry][key] || []) {
|
|
1309
|
+
clientEntry[key].add(file);
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
delete viteClientManifest[entry].isEntry;
|
|
1314
|
+
}
|
|
1315
|
+
const clientEntryCode = [
|
|
1316
|
+
polyfill,
|
|
1317
|
+
"var appConfig = window && window.__NUXT__ && window.__NUXT__.config.app || {}",
|
|
1318
|
+
'var publicBase = appConfig.cdnURL || appConfig.baseURL || "/"',
|
|
1319
|
+
`var imports = ${JSON.stringify([...clientImports])};`,
|
|
1320
|
+
"imports.reduce(function(p, id){return p.then(function(){return System.import(publicBase + appConfig.buildAssetsDir.slice(1) + id)})}, Promise.resolve())"
|
|
1321
|
+
].join("\n");
|
|
1322
|
+
const clientEntryName = "entry-legacy." + hash(clientEntryCode) + ".js";
|
|
1323
|
+
await fse.writeFile(rDist("client", clientEntryName), clientEntryCode, "utf-8");
|
|
1324
|
+
const manifest = normalizeViteManifest({
|
|
1325
|
+
[clientEntryName]: {
|
|
1326
|
+
file: clientEntryName,
|
|
1327
|
+
module: true,
|
|
1328
|
+
isEntry: true,
|
|
1329
|
+
css: [...clientEntry.css],
|
|
1330
|
+
assets: [...clientEntry.assets],
|
|
1331
|
+
dynamicImports: [...clientEntry.dynamicImports]
|
|
1332
|
+
},
|
|
1333
|
+
...viteClientManifest
|
|
1334
|
+
});
|
|
1335
|
+
await writeClientManifest(manifest, ctx.nuxt.options.buildDir);
|
|
1336
|
+
await fse.remove(rDist("client/manifest.json"));
|
|
1337
|
+
}
|
|
1338
|
+
async function stubManifest(ctx) {
|
|
1339
|
+
const clientManifest = {
|
|
1340
|
+
"empty.js": {
|
|
1341
|
+
isEntry: true,
|
|
1342
|
+
file: "empty.js"
|
|
1343
|
+
}
|
|
1344
|
+
};
|
|
1345
|
+
await writeClientManifest(normalizeViteManifest(clientManifest), ctx.nuxt.options.buildDir);
|
|
1346
|
+
}
|
|
1347
|
+
async function generateDevSSRManifest(ctx, css = []) {
|
|
1348
|
+
const devClientManifest = {
|
|
1349
|
+
"@vite/client": {
|
|
1350
|
+
isEntry: true,
|
|
1351
|
+
file: "@vite/client",
|
|
1352
|
+
css,
|
|
1353
|
+
module: true,
|
|
1354
|
+
resourceType: "script"
|
|
1355
|
+
},
|
|
1356
|
+
"entry.mjs": {
|
|
1357
|
+
isEntry: true,
|
|
1358
|
+
file: "entry.mjs",
|
|
1359
|
+
module: true,
|
|
1360
|
+
resourceType: "script"
|
|
1361
|
+
}
|
|
1362
|
+
};
|
|
1363
|
+
await writeClientManifest(normalizeViteManifest(devClientManifest), ctx.nuxt.options.buildDir);
|
|
1364
|
+
}
|
|
1365
|
+
async function writeClientManifest(clientManifest, buildDir) {
|
|
1366
|
+
const clientManifestJSON = JSON.stringify(clientManifest, null, 2);
|
|
1367
|
+
await fse.writeFile(resolve(buildDir, "dist/server/client.manifest.json"), clientManifestJSON, "utf-8");
|
|
1368
|
+
await fse.writeFile(resolve(buildDir, "dist/server/client.manifest.mjs"), `export default ${clientManifestJSON}`, "utf-8");
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
async function generateWebpackBuildManifest() {
|
|
1372
|
+
const nuxt = useNuxt();
|
|
1373
|
+
const rDist = (...args) => resolve(nuxt.options.buildDir, "dist", ...args);
|
|
1374
|
+
const webpackManifest = await fse.readJSON(rDist("server/client.manifest.json"));
|
|
1375
|
+
const manifest = normalizeWebpackManifest(webpackManifest);
|
|
1376
|
+
await writeClientManifest(manifest, nuxt.options.buildDir);
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1243
1379
|
const module = defineNuxtModule({
|
|
1244
1380
|
meta: {
|
|
1245
1381
|
name: "nuxt-bridge",
|
|
@@ -1288,6 +1424,11 @@ const module = defineNuxtModule({
|
|
|
1288
1424
|
nuxt.hook("modules:done", () => installModule(viteModule));
|
|
1289
1425
|
} else {
|
|
1290
1426
|
nuxt.options.build.transpile.push("vue");
|
|
1427
|
+
nuxt.hook("build:done", async () => {
|
|
1428
|
+
if (!nuxt.options.dev && !nuxt.options._prepare) {
|
|
1429
|
+
await generateWebpackBuildManifest();
|
|
1430
|
+
}
|
|
1431
|
+
});
|
|
1291
1432
|
}
|
|
1292
1433
|
if (opts.postcss8) {
|
|
1293
1434
|
const _require = createRequire(import.meta.url);
|
|
@@ -1322,4 +1463,4 @@ const module = defineNuxtModule({
|
|
|
1322
1463
|
}
|
|
1323
1464
|
});
|
|
1324
1465
|
|
|
1325
|
-
export { distDir as d, module as m };
|
|
1466
|
+
export { distDir as d, generateDevSSRManifest as g, hashId as h, isCSS as i, module as m, prepareManifests as p, uniq as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/bridge-edge",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-27690335.da95eff",
|
|
4
4
|
"repository": "nuxt/framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"@nuxt/kit": "^3.0.0-rc.8",
|
|
36
36
|
"@nuxt/postcss8": "^1.1.3",
|
|
37
37
|
"@nuxt/schema": "^3.0.0-rc.8",
|
|
38
|
-
"@nuxt/ui-templates": "^0.3.
|
|
38
|
+
"@nuxt/ui-templates": "^0.3.2",
|
|
39
39
|
"@vitejs/plugin-legacy": "^1.8.2",
|
|
40
40
|
"@vitejs/plugin-vue2": "^1.1.2",
|
|
41
41
|
"acorn": "^8.8.0",
|
|
42
42
|
"cookie-es": "^0.5.0",
|
|
43
|
-
"defu": "^6.
|
|
43
|
+
"defu": "^6.1.0",
|
|
44
44
|
"destr": "^1.1.1",
|
|
45
45
|
"enhanced-resolve": "^5.10.0",
|
|
46
46
|
"escape-string-regexp": "^5.0.0",
|
|
@@ -53,31 +53,31 @@
|
|
|
53
53
|
"hash-sum": "^2.0.0",
|
|
54
54
|
"knitwork": "^0.1.2",
|
|
55
55
|
"magic-string": "^0.26.2",
|
|
56
|
-
"mlly": "^0.5.
|
|
57
|
-
"nitropack": "^0.4.
|
|
56
|
+
"mlly": "^0.5.13",
|
|
57
|
+
"nitropack": "^0.4.24",
|
|
58
58
|
"node-fetch": "^3.2.10",
|
|
59
59
|
"nuxi": "^3.0.0-rc.8",
|
|
60
60
|
"ohash": "^0.1.5",
|
|
61
|
-
"pathe": "^0.3.
|
|
61
|
+
"pathe": "^0.3.5",
|
|
62
62
|
"perfect-debounce": "^0.1.3",
|
|
63
63
|
"postcss": "^8",
|
|
64
64
|
"postcss-import": "^14.1.0",
|
|
65
65
|
"postcss-import-resolver": "^2.0.0",
|
|
66
|
-
"postcss-preset-env": "^7.
|
|
66
|
+
"postcss-preset-env": "^7.8.0",
|
|
67
67
|
"postcss-url": "^10.1.3",
|
|
68
68
|
"scule": "^0.3.2",
|
|
69
69
|
"semver": "^7.3.7",
|
|
70
|
-
"std-env": "^3.
|
|
70
|
+
"std-env": "^3.2.1",
|
|
71
71
|
"ufo": "^0.8.5",
|
|
72
72
|
"unctx": "^2.0.1",
|
|
73
73
|
"unimport": "^0.6.7",
|
|
74
|
-
"unplugin": "^0.9.
|
|
74
|
+
"unplugin": "^0.9.3",
|
|
75
75
|
"untyped": "^0.4.5",
|
|
76
76
|
"vite": "^2.9.14",
|
|
77
|
-
"vue-bundle-renderer": "^0.
|
|
77
|
+
"vue-bundle-renderer": "^0.4.2"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@nuxt/bridge": "npm:@nuxt/bridge-edge@3.0.0-
|
|
80
|
+
"@nuxt/bridge": "npm:@nuxt/bridge-edge@3.0.0-27690335.da95eff",
|
|
81
81
|
"@nuxt/test-utils": "npm:@nuxt/test-utils-edge@latest",
|
|
82
82
|
"@nuxt/types": "^2.15.8",
|
|
83
83
|
"@nuxtjs/eslint-config": "^10.0.0",
|
|
@@ -87,13 +87,13 @@
|
|
|
87
87
|
"@types/node-fetch": "^3.0.2",
|
|
88
88
|
"@vueuse/head": "^0.7.9",
|
|
89
89
|
"cross-env": "^7.0.3",
|
|
90
|
-
"eslint": "^8.
|
|
90
|
+
"eslint": "^8.22.0",
|
|
91
91
|
"eslint-plugin-jsdoc": "^39.3.6",
|
|
92
92
|
"jiti": "^1.14.0",
|
|
93
93
|
"nuxt": "^2",
|
|
94
|
-
"unbuild": "0.8.
|
|
94
|
+
"unbuild": "0.8.9",
|
|
95
95
|
"vitest": "^0.21.1",
|
|
96
|
-
"vue": "^2.7.
|
|
96
|
+
"vue": "^2.7.9",
|
|
97
97
|
"vue-router": "^3"
|
|
98
98
|
},
|
|
99
99
|
"engines": {
|