@oh-my-pi/omp-stats 16.2.3 → 16.2.5

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 +4 -4
  2. package/src/parser.ts +2 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/omp-stats",
4
- "version": "16.2.3",
4
+ "version": "16.2.5",
5
5
  "description": "Local observability dashboard for pi AI usage statistics",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -39,9 +39,9 @@
39
39
  "fmt": "biome format --write ."
40
40
  },
41
41
  "dependencies": {
42
- "@oh-my-pi/pi-ai": "16.2.3",
43
- "@oh-my-pi/pi-catalog": "16.2.3",
44
- "@oh-my-pi/pi-utils": "16.2.3",
42
+ "@oh-my-pi/pi-ai": "16.2.5",
43
+ "@oh-my-pi/pi-catalog": "16.2.5",
44
+ "@oh-my-pi/pi-utils": "16.2.5",
45
45
  "@tailwindcss/node": "^4.3.0",
46
46
  "chart.js": "^4.5.1",
47
47
  "date-fns": "^4.4.0",
package/src/parser.ts CHANGED
@@ -171,8 +171,8 @@ function parseSessionEntriesLenient(bytes: Uint8Array): { entries: SessionEntry[
171
171
 
172
172
  while (cursor < bytes.length) {
173
173
  const { values, error, read, done } = Bun.JSONL.parseChunk(bytes, cursor, bytes.length);
174
- if (values.length > 0) {
175
- entries.push(...(values as SessionEntry[]));
174
+ for (const value of values as SessionEntry[]) {
175
+ entries.push(value);
176
176
  }
177
177
 
178
178
  if (error) {