@markwharton/pwa-core 3.2.0 → 3.2.1
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/server.d.ts +3 -1
- package/dist/server.js +2 -2
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -238,7 +238,9 @@ export declare function initErrorHandling(config?: {
|
|
|
238
238
|
* @example
|
|
239
239
|
* initErrorHandlingFromEnv(); // Uses process.env automatically
|
|
240
240
|
*/
|
|
241
|
-
export declare function initErrorHandlingFromEnv(
|
|
241
|
+
export declare function initErrorHandlingFromEnv(config?: {
|
|
242
|
+
callback?: ErrorCallback;
|
|
243
|
+
}): void;
|
|
242
244
|
/**
|
|
243
245
|
* Handles unexpected errors safely by logging details and returning a generic message.
|
|
244
246
|
* Use in catch blocks to avoid exposing internal error details to clients.
|
package/dist/server.js
CHANGED
|
@@ -363,9 +363,9 @@ function initErrorHandling(config = {}) {
|
|
|
363
363
|
* @example
|
|
364
364
|
* initErrorHandlingFromEnv(); // Uses process.env automatically
|
|
365
365
|
*/
|
|
366
|
-
function initErrorHandlingFromEnv() {
|
|
366
|
+
function initErrorHandlingFromEnv(config = {}) {
|
|
367
367
|
// Future: read ERROR_LOG_LEVEL, ERROR_INCLUDE_STACK, etc.
|
|
368
|
-
initErrorHandling(
|
|
368
|
+
initErrorHandling(config);
|
|
369
369
|
}
|
|
370
370
|
/**
|
|
371
371
|
* Handles unexpected errors safely by logging details and returning a generic message.
|