beplus-mcp 0.21.0 → 0.21.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.js CHANGED
@@ -23294,7 +23294,7 @@ ${calls.map(callLine).join("\n\n")}`);
23294
23294
  import { createRequire } from "module";
23295
23295
  var require2 = createRequire(import.meta.url);
23296
23296
  function readVersion() {
23297
- if ("0.21.0") return "0.21.0";
23297
+ if ("0.21.1") return "0.21.1";
23298
23298
  try {
23299
23299
  const pkg = require2("../package.json");
23300
23300
  return pkg.version ?? "0.0.0-unknown";
@@ -23579,10 +23579,17 @@ function pkce() {
23579
23579
  return { verifier, challenge: crypto.createHash("sha256").update(verifier).digest("base64url") };
23580
23580
  }
23581
23581
  function openBrowser(url) {
23582
- const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "cmd" : "xdg-open";
23583
- const args = process.platform === "win32" ? ["/c", "start", '""', url] : [url];
23584
23582
  try {
23585
- spawn(cmd, args, { stdio: "ignore", detached: true }).unref();
23583
+ if (process.platform === "win32") {
23584
+ spawn("cmd.exe", ["/c", "start", '""', "/b", url.replace(/&/g, "^&")], {
23585
+ stdio: "ignore",
23586
+ detached: true,
23587
+ windowsVerbatimArguments: true
23588
+ }).unref();
23589
+ return;
23590
+ }
23591
+ const cmd = process.platform === "darwin" ? "open" : "xdg-open";
23592
+ spawn(cmd, [url], { stdio: "ignore", detached: true }).unref();
23586
23593
  } catch {
23587
23594
  }
23588
23595
  }