@omercnet/paseo-omp 0.4.0-next.133.1 → 0.4.0-next.134.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/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Release Please keeps this bundle-safe constant aligned with package.json. */
|
|
2
|
-
export const PASEO_OMP_PACKAGE_VERSION = "0.4.0-next.
|
|
2
|
+
export const PASEO_OMP_PACKAGE_VERSION = "0.4.0-next.134.1"; // x-release-please-version
|
|
@@ -225,7 +225,7 @@ export class SupervisedStdioClientTransport implements Transport {
|
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
227
|
const treeCleanup = this.startTreeCleanup();
|
|
228
|
-
if (!this.exited) {
|
|
228
|
+
if (this.platform !== "win32" && !this.exited) {
|
|
229
229
|
try {
|
|
230
230
|
child.stdin.end();
|
|
231
231
|
} catch {
|
|
@@ -233,6 +233,13 @@ export class SupervisedStdioClientTransport implements Transport {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
const terminated = await treeCleanup;
|
|
236
|
+
if (this.platform === "win32" && terminated && !this.exited) {
|
|
237
|
+
try {
|
|
238
|
+
child.stdin.end();
|
|
239
|
+
} catch {
|
|
240
|
+
// Process-tree cleanup remains authoritative when the input channel is already closed.
|
|
241
|
+
}
|
|
242
|
+
}
|
|
236
243
|
const exited =
|
|
237
244
|
this.spawnFailedWithoutProcess ||
|
|
238
245
|
this.exited ||
|
|
@@ -475,7 +475,7 @@ export class OmpRpcProcess {
|
|
|
475
475
|
this.clearChunk();
|
|
476
476
|
this.failPending(new Error("OMP RPC process was closed"));
|
|
477
477
|
const cleanupPromise = this.startTreeCleanup();
|
|
478
|
-
if (!this.exited) {
|
|
478
|
+
if (process.platform !== "win32" && !this.exited) {
|
|
479
479
|
try {
|
|
480
480
|
this.child.stdin.end();
|
|
481
481
|
} catch {
|
|
@@ -484,6 +484,13 @@ export class OmpRpcProcess {
|
|
|
484
484
|
}
|
|
485
485
|
const cleanup = await cleanupPromise;
|
|
486
486
|
if (cleanup !== "verified") throw new Error("OMP RPC process tree cleanup failed");
|
|
487
|
+
if (process.platform === "win32" && !this.exited) {
|
|
488
|
+
try {
|
|
489
|
+
this.child.stdin.end();
|
|
490
|
+
} catch {
|
|
491
|
+
// Process-tree cleanup remains authoritative when the input channel is already closed.
|
|
492
|
+
}
|
|
493
|
+
}
|
|
487
494
|
if (
|
|
488
495
|
!this.spawnFailedWithoutProcess &&
|
|
489
496
|
!this.exited &&
|