@solongate/proxy 0.2.4 → 0.2.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/index.js +4 -2
- package/dist/init.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -543,8 +543,10 @@ process.stdin.on('end', async () => {
|
|
|
543
543
|
signal: AbortSignal.timeout(5000),
|
|
544
544
|
}).catch(() => {});
|
|
545
545
|
}
|
|
546
|
-
// Exit 2 = BLOCK.
|
|
547
|
-
|
|
546
|
+
// Exit 2 = BLOCK. Write to both stdout and stderr for visibility.
|
|
547
|
+
const msg = 'SOLONGATE BLOCKED: ' + threat;
|
|
548
|
+
process.stdout.write(msg);
|
|
549
|
+
process.stderr.write(msg);
|
|
548
550
|
process.exit(2);
|
|
549
551
|
}
|
|
550
552
|
} catch {
|
package/dist/init.js
CHANGED
|
@@ -262,8 +262,10 @@ process.stdin.on('end', async () => {
|
|
|
262
262
|
signal: AbortSignal.timeout(5000),
|
|
263
263
|
}).catch(() => {});
|
|
264
264
|
}
|
|
265
|
-
// Exit 2 = BLOCK.
|
|
266
|
-
|
|
265
|
+
// Exit 2 = BLOCK. Write to both stdout and stderr for visibility.
|
|
266
|
+
const msg = 'SOLONGATE BLOCKED: ' + threat;
|
|
267
|
+
process.stdout.write(msg);
|
|
268
|
+
process.stderr.write(msg);
|
|
267
269
|
process.exit(2);
|
|
268
270
|
}
|
|
269
271
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "MCP security proxy \u00e2\u20ac\u201d protect any MCP server with policies, input validation, rate limiting, and audit logging. Zero code changes required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|