synqdb-agent 1.0.2 → 1.0.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -71,7 +71,7 @@ Or place them in a `.env` file in the directory where you run the agent:
71
71
 
72
72
  ```env
73
73
  SYNQDB_AGENT_KEY=abc-123-def-456
74
- SYNQDB_SERVER_URL=https://api.synqdb.com
74
+ SYNQDB_SERVER_URL=https://api.synqdb.live
75
75
  ```
76
76
 
77
77
  ### Key resolution order
package/index.js CHANGED
@@ -44,7 +44,7 @@ if (process.argv.includes('--save')) {
44
44
 
45
45
  saveConfig({
46
46
  agentKey: keyToSave,
47
- ...(urlToSave ? { serverUrl: urlToSave } : {}),
47
+ serverUrl: urlToSave || null,
48
48
  });
49
49
 
50
50
  console.log(`Saved to ${CONFIG_PATH}`);
@@ -63,8 +63,8 @@ const agentKey =
63
63
  const serverUrl =
64
64
  process.argv[3] ||
65
65
  process.env.SYNQDB_SERVER_URL ||
66
- saved.serverUrl ||
67
- 'https://api.synqdb.com';
66
+ (saved.serverUrl?.startsWith('http') ? saved.serverUrl : null) ||
67
+ 'https://api.synqdb.live';
68
68
 
69
69
  if (!agentKey) {
70
70
  console.error('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "synqdb-agent",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Local database relay agent for SynqDB — connects your local databases to the SynqDB cloud dashboard",
5
5
  "main": "index.js",
6
6
  "bin": {