@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.
- 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 +7 -7
- package/dist/analyze-CcnwZxfN.cjs.map +0 -1
- 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-
|
|
2
|
+
import { n as extractMastraOption } from "./bundlerOptions-GfCeZxNY.js";
|
|
3
3
|
import { Bundler } from "./bundler/index.js";
|
|
4
|
-
import "./build-
|
|
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();
|
package/dist/server/index.cjs
CHANGED
|
@@ -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"
|
|
3557
|
-
if (!(typeof httpStatus === "number" && httpStatus >= 400 && httpStatus < 500))
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
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") {
|