@buoy-gg/console 7.0.18 → 7.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/console",
3
- "version": "7.0.18",
3
+ "version": "7.0.19",
4
4
  "description": "Chrome DevTools-style console for React Native — captures every console.* on device, even in release builds. Part of Buoy devtools.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "sideEffects": false,
15
15
  "dependencies": {
16
- "@buoy-gg/shared-ui": "^7.0.18"
16
+ "@buoy-gg/shared-ui": "^7.0.19"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": "*",
@@ -30,7 +30,12 @@
30
30
  "targets": [
31
31
  "commonjs",
32
32
  "module",
33
- "typescript"
33
+ [
34
+ "typescript",
35
+ {
36
+ "project": "tsconfig.build.json"
37
+ }
38
+ ]
34
39
  ]
35
40
  },
36
41
  "repository": {
@@ -5,7 +5,7 @@ import { consoleSyncAdapter } from "../../sync/consoleSyncAdapter";
5
5
  import type { ConsoleLogEntry } from "../consoleLogStore";
6
6
 
7
7
  // Node has no rAF; the store coalesces listener notifies onto one frame.
8
- globalThis.requestAnimationFrame = ((cb: FrameRequestCallback) => {
8
+ globalThis.requestAnimationFrame = ((cb: (t: number) => void) => {
9
9
  cb(0);
10
10
  return 0;
11
11
  }) as typeof requestAnimationFrame;
@@ -113,9 +113,9 @@ describe("consoleSyncAdapter", () => {
113
113
 
114
114
  it("reuses the wire form of an unchanged entry across snapshots", () => {
115
115
  replaceEntries([
116
- entry({ id: "a", message: "hello", args: ["hello"] }),
116
+ entry({ id: 1, message: "hello", args: ["hello"] }),
117
117
  entry({
118
- id: "b",
118
+ id: 2,
119
119
  message: "payload",
120
120
  args: ["payload", { rows: Array.from({ length: 40 }, (_, i) => ({ i })) }],
121
121
  }),
@@ -136,7 +136,7 @@ describe("consoleSyncAdapter", () => {
136
136
  replaceEntries(
137
137
  Array.from({ length: 1000 }, (_, i) =>
138
138
  entry({
139
- id: `e${i}`,
139
+ id: i,
140
140
  message: `line ${i}`,
141
141
  // ~4KB each: individually far under the per-entry cap, and 1000 of
142
142
  // them still exceed the snapshot budget.
@@ -151,6 +151,6 @@ describe("consoleSyncAdapter", () => {
151
151
  expect(entries.length).toBeGreaterThan(0);
152
152
  expect(entries.length).toBeLessThan(1000);
153
153
  // A console reader cares about the most RECENT lines, so those survive.
154
- expect(entries[entries.length - 1]?.id).toBe("e999");
154
+ expect(entries[entries.length - 1]?.id).toBe(999);
155
155
  });
156
156
  });