@solongate/proxy 0.47.1 → 0.47.2
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 +4 -1
- package/dist/login.js +4 -1
- package/hooks/guard.bundled.mjs +7536 -7334
- package/hooks/guard.mjs +141 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7510,7 +7510,10 @@ function openBrowser(url) {
|
|
|
7510
7510
|
try {
|
|
7511
7511
|
const cmd = process.platform === "win32" ? "cmd" : process.platform === "darwin" ? "open" : "xdg-open";
|
|
7512
7512
|
const args = process.platform === "win32" ? ["/c", "start", '""', url] : [url];
|
|
7513
|
-
spawn(cmd, args, { stdio: "ignore", detached: true })
|
|
7513
|
+
const child = spawn(cmd, args, { stdio: "ignore", detached: true });
|
|
7514
|
+
child.on("error", () => {
|
|
7515
|
+
});
|
|
7516
|
+
child.unref();
|
|
7514
7517
|
} catch {
|
|
7515
7518
|
}
|
|
7516
7519
|
}
|
package/dist/login.js
CHANGED
|
@@ -233,7 +233,10 @@ function openBrowser(url) {
|
|
|
233
233
|
try {
|
|
234
234
|
const cmd = process.platform === "win32" ? "cmd" : process.platform === "darwin" ? "open" : "xdg-open";
|
|
235
235
|
const args = process.platform === "win32" ? ["/c", "start", '""', url] : [url];
|
|
236
|
-
spawn(cmd, args, { stdio: "ignore", detached: true })
|
|
236
|
+
const child = spawn(cmd, args, { stdio: "ignore", detached: true });
|
|
237
|
+
child.on("error", () => {
|
|
238
|
+
});
|
|
239
|
+
child.unref();
|
|
237
240
|
} catch {
|
|
238
241
|
}
|
|
239
242
|
}
|