Skip to content

Commit 8a72741

Browse files
committed
Implement RPC fix
1 parent 1f17c18 commit 8a72741

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

patches/arrpc@3.5.0.patch

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/src/process/index.js b/src/process/index.js
2-
index 389b0845256a34b4536d6da99edb00d17f13a6b4..f17a0ac687e9110ebfd33cb91fd2f6250d318643 100644
2+
index f445024f14ecfe5ee0eb70fe42535591c76838dc..e37299dcf12366896d04690773bf0474629112da 100644
33
--- a/src/process/index.js
44
+++ b/src/process/index.js
55
@@ -5,8 +5,20 @@ import fs from 'node:fs';
@@ -25,3 +25,12 @@ index 389b0845256a34b4536d6da99edb00d17f13a6b4..f17a0ac687e9110ebfd33cb91fd2f625
2525

2626
import * as Natives from './native/index.js';
2727
const Native = Natives[process.platform];
28+
@@ -38,7 +50,7 @@ export default class ProcessServer {
29+
const path = _path.toLowerCase().replaceAll('\\', '/');
30+
const toCompare = [];
31+
const splitPath = path.split('/');
32+
- for (let i = 1; i < splitPath.length; i++) {
33+
+ for (let i = 1; i <= splitPath.length; i++) {
34+
toCompare.push(splitPath.slice(-i).join('/'));
35+
}
36+

0 commit comments

Comments
 (0)