sheetlink 0.1.10 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sheetlink",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "CLI for SheetLink — sync your bank transactions to any destination",
5
5
  "type": "module",
6
6
  "bin": {
@@ -65,6 +65,7 @@ export async function cmdAuth(options) {
65
65
  console.log('Authenticated. JWT saved to ~/.sheetlink/config.json');
66
66
  console.log('Note: JWT expires in ~1 hour. Re-run `sheetlink auth` when needed.');
67
67
  console.log('For unattended automation, upgrade to MAX and use `sheetlink auth --api-key sl_...`');
68
+ process.exit(0);
68
69
  }
69
70
 
70
71
  async function googleOAuthFlow() {
@@ -119,7 +120,8 @@ async function googleOAuthFlow() {
119
120
  });
120
121
 
121
122
  server.on('error', reject);
122
- setTimeout(() => { server.closeAllConnections?.(); server.close(); reject(new Error('OAuth timeout (2 minutes)')); }, 120_000);
123
+ const timeout = setTimeout(() => { server.closeAllConnections?.(); server.close(); reject(new Error('OAuth timeout (2 minutes)')); }, 120_000);
124
+ server.on('close', () => clearTimeout(timeout));
123
125
  });
124
126
  }
125
127