nuxt-nightly 4.2.2-29420222.08d9d2f3 → 4.2.2-29421510.9728d9e2
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.
|
@@ -4,17 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { defineAsyncComponent } from "vue";
|
|
7
|
+
import { escapeHtml } from "@vue/shared";
|
|
7
8
|
const props = defineProps({
|
|
8
9
|
error: Object
|
|
9
10
|
});
|
|
10
11
|
const _error = props.error;
|
|
11
|
-
const stacktrace = _error.stack ? _error.stack.split("\n").splice(1).map((line) => {
|
|
12
|
+
const stacktrace = import.meta.dev && _error.stack ? _error.stack.split("\n").splice(1).map((line) => {
|
|
12
13
|
const text = line.replace("webpack:/", "").replace(".vue", ".js").trim();
|
|
13
14
|
return {
|
|
14
15
|
text,
|
|
15
16
|
internal: line.includes("node_modules") && !line.includes(".cache") || line.includes("internal") || line.includes("new Promise")
|
|
16
17
|
};
|
|
17
|
-
}).map((i) => `<span class="stack${i.internal ? " internal" : ""}">${i.text}</span>`).join("\n") : "";
|
|
18
|
+
}).map((i) => `<span class="stack${i.internal ? " internal" : ""}">${escapeHtml(i.text)}</span>`).join("\n") : "";
|
|
18
19
|
const statusCode = Number(_error.statusCode || 500);
|
|
19
20
|
const is404 = statusCode === 404;
|
|
20
21
|
const statusMessage = _error.statusMessage ?? (is404 ? "Page Not Found" : "Internal Server Error");
|
package/dist/index.mjs
CHANGED
|
@@ -3837,7 +3837,7 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
3837
3837
|
});
|
|
3838
3838
|
}
|
|
3839
3839
|
|
|
3840
|
-
const version = "4.2.2-
|
|
3840
|
+
const version = "4.2.2-29421510.9728d9e2";
|
|
3841
3841
|
|
|
3842
3842
|
function createImportProtectionPatterns(nuxt, options) {
|
|
3843
3843
|
const patterns = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-nightly",
|
|
3
|
-
"version": "4.2.2-
|
|
3
|
+
"version": "4.2.2-29421510.9728d9e2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"@dxup/nuxt": "^0.2.2",
|
|
68
68
|
"@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
|
|
69
69
|
"@nuxt/devtools": "^3.1.1",
|
|
70
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.2-
|
|
71
|
-
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.2-
|
|
72
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-
|
|
70
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.2-29421510.9728d9e2",
|
|
71
|
+
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.2-29421510.9728d9e2",
|
|
72
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-29421510.9728d9e2",
|
|
73
73
|
"@nuxt/telemetry": "^2.6.6",
|
|
74
|
-
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.2-
|
|
74
|
+
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.2-29421510.9728d9e2",
|
|
75
75
|
"@unhead/vue": "^2.0.19",
|
|
76
76
|
"@vue/shared": "^3.5.25",
|
|
77
77
|
"c12": "^3.3.2",
|