vike 0.4.241-commit-206146b → 0.4.241
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,15 +1,9 @@
|
|
|
1
1
|
export { logErrorServer };
|
|
2
2
|
import pc from '@brillout/picocolors';
|
|
3
|
-
import {
|
|
3
|
+
import { isObject } from './utils.js';
|
|
4
4
|
import { execHookOnError } from './renderPage/execHookOnError.js';
|
|
5
5
|
function logErrorServer(err) {
|
|
6
6
|
execHookOnError(err);
|
|
7
|
-
// TODO https://gist.github.com/brillout/066293a687ab7cf695e62ad867bc6a9c
|
|
8
|
-
if (isObject(err) &&
|
|
9
|
-
// Set by react-streaming
|
|
10
|
-
isCallable(err.getEnhancedError)) {
|
|
11
|
-
err = err.getEnhancedError(err);
|
|
12
|
-
}
|
|
13
7
|
// We ensure we print a string; Cloudflare Workers doesn't seem to properly stringify `Error` objects.
|
|
14
8
|
// - TO-DO/eventually: is that still true? Let's eventually remove it and see if it crashes Cloudflare.
|
|
15
9
|
const errStr = isObject(err) && 'stack' in err ? String(err.stack) : String(err);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.241
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.241";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.241
|
|
2
|
+
export const PROJECT_VERSION = '0.4.241';
|