@modelcontextprotocol/sdk
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -52,4 +52,13 @@ import process from "node:process"; | ||
var _a; | ||
// Remove our event listeners first | ||
this._stdin.off("data", this._ondata); | ||
this._stdin.off("error", this._onerror); | ||
// Check if we were the only data listener | ||
const remainingDataListeners = this._stdin.listenerCount('data'); | ||
if (remainingDataListeners === 0) { | ||
// Only pause stdin if we were the only listener | ||
// This prevents interfering with other parts of the application that might be using stdin | ||
this._stdin.pause(); | ||
} | ||
// Clear the buffer and notify closure | ||
this._readBuffer.clear(); | ||
@@ -56,0 +65,0 @@ (_a = this.onclose) === null || _a === void 0 ? void 0 : _a.call(this); |
{ | ||
"name": "@modelcontextprotocol/sdk", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Model Context Protocol implementation for TypeScript", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1596883
30790