@buoy-gg/network 7.0.13 → 7.0.15

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 (123) hide show
  1. package/lib/commonjs/index.js +39 -0
  2. package/lib/commonjs/network/components/NetworkEventDetailView.js +30 -3
  3. package/lib/commonjs/network/components/NetworkEventItemCompact.js +4 -0
  4. package/lib/commonjs/network/components/NetworkHeaderLive.js +26 -6
  5. package/lib/commonjs/network/components/NetworkHeaderMenu.js +183 -0
  6. package/lib/commonjs/network/components/NetworkListScreen.js +126 -5
  7. package/lib/commonjs/network/components/NetworkModal.js +136 -29
  8. package/lib/commonjs/network/components/NetworkNumberPrompt.js +178 -0
  9. package/lib/commonjs/network/components/NetworkOverrideEditor.js +797 -0
  10. package/lib/commonjs/network/components/NetworkOverrideHeaderButton.js +102 -0
  11. package/lib/commonjs/network/components/NetworkOverridesButton.js +88 -0
  12. package/lib/commonjs/network/components/NetworkOverridesScreen.js +489 -0
  13. package/lib/commonjs/network/components/response-editor/Explorer.js +973 -0
  14. package/lib/commonjs/network/components/response-editor/deleteNestedDataByPath.js +56 -0
  15. package/lib/commonjs/network/components/response-editor/editorContext.js +33 -0
  16. package/lib/commonjs/network/components/response-editor/updateNestedDataByPath.js +61 -0
  17. package/lib/commonjs/network/hooks/useOverrideRules.js +36 -0
  18. package/lib/commonjs/network/overrides/applyToFetch.js +80 -0
  19. package/lib/commonjs/network/overrides/applyToXhr.js +190 -0
  20. package/lib/commonjs/network/overrides/engine.js +70 -0
  21. package/lib/commonjs/network/overrides/matchRule.js +81 -0
  22. package/lib/commonjs/network/overrides/overrideRulesStore.js +550 -0
  23. package/lib/commonjs/network/overrides/presets.js +70 -0
  24. package/lib/commonjs/network/overrides/resolveOverride.js +158 -0
  25. package/lib/commonjs/network/overrides/types.js +85 -0
  26. package/lib/commonjs/network/sync/networkSyncAdapter.js +230 -1
  27. package/lib/commonjs/network/types/index.js +5 -1
  28. package/lib/commonjs/network/utils/networkEventStore.js +52 -6
  29. package/lib/commonjs/network/utils/networkListener.js +90 -10
  30. package/lib/commonjs/preset.js +11 -0
  31. package/lib/module/index.js +15 -0
  32. package/lib/module/network/components/NetworkEventDetailView.js +31 -4
  33. package/lib/module/network/components/NetworkEventItemCompact.js +5 -1
  34. package/lib/module/network/components/NetworkHeaderLive.js +26 -6
  35. package/lib/module/network/components/NetworkHeaderMenu.js +177 -0
  36. package/lib/module/network/components/NetworkListScreen.js +127 -6
  37. package/lib/module/network/components/NetworkModal.js +138 -31
  38. package/lib/module/network/components/NetworkNumberPrompt.js +174 -0
  39. package/lib/module/network/components/NetworkOverrideEditor.js +794 -0
  40. package/lib/module/network/components/NetworkOverrideHeaderButton.js +99 -0
  41. package/lib/module/network/components/NetworkOverridesButton.js +85 -0
  42. package/lib/module/network/components/NetworkOverridesScreen.js +485 -0
  43. package/lib/module/network/components/response-editor/Explorer.js +972 -0
  44. package/lib/module/network/components/response-editor/deleteNestedDataByPath.js +51 -0
  45. package/lib/module/network/components/response-editor/editorContext.js +29 -0
  46. package/lib/module/network/components/response-editor/updateNestedDataByPath.js +56 -0
  47. package/lib/module/network/hooks/useOverrideRules.js +32 -0
  48. package/lib/module/network/overrides/applyToFetch.js +72 -0
  49. package/lib/module/network/overrides/applyToXhr.js +185 -0
  50. package/lib/module/network/overrides/engine.js +64 -0
  51. package/lib/module/network/overrides/matchRule.js +75 -0
  52. package/lib/module/network/overrides/overrideRulesStore.js +547 -0
  53. package/lib/module/network/overrides/presets.js +65 -0
  54. package/lib/module/network/overrides/resolveOverride.js +152 -0
  55. package/lib/module/network/overrides/types.js +80 -0
  56. package/lib/module/network/sync/networkSyncAdapter.js +230 -1
  57. package/lib/module/network/types/index.js +3 -1
  58. package/lib/module/network/utils/networkEventStore.js +52 -6
  59. package/lib/module/network/utils/networkListener.js +91 -10
  60. package/lib/module/preset.js +13 -1
  61. package/lib/typescript/index.d.ts +8 -0
  62. package/lib/typescript/index.d.ts.map +1 -1
  63. package/lib/typescript/network/components/NetworkEventDetailView.d.ts.map +1 -1
  64. package/lib/typescript/network/components/NetworkEventItemCompact.d.ts +6 -0
  65. package/lib/typescript/network/components/NetworkEventItemCompact.d.ts.map +1 -1
  66. package/lib/typescript/network/components/NetworkHeaderLive.d.ts +8 -1
  67. package/lib/typescript/network/components/NetworkHeaderLive.d.ts.map +1 -1
  68. package/lib/typescript/network/components/NetworkHeaderMenu.d.ts +46 -0
  69. package/lib/typescript/network/components/NetworkHeaderMenu.d.ts.map +1 -0
  70. package/lib/typescript/network/components/NetworkListScreen.d.ts.map +1 -1
  71. package/lib/typescript/network/components/NetworkModal.d.ts.map +1 -1
  72. package/lib/typescript/network/components/NetworkNumberPrompt.d.ts +33 -0
  73. package/lib/typescript/network/components/NetworkNumberPrompt.d.ts.map +1 -0
  74. package/lib/typescript/network/components/NetworkOverrideEditor.d.ts +17 -0
  75. package/lib/typescript/network/components/NetworkOverrideEditor.d.ts.map +1 -0
  76. package/lib/typescript/network/components/NetworkOverrideHeaderButton.d.ts +27 -0
  77. package/lib/typescript/network/components/NetworkOverrideHeaderButton.d.ts.map +1 -0
  78. package/lib/typescript/network/components/NetworkOverridesButton.d.ts +17 -0
  79. package/lib/typescript/network/components/NetworkOverridesButton.d.ts.map +1 -0
  80. package/lib/typescript/network/components/NetworkOverridesScreen.d.ts +29 -0
  81. package/lib/typescript/network/components/NetworkOverridesScreen.d.ts.map +1 -0
  82. package/lib/typescript/network/components/response-editor/Explorer.d.ts +17 -0
  83. package/lib/typescript/network/components/response-editor/Explorer.d.ts.map +1 -0
  84. package/lib/typescript/network/components/response-editor/deleteNestedDataByPath.d.ts +9 -0
  85. package/lib/typescript/network/components/response-editor/deleteNestedDataByPath.d.ts.map +1 -0
  86. package/lib/typescript/network/components/response-editor/editorContext.d.ts +29 -0
  87. package/lib/typescript/network/components/response-editor/editorContext.d.ts.map +1 -0
  88. package/lib/typescript/network/components/response-editor/updateNestedDataByPath.d.ts +10 -0
  89. package/lib/typescript/network/components/response-editor/updateNestedDataByPath.d.ts.map +1 -0
  90. package/lib/typescript/network/hooks/useOverrideRules.d.ts +29 -0
  91. package/lib/typescript/network/hooks/useOverrideRules.d.ts.map +1 -0
  92. package/lib/typescript/network/overrides/__tests__/applyToFetch.test.d.ts +16 -0
  93. package/lib/typescript/network/overrides/__tests__/applyToFetch.test.d.ts.map +1 -0
  94. package/lib/typescript/network/overrides/__tests__/applyToXhr.test.d.ts +19 -0
  95. package/lib/typescript/network/overrides/__tests__/applyToXhr.test.d.ts.map +1 -0
  96. package/lib/typescript/network/overrides/__tests__/resolveOverride.test.d.ts +22 -0
  97. package/lib/typescript/network/overrides/__tests__/resolveOverride.test.d.ts.map +1 -0
  98. package/lib/typescript/network/overrides/applyToFetch.d.ts +50 -0
  99. package/lib/typescript/network/overrides/applyToFetch.d.ts.map +1 -0
  100. package/lib/typescript/network/overrides/applyToXhr.d.ts +43 -0
  101. package/lib/typescript/network/overrides/applyToXhr.d.ts.map +1 -0
  102. package/lib/typescript/network/overrides/engine.d.ts +47 -0
  103. package/lib/typescript/network/overrides/engine.d.ts.map +1 -0
  104. package/lib/typescript/network/overrides/matchRule.d.ts +22 -0
  105. package/lib/typescript/network/overrides/matchRule.d.ts.map +1 -0
  106. package/lib/typescript/network/overrides/overrideRulesStore.d.ts +205 -0
  107. package/lib/typescript/network/overrides/overrideRulesStore.d.ts.map +1 -0
  108. package/lib/typescript/network/overrides/presets.d.ts +38 -0
  109. package/lib/typescript/network/overrides/presets.d.ts.map +1 -0
  110. package/lib/typescript/network/overrides/resolveOverride.d.ts +46 -0
  111. package/lib/typescript/network/overrides/resolveOverride.d.ts.map +1 -0
  112. package/lib/typescript/network/overrides/types.d.ts +169 -0
  113. package/lib/typescript/network/overrides/types.d.ts.map +1 -0
  114. package/lib/typescript/network/sync/networkSyncAdapter.d.ts +73 -0
  115. package/lib/typescript/network/sync/networkSyncAdapter.d.ts.map +1 -1
  116. package/lib/typescript/network/types/index.d.ts +10 -0
  117. package/lib/typescript/network/types/index.d.ts.map +1 -1
  118. package/lib/typescript/network/utils/networkEventStore.d.ts +14 -0
  119. package/lib/typescript/network/utils/networkEventStore.d.ts.map +1 -1
  120. package/lib/typescript/network/utils/networkListener.d.ts +3 -0
  121. package/lib/typescript/network/utils/networkListener.d.ts.map +1 -1
  122. package/lib/typescript/preset.d.ts.map +1 -1
  123. package/package.json +2 -2
