nexarch 0.1.3 → 0.1.4
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/commands/login.js +3 -1
- package/package.json +1 -1
package/dist/commands/login.js
CHANGED
|
@@ -29,7 +29,9 @@ function openBrowser(url) {
|
|
|
29
29
|
const [cmd, args] = process.platform === "darwin"
|
|
30
30
|
? ["open", [url]]
|
|
31
31
|
: process.platform === "win32"
|
|
32
|
-
|
|
32
|
+
// Avoid cmd parsing issues with '&' in query strings (e.g. OAuth state).
|
|
33
|
+
// rundll32 reliably opens the full URL without truncating parameters.
|
|
34
|
+
? ["rundll32", ["url.dll,FileProtocolHandler", url]]
|
|
33
35
|
: ["xdg-open", [url]];
|
|
34
36
|
execFile(cmd, args, (err) => {
|
|
35
37
|
if (err) {
|