rechrome 1.31.6 → 1.31.7

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,6 +1,6 @@
1
1
  {
2
2
  "name": "rechrome",
3
- "version": "1.31.6",
3
+ "version": "1.31.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/snomiao/rechrome.git"
package/rechrome.js CHANGED
@@ -2116,7 +2116,7 @@ async function runPm(mgr: DaemonManager, args: string[], env?: Record<string, st
2116
2116
  // A .cmd/.bat shim runs through cmd.exe, which treats & | < > ^ in an argument as syntax
2117
2117
  // (e.g. the &s in a RECHROME_URL passed with --env): fail clearly instead of mangling it.
2118
2118
  if (/\.(cmd|bat)$/i.test(mgr.bin) && args.some(a => /[&|<>^]/.test(a)))
2119
- throw new Error(`${mgr.bin} is a cmd.exe shim, which would mangle an argument containing & | < > ^. Install the ${mgr.id} executable (or set RECH_OXMGR to it) and try again.`);
2119
+ throw new Error(`${mgr.bin} is a cmd.exe shim, which would mangle an argument containing & | < > ^. Install the ${mgr.id} executable${mgr.id === "oxmgr" ? " (or set RECH_OXMGR to it)" : ""} and try again.`);
2120
2120
  const proc = Bun.spawn([mgr.bin, ...args], {
2121
2121
  stdout: "inherit",
2122
2122
  stderr: "inherit",
package/rechrome.ts CHANGED
@@ -2116,7 +2116,7 @@ async function runPm(mgr: DaemonManager, args: string[], env?: Record<string, st
2116
2116
  // A .cmd/.bat shim runs through cmd.exe, which treats & | < > ^ in an argument as syntax
2117
2117
  // (e.g. the &s in a RECHROME_URL passed with --env): fail clearly instead of mangling it.
2118
2118
  if (/\.(cmd|bat)$/i.test(mgr.bin) && args.some(a => /[&|<>^]/.test(a)))
2119
- throw new Error(`${mgr.bin} is a cmd.exe shim, which would mangle an argument containing & | < > ^. Install the ${mgr.id} executable (or set RECH_OXMGR to it) and try again.`);
2119
+ throw new Error(`${mgr.bin} is a cmd.exe shim, which would mangle an argument containing & | < > ^. Install the ${mgr.id} executable${mgr.id === "oxmgr" ? " (or set RECH_OXMGR to it)" : ""} and try again.`);
2120
2120
  const proc = Bun.spawn([mgr.bin, ...args], {
2121
2121
  stdout: "inherit",
2122
2122
  stderr: "inherit",