@@ -0,0 +1,169 @@
1
+ /**
2
+ * Network response overrides — the rule model.
3
+ *
4
+ * This is Buoy's answer to Chrome DevTools' "Local Overrides", reshaped for
5
+ * mobile. Two deliberate differences from Chrome are worth knowing, because
6
+ * they explain the whole shape of this file:
7
+ *
8
+ * 1. Chrome's rules ARE a directory tree — a body override is a file at
9
+ * `<host>/<path>`, header overrides live in per-directory `.headers` files,
10
+ * and its general→specific header cascade exists only to hang off that
11
+ * nesting. We have no filesystem, so rules are a flat ordered list and the
12
+ * FIRST enabled match wins outright. That's what Charles/Proxyman/MSW do,
13
+ * and it's what a developer can reason about on a phone screen.
14
+ *
15
+ * 2. Chrome CANNOT change a status code. `NetworkManager.ts` computes
16
+ * `responseCode = isBodyOverridden ? 200 : (responseStatusCode || 200)`, so
17
+ * overriding a body forces 200, and there is no latency or failure
18
+ * simulation at all. Chrome's feature is "serve different bytes". Forcing a
19
+ * 500, a timeout or a 3s stall is the entire mobile use case, so `status`,
20
+ * `delayMs` and `kind: "fail"` below are the point of the exercise.
21
+ */
22
+ /**
23
+ * What a rule does when it matches.
24
+ *
25
+ * - `respond` — synthesize a response. The request never leaves the device.
26
+ * - `fail` — synthesize a transport failure (offline / timeout). Also never
27
+ * leaves the device.
28
+ * - `delay` — let the real request run, just late. Pure latency injection.
29
+ */
30
+ export type OverrideRuleKind = "respond" | "fail" | "delay";
31
+ /**
32
+ * Which transport failure to fake.
33
+ *
34
+ * `network` surfaces the way a real offline request does — `fetch` rejects with
35
+ * `TypeError: Network request failed`. This is also how you simulate "status 0":
36
+ * you can't, via `respond`, because whatwg-fetch's `Response` constructor throws
37
+ * a RangeError outside 200–599 (see STATUS_MIN/STATUS_MAX).
38
+ */
39
+ export type OverrideFailKind = "network" | "timeout";
40
+ /**
41
+ * Status codes a synthesized response may use.
42
+ *
43
+ * NOT an arbitrary product decision: React Native's `fetch` is the whatwg-fetch
44
+ * polyfill, whose `Response` constructor throws
45
+ * `RangeError: The status provided is outside the range [200, 599]`. A rule set
46
+ * to 0 would therefore crash the app's own fetch call rather than override it.
47
+ * Use `kind: "fail"` for connection-level failures.
48
+ */
49
+ export declare const STATUS_MIN = 200;
50
+ export declare const STATUS_MAX = 599;
51
+ /** Bounds the persisted list so a runaway UI can't fill storage. */
52
+ export declare const MAX_RULES = 50;
53
+ /** Free tier gets one active rule; Pro is unlimited (up to MAX_RULES). */
54
+ export declare const FREE_TIER_RULE_LIMIT = 1;
55
+ export interface OverrideRule {
56
+ id: string;
57
+ enabled: boolean;
58
+ /** Display label. Falls back to `urlPattern` when absent. */
59
+ name?: string;
60
+ /**
61
+ * Glob matched against the FULL request URL, query string included.
62
+ *
63
+ * `*` is the only wildcard and the match is anchored, exactly like Chrome's
64
+ * `applyTo` patterns — see `escapeRegex` in `matchRule.ts`, ported from
65
+ * `NetworkPersistenceManager.ts:1051` so a pattern behaves the same way here
66
+ * as it does in the browser.
67
+ */
68
+ urlPattern: string;
69
+ /** Uppercase methods. Absent or empty means "any method". */
70
+ methods?: string[];
71
+ kind: OverrideRuleKind;
72
+ /** `respond` only. Clamped to [STATUS_MIN, STATUS_MAX]. Defaults to 200. */
73
+ status?: number;
74
+ /**
75
+ * `respond` only. React Native's XMLHttpRequest has no `statusText` field at
76
+ * all (real requests report `undefined`), so this is purely cosmetic — it
77
+ * makes the tool's own list read correctly.
78
+ */
79
+ statusText?: string;
80
+ /** `respond` only. A `content-type` is inferred from the body when omitted. */
81
+ headers?: Record<string, string>;
82
+ /** `respond` only. Raw text; JSON is just JSON-shaped text. */
83
+ body?: string;
84
+ /** `fail` only. Defaults to `network`. */
85
+ failKind?: OverrideFailKind;
86
+ /** Latency before the outcome, in ms. Applies to all three kinds. */
87
+ delayMs?: number;
88
+ /**
89
+ * Auto-disable after N matches; `null`/absent means "forever".
90
+ *
91
+ * A throwaway rule ("make the next save fail") should retire itself. A rule
92
+ * that silently breaks the app tomorrow is this feature's main footgun.
93
+ */
94
+ times?: number | null;
95
+ /**
96
+ * Apply to every OTHER matching request instead of every one.
97
+ *
98
+ * For the failure that isn't total: a flaky endpoint, a retry that should
99
+ * succeed on the second attempt, a token refresh that only fires after one
100
+ * 401. Those paths are where retry logic is usually wrong, and a rule that's
101
+ * either always-on or always-off can't reach them.
102
+ *
103
+ * The first matching request passes THROUGH, the second is overridden, and it
104
+ * alternates forever — so the sequence is off, on, off, on.
105
+ */
106
+ alternate?: boolean;
107
+ /** Times this rule was APPLIED. Runtime-only counter; not persisted. */
108
+ hits: number;
109
+ /**
110
+ * Times this rule MATCHED, whether or not it applied. Runtime-only.
111
+ *
112
+ * Distinct from `hits` because `alternate` needs to advance its phase on the
113
+ * requests it deliberately lets through — counting only applications would
114
+ * leave it stuck in the off phase forever.
115
+ */
116
+ seen: number;
117
+ createdAt: number;
118
+ /**
119
+ * WIRE-ONLY: this rule's `body` was too big to ride the sync snapshot and was
120
+ * left out of it. Never persisted, never set on the device's own copy.
121
+ *
122
+ * A rule seeded from a real request holds that request's whole response —
123
+ * half a megabyte is normal — and the snapshot goes out several times a second
124
+ * while traffic flows. Streaming those bodies forever is the freeze that
125
+ * `stripLargeBodies` already exists to prevent for events.
126
+ *
127
+ * Remote surfaces fetch the real body with `getOverrideRuleBody` when the user
128
+ * actually opens the rule. The flag also protects the body on save: a
129
+ * dashboard editing a rule it never received the body for sends this back, and
130
+ * the device keeps what it has rather than wiping it.
131
+ */
132
+ bodyOmitted?: boolean;
133
+ }
134
+ /**
135
+ * Stamped onto the `NetworkEvent` a rule affected, so the list can badge the
136
+ * row and the detail view can offer "edit / disable the rule that did this".
137
+ */
138
+ export interface NetworkOverrideMark {
139
+ ruleId: string;
140
+ ruleName?: string;
141
+ kind: OverrideRuleKind;
142
+ delayMs?: number;
143
+ }
144
+ /**
145
+ * A matched rule, normalized into exactly what the interceptor needs — defaults
146
+ * resolved, status clamped, content-type inferred. Keeping normalization in the
147
+ * resolver means `applyToXhr` never has to make a decision.
148
+ */
149
+ export type OverrideOutcome = {
150
+ kind: "respond";
151
+ rule: OverrideRule;
152
+ delayMs: number;
153
+ status: number;
154
+ statusText: string;
155
+ headers: Record<string, string>;
156
+ body: string;
157
+ } | {
158
+ kind: "fail";
159
+ rule: OverrideRule;
160
+ delayMs: number;
161
+ failKind: OverrideFailKind;
162
+ } | {
163
+ kind: "delay";
164
+ rule: OverrideRule;
165
+ delayMs: number;
166
+ };
167
+ /** The marker recorded for an outcome. */
168
+ export declare function markForOutcome(outcome: OverrideOutcome): NetworkOverrideMark;
169
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/network/overrides/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAAC;AAErD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,eAAO,MAAM,UAAU,MAAM,CAAC;AAE9B,oEAAoE;AACpE,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,6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IACb,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,GACD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D,0CAA0C;AAC1C,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,mBAAmB,CAO5E"}
@@ -1,3 +1,5 @@
1
+ import type { OverrideRulesState } from "../overrides/overrideRulesStore";
2
+ import type { OverrideRuleKind } from "../overrides/types";
1
3
  import type { NetworkEvent } from "../types";
