@vibe-cafe/vibe-usage 0.1.4 → 0.1.5

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/api.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-cafe/vibe-usage",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Track your AI coding tool token usage and sync to vibecafe.ai",
5
5
  "type": "module",
6
6
  "bin": {
package/src/api.js CHANGED
@@ -18,7 +18,7 @@ export function ingest(apiUrl, apiKey, buckets) {
18
18
 
19
19
  const req = mod.request(url, {
20
20
  method: 'POST',
21
- timeout: 30_000,
21
+ timeout: 60_000,
22
22
  headers: {
23
23
  'Content-Type': 'application/json',
24
24
  'Authorization': `Bearer ${apiKey}`,
@@ -47,7 +47,7 @@ export function ingest(apiUrl, apiKey, buckets) {
47
47
  req.on('error', (err) => reject(err));
48
48
  req.on('timeout', () => {
49
49
  req.destroy();
50
- reject(new Error('Request timed out (30s)'));
50
+ reject(new Error('Request timed out (60s)'));
51
51
  });
52
52
  req.write(body);
53
53
  req.end();