@solongate/proxy 0.81.9 → 0.81.10

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
@@ -10974,7 +10974,8 @@ function startProxy(upstream) {
10974
10974
  if (parsed["system"] !== void 0) parsed["system"] = redactDeep(parsed["system"], cfg);
10975
10975
  const msgs = parsed["messages"];
10976
10976
  for (let i = 0; i < msgs.length; i++) {
10977
- if (msgs[i] && msgs[i]["role"] !== "assistant") msgs[i] = redactDeep(msgs[i], cfg);
10977
+ const m = msgs[i];
10978
+ if (m && m["role"] !== "assistant") msgs[i] = redactDeep(m, cfg);
10978
10979
  }
10979
10980
  body = Buffer.from(JSON.stringify(parsed), "utf-8");
10980
10981
  } else {
package/dist/shield.js CHANGED
@@ -215,7 +215,8 @@ function startProxy(upstream) {
215
215
  if (parsed["system"] !== void 0) parsed["system"] = redactDeep(parsed["system"], cfg);
216
216
  const msgs = parsed["messages"];
217
217
  for (let i = 0; i < msgs.length; i++) {
218
- if (msgs[i] && msgs[i]["role"] !== "assistant") msgs[i] = redactDeep(msgs[i], cfg);
218
+ const m = msgs[i];
219
+ if (m && m["role"] !== "assistant") msgs[i] = redactDeep(m, cfg);
219
220
  }
220
221
  body = Buffer.from(JSON.stringify(parsed), "utf-8");
221
222
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.81.9",
3
+ "version": "0.81.10",
4
4
  "description": "AI tool security proxy: protect any AI tool server with customizable policies, path/command constraints, rate limiting, and audit logging. No code changes required.",
5
5
  "type": "module",
6
6
  "bin": {