2
4
  /**
3
5
  * Request/response bodies larger than this (using the cached size proxy already
@@ -31,6 +33,12 @@ export declare const networkSyncAdapter: {
31
33
  version: number;
32
34
  getSnapshot: () => {
33
35
  events: NetworkEvent[];
36
+ /**
37
+ * Response-override rules live on the DEVICE — that's the only place they
38
+ * can run, since a rule is applied inside the app's own XMLHttpRequest.
39
+ * Remote surfaces mirror this and forward their edits back as actions.
40
+ */
41
+ overrides: OverrideRulesState;
34
42
  saved: {
35
43
  event: NetworkEvent;
36
44
  key: string;
@@ -85,6 +93,71 @@ export declare const networkSyncAdapter: {
85
93
  clearPinnedRequests: () => {
86
94
  ok: boolean;
87
95
  };
96
+ /** Master switch — turns every rule off without losing any of them. */
97
+ setOverridesEnabled: (params: unknown) => {
98
+ ok: boolean;
99
+ enabled: boolean;
100
+ };
101
+ /** Create a rule, or replace one by id. */
102
+ upsertOverrideRule: (params: unknown) => {
103
+ ok: boolean;
104
+ error: string;
105
+ rule?: undefined;
106
+ } | {
107
+ ok: boolean;
108
+ rule: {
109
+ id: string;
110
+ urlPattern: string;
111
+ enabled: boolean;
112
+ kind: OverrideRuleKind;
113
+ status: number | undefined;
114
+ bodySize: number;
115
+ };
116
+ error?: undefined;
117
+ };
118
+ setOverrideRuleEnabled: (params: unknown) => {
119
+ ok: boolean;
120
+ error: string;
121
+ } | {
122
+ ok: boolean;
123
+ error?: undefined;
124
+ };
125
+ deleteOverrideRule: (params: unknown) => {
126
+ ok: boolean;
127
+ error: string;
128
+ } | {
129
+ ok: boolean;
130
+ error?: undefined;
131
+ };
132
+ clearOverrideRules: () => {
133
+ ok: boolean;
134
+ };
135
+ /** Read the rules back — hit counts included, which the snapshot coalesces. */
136
+ listOverrideRules: () => OverrideRulesState;
137
+ /**
138
+ * The full body of one rule, for the surfaces the snapshot withheld it from
139
+ * (see `stripLargeRuleBodies`). Fetched when the user opens the rule, which
140
+ * is the only moment it's needed.
141
+ */
142
+ getOverrideRuleBody: (params: unknown) => {
143
+ body: string | null;
144
+ } | null;
145
+ /** Why isn't my rule firing? Reports the engine's own view of the world. */
146
+ debugOverrides: (params: unknown) => {
147
+ interceptorInstalled: boolean;
148
+ listenerCount: number;
149
+ engine: {
150
+ hooksInstalled: boolean;
151
+ devFlag: string | boolean;
152
+ ruleCount: number;
153
+ matches: boolean;
154
+ };
155
+ store: {
156
+ enabled: boolean;
157
+ ruleCount: number;
158
+ rulesVisibleToEngine: number;
159
+ };
160
+ };
88
161
  };
89
162
  };
