@solongate/proxy 0.25.4 → 0.25.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 CHANGED
@@ -420,7 +420,7 @@ function isAlreadyProtected(server) {
420
420
  if (server.command === "@solongate/proxy") return true;
421
421
  for (const arg of args) {
422
422
  if (arg === "-y" || arg === "--yes") continue;
423
- if (arg === "@solongate/proxy" || arg === "solongate-proxy") return true;
423
+ if (arg === "@solongate/proxy" || arg === "@solongate/proxy@latest" || arg === "solongate-proxy") return true;
424
424
  if (/[/\\]packages[/\\]proxy[/\\]dist[/\\]index\.js$/.test(arg)) return true;
425
425
  break;
426
426
  }
@@ -429,7 +429,7 @@ function isAlreadyProtected(server) {
429
429
  function wrapServer(server, policy) {
430
430
  const env = { ...server.env ?? {} };
431
431
  env.SOLONGATE_API_KEY = "${SOLONGATE_API_KEY}";
432
- const proxyArgs = ["-y", "@solongate/proxy"];
432
+ const proxyArgs = ["-y", "@solongate/proxy@latest"];
433
433
  if (policy) {
434
434
  proxyArgs.push("--policy", policy);
435
435
  }
package/dist/init.js CHANGED
@@ -60,7 +60,7 @@ function isAlreadyProtected(server) {
60
60
  if (server.command === "@solongate/proxy") return true;
61
61
  for (const arg of args) {
62
62
  if (arg === "-y" || arg === "--yes") continue;
63
- if (arg === "@solongate/proxy" || arg === "solongate-proxy") return true;
63
+ if (arg === "@solongate/proxy" || arg === "@solongate/proxy@latest" || arg === "solongate-proxy") return true;
64
64
  if (/[/\\]packages[/\\]proxy[/\\]dist[/\\]index\.js$/.test(arg)) return true;
65
65
  break;
66
66
  }
@@ -69,7 +69,7 @@ function isAlreadyProtected(server) {
69
69
  function wrapServer(server, policy) {
70
70
  const env = { ...server.env ?? {} };
71
71
  env.SOLONGATE_API_KEY = "${SOLONGATE_API_KEY}";
72
- const proxyArgs = ["-y", "@solongate/proxy"];
72
+ const proxyArgs = ["-y", "@solongate/proxy@latest"];
73
73
  if (policy) {
74
74
  proxyArgs.push("--policy", policy);
75
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.25.4",
3
+ "version": "0.25.5",
4
4
  "description": "MCP security proxy — protect any MCP server with customizable policies, path/command constraints, rate limiting, and audit logging. Zero code changes required.",
5
5
  "type": "module",
6
6
  "bin": {