@mastra/deployer 1.71.0-alpha.0 → 1.71.0-alpha.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/{analyze-D1BPc4_P.js → analyze-Bt2ReBPd.js} +8 -14
- package/dist/analyze-Bt2ReBPd.js.map +1 -0
- package/dist/{analyze-CcnwZxfN.cjs → analyze-C63iKGdc.cjs} +8 -14
- package/dist/analyze-C63iKGdc.cjs.map +1 -0
- package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
- package/dist/build/analyze.cjs +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/bundler.cjs +1 -1
- package/dist/build/bundler.d.ts.map +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/index.cjs +4 -4
- package/dist/build/index.js +4 -4
- package/dist/build/plugins/tsconfig-paths.d.ts +1 -2
- package/dist/build/plugins/tsconfig-paths.d.ts.map +1 -1
- package/dist/{build-Dcbrde_a.js → build-CzQOU_R_.js} +4 -4
- package/dist/{build-Dcbrde_a.js.map → build-CzQOU_R_.js.map} +1 -1
- package/dist/{build-FfLGNT2X.cjs → build-R9J3NPCo.cjs} +4 -4
- package/dist/{build-FfLGNT2X.cjs.map → build-R9J3NPCo.cjs.map} +1 -1
- package/dist/bundler/index.cjs +11 -11
- package/dist/bundler/index.cjs.map +1 -1
- package/dist/bundler/index.d.ts +1 -1
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +11 -11
- package/dist/bundler/index.js.map +1 -1
- package/dist/{bundler-CjoP35xh.cjs → bundler-DGkVfnZZ.cjs} +5 -9
- package/dist/{bundler-CjoP35xh.cjs.map → bundler-DGkVfnZZ.cjs.map} +1 -1
- package/dist/{bundler-CC0klr1q.js → bundler-x6FFX2HA.js} +5 -9
- package/dist/{bundler-CC0klr1q.js.map → bundler-x6FFX2HA.js.map} +1 -1
- package/dist/{bundlerOptions-09fXosF4.cjs → bundlerOptions-DLCNP_3I.cjs} +2 -2
- package/dist/{bundlerOptions-09fXosF4.cjs.map → bundlerOptions-DLCNP_3I.cjs.map} +1 -1
- package/dist/{bundlerOptions-BaAR_H3U.js → bundlerOptions-GfCeZxNY.js} +2 -2
- package/dist/{bundlerOptions-BaAR_H3U.js.map → bundlerOptions-GfCeZxNY.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +12 -9
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +12 -9
- package/dist/server/index.js.map +1 -1
- package/package.json +6 -6
- package/dist/analyze-CcnwZxfN.cjs.map +0 -1
- package/dist/analyze-D1BPc4_P.js.map +0 -1
package/dist/server/index.js
CHANGED
|
@@ -3548,15 +3548,18 @@ var MastraServer$1 = class extends MastraServer {
|
|
|
3548
3548
|
const result = await route.handler(handlerParams);
|
|
3549
3549
|
return this.sendResponse(route, c, result, prefix);
|
|
3550
3550
|
} catch (error) {
|
|
3551
|
-
const httpStatus = error && typeof error === "object"
|
|
3552
|
-
if (!(typeof httpStatus === "number" && httpStatus >= 400 && httpStatus < 500))
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3551
|
+
const httpStatus = error && typeof error === "object" ? error.status ?? error.details?.status : void 0;
|
|
3552
|
+
if (!(typeof httpStatus === "number" && httpStatus >= 400 && httpStatus < 500)) {
|
|
3553
|
+
const logLevel = httpStatus === 501 ? "warn" : "error";
|
|
3554
|
+
this.mastra.getLogger()?.[logLevel]("Error calling handler", {
|
|
3555
|
+
error: error instanceof Error ? {
|
|
3556
|
+
message: error.message,
|
|
3557
|
+
stack: error.stack
|
|
3558
|
+
} : error,
|
|
3559
|
+
path: route.path,
|
|
3560
|
+
method: route.method
|
|
3561
|
+
});
|
|
3562
|
+
}
|
|
3560
3563
|
const customResponse = getCustomHTTPExceptionResponse(error);
|
|
3561
3564
|
if (customResponse) return customResponse;
|
|
3562
3565
|
if (error && typeof error === "object") {
|