fastmcp 4.20.4 → 4.20.5
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/FastMCP.cjs +2 -2
- package/dist/FastMCP.js +1 -1
- package/dist/{chunk-2UDJ6Y3G.js → chunk-SZKPR5YH.js} +7 -1
- package/dist/{chunk-2UDJ6Y3G.js.map → chunk-SZKPR5YH.js.map} +1 -1
- package/dist/{chunk-XU6TVDEG.cjs → chunk-XE65I37N.cjs} +7 -1
- package/dist/chunk-XE65I37N.cjs.map +1 -0
- package/dist/examples/custom-routes.cjs +2 -2
- package/dist/examples/custom-routes.js +1 -1
- package/dist/openapi/index.cjs +5 -5
- package/dist/openapi/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-XU6TVDEG.cjs.map +0 -1
package/dist/FastMCP.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkXE65I37Ncjs = require('./chunk-XE65I37N.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -49,5 +49,5 @@ var _chunkYO76IUZ6cjs = require('./chunk-YO76IUZ6.cjs');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
exports.AuthProvider = _chunkYO76IUZ6cjs.AuthProvider; exports.AzureProvider = _chunkYO76IUZ6cjs.AzureProvider; exports.DiscoveryDocumentCache =
|
|
52
|
+
exports.AuthProvider = _chunkYO76IUZ6cjs.AuthProvider; exports.AzureProvider = _chunkYO76IUZ6cjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkXE65I37Ncjs.DiscoveryDocumentCache; exports.FastMCP = _chunkXE65I37Ncjs.FastMCP; exports.FastMCPError = _chunkXE65I37Ncjs.FastMCPError; exports.FastMCPSession = _chunkXE65I37Ncjs.FastMCPSession; exports.GitHubProvider = _chunkYO76IUZ6cjs.GitHubProvider; exports.GoogleProvider = _chunkYO76IUZ6cjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkXE65I37Ncjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkYO76IUZ6cjs.OAuthProvider; exports.ServerState = _chunkXE65I37Ncjs.ServerState; exports.SessionError = _chunkXE65I37Ncjs.SessionError; exports.UnexpectedStateError = _chunkXE65I37Ncjs.UnexpectedStateError; exports.UserError = _chunkXE65I37Ncjs.UserError; exports.audioContent = _chunkXE65I37Ncjs.audioContent; exports.getAuthSession = _chunkYO76IUZ6cjs.getAuthSession; exports.imageContent = _chunkXE65I37Ncjs.imageContent; exports.jsonSchemaAdapter = _chunkXE65I37Ncjs.jsonSchemaAdapter; exports.requireAll = _chunkYO76IUZ6cjs.requireAll; exports.requireAny = _chunkYO76IUZ6cjs.requireAny; exports.requireAuth = _chunkYO76IUZ6cjs.requireAuth; exports.requireRole = _chunkYO76IUZ6cjs.requireRole; exports.requireScopes = _chunkYO76IUZ6cjs.requireScopes;
|
|
53
53
|
//# sourceMappingURL=FastMCP.cjs.map
|
package/dist/FastMCP.js
CHANGED
|
@@ -2320,6 +2320,12 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
2320
2320
|
return;
|
|
2321
2321
|
}
|
|
2322
2322
|
} catch (error) {
|
|
2323
|
+
if (res.headersSent) {
|
|
2324
|
+
this.#logger.error("[FastMCP error] custom route stream failed", error);
|
|
2325
|
+
res.destroy();
|
|
2326
|
+
res.end();
|
|
2327
|
+
return;
|
|
2328
|
+
}
|
|
2323
2329
|
this.#logger.debug("[FastMCP debug] Hono route not matched", error);
|
|
2324
2330
|
}
|
|
2325
2331
|
const healthConfig = this.#options.health ?? {};
|
|
@@ -2907,4 +2913,4 @@ export {
|
|
|
2907
2913
|
FastMCPSession,
|
|
2908
2914
|
FastMCP
|
|
2909
2915
|
};
|
|
2910
|
-
//# sourceMappingURL=chunk-
|
|
2916
|
+
//# sourceMappingURL=chunk-SZKPR5YH.js.map
|