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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/serve.js +6 -2
  3. package/serve.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rechrome",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/snomiao/rechrome.git"
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
- const subpath = join(subdir, basename);
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
- files: outputFiles,
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
- const subpath = join(subdir, basename);
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
- files: outputFiles,
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
  });