nuxt-nightly 4.1.3-29323244.f5a44742 → 4.1.3-29323415.bed410d6
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/app/composables/payload.js +2 -2
- package/dist/app/composables/script-stubs.d.ts +3 -0
- package/dist/app/composables/script-stubs.js +9 -0
- package/dist/core/runtime/nitro/handlers/renderer.js +2 -2
- package/dist/index.mjs +5 -2
- package/dist/pages/runtime/router.options.js +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasProtocol, joinURL
|
|
1
|
+
import { hasProtocol, joinURL } from "ufo";
|
|
2
2
|
import { parse } from "devalue";
|
|
3
3
|
import { getCurrentInstance, onServerPrefetch, reactive } from "vue";
|
|
4
4
|
import { useNuxtApp, useRuntimeConfig } from "../nuxt.js";
|
|
@@ -85,7 +85,7 @@ export async function isPrerendered(url = useRoute().path) {
|
|
|
85
85
|
if (!appManifest) {
|
|
86
86
|
return !!nuxtApp.payload.prerenderedAt;
|
|
87
87
|
}
|
|
88
|
-
url =
|
|
88
|
+
url = url.replace(/\/$/, "");
|
|
89
89
|
const manifest = await getAppManifest();
|
|
90
90
|
if (manifest.prerendered.includes(url)) {
|
|
91
91
|
return true;
|
|
@@ -27,3 +27,6 @@ export declare function useScriptYouTubePlayer(...args: unknown[]): void;
|
|
|
27
27
|
export declare function useScriptUmamiAnalytics(...args: unknown[]): void;
|
|
28
28
|
export declare function useScriptSnapchatPixel(...args: unknown[]): void;
|
|
29
29
|
export declare function useScriptRybbitAnalytics(...args: unknown[]): void;
|
|
30
|
+
export declare function useScriptDatabuddyAnalytics(...args: unknown[]): void;
|
|
31
|
+
export declare function useScriptRedditPixel(...args: unknown[]): void;
|
|
32
|
+
export declare function useScriptPayPal(...args: unknown[]): void;
|
|
@@ -93,3 +93,12 @@ export function useScriptSnapchatPixel(...args) {
|
|
|
93
93
|
export function useScriptRybbitAnalytics(...args) {
|
|
94
94
|
renderStubMessage("useScriptRybbitAnalytics");
|
|
95
95
|
}
|
|
96
|
+
export function useScriptDatabuddyAnalytics(...args) {
|
|
97
|
+
renderStubMessage("useScriptDatabuddyAnalytics");
|
|
98
|
+
}
|
|
99
|
+
export function useScriptRedditPixel(...args) {
|
|
100
|
+
renderStubMessage("useScriptRedditPixel");
|
|
101
|
+
}
|
|
102
|
+
export function useScriptPayPal(...args) {
|
|
103
|
+
renderStubMessage("useScriptPayPal");
|
|
104
|
+
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
renderResourceHeaders
|
|
7
7
|
} from "vue-bundle-renderer/runtime";
|
|
8
8
|
import { appendResponseHeader, createError, getQuery, getResponseStatus, getResponseStatusText, writeEarlyHints } from "h3";
|
|
9
|
-
import { getQuery as getURLQuery, joinURL
|
|
9
|
+
import { getQuery as getURLQuery, joinURL } from "ufo";
|
|
10
10
|
import { propsToString, renderSSRHead } from "@unhead/vue/server";
|
|
11
11
|
import destr from "destr";
|
|
12
12
|
import { defineRenderHandler, getRouteRules, useNitroApp } from "nitropack/runtime";
|
|
@@ -106,7 +106,7 @@ export default defineRenderHandler(async (event) => {
|
|
|
106
106
|
}
|
|
107
107
|
if (_PAYLOAD_EXTRACTION) {
|
|
108
108
|
appendResponseHeader(event, "x-nitro-prerender", joinURL(ssrContext.url.replace(/\?.*$/, ""), PAYLOAD_FILENAME));
|
|
109
|
-
await payloadCache.setItem(
|
|
109
|
+
await payloadCache.setItem(ssrContext.url.replace(/\/$/, ""), renderPayloadResponse(ssrContext));
|
|
110
110
|
}
|
|
111
111
|
const NO_SCRIPTS = process.env.NUXT_NO_SCRIPTS || routeOptions.noScripts;
|
|
112
112
|
const { styles, scripts } = getRequestDependencies(ssrContext, renderer.rendererContext);
|
package/dist/index.mjs
CHANGED
|
@@ -1973,7 +1973,10 @@ const scriptsStubsPreset = {
|
|
|
1973
1973
|
"useScriptNpm",
|
|
1974
1974
|
"useScriptUmamiAnalytics",
|
|
1975
1975
|
"useScriptSnapchatPixel",
|
|
1976
|
-
"useScriptRybbitAnalytics"
|
|
1976
|
+
"useScriptRybbitAnalytics",
|
|
1977
|
+
"useScriptDatabuddyAnalytics",
|
|
1978
|
+
"useScriptRedditPixel",
|
|
1979
|
+
"useScriptPayPal"
|
|
1977
1980
|
],
|
|
1978
1981
|
priority: -1,
|
|
1979
1982
|
from: "#app/composables/script-stubs"
|
|
@@ -3827,7 +3830,7 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
3827
3830
|
});
|
|
3828
3831
|
}
|
|
3829
3832
|
|
|
3830
|
-
const version = "4.1.3-
|
|
3833
|
+
const version = "4.1.3-29323415.bed410d6";
|
|
3831
3834
|
|
|
3832
3835
|
const createImportProtectionPatterns = (nuxt, options) => {
|
|
3833
3836
|
const patterns = [];
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
scrollBehavior(to, from, savedPosition) {
|
|
7
7
|
const nuxtApp = useNuxtApp();
|
|
8
8
|
const hashScrollBehaviour = useRouter().options?.scrollBehaviorType ?? "auto";
|
|
9
|
-
if (to.path === from.path) {
|
|
9
|
+
if (to.path.replace(/\/$/, "") === from.path.replace(/\/$/, "")) {
|
|
10
10
|
if (from.hash && !to.hash) {
|
|
11
11
|
return { left: 0, top: 0 };
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-nightly",
|
|
3
|
-
"version": "4.1.3-
|
|
3
|
+
"version": "4.1.3-29323415.bed410d6",
|
|
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.3-
|
|
71
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-
|
|
70
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.3-29323415.bed410d6",
|
|
71
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-29323415.bed410d6",
|
|
72
72
|
"@nuxt/telemetry": "^2.6.6",
|
|
73
|
-
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-
|
|
73
|
+
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-29323415.bed410d6",
|
|
74
74
|
"@unhead/vue": "^2.0.14",
|
|
75
75
|
"@vue/shared": "^3.5.21",
|
|
76
76
|
"c12": "^3.3.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"vue-router": "^4.5.1"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
|
-
"@nuxt/scripts": "0.
|
|
132
|
+
"@nuxt/scripts": "0.12.1",
|
|
133
133
|
"@parcel/watcher": "2.5.1",
|
|
134
134
|
"@types/estree": "1.0.8",
|
|
135
135
|
"@vitejs/plugin-vue": "6.0.1",
|