aicp-tracker 1.2.0 → 1.2.1

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/sender.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicp-tracker",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "AI Code Pulse — Claude Code usage tracker for JIRA cost attribution",
5
5
  "main": "src/daemon.js",
6
6
  "bin": {
package/src/sender.js CHANGED
@@ -8,7 +8,7 @@ const wal = require('./wal');
8
8
  * organization → useremail → date → [records]
9
9
  */
10
10
  function buildPayload(cfg, records) {
11
- const org = cfg.vcsUrl.replace(/^https?:\/\/[^/]+\//, ''); // extract slug
11
+ const org = cfg.vcsUrl.replace(/^https?:\/\/[^/]+\//, '').replace(/\/+$/, ''); // extract slug, strip trailing slash
12
12
  const email = cfg.email;
13
13
  const payload = {};
14
14