flowcollab 0.3.13 → 0.3.14
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/LICENSE +1 -1
- package/bin/_client.mjs +1 -1
- package/bin/login.mjs +2 -2
- package/package.json +1 -1
package/LICENSE
CHANGED
package/bin/_client.mjs
CHANGED
|
@@ -81,7 +81,7 @@ export function saveGlobalConfig(patch) {
|
|
|
81
81
|
// flow-login writes apiBase + token to ~/.flow/config.json — both take precedence over
|
|
82
82
|
// env vars so a stale FLOW_API_BASE / FLOW_API_TOKEN_* doesn't silently override the
|
|
83
83
|
// user's authenticated session. Env vars are still honoured when config.json has no value.
|
|
84
|
-
const DEFAULT_BASE = _gc.apiBase || process.env.FLOW_API_BASE || 'https://
|
|
84
|
+
const DEFAULT_BASE = _gc.apiBase || process.env.FLOW_API_BASE || 'https://flowcollab.dev';
|
|
85
85
|
|
|
86
86
|
function envToken() {
|
|
87
87
|
return _gc.token || process.env.FLOW_API_TOKEN_OWNER || process.env.FLOW_API_TOKEN_CONTRIBUTOR || '';
|
package/bin/login.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/* flow-login — authorize the CLI via browser OAuth (device flow).
|
|
3
3
|
Usage:
|
|
4
|
-
flow-login [--server=https://
|
|
4
|
+
flow-login [--server=https://flowcollab.dev]
|
|
5
5
|
*/
|
|
6
6
|
import { homedir } from 'os';
|
|
7
7
|
import { mkdirSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
@@ -9,7 +9,7 @@ import { join } from 'path';
|
|
|
9
9
|
import { exec } from 'child_process';
|
|
10
10
|
|
|
11
11
|
const serverArg = process.argv.find(a => a.startsWith('--server='))?.slice(9);
|
|
12
|
-
const base = (serverArg || process.env.FLOW_API_BASE || 'https://
|
|
12
|
+
const base = (serverArg || process.env.FLOW_API_BASE || 'https://flowcollab.dev').replace(/\/+$/, '');
|
|
13
13
|
|
|
14
14
|
function openBrowser(url) {
|
|
15
15
|
try {
|