lystbot 0.3.1 → 0.3.2

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/index.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lystbot",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "LystBot CLI - Manage your lists from the terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -409,8 +409,8 @@ program
409
409
 
410
410
  const result = await api.request('POST', `/lists/${list.id}/share`);
411
411
  console.log(`\nšŸ”— Share code for ${list.emoji || 'šŸ“‹'} ${list.title || list.name}:\n`);
412
- console.log(` ${result.shareCode}\n`);
413
- console.log(` Others can join with: lystbot join ${result.shareCode}`);
412
+ console.log(` ${result.share_code}\n`);
413
+ console.log(` Others can join with: lystbot join ${result.share_code}`);
414
414
  });
415
415
 
416
416
  // ── join ───────────────────────────────────────────────
@@ -419,7 +419,7 @@ program
419
419
  .description('Join a shared list using a share code')
420
420
  .action(async (code) => {
421
421
  config.getApiKey();
422
- const list = await api.request('POST', '/lists/join', { shareCode: code });
422
+ const list = await api.request('POST', '/lists/join', { code });
423
423
  console.log(`šŸ¤ Joined: ${list.emoji || 'šŸ“‹'} ${list.title || list.name} (${list.item_count || 0} items)`);
424
424
  });
425
425