rechrome 1.18.0 → 1.18.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 +1 -1
- package/serve.js +6 -2
- package/serve.ts +6 -2
package/package.json
CHANGED
package/serve.js
CHANGED
|
@@ -376,7 +376,9 @@ export async function serve() {
|
|
|
376
376
|
} else {
|
|
377
377
|
const basename = f.split("/").pop()!;
|
|
378
378
|
for (const subdir of [".playwright-cli", ".rech-multi-tab"]) {
|
|
379
|
-
|
|
379
|
+
// Forward-slash for the wire: join() would use "\" on the Windows daemon, which
|
|
380
|
+
// a POSIX client can't treat as a separator (it builds a literal-backslash path).
|
|
381
|
+
const subpath = `${subdir}/${basename}`;
|
|
380
382
|
if (await file(join(workDir, subpath)).exists()) {
|
|
381
383
|
outputFiles.push(subpath);
|
|
382
384
|
break;
|
|
@@ -390,7 +392,9 @@ export async function serve() {
|
|
|
390
392
|
status,
|
|
391
393
|
stdout: rebrand(stdout),
|
|
392
394
|
stderr: rebrand(stderr),
|
|
393
|
-
|
|
395
|
+
// Normalize any platform separators to "/" so relative paths are portable across
|
|
396
|
+
// a cross-OS daemon↔client (e.g. Windows daemon serving a Linux container client).
|
|
397
|
+
files: outputFiles.map((p) => p.replaceAll("\\", "/")),
|
|
394
398
|
});
|
|
395
399
|
},
|
|
396
400
|
});
|
package/serve.ts
CHANGED
|
@@ -376,7 +376,9 @@ export async function serve() {
|
|
|
376
376
|
} else {
|
|
377
377
|
const basename = f.split("/").pop()!;
|
|
378
378
|
for (const subdir of [".playwright-cli", ".rech-multi-tab"]) {
|
|
379
|
-
|
|
379
|
+
// Forward-slash for the wire: join() would use "\" on the Windows daemon, which
|
|
380
|
+
// a POSIX client can't treat as a separator (it builds a literal-backslash path).
|
|
381
|
+
const subpath = `${subdir}/${basename}`;
|
|
380
382
|
if (await file(join(workDir, subpath)).exists()) {
|
|
381
383
|
outputFiles.push(subpath);
|
|
382
384
|
break;
|
|
@@ -390,7 +392,9 @@ export async function serve() {
|
|
|
390
392
|
status,
|
|
391
393
|
stdout: rebrand(stdout),
|
|
392
394
|
stderr: rebrand(stderr),
|
|
393
|
-
|
|
395
|
+
// Normalize any platform separators to "/" so relative paths are portable across
|
|
396
|
+
// a cross-OS daemon↔client (e.g. Windows daemon serving a Linux container client).
|
|
397
|
+
files: outputFiles.map((p) => p.replaceAll("\\", "/")),
|
|
394
398
|
});
|
|
395
399
|
},
|
|
396
400
|
});
|