90
163
  //# sourceMappingURL=networkSyncAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"networkSyncAdapter.d.ts","sourceRoot":"","sources":["../../../../src/network/sync/networkSyncAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,QAAY,CAAC;AA+BpD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;0BAYP,MAAM,IAAI;;;QAc9B;;;;;WAKG;+BACoB,OAAO;;;;QAU9B,8CAA8C;4BAC1B,OAAO;;;;;;;;;QAY3B,gDAAgD;2BAC7B,OAAO;;;;;;;;;QAU1B,sDAAsD;oCAC1B,OAAO;;;;;;;;;;CAkBtC,CAAC"}
1
+ {"version":3,"file":"networkSyncAdapter.d.ts","sourceRoot":"","sources":["../../../../src/network/sync/networkSyncAdapter.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,QAAY,CAAC;AA8JpD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,kBAAkB;;;;QAI3B;;;;WAIG;;;;;;;;;;;;;0BAUiB,MAAM,IAAI;;;QAkB9B;;;;;WAKG;+BACoB,OAAO;;;;QAU9B,8CAA8C;4BAC1B,OAAO;;;;;;;;;QAY3B,gDAAgD;2BAC7B,OAAO;;;;;;;;;QAU1B,sDAAsD;oCAC1B,OAAO;;;;;;;;;QAsBnC,uEAAuE;sCACzC,OAAO;;;;QAKrC,2CAA2C;qCACd,OAAO;;;;;;;;;;;;;;;;yCAmCH,OAAO;;;;;;;qCAOX,OAAO;;;;;;;;;;QAYpC,+EAA+E;;QAG/E;;;;WAIG;sCAC2B,OAAO;;;QAYrC,4EAA4E;iCACnD,OAAO;;;;;;;;;;;;;;;;CAiBnC,CAAC"}
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * Network monitoring types for React Native dev tools
3
3
  */
4
+ import type { NetworkOverrideMark } from "../overrides/types";
5
+ export type { NetworkOverrideMark, OverrideRule, OverrideRuleKind, OverrideFailKind, } from "../overrides/types";
4
6
  /**
5
7
  * The parts of a request's lifetime we can actually observe from JavaScript.
6
8
  *
@@ -93,6 +95,14 @@ export interface NetworkEvent {
93
95
  * // Display: "GetPokemon › Sandshrew"
94
96
  */
95
97
  graphqlVariables?: Record<string, unknown>;
98
+ /**
99
+ * Set when a response-override rule affected this request.
100
+ *
101
+ * OPTIONAL ON PURPOSE, like `timings` — absent on requests captured before
102
+ * overrides existed, and on devices running an older Buoy than the dashboard.
103
+ * Consumers must treat its absence as "not overridden", never as "unknown".
104
+ */
105
+ override?: NetworkOverrideMark;
96
106
  }
