pi-readseek 0.9.0 → 0.9.1
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.ts +6 -8
- package/package.json +2 -2
package/dist/index.ts
CHANGED
|
@@ -833,14 +833,12 @@ async function spawnReadSeekRaw(args, options = {}) {
|
|
|
833
833
|
stdio,
|
|
834
834
|
signal: cancelable ? options.signal : undefined
|
|
835
835
|
});
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
timeout.unref?.();
|
|
843
|
-
}
|
|
836
|
+
const timeoutMs = options.timeoutMs ?? readSeekTimeoutMs();
|
|
837
|
+
timeout = setTimeout(() => {
|
|
838
|
+
child.kill("SIGKILL");
|
|
839
|
+
fail(new Error(`readseek timed out after ${timeoutMs} ms`));
|
|
840
|
+
}, timeoutMs);
|
|
841
|
+
timeout.unref?.();
|
|
844
842
|
const childStdout = child.stdout;
|
|
845
843
|
const childStderr = child.stderr;
|
|
846
844
|
const childStdin = child.stdin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-readseek",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Pi extension for LINE:HASH-anchored file operations and structural code navigation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"node": ">=20.0.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@jarkkojs/readseek": "^0.9.
|
|
43
|
+
"@jarkkojs/readseek": "^0.9.1",
|
|
44
44
|
"diff": "^9.0.0",
|
|
45
45
|
"xxhash-wasm": "^1.1.0"
|
|
46
46
|
},
|