@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.
Files changed (43) hide show
  1. package/dist/{analyze-D1BPc4_P.js → analyze-Bt2ReBPd.js} +8 -14
  2. package/dist/analyze-Bt2ReBPd.js.map +1 -0
  3. package/dist/{analyze-CcnwZxfN.cjs → analyze-C63iKGdc.cjs} +8 -14
  4. package/dist/analyze-C63iKGdc.cjs.map +1 -0
  5. package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
  6. package/dist/build/analyze.cjs +1 -1
  7. package/dist/build/analyze.js +1 -1
  8. package/dist/build/bundler.cjs +1 -1
  9. package/dist/build/bundler.d.ts.map +1 -1
  10. package/dist/build/bundler.js +1 -1
  11. package/dist/build/index.cjs +4 -4
  12. package/dist/build/index.js +4 -4
  13. package/dist/build/plugins/tsconfig-paths.d.ts +1 -2
  14. package/dist/build/plugins/tsconfig-paths.d.ts.map +1 -1
  15. package/dist/{build-Dcbrde_a.js → build-CzQOU_R_.js} +4 -4
  16. package/dist/{build-Dcbrde_a.js.map → build-CzQOU_R_.js.map} +1 -1
  17. package/dist/{build-FfLGNT2X.cjs → build-R9J3NPCo.cjs} +4 -4
  18. package/dist/{build-FfLGNT2X.cjs.map → build-R9J3NPCo.cjs.map} +1 -1
  19. package/dist/bundler/index.cjs +11 -11
  20. package/dist/bundler/index.cjs.map +1 -1
  21. package/dist/bundler/index.d.ts +1 -1
  22. package/dist/bundler/index.d.ts.map +1 -1
  23. package/dist/bundler/index.js +11 -11
  24. package/dist/bundler/index.js.map +1 -1
  25. package/dist/{bundler-CjoP35xh.cjs → bundler-DGkVfnZZ.cjs} +5 -9
  26. package/dist/{bundler-CjoP35xh.cjs.map → bundler-DGkVfnZZ.cjs.map} +1 -1
  27. package/dist/{bundler-CC0klr1q.js → bundler-x6FFX2HA.js} +5 -9
  28. package/dist/{bundler-CC0klr1q.js.map → bundler-x6FFX2HA.js.map} +1 -1
  29. package/dist/{bundlerOptions-09fXosF4.cjs → bundlerOptions-DLCNP_3I.cjs} +2 -2
  30. package/dist/{bundlerOptions-09fXosF4.cjs.map → bundlerOptions-DLCNP_3I.cjs.map} +1 -1
  31. package/dist/{bundlerOptions-BaAR_H3U.js → bundlerOptions-GfCeZxNY.js} +2 -2
  32. package/dist/{bundlerOptions-BaAR_H3U.js.map → bundlerOptions-GfCeZxNY.js.map} +1 -1
  33. package/dist/docs/SKILL.md +1 -1
  34. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  35. package/dist/index.cjs +2 -2
  36. package/dist/index.js +2 -2
  37. package/dist/server/index.cjs +12 -9
  38. package/dist/server/index.cjs.map +1 -1
  39. package/dist/server/index.js +12 -9
  40. package/dist/server/index.js.map +1 -1
  41. package/package.json +6 -6
  42. package/dist/analyze-CcnwZxfN.cjs.map +0 -1
  43. package/dist/analyze-D1BPc4_P.js.map +0 -1
@@ -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" && "status" in error ? error.status : void 0;
3552
- if (!(typeof httpStatus === "number" && httpStatus >= 400 && httpStatus < 500)) this.mastra.getLogger()?.error("Error calling handler", {
3553
- error: error instanceof Error ? {
3554
- message: error.message,
3555
- stack: error.stack
3556
- } : error,
3557
- path: route.path,
3558
- method: route.method
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") {