@forklaunch/express 1.2.52 → 1.2.53
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/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/src/cluster/bun.serve.shim.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1496,7 +1496,7 @@ function serveExpress(app, openTelemetryCollector, opts = {}) {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
} catch (error) {
|
|
1498
1498
|
openTelemetryCollector.error("Request processing error:", error);
|
|
1499
|
-
const message = development
|
|
1499
|
+
const message = development && error instanceof Error && error.message ? error.message : "Internal Server Error";
|
|
1500
1500
|
return new Response(message, {
|
|
1501
1501
|
status: 500,
|
|
1502
1502
|
headers: { "content-type": "text/plain" }
|
package/lib/index.mjs
CHANGED
|
@@ -1470,7 +1470,7 @@ function serveExpress(app, openTelemetryCollector, opts = {}) {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
} catch (error) {
|
|
1472
1472
|
openTelemetryCollector.error("Request processing error:", error);
|
|
1473
|
-
const message = development
|
|
1473
|
+
const message = development && error instanceof Error && error.message ? error.message : "Internal Server Error";
|
|
1474
1474
|
return new Response(message, {
|
|
1475
1475
|
status: 500,
|
|
1476
1476
|
headers: { "content-type": "text/plain" }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bun.serve.shim.d.ts","sourceRoot":"","sources":["../../../src/cluster/bun.serve.shim.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,OAAO,EAIR,MAAM,SAAS,CAAC;AA4KjB,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CA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