@solongate/proxy 0.17.1 → 0.17.3
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 +16 -5
- package/dist/init.js +16 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -469,9 +469,14 @@ function unlockProtectedDirs() {
|
|
|
469
469
|
if (!existsSync3(fullDir)) continue;
|
|
470
470
|
try {
|
|
471
471
|
if (process.platform === "win32") {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
472
|
+
try {
|
|
473
|
+
execSync(`powershell.exe -Command "icacls '${fullDir}' /remove:d '*S-1-1-0' /T /Q"`, { stdio: "ignore" });
|
|
474
|
+
} catch {
|
|
475
|
+
}
|
|
476
|
+
try {
|
|
477
|
+
execSync(`attrib -R /S /D "${fullDir}"`, { stdio: "ignore" });
|
|
478
|
+
} catch {
|
|
479
|
+
}
|
|
475
480
|
} else {
|
|
476
481
|
try {
|
|
477
482
|
execSync(`chattr -i -R "${fullDir}"`, { stdio: "ignore" });
|
|
@@ -544,8 +549,14 @@ function installHooks(selectedTools = []) {
|
|
|
544
549
|
const fullDir = resolve2(dir);
|
|
545
550
|
if (existsSync3(fullDir)) {
|
|
546
551
|
try {
|
|
547
|
-
|
|
548
|
-
|
|
552
|
+
try {
|
|
553
|
+
execSync(`powershell.exe -Command "icacls '${fullDir}' /remove:d '*S-1-1-0' /T /Q"`, { stdio: "ignore" });
|
|
554
|
+
} catch {
|
|
555
|
+
}
|
|
556
|
+
try {
|
|
557
|
+
execSync(`powershell.exe -Command "icacls '${fullDir}' /deny '*S-1-1-0:(OI)(CI)(DE,DC,WD,AD,WA)' /T /Q"`, { stdio: "ignore" });
|
|
558
|
+
} catch {
|
|
559
|
+
}
|
|
549
560
|
execSync(`attrib +R /S /D "${fullDir}"`, { stdio: "ignore" });
|
|
550
561
|
} catch {
|
|
551
562
|
}
|
package/dist/init.js
CHANGED
|
@@ -176,9 +176,14 @@ function unlockProtectedDirs() {
|
|
|
176
176
|
if (!existsSync(fullDir)) continue;
|
|
177
177
|
try {
|
|
178
178
|
if (process.platform === "win32") {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
try {
|
|
180
|
+
execSync(`powershell.exe -Command "icacls '${fullDir}' /remove:d '*S-1-1-0' /T /Q"`, { stdio: "ignore" });
|
|
181
|
+
} catch {
|
|
182
|
+
}
|
|
183
|
+
try {
|
|
184
|
+
execSync(`attrib -R /S /D "${fullDir}"`, { stdio: "ignore" });
|
|
185
|
+
} catch {
|
|
186
|
+
}
|
|
182
187
|
} else {
|
|
183
188
|
try {
|
|
184
189
|
execSync(`chattr -i -R "${fullDir}"`, { stdio: "ignore" });
|
|
@@ -251,8 +256,14 @@ function installHooks(selectedTools = []) {
|
|
|
251
256
|
const fullDir = resolve(dir);
|
|
252
257
|
if (existsSync(fullDir)) {
|
|
253
258
|
try {
|
|
254
|
-
|
|
255
|
-
|
|
259
|
+
try {
|
|
260
|
+
execSync(`powershell.exe -Command "icacls '${fullDir}' /remove:d '*S-1-1-0' /T /Q"`, { stdio: "ignore" });
|
|
261
|
+
} catch {
|
|
262
|
+
}
|
|
263
|
+
try {
|
|
264
|
+
execSync(`powershell.exe -Command "icacls '${fullDir}' /deny '*S-1-1-0:(OI)(CI)(DE,DC,WD,AD,WA)' /T /Q"`, { stdio: "ignore" });
|
|
265
|
+
} catch {
|
|
266
|
+
}
|
|
256
267
|
execSync(`attrib +R /S /D "${fullDir}"`, { stdio: "ignore" });
|
|
257
268
|
} catch {
|
|
258
269
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.3",
|
|
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": {
|