@solongate/proxy 0.46.0 → 0.47.0

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.
@@ -6763,7 +6763,7 @@ function extractPaths(args) {
6763
6763
  if (/^https?:\/\//i.test(s))
6764
6764
  continue;
6765
6765
  if (s.includes("/") || s.includes("\\") || s.startsWith("."))
6766
- paths.push(s);
6766
+ paths.push(s.replace(/\\/g, "/"));
6767
6767
  }
6768
6768
  return paths;
6769
6769
  }
package/hooks/guard.mjs CHANGED
@@ -414,7 +414,10 @@ function extractPaths(args) {
414
414
  const paths = [];
415
415
  for (const s of scanStrings(args)) {
416
416
  if (/^https?:\/\//i.test(s)) continue;
417
- if (s.includes('/') || s.includes('\\') || s.startsWith('.')) paths.push(s);
417
+ // Normalize Windows backslashes to forward slashes so paths match the
418
+ // compiled Rego patterns (which are also normalized to "/"). OPA glob.match
419
+ // does no separator translation, so raw "C:\..." never matched "/" patterns.
420
+ if (s.includes('/') || s.includes('\\') || s.startsWith('.')) paths.push(s.replace(/\\/g, '/'));
418
421
  }
419
422
  return paths;
420
423
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "description": "AI tool security proxy — protect any AI tool server with customizable policies, path/command constraints, rate limiting, and audit logging. Zero code changes required.",
5
5
  "type": "module",
6
6
  "bin": {