sheetlink 0.1.9 → 0.1.10

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.9",
3
+ "version": "0.1.10",
4
4
  "description": "CLI for SheetLink — sync your bank transactions to any destination",
5
5
  "type": "module",
6
6
  "bin": {
@@ -94,8 +94,7 @@ async function googleOAuthFlow() {
94
94
 
95
95
  res.writeHead(200, { 'Content-Type': 'text/html' });
96
96
  res.end('<!DOCTYPE html><html><head><meta charset="UTF-8"><title>SheetLink</title><script>window.location.replace("https://sheetlink.app/cli/welcome");</script></head><body></body></html>');
97
- server.closeAllConnections?.();
98
- server.close();
97
+ res.on('finish', () => { server.closeAllConnections?.(); server.close(); });
99
98
 
100
99
  if (error) return reject(new Error(`OAuth error: ${error}`));
101
100
  if (returnedState !== state) return reject(new Error('State mismatch — possible CSRF'));