ccclub 0.2.1 → 0.2.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/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -527,7 +527,8 @@ async function rankCommand(options) {
527
527
  try {
528
528
  for (let i = 0; i < codes.length; i++) {
529
529
  const code = codes[i];
530
- const url = `${config.apiUrl}/api/rank/${code}?period=${period}`;
530
+ const tz = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
531
+ const url = `${config.apiUrl}/api/rank/${code}?period=${period}&tz=${tz}`;
531
532
  const res = await fetch(url);
532
533
  if (!res.ok) {
533
534
  if (i === 0) spinner.stop();
@@ -754,7 +755,7 @@ async function ensureGlobalInstall() {
754
755
 
755
756
  // src/index.ts
756
757
  var program = new Command();
757
- program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.1");
758
+ program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.2");
758
759
  program.hook("postAction", () => ensureGlobalInstall());
759
760
  program.command("init").description("Initialize CCClub (one-time setup)").action(initCommand);
760
761
  program.command("join").description("Join a friend's group").argument("<invite-code>", "6-character invite code").action(joinCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccclub",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "See how much Claude Code you and your friends are using",
6
6
  "bin": {