97
107
  /**
98
108
  * Aggregated counts derived from the currently loaded set of network events.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/network/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EACF,KAAK,GACL,MAAM,GACN,KAAK,GACL,QAAQ,GACR,OAAO,GACP,MAAM,GACN,SAAS,GACT,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY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IACjB,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/network/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,YAAY,EACV,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EACF,KAAK,GACL,MAAM,GACN,KAAK,GACL,QAAQ,GACR,OAAO,GACP,MAAM,GACN,SAAS,GACT,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,M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AAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -31,6 +31,13 @@ export type NetworkEventCallback = (event: NetworkEvent) => void;
31
31
  export type NetworkEventsArrayCallback = (events: NetworkEvent[]) => void;
32
32
  declare class NetworkEventStore extends BaseEventStore<NetworkEvent> {
33
33
  private pendingRequests;
34
+ /**
35
+ * Recently seen `METHOD:url` keys → when, and which event id we kept.
36
+ *
37
+ * The timestamp powers the dual-interception dedup below. The id is what lets
38
+ * a DROPPED duplicate still contribute something the kept event doesn't know
39
+ * — see `applyOverrideMark`.
40
+ */
34
41
  private recentRequests;
35
42
  private rawListenerUnsubscribe;
36
43
  constructor();
@@ -50,6 +57,13 @@ declare class NetworkEventStore extends BaseEventStore<NetworkEvent> {
50
57
  * Process a network listener event
51
58
  */
52
59
  processNetworkEvent(event: NetworkingEvent): void;
60
+ /**
61
+ * Stamp an override mark onto an already-recorded event.
62
+ *
63
+ * Only ever moves a mark from a dropped duplicate onto the event that was
64
+ * kept, so it never overwrites one that is already there.
65
+ */
66
+ private applyOverrideMark;
53
67
  private extractHost;
54
68
  private extractPath;
55
69
  private getDataSize;
@@ -1 +1 @@
1
- {"version":3,"file":"networkEventStore.d.ts","sourceRoot":"","sources":["../../../../src/network/utils/networkEventStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,MAAM,EAAE,YAAY,EAA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import type { NetworkTimings } from "../types";
6
+ import { type NetworkOverrideMark } from "../overrides/types";
6
7
  export interface NetworkingEvent {
7
8
  type: "request" | "response" | "error";
8
9
  timestamp: Date;
@@ -30,6 +31,8 @@ export interface NetworkingEvent {
30
31
  message: string;
31
32
  stack?: string;
32
33
  };
34
+ /** Set when a response-override rule affected this request. */
35
+ override?: NetworkOverrideMark;
33
36
  }
34
37
  export type NetworkingEventListener = (event: NetworkingEvent) => void;
35
38
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"networkListener.d.ts","sourceRoot":"","sources":["../../../../src/network/utils/networkListener.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAgB/C,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IACvC,SAAS,EAAE,IAAI,CAAC;IAChB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;KAC7D,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,OAAO,CAAC;QAC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AAC;AAE7C;;GAEG;AACH,eAAO,MAAM,yBAAyB,YACK,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,eAAsC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,cAA2C,CAAC"}
1
+ {"version":3,"file":"networkListener.d.ts","sourceRoot":"","sources":["../../../../src/network/utils/networkListener.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAS/C,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AA8B9E,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IACvC,SAAS,EAAE,IAAI,CAAC;IAChB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;KAC7D,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,CAAC,EAAE;QACN,OAAO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H,eAAO,MAAM,yBAAyB,YACK,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,eAAsC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,cAA2C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/preset.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;qBAKX;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;CAKlC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE;IAC1C,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,qCAAqC;IACrC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;;;;;qBAMoB;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;EASpC"}
1
+ {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/preset.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAcjE;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;qBAKX;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;CAKlC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE;IAC1C,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,qCAAqC;IACrC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;;;;;qBAMoB;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;EASpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/network",
3
- "version": "7.0.13",
3
+ "version": "7.0.15",
4
4
  "description": "In-app network inspector for React Native — requests, responses, timing & errors live, with GraphQL operation parsing. Part of Buoy devtools.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@buoy-gg/shared-ui": "^7.0.13"
29
+ "@buoy-gg/shared-ui": "^7.0.15"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "*",