usage-board 1.0.0 → 1.0.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.
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import { createServer } from "node:http";
2
- import path, { resolve } from "node:path";
2
+ import path, { dirname, resolve } from "node:path";
3
+ import { fileURLToPath } from "node:url";
3
4
  import cac from "cac";
4
5
  import { createServer as createServer$1 } from "node:net";
5
6
  import os, { networkInterfaces } from "node:os";
6
7
  import fs, { constants } from "node:fs/promises";
7
8
  import process$1 from "node:process";
8
- import { fileURLToPath } from "node:url";
9
9
  import childProcess, { execFile } from "node:child_process";
10
10
  import { promisify } from "node:util";
11
11
  import fs$1 from "node:fs";
@@ -756,7 +756,7 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({ darwin: "Safari"
756
756
  //#endregion
757
757
  //#region package.json
758
758
  var name = "usage-board";
759
- var version = "1.0.0";
759
+ var version = "1.0.1";
760
760
  //#endregion
761
761
  //#region src/index.ts
762
762
  const cli = cac(name);
@@ -769,7 +769,7 @@ cli.command("", "Start tokens usage analysis").option("--host <host>", "Host", {
769
769
  port: option.port,
770
770
  portRange: [7777, 9e3]
771
771
  });
772
- const lister = await loadNitroListener(resolve(process.cwd(), "dist"));
772
+ const lister = await loadNitroListener(resolve(dirname(fileURLToPath(import.meta.url)), "./"));
773
773
  createServer(async (req, res) => {
774
774
  await lister(req, res);
775
775
  }).listen(port, option.host, async () => {
@@ -1 +1 @@
1
- {"id":"12cca5fc-d3df-4df1-b723-c944bdd0c587","timestamp":1776673859125}
1
+ {"id":"b9978cce-47fc-4109-96be-42c2d4ff2464","timestamp":1776674626072}
@@ -0,0 +1 @@
1
+ {"id":"b9978cce-47fc-4109-96be-42c2d4ff2464","timestamp":1776674626072,"prerendered":[]}
@@ -4240,7 +4240,7 @@ function _expandFromEnv(value) {
4240
4240
  const _inlineRuntimeConfig = {
4241
4241
  "app": {
4242
4242
  "baseURL": "/",
4243
- "buildId": "12cca5fc-d3df-4df1-b723-c944bdd0c587",
4243
+ "buildId": "b9978cce-47fc-4109-96be-42c2d4ff2464",
4244
4244
  "buildAssetsDir": "/_nuxt/",
4245
4245
  "cdnURL": ""
4246
4246
  },
@@ -4268,7 +4268,7 @@ const _inlineRuntimeConfig = {
4268
4268
  }
4269
4269
  },
4270
4270
  "public": {
4271
- "appVersion": "1.0.0",
4271
+ "appVersion": "1.0.1",
4272
4272
  "home": "/Users/tangchenghui"
4273
4273
  },
4274
4274
  "icon": {
@@ -4686,112 +4686,112 @@ const assets = {
4686
4686
  "/logo.svg": {
4687
4687
  "type": "image/svg+xml",
4688
4688
  "etag": "\"1550-fwYFdULdJ83Qp0FjnnX31iQz9oI\"",
4689
- "mtime": "2026-04-20T08:31:06.192Z",
4689
+ "mtime": "2026-04-20T08:43:53.085Z",
4690
4690
  "size": 5456,
4691
4691
  "path": "../public/logo.svg"
4692
4692
  },
4693
4693
  "/robots.txt": {
4694
4694
  "type": "text/plain; charset=utf-8",
4695
4695
  "etag": "\"18-j8OIsL9qGDmNZ+lHhp2tyH4XtaE\"",
4696
- "mtime": "2026-04-20T08:31:06.192Z",
4696
+ "mtime": "2026-04-20T08:43:53.085Z",
4697
4697
  "size": 24,
4698
4698
  "path": "../public/robots.txt"
4699
4699
  },
4700
- "/favicon.ico": {
4701
- "type": "image/vnd.microsoft.icon",
4702
- "etag": "\"1083e-LfyFZ+1JmdianDqe/sQN2Ou0IzQ\"",
4703
- "mtime": "2026-04-20T08:31:06.193Z",
4704
- "size": 67646,
4705
- "path": "../public/favicon.ico"
4706
- },
4707
4700
  "/_nuxt/BKFuB2T3.js": {
4708
4701
  "type": "text/javascript; charset=utf-8",
4709
4702
  "etag": "\"61f4-L4cMzQWE+G52iGZtnFPB79oZ7xM\"",
4710
- "mtime": "2026-04-20T08:31:06.188Z",
4703
+ "mtime": "2026-04-20T08:43:53.073Z",
4711
4704
  "size": 25076,
4712
4705
  "path": "../public/_nuxt/BKFuB2T3.js"
4713
4706
  },
4707
+ "/_nuxt/CileeSf2.js": {
4708
+ "type": "text/javascript; charset=utf-8",
4709
+ "etag": "\"e99-C7uDVfuL1RnLDg/SRhDRgPOIRvI\"",
4710
+ "mtime": "2026-04-20T08:43:53.072Z",
4711
+ "size": 3737,
4712
+ "path": "../public/_nuxt/CileeSf2.js"
4713
+ },
4714
4714
  "/_nuxt/DAg3mJyk.js": {
4715
4715
  "type": "text/javascript; charset=utf-8",
4716
4716
  "etag": "\"2de-WTjSXU4sbRpO0cxQmpp+XTRNF1o\"",
4717
- "mtime": "2026-04-20T08:31:06.188Z",
4717
+ "mtime": "2026-04-20T08:43:53.076Z",
4718
4718
  "size": 734,
4719
4719
  "path": "../public/_nuxt/DAg3mJyk.js"
4720
4720
  },
4721
+ "/favicon.ico": {
4722
+ "type": "image/vnd.microsoft.icon",
4723
+ "etag": "\"1083e-LfyFZ+1JmdianDqe/sQN2Ou0IzQ\"",
4724
+ "mtime": "2026-04-20T08:43:53.086Z",
4725
+ "size": 67646,
4726
+ "path": "../public/favicon.ico"
4727
+ },
4721
4728
  "/_nuxt/DLRBRF52.js": {
4722
4729
  "type": "text/javascript; charset=utf-8",
4723
4730
  "etag": "\"d7b-2rX/NFhYfKl0OG6eRBDcz5fqUSo\"",
4724
- "mtime": "2026-04-20T08:31:06.189Z",
4731
+ "mtime": "2026-04-20T08:43:53.073Z",
4725
4732
  "size": 3451,
4726
4733
  "path": "../public/_nuxt/DLRBRF52.js"
4727
4734
  },
4728
4735
  "/_nuxt/DcPhnO3V.js": {
4729
4736
  "type": "text/javascript; charset=utf-8",
4730
4737
  "etag": "\"9ee4-05SFZecj+aVyTCDsErCE9LoZ6lc\"",
4731
- "mtime": "2026-04-20T08:31:06.189Z",
4738
+ "mtime": "2026-04-20T08:43:53.073Z",
4732
4739
  "size": 40676,
4733
4740
  "path": "../public/_nuxt/DcPhnO3V.js"
4734
4741
  },
4735
4742
  "/_nuxt/DptRzj9K.js": {
4736
4743
  "type": "text/javascript; charset=utf-8",
4737
4744
  "etag": "\"75d1-XihBDp7QJCeWux+p/nXLaEepHAo\"",
4738
- "mtime": "2026-04-20T08:31:06.189Z",
4745
+ "mtime": "2026-04-20T08:43:53.073Z",
4739
4746
  "size": 30161,
4740
4747
  "path": "../public/_nuxt/DptRzj9K.js"
4741
4748
  },
4742
4749
  "/_nuxt/BNf7fR7M.js": {
4743
4750
  "type": "text/javascript; charset=utf-8",
4744
4751
  "etag": "\"37da8-xoLL7hGdkt04Tq2RKxkKV7WZl2g\"",
4745
- "mtime": "2026-04-20T08:31:06.189Z",
4752
+ "mtime": "2026-04-20T08:43:53.073Z",
4746
4753
  "size": 228776,
4747
4754
  "path": "../public/_nuxt/BNf7fR7M.js"
4748
4755
  },
4749
4756
  "/_nuxt/error-404.B0EXnOcv.css": {
4750
4757
  "type": "text/css; charset=utf-8",
4751
4758
  "etag": "\"97e-kQ0ZEshAxA5Nrtoiwq6n4Sz6H94\"",
4752
- "mtime": "2026-04-20T08:31:06.189Z",
4759
+ "mtime": "2026-04-20T08:43:53.077Z",
4753
4760
  "size": 2430,
4754
4761
  "path": "../public/_nuxt/error-404.B0EXnOcv.css"
4755
4762
  },
4756
- "/_nuxt/CileeSf2.js": {
4757
- "type": "text/javascript; charset=utf-8",
4758
- "etag": "\"e99-C7uDVfuL1RnLDg/SRhDRgPOIRvI\"",
4759
- "mtime": "2026-04-20T08:31:06.188Z",
4760
- "size": 3737,
4761
- "path": "../public/_nuxt/CileeSf2.js"
4762
- },
4763
4763
  "/_nuxt/error-500.CnSNZoEG.css": {
4764
4764
  "type": "text/css; charset=utf-8",
4765
4765
  "etag": "\"773-muVEP28ocnl3dl4Mg2tNj2UV4+I\"",
4766
- "mtime": "2026-04-20T08:31:06.189Z",
4766
+ "mtime": "2026-04-20T08:43:53.077Z",
4767
4767
  "size": 1907,
4768
4768
  "path": "../public/_nuxt/error-500.CnSNZoEG.css"
4769
4769
  },
4770
4770
  "/_nuxt/builds/latest.json": {
4771
4771
  "type": "application/json",
4772
- "etag": "\"47-C4iS5YDjrFlymFb9vtOo7oGtvkI\"",
4773
- "mtime": "2026-04-20T08:31:06.185Z",
4772
+ "etag": "\"47-N4YesqAPrt18rbkGTPDb8ej4ai8\"",
4773
+ "mtime": "2026-04-20T08:43:53.060Z",
4774
4774
  "size": 71,
4775
4775
  "path": "../public/_nuxt/builds/latest.json"
4776
4776
  },
4777
- "/_nuxt/builds/meta/12cca5fc-d3df-4df1-b723-c944bdd0c587.json": {
4777
+ "/_nuxt/builds/meta/b9978cce-47fc-4109-96be-42c2d4ff2464.json": {
4778
4778
  "type": "application/json",
4779
- "etag": "\"58-5uTAa2J/W2ezbrh+uiVQNIm3Ilk\"",
4780
- "mtime": "2026-04-20T08:31:06.179Z",
4779
+ "etag": "\"58-cFHaRYS2gSvo7IsGLEbf7iIuOic\"",
4780
+ "mtime": "2026-04-20T08:43:53.054Z",
4781
4781
  "size": 88,
4782
- "path": "../public/_nuxt/builds/meta/12cca5fc-d3df-4df1-b723-c944bdd0c587.json"
4782
+ "path": "../public/_nuxt/builds/meta/b9978cce-47fc-4109-96be-42c2d4ff2464.json"
4783
4783
  },
4784
4784
  "/_nuxt/entry.DrzELaFO.css": {
4785
4785
  "type": "text/css; charset=utf-8",
4786
4786
  "etag": "\"1cd83-2nHt3mtd5hkh1k+TTN2WYa3JyPU\"",
4787
- "mtime": "2026-04-20T08:31:06.189Z",
4787
+ "mtime": "2026-04-20T08:43:53.073Z",
4788
4788
  "size": 118147,
4789
4789
  "path": "../public/_nuxt/entry.DrzELaFO.css"
4790
4790
  },
4791
4791
  "/_nuxt/DoxGa6D0.js": {
4792
4792
  "type": "text/javascript; charset=utf-8",
4793
4793
  "etag": "\"49e47-J7V6gL/voGaaIZMjD7USNPy1yVM\"",
4794
- "mtime": "2026-04-20T08:31:06.190Z",
4794
+ "mtime": "2026-04-20T08:43:53.073Z",
4795
4795
  "size": 302663,
4796
4796
  "path": "../public/_nuxt/DoxGa6D0.js"
4797
4797
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "usage-board",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "description": "An all-in-one dashboard to quickly analyze token usage from local json files",
7
7
  "license": "MIT",
@@ -1 +0,0 @@
1
- {"id":"12cca5fc-d3df-4df1-b723-c944bdd0c587","timestamp":1776673859125,"prerendered":[]}