@mastra/deployer 1.71.0-alpha.0 → 1.71.0

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 +7 -7
  42. package/dist/analyze-CcnwZxfN.cjs.map +0 -1
  43. package/dist/analyze-D1BPc4_P.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as createChildProcessLogger, i as DepsService, o as createPinoStream, r as Deps, t as FileService } from "./services-D_C2Onjo.js";
2
- import { n as extractMastraOption } from "./bundlerOptions-BaAR_H3U.js";
2
+ import { n as extractMastraOption } from "./bundlerOptions-GfCeZxNY.js";
3
3
  import { Bundler } from "./bundler/index.js";
4
- import "./build-Dcbrde_a.js";
4
+ import "./build-CzQOU_R_.js";
5
5
  //#region src/deploy/base.ts
6
6
  var Deployer = class extends Bundler {
7
7
  deps = new DepsService();
@@ -3553,15 +3553,18 @@ var MastraServer = class extends _mastra_server_server_adapter.MastraServer {
3553
3553
  const result = await route.handler(handlerParams);
3554
3554
  return this.sendResponse(route, c, result, prefix);
3555
3555
  } catch (error) {
3556
- const httpStatus = error && typeof error === "object" && "status" in error ? error.status : void 0;
3557
- if (!(typeof httpStatus === "number" && httpStatus >= 400 && httpStatus < 500)) this.mastra.getLogger()?.error("Error calling handler", {
3558
- error: error instanceof Error ? {
3559
- message: error.message,
3560
- stack: error.stack
3561
- } : error,
3562
- path: route.path,
3563
- method: route.method
3564
- });
3556
+ const httpStatus = error && typeof error === "object" ? error.status ?? error.details?.status : void 0;
3557
+ if (!(typeof httpStatus === "number" && httpStatus >= 400 && httpStatus < 500)) {
3558
+ const logLevel = httpStatus === 501 ? "warn" : "error";
3559
+ this.mastra.getLogger()?.[logLevel]("Error calling handler", {
3560
+ error: error instanceof Error ? {
3561
+ message: error.message,
3562
+ stack: error.stack
3563
+ } : error,
3564
+ path: route.path,
3565
+ method: route.method
3566
+ });
3567
+ }
3565
3568
  const customResponse = (0, _mastra_server_server_adapter.getCustomHTTPExceptionResponse)(error);
3566
3569
  if (customResponse) return customResponse;
3567
3570
  if (error && typeof error === "object") {