@clipform/mcp-server 2.15.10 → 2.15.12
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/{chunk-IP7263ND.js → chunk-2ONI6XP5.js} +20 -9
- package/dist/{chunk-IP7263ND.js.map → chunk-2ONI6XP5.js.map} +1 -1
- package/dist/{chunk-VLI2LYIB.js → chunk-CW6LYA3K.js} +3 -2
- package/dist/{chunk-VLI2LYIB.js.map → chunk-CW6LYA3K.js.map} +1 -1
- package/dist/{chunk-ORZYVIW3.js → chunk-F3MU6JRT.js} +2 -2
- package/dist/{chunk-SKNKSZOA.js → chunk-PCRTQ4DJ.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/prompts.js +2 -2
- package/dist/resources.js +2 -2
- package/dist/server.js +4 -4
- package/package.json +1 -1
- /package/dist/{chunk-ORZYVIW3.js.map → chunk-F3MU6JRT.js.map} +0 -0
- /package/dist/{chunk-SKNKSZOA.js.map → chunk-PCRTQ4DJ.js.map} +0 -0
|
@@ -3141,8 +3141,9 @@ async function callApi(path, options = {}) {
|
|
|
3141
3141
|
response = await fetch(url, fetchOptions);
|
|
3142
3142
|
} catch (err) {
|
|
3143
3143
|
const message = err instanceof Error ? err.message : String(err);
|
|
3144
|
+
const isTimeout = err instanceof Error && (err.name === "TimeoutError" || err.name === "AbortError" || /aborted due to timeout/i.test(message));
|
|
3144
3145
|
reportError({
|
|
3145
|
-
error_type: "connection_error",
|
|
3146
|
+
error_type: isTimeout ? "timeout" : "connection_error",
|
|
3146
3147
|
error_message: message,
|
|
3147
3148
|
tool_name: getMcpAuth()?.tool_name,
|
|
3148
3149
|
api_path: `${prefix}${path}`
|
|
@@ -3294,4 +3295,4 @@ export {
|
|
|
3294
3295
|
getSessionContextWithAuth,
|
|
3295
3296
|
getSessionContext
|
|
3296
3297
|
};
|
|
3297
|
-
//# sourceMappingURL=chunk-
|
|
3298
|
+
//# sourceMappingURL=chunk-CW6LYA3K.js.map
|