whoburnedmore 0.9.18 → 0.9.19
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/dist/index.js +7 -7
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -238,7 +238,7 @@ import {
|
|
|
238
238
|
writeFileSync as writeFileSync2
|
|
239
239
|
} from "node:fs";
|
|
240
240
|
import { homedir as homedir2, platform } from "node:os";
|
|
241
|
-
import { dirname, join as join2, win32 } from "node:path";
|
|
241
|
+
import { dirname, join as join2, posix, win32 } from "node:path";
|
|
242
242
|
|
|
243
243
|
// src/config.ts
|
|
244
244
|
import { randomBytes } from "node:crypto";
|
|
@@ -470,7 +470,7 @@ function resolveNpmPath(opts) {
|
|
|
470
470
|
for (const c of candidates) {
|
|
471
471
|
if (check(c)) return c;
|
|
472
472
|
}
|
|
473
|
-
const sibling = os === "win32" ? win32.join(win32.dirname(execPath), "npm.cmd") :
|
|
473
|
+
const sibling = os === "win32" ? win32.join(win32.dirname(execPath), "npm.cmd") : posix.join(posix.dirname(execPath), "npm");
|
|
474
474
|
if (check(sibling)) return sibling;
|
|
475
475
|
return os === "win32" ? "npm.cmd" : "npm";
|
|
476
476
|
}
|
|
@@ -7605,7 +7605,7 @@ async function collectCursor() {
|
|
|
7605
7605
|
// src/native/codex.ts
|
|
7606
7606
|
import { readdir as readdir3 } from "node:fs/promises";
|
|
7607
7607
|
import { homedir as homedir7 } from "node:os";
|
|
7608
|
-
import { join as join9 } from "node:path";
|
|
7608
|
+
import { join as join9, resolve } from "node:path";
|
|
7609
7609
|
function num5(n) {
|
|
7610
7610
|
const v = Math.round(Number(n));
|
|
7611
7611
|
return Number.isFinite(v) && v > 0 ? v : 0;
|
|
@@ -9131,7 +9131,7 @@ async function run(flags) {
|
|
|
9131
9131
|
}
|
|
9132
9132
|
}
|
|
9133
9133
|
function sleep(ms) {
|
|
9134
|
-
return new Promise((
|
|
9134
|
+
return new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
9135
9135
|
}
|
|
9136
9136
|
async function refreshCliTokenFromConfig() {
|
|
9137
9137
|
const cfg = loadConfig();
|
|
@@ -9325,14 +9325,14 @@ async function linkServerInstall(token) {
|
|
|
9325
9325
|
}
|
|
9326
9326
|
function waitOrAbort(ms, signal) {
|
|
9327
9327
|
if (signal.aborted) return Promise.resolve();
|
|
9328
|
-
return new Promise((
|
|
9328
|
+
return new Promise((resolve2) => {
|
|
9329
9329
|
const onAbort = () => {
|
|
9330
9330
|
clearTimeout(timer);
|
|
9331
|
-
|
|
9331
|
+
resolve2();
|
|
9332
9332
|
};
|
|
9333
9333
|
const timer = setTimeout(() => {
|
|
9334
9334
|
signal.removeEventListener("abort", onAbort);
|
|
9335
|
-
|
|
9335
|
+
resolve2();
|
|
9336
9336
|
}, ms);
|
|
9337
9337
|
signal.addEventListener("abort", onAbort, { once: true });
|
|
9338
9338
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "whoburnedmore",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.19",
|
|
4
4
|
"description": "Find out who burned more — submit your AI coding-agent token usage to the public leaderboard at whoburnedmore.com",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dist/index.js"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "
|
|
13
|
+
"build": "node scripts/clean.mjs && esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/index.js --external:ccusage --external:picocolors --external:tokscale",
|
|
14
14
|
"test": "vitest run",
|
|
15
15
|
"lint": "tsc -p tsconfig.json --noEmit",
|
|
16
16
|
"smoke:package": "node scripts/smoke-package.mjs",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"release:major": "npm version major && npm publish"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"ccusage": "20.0.
|
|
23
|
+
"ccusage": "20.0.19",
|
|
24
24
|
"picocolors": "^1.1.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|