fastmcp 4.22.1 → 4.22.2
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-XFUILY54.js → chunk-TFX7BV4K.js} +2 -2
- package/dist/{chunk-XFUILY54.js.map → chunk-TFX7BV4K.js.map} +1 -1
- package/dist/{chunk-RN2Z26T4.cjs → chunk-V37MCHBL.cjs} +2 -2
- package/dist/{chunk-RN2Z26T4.cjs.map → chunk-V37MCHBL.cjs.map} +1 -1
- package/dist/edge/index.cjs +46 -5
- package/dist/edge/index.cjs.map +1 -1
- package/dist/edge/index.js +49 -8
- 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 +19 -6
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.js +15 -2
- package/dist/openapi/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -201,7 +201,7 @@ async function compileSchema(schema) {
|
|
|
201
201
|
return ajv.compile(schema);
|
|
202
202
|
}
|
|
203
203
|
function toIssue(error) {
|
|
204
|
-
const path = error.instancePath.split("/").
|
|
204
|
+
const path = error.instancePath.split("/").slice(1).map((segment) => segment.replaceAll("~1", "/").replaceAll("~0", "~")).map((segment) => {
|
|
205
205
|
const index = Number(segment);
|
|
206
206
|
return /^(?:0|[1-9]\d*)$/.test(segment) && Number.isSafeInteger(index) ? index : segment;
|
|
207
207
|
});
|
|
@@ -3048,4 +3048,4 @@ var FastMCP = class extends FastMCPEventEmitter {
|
|
|
3048
3048
|
|
|
3049
3049
|
|
|
3050
3050
|
exports.DiscoveryDocumentCache = DiscoveryDocumentCache; exports.jsonSchemaAdapter = jsonSchemaAdapter; exports.MEDIA_FETCH_TIMEOUT_MS = MEDIA_FETCH_TIMEOUT_MS; exports.imageContent = imageContent; exports.audioContent = audioContent; exports.FastMCPError = FastMCPError; exports.SessionError = SessionError; exports.UnexpectedStateError = UnexpectedStateError; exports.UserError = UserError; exports.ServerState = ServerState; exports.FastMCPSession = FastMCPSession; exports.FastMCP = FastMCP;
|
|
3051
|
-
//# sourceMappingURL=chunk-
|
|
3051
|
+
//# sourceMappingURL=chunk-V37MCHBL.cjs.map
|