fastmcp 4.22.7 → 4.22.8
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-QICOIGCH.cjs → chunk-44X25GBU.cjs} +13 -2
- package/dist/chunk-44X25GBU.cjs.map +1 -0
- package/dist/{chunk-NI4JFIL4.js → chunk-76QWMCYJ.js} +13 -2
- package/dist/chunk-76QWMCYJ.js.map +1 -0
- package/dist/edge/index.cjs +9 -0
- package/dist/edge/index.cjs.map +1 -1
- package/dist/edge/index.js +9 -0
- package/dist/edge/index.js.map +1 -1
- package/dist/examples/custom-routes.cjs +2 -2
- package/dist/examples/custom-routes.js +1 -1
- package/dist/openapi/index.cjs +28 -16
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.js +19 -7
- package/dist/openapi/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-NI4JFIL4.js.map +0 -1
- package/dist/chunk-QICOIGCH.cjs.map +0 -1
|
@@ -996,6 +996,9 @@ ${error instanceof Error ? error.stack : JSON.stringify(error)}`
|
|
|
996
996
|
break;
|
|
997
997
|
}
|
|
998
998
|
await delay(retryDelay);
|
|
999
|
+
if (this.#connectionState === "closed") {
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
999
1002
|
}
|
|
1000
1003
|
if (!this.#clientCapabilities) {
|
|
1001
1004
|
this.#logger.warn(
|
|
@@ -1728,7 +1731,15 @@ function joinPaths(basePath, path) {
|
|
|
1728
1731
|
return `${basePath}${normalizePath(path)}`;
|
|
1729
1732
|
}
|
|
1730
1733
|
function matchUriTemplate(template, uri) {
|
|
1731
|
-
|
|
1734
|
+
let match;
|
|
1735
|
+
try {
|
|
1736
|
+
match = template.fromUri(uri);
|
|
1737
|
+
} catch (error) {
|
|
1738
|
+
if (error instanceof URIError) {
|
|
1739
|
+
return void 0;
|
|
1740
|
+
}
|
|
1741
|
+
throw error;
|
|
1742
|
+
}
|
|
1732
1743
|
if (!match) {
|
|
1733
1744
|
return void 0;
|
|
1734
1745
|
}
|
|
@@ -3123,4 +3134,4 @@ export {
|
|
|
3123
3134
|
FastMCPSession,
|
|
3124
3135
|
FastMCP
|
|
3125
3136
|
};
|
|
3126
|
-
//# sourceMappingURL=chunk-
|
|
3137
|
+
//# sourceMappingURL=chunk-76QWMCYJ.js.map
|