@mastra/deployer 0.0.1-alpha.22 → 0.0.1-alpha.25
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/CHANGELOG.md +20 -0
- package/dist/server/index.js +13 -3
- package/package.json +2 -2
- package/src/server/index.ts +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.0.1-alpha.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [327ece7]
|
|
8
|
+
- @mastra/core@0.1.27-alpha.80
|
|
9
|
+
|
|
10
|
+
## 0.0.1-alpha.24
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [21fe536]
|
|
15
|
+
- @mastra/core@0.1.27-alpha.79
|
|
16
|
+
|
|
17
|
+
## 0.0.1-alpha.23
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 88f18d7: Update cors support
|
|
22
|
+
|
|
3
23
|
## 0.0.1-alpha.22
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/server/index.js
CHANGED
|
@@ -2475,10 +2475,10 @@ var HTTPException = class extends Error {
|
|
|
2475
2475
|
}
|
|
2476
2476
|
};
|
|
2477
2477
|
|
|
2478
|
-
// ../../node_modules/.pnpm/hono-openapi@0.4.
|
|
2478
|
+
// ../../node_modules/.pnpm/hono-openapi@0.4.3_hono@4.6.17_openapi-types@12.1.3_zod@3.24.1/node_modules/hono-openapi/utils.js
|
|
2479
2479
|
var e = Symbol("openapi");
|
|
2480
2480
|
|
|
2481
|
-
// ../../node_modules/.pnpm/hono-openapi@0.4.
|
|
2481
|
+
// ../../node_modules/.pnpm/hono-openapi@0.4.3_hono@4.6.17_openapi-types@12.1.3_zod@3.24.1/node_modules/hono-openapi/index.js
|
|
2482
2482
|
function n(n2) {
|
|
2483
2483
|
const { validateResponse: s2, ...o2 } = n2;
|
|
2484
2484
|
return Object.assign(async (t, o3) => {
|
|
@@ -9272,7 +9272,17 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
9272
9272
|
});
|
|
9273
9273
|
return acc;
|
|
9274
9274
|
}, {});
|
|
9275
|
-
app.use(
|
|
9275
|
+
app.use(
|
|
9276
|
+
"*",
|
|
9277
|
+
cors({
|
|
9278
|
+
origin: "*",
|
|
9279
|
+
allowMethods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
|
|
9280
|
+
allowHeaders: ["Content-Type", "Authorization"],
|
|
9281
|
+
exposeHeaders: ["Content-Length", "X-Requested-With"],
|
|
9282
|
+
credentials: false,
|
|
9283
|
+
maxAge: 3600
|
|
9284
|
+
})
|
|
9285
|
+
);
|
|
9276
9286
|
if (options.apiReqLogs) {
|
|
9277
9287
|
app.use(logger());
|
|
9278
9288
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.25",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"esbuild": "^0.24.2",
|
|
26
26
|
"fs-extra": "^11.2.0",
|
|
27
27
|
"zod": "^3.24.1",
|
|
28
|
-
"@mastra/core": "0.1.27-alpha.
|
|
28
|
+
"@mastra/core": "0.1.27-alpha.80"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@hono/node-server": "^1.13.7",
|
package/src/server/index.ts
CHANGED
|
@@ -77,7 +77,17 @@ export async function createHonoServer(
|
|
|
77
77
|
}, {});
|
|
78
78
|
|
|
79
79
|
// Middleware
|
|
80
|
-
app.use(
|
|
80
|
+
app.use(
|
|
81
|
+
'*',
|
|
82
|
+
cors({
|
|
83
|
+
origin: '*',
|
|
84
|
+
allowMethods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
|
85
|
+
allowHeaders: ['Content-Type', 'Authorization'],
|
|
86
|
+
exposeHeaders: ['Content-Length', 'X-Requested-With'],
|
|
87
|
+
credentials: false,
|
|
88
|
+
maxAge: 3600,
|
|
89
|
+
}),
|
|
90
|
+
);
|
|
81
91
|
|
|
82
92
|
if (options.apiReqLogs) {
|
|
83
93
|
app.use(logger());
|