nuxt-nightly 4.1.1-29280872.e12125a9 → 4.1.1-29281685.c73957ae
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const setInterval:
|
|
1
|
+
export declare const setInterval: typeof globalThis.setInterval | (() => void);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createError } from "../composables/error.js";
|
|
2
2
|
const intervalError = "[nuxt] `setInterval` should not be used on the server. Consider wrapping it with an `onNuxtReady`, `onBeforeMount` or `onMounted` lifecycle hook, or ensure you only call it in the browser by checking `import.meta.client`.";
|
|
3
|
-
export const setInterval = import.meta.client ?
|
|
3
|
+
export const setInterval = import.meta.client ? globalThis.setInterval : () => {
|
|
4
4
|
if (import.meta.dev) {
|
|
5
5
|
throw createError({
|
|
6
6
|
statusCode: 500,
|
|
@@ -13,7 +13,7 @@ const CookieDefaults = {
|
|
|
13
13
|
decode: (val) => destr(decodeURIComponent(val)),
|
|
14
14
|
encode: (val) => encodeURIComponent(typeof val === "string" ? val : JSON.stringify(val))
|
|
15
15
|
};
|
|
16
|
-
const store = import.meta.client && cookieStore ?
|
|
16
|
+
const store = import.meta.client && cookieStore ? globalThis.cookieStore : void 0;
|
|
17
17
|
export function useCookie(name, _opts) {
|
|
18
18
|
const opts = { ...CookieDefaults, ..._opts };
|
|
19
19
|
opts.filter ??= (key) => key === name;
|
package/dist/index.mjs
CHANGED
|
@@ -2174,11 +2174,10 @@ const componentsIslandsTemplate = {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
};
|
|
2176
2176
|
const NON_VUE_RE = /\b\.(?!vue)\w+$/g;
|
|
2177
|
-
function resolveComponentTypes(
|
|
2178
|
-
const buildDir = nuxt.options.buildDir;
|
|
2177
|
+
function resolveComponentTypes(app, baseDir) {
|
|
2179
2178
|
const serverPlaceholderPath = resolve(distDir, "app/components/server-placeholder");
|
|
2180
2179
|
const componentTypes = app.components.filter((c) => !c.island).map((c) => {
|
|
2181
|
-
const type = `typeof ${genDynamicImport(isAbsolute(c.filePath) ? relative(
|
|
2180
|
+
const type = `typeof ${genDynamicImport(isAbsolute(c.filePath) ? relative(baseDir, c.filePath).replace(NON_VUE_RE, "") : c.filePath.replace(NON_VUE_RE, ""), { wrapper: false })}['${c.export}']`;
|
|
2182
2181
|
const isServerOnly = c.mode === "server" && c.filePath !== serverPlaceholderPath && !app.components.some((other) => other.pascalName === c.pascalName && other.mode === "client");
|
|
2183
2182
|
return [
|
|
2184
2183
|
c.pascalName,
|
|
@@ -2204,7 +2203,7 @@ const componentsDeclarationTemplate = {
|
|
|
2204
2203
|
filename: "components.d.ts",
|
|
2205
2204
|
write: true,
|
|
2206
2205
|
getContents: ({ app, nuxt }) => {
|
|
2207
|
-
const componentTypes = resolveComponentTypes(
|
|
2206
|
+
const componentTypes = resolveComponentTypes(app, nuxt.options.buildDir);
|
|
2208
2207
|
return `
|
|
2209
2208
|
import type { DefineComponent, SlotsType } from 'vue'
|
|
2210
2209
|
${nuxt.options.experimental.componentIslands ? islandType : ""}
|
|
@@ -2220,7 +2219,7 @@ export const componentNames: string[]
|
|
|
2220
2219
|
const componentsTypeTemplate = {
|
|
2221
2220
|
filename: "types/components.d.ts",
|
|
2222
2221
|
getContents: ({ app, nuxt }) => {
|
|
2223
|
-
const componentTypes = resolveComponentTypes(nuxt,
|
|
2222
|
+
const componentTypes = resolveComponentTypes(app, join(nuxt.options.buildDir, "types"));
|
|
2224
2223
|
return `
|
|
2225
2224
|
import type { DefineComponent, SlotsType } from 'vue'
|
|
2226
2225
|
${nuxt.options.experimental.componentIslands ? islandType : ""}
|
|
@@ -3758,7 +3757,7 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
3758
3757
|
});
|
|
3759
3758
|
}
|
|
3760
3759
|
|
|
3761
|
-
const version = "4.1.1-
|
|
3760
|
+
const version = "4.1.1-29281685.c73957ae";
|
|
3762
3761
|
|
|
3763
3762
|
const createImportProtectionPatterns = (nuxt, options) => {
|
|
3764
3763
|
const patterns = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-nightly",
|
|
3
|
-
"version": "4.1.1-
|
|
3
|
+
"version": "4.1.1-29281685.c73957ae",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
|
|
68
68
|
"@nuxt/devalue": "^2.0.2",
|
|
69
69
|
"@nuxt/devtools": "^2.6.3",
|
|
70
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.1-
|
|
71
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.1-
|
|
70
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.1-29281685.c73957ae",
|
|
71
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.1-29281685.c73957ae",
|
|
72
72
|
"@nuxt/telemetry": "^2.6.6",
|
|
73
|
-
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.1-
|
|
73
|
+
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.1-29281685.c73957ae",
|
|
74
74
|
"@unhead/vue": "^2.0.14",
|
|
75
75
|
"@vue/shared": "^3.5.20",
|
|
76
76
|
"c12": "^3.2.0",
|