vike 0.4.240-commit-bcd07ae → 0.4.240-commit-8ce2cbd
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,11 +4,12 @@ import { isCallable, isObject } from './utils.js';
|
|
|
4
4
|
function logErrorServer(err) {
|
|
5
5
|
if (isObject(err) &&
|
|
6
6
|
// Set by react-streaming
|
|
7
|
+
// https://github.com/brillout/react-streaming/blob/0f93e09059a5936a1fb581bc1ce0bce473e0d5e0/src/server/renderToStream/common.ts#L36
|
|
7
8
|
isCallable(err.prettifyThisError)) {
|
|
8
9
|
err = err.prettifyThisError(err);
|
|
9
10
|
}
|
|
10
11
|
// We ensure we print a string; Cloudflare Workers doesn't seem to properly stringify `Error` objects.
|
|
11
|
-
// - TO-DO/eventuually: is that still true? Let's
|
|
12
|
+
// - TO-DO/eventuually: is that still true? Let's eventually remove it and see if it crashes Cloudflare.
|
|
12
13
|
const errStr = isObject(err) && 'stack' in err ? String(err.stack) : String(err);
|
|
13
14
|
console.error(pc.red(errStr));
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.240-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.240-commit-8ce2cbd";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.240-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.240-commit-8ce2cbd';
|