@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.
- package/hooks/guard.bundled.mjs +1 -1
- package/hooks/guard.mjs +4 -1
- package/package.json +1 -1
package/hooks/guard.bundled.mjs
CHANGED
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
|
-
|
|
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.
|
|
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": {
|