@buoy-gg/network 7.0.30 → 7.0.32

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.
@@ -656,6 +656,7 @@ function NetworkModalInner({
656
656
  style: styles.inlineRoot,
657
657
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
658
658
  style: styles.inlineHeader,
659
+ ..._sharedUi.windowDragProps,
659
660
  children: renderHeaderContent()
660
661
  }), body]
661
662
  });
@@ -3,8 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.OVERRIDES_INACTIVE_REASON = void 0;
6
7
  exports.inspectEngine = inspectEngine;
7
8
  exports.overrideForRequest = overrideForRequest;
9
+ exports.overridesCanApply = overridesCanApply;
8
10
  exports.setOverrideHooks = setOverrideHooks;
9
11
  var _resolveOverride = require("./resolveOverride");
10
12
  /**
@@ -23,6 +25,29 @@ function setOverrideHooks(next) {
23
25
  hooks = next;
24
26
  }
25
27
 
28
+ /**
29
+ * Whether a rule stored right now could ever be applied to a request.
30
+ *
31
+ * `overrideForRequest` refuses in a release build, but every WRITE path
32
+ * (`upsertOverrideRule`, `setOverrideRuleEnabled`, `setOverridesEnabled`) still
33
+ * succeeds and still persists, so a remote caller was told `{ok: true}` for a
34
+ * rule that would never fire. That is fine for a human looking at the Network
35
+ * tool — they can see nothing is happening — and actively harmful for a remote
36
+ * driver relaying "done" to a QA tester, who then files a bug against data that
37
+ * was never actually faked.
38
+ *
39
+ * So the same gate is readable here and stamped onto those receipts. One
40
+ * predicate, one truth, at the same single entry point.
41
+ */
42
+ function overridesCanApply() {
43
+ // `__DEV__` is undefined outside React Native (unit tests, the desktop
44
+ // bundle); only an explicit `false` — a real release build — disables it.
45
+ return !(typeof __DEV__ !== "undefined" && !__DEV__);
46
+ }
47
+
48
+ /** Why overrides are inert, for a caller that has to explain it to a person. */
49
+ const OVERRIDES_INACTIVE_REASON = exports.OVERRIDES_INACTIVE_REASON = "Response overrides never apply in a release build — the rule is saved but will not affect any request.";
50
+
26
51
  /**
27
52
  * Diagnostics for the sync adapter's `debugOverrides` action.
28
53
  *
@@ -51,10 +76,7 @@ function inspectEngine(url, method) {
51
76
  */
52
77
  function overrideForRequest(url, method) {
53
78
  if (!hooks) return null;
54
- // `__DEV__` is undefined outside React Native (unit tests, the desktop
55
- // dashboard's bundle); only an explicit `false` — a real release build —
56
- // disables overrides.
57
- if (typeof __DEV__ !== "undefined" && !__DEV__) return null;
79
+ if (!overridesCanApply()) return null;
58
80
  const rules = hooks.getRules();
59
81
  if (rules.length === 0) return null;
60
82
  const rule = (0, _resolveOverride.findMatchingRule)(url, method, rules);
@@ -263,6 +263,19 @@ const stripLargeRuleBodies = state => {
263
263
  const resolveEvent = id => _networkEventStore.networkEventStore.getEventById(id) ?? _networkSavedStore.networkSavedStore.getEventById(id);
264
264
  const readId = params => params && typeof params === "object" ? params.id : undefined;
265
265
  const readBool = (params, key) => !!(params && typeof params === "object" && params[key]);
266
+
267
+ /**
268
+ * Stamp an override write receipt with whether the rule can actually fire.
269
+ *
270
+ * Omitted entirely when overrides work, so a dev build's receipts are
271
+ * unchanged and no existing consumer sees a new field it has to reason about.
272
+ * Present only when the answer is "saved, but inert" — which is exactly when a
273
+ * caller relaying success to a person would otherwise be wrong.
274
+ */
275
+ const inactiveStamp = () => (0, _engine.overridesCanApply)() ? {} : {
276
+ active: false,
277
+ inactiveReason: _engine.OVERRIDES_INACTIVE_REASON
278
+ };
266
279
  const VALID_KINDS = ["respond", "fail", "delay"];
267
280
 
268
281
  /**
@@ -482,7 +495,10 @@ const networkSyncAdapter = exports.networkSyncAdapter = {
482
495
  _overrideRulesStore.overrideRulesStore.setEnabled(readBool(params, "enabled"));
483
496
  return {
484
497
  ok: true,
485
- enabled: _overrideRulesStore.overrideRulesStore.getState().enabled
498
+ enabled: _overrideRulesStore.overrideRulesStore.getState().enabled,
499
+ // `active` is the difference between "we saved it" and "it is doing
500
+ // something". A remote driver reads this and tells the user the truth.
501
+ ...inactiveStamp()
486
502
  };
487
503
  },
488
504
  /** Create a rule, or replace one by id. */
@@ -518,7 +534,8 @@ const networkSyncAdapter = exports.networkSyncAdapter = {
518
534
  kind: rule.kind,
519
535
  status: rule.status,
520
536
  bodySize: rule.body ? rule.body.length : 0
521
- }
537
+ },
538
+ ...inactiveStamp()
522
539
  };
523
540
  },
524
541
  setOverrideRuleEnabled: params => {
@@ -529,7 +546,8 @@ const networkSyncAdapter = exports.networkSyncAdapter = {
529
546
  };
530
547
  _overrideRulesStore.overrideRulesStore.setRuleEnabled(id, readBool(params, "enabled"));
531
548
  return {
532
- ok: true
549
+ ok: true,
550
+ ...inactiveStamp()
533
551
  };
534
552
  },
535
553
  deleteOverrideRule: params => {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ var _vitest = require("vitest");
4
+ var _engine = require("../overrides/engine");
5
+ /**
6
+ * Override write receipts must admit when the rule cannot fire.
7
+ *
8
+ * Compiled by vitest.release.config.ts with `__DEV__` inlined to false — the
9
+ * only lane where this is observable, because `__DEV__` is a build-time
10
+ * constant and `vi.stubGlobal` cannot reach it.
11
+ *
12
+ * The bug this pins: `overrideForRequest` refuses in a release build, but the
13
+ * write paths still returned a bare `{ok: true}` and still persisted. A remote
14
+ * driver — Buoy MCP, the desktop dashboard, or Ask Buoy — reported "override is
15
+ * live" to a QA tester whose next bug report was filed against data that was
16
+ * never faked. Saved and inert are different states and the receipt has to say
17
+ * which one happened.
18
+ */
19
+
20
+ (0, _vitest.describe)("override honesty in a release build", () => {
21
+ (0, _vitest.it)("is compiled with __DEV__ false", () => {
22
+ // Guard the guard: if this lane ever ran with __DEV__ true, every
23
+ // assertion below would pass for the wrong reason.
24
+ (0, _vitest.expect)(typeof __DEV__ === "undefined" || __DEV__).toBe(false);
25
+ });
26
+ (0, _vitest.it)("reports that overrides cannot apply", () => {
27
+ (0, _vitest.expect)((0, _engine.overridesCanApply)()).toBe(false);
28
+ });
29
+ (0, _vitest.it)("never applies a rule to a request", () => {
30
+ (0, _vitest.expect)((0, _engine.overrideForRequest)("https://api.example.com/menu", "GET")).toBeNull();
31
+ });
32
+ (0, _vitest.it)("has a reason written for a person, not a log line", () => {
33
+ (0, _vitest.expect)(_engine.OVERRIDES_INACTIVE_REASON).toMatch(/release build/i);
34
+ (0, _vitest.expect)(_engine.OVERRIDES_INACTIVE_REASON).toMatch(/will not affect/i);
35
+ });
36
+ });
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useState, useRef, useEffect, useCallback } from "react";
4
4
  import { View, StyleSheet, TouchableOpacity, TextInput } from "react-native";
5
- import { Search, Filter, Bookmark, X, JsModal, ModalHeader, devToolsStorageKeys, macOSColors, night, persistentStorage, NightSegmented, useFeatureGate, UpgradeModal, PowerToggleButton, useIgnoredPatterns } from "@buoy-gg/shared-ui";
5
+ import { Search, Filter, Bookmark, X, JsModal, ModalHeader, devToolsStorageKeys, macOSColors, night, persistentStorage, NightSegmented, useFeatureGate, UpgradeModal, PowerToggleButton, useIgnoredPatterns, windowDragProps } from "@buoy-gg/shared-ui";
6
6
  import { NetworkFilterViewV3 } from "./NetworkFilterViewV3";
7
7
  import { TickProvider } from "../hooks/useTickEveryMinute";
8
8
  import { NetworkEventDetailView } from "./NetworkEventDetailView";
@@ -651,6 +651,7 @@ function NetworkModalInner({
651
651
  style: styles.inlineRoot,
652
652
  children: [/*#__PURE__*/_jsx(View, {
653
653
  style: styles.inlineHeader,
654
+ ...windowDragProps,
654
655
  children: renderHeaderContent()
655
656
  }), body]
656
657
  });
@@ -17,6 +17,29 @@ export function setOverrideHooks(next) {
17
17
  hooks = next;
18
18
  }
19
19
 
20
+ /**
21
+ * Whether a rule stored right now could ever be applied to a request.
22
+ *
23
+ * `overrideForRequest` refuses in a release build, but every WRITE path
24
+ * (`upsertOverrideRule`, `setOverrideRuleEnabled`, `setOverridesEnabled`) still
25
+ * succeeds and still persists, so a remote caller was told `{ok: true}` for a
26
+ * rule that would never fire. That is fine for a human looking at the Network
27
+ * tool — they can see nothing is happening — and actively harmful for a remote
28
+ * driver relaying "done" to a QA tester, who then files a bug against data that
29
+ * was never actually faked.
30
+ *
31
+ * So the same gate is readable here and stamped onto those receipts. One
32
+ * predicate, one truth, at the same single entry point.
33
+ */
34
+ export function overridesCanApply() {
35
+ // `__DEV__` is undefined outside React Native (unit tests, the desktop
36
+ // bundle); only an explicit `false` — a real release build — disables it.
37
+ return !(typeof __DEV__ !== "undefined" && !__DEV__);
38
+ }
39
+
40
+ /** Why overrides are inert, for a caller that has to explain it to a person. */
41
+ export const OVERRIDES_INACTIVE_REASON = "Response overrides never apply in a release build — the rule is saved but will not affect any request.";
42
+
20
43
  /**
21
44
  * Diagnostics for the sync adapter's `debugOverrides` action.
22
45
  *
@@ -45,10 +68,7 @@ export function inspectEngine(url, method) {
45
68
  */
46
69
  export function overrideForRequest(url, method) {
47
70
  if (!hooks) return null;
48
- // `__DEV__` is undefined outside React Native (unit tests, the desktop
49
- // dashboard's bundle); only an explicit `false` — a real release build —
50
- // disables overrides.
51
- if (typeof __DEV__ !== "undefined" && !__DEV__) return null;
71
+ if (!overridesCanApply()) return null;
52
72
  const rules = hooks.getRules();
53
73
  if (rules.length === 0) return null;
54
74
  const rule = findMatchingRule(url, method, rules);
@@ -4,7 +4,7 @@ import { networkEventStore } from "../utils/networkEventStore";
4
4
  import { flagsForEventId, networkSavedStore } from "../utils/networkSavedStore";
5
5
  import { overrideRulesStore } from "../overrides/overrideRulesStore";
6
6
  import { draftFromEvent } from "../overrides/presets";
7
- import { inspectEngine } from "../overrides/engine";
7
+ import { inspectEngine, overridesCanApply, OVERRIDES_INACTIVE_REASON } from "../overrides/engine";
8
8
  import { getNetworkListenerCount, isNetworkInterceptionLive, isNetworkListening } from "../utils/networkListener";
9
9
  import { approxJsonSize, isOverWireBudget } from "@buoy-gg/shared-ui";
10
10
 
@@ -260,6 +260,19 @@ const stripLargeRuleBodies = state => {
260
260
  const resolveEvent = id => networkEventStore.getEventById(id) ?? networkSavedStore.getEventById(id);
261
261
  const readId = params => params && typeof params === "object" ? params.id : undefined;
262
262
  const readBool = (params, key) => !!(params && typeof params === "object" && params[key]);
263
+
264
+ /**
265
+ * Stamp an override write receipt with whether the rule can actually fire.
266
+ *
267
+ * Omitted entirely when overrides work, so a dev build's receipts are
268
+ * unchanged and no existing consumer sees a new field it has to reason about.
269
+ * Present only when the answer is "saved, but inert" — which is exactly when a
270
+ * caller relaying success to a person would otherwise be wrong.
271
+ */
272
+ const inactiveStamp = () => overridesCanApply() ? {} : {
273
+ active: false,
274
+ inactiveReason: OVERRIDES_INACTIVE_REASON
275
+ };
263
276
  const VALID_KINDS = ["respond", "fail", "delay"];
264
277
 
265
278
  /**
@@ -479,7 +492,10 @@ export const networkSyncAdapter = {
479
492
  overrideRulesStore.setEnabled(readBool(params, "enabled"));
480
493
  return {
481
494
  ok: true,
482
- enabled: overrideRulesStore.getState().enabled
495
+ enabled: overrideRulesStore.getState().enabled,
496
+ // `active` is the difference between "we saved it" and "it is doing
497
+ // something". A remote driver reads this and tells the user the truth.
498
+ ...inactiveStamp()
483
499
  };
484
500
  },
485
501
  /** Create a rule, or replace one by id. */
@@ -515,7 +531,8 @@ export const networkSyncAdapter = {
515
531
  kind: rule.kind,
516
532
  status: rule.status,
517
533
  bodySize: rule.body ? rule.body.length : 0
518
- }
534
+ },
535
+ ...inactiveStamp()
519
536
  };
520
537
  },
521
538
  setOverrideRuleEnabled: params => {
@@ -526,7 +543,8 @@ export const networkSyncAdapter = {
526
543
  };
527
544
  overrideRulesStore.setRuleEnabled(id, readBool(params, "enabled"));
528
545
  return {
529
- ok: true
546
+ ok: true,
547
+ ...inactiveStamp()
530
548
  };
531
549
  },
532
550
  deleteOverrideRule: params => {
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Override write receipts must admit when the rule cannot fire.
5
+ *
6
+ * Compiled by vitest.release.config.ts with `__DEV__` inlined to false — the
7
+ * only lane where this is observable, because `__DEV__` is a build-time
8
+ * constant and `vi.stubGlobal` cannot reach it.
9
+ *
10
+ * The bug this pins: `overrideForRequest` refuses in a release build, but the
11
+ * write paths still returned a bare `{ok: true}` and still persisted. A remote
12
+ * driver — Buoy MCP, the desktop dashboard, or Ask Buoy — reported "override is
13
+ * live" to a QA tester whose next bug report was filed against data that was
14
+ * never faked. Saved and inert are different states and the receipt has to say
15
+ * which one happened.
16
+ */
17
+ import { describe, expect, it } from "vitest";
18
+ import { overridesCanApply, OVERRIDES_INACTIVE_REASON, overrideForRequest } from "../overrides/engine";
19
+ describe("override honesty in a release build", () => {
20
+ it("is compiled with __DEV__ false", () => {
21
+ // Guard the guard: if this lane ever ran with __DEV__ true, every
22
+ // assertion below would pass for the wrong reason.
23
+ expect(typeof __DEV__ === "undefined" || __DEV__).toBe(false);
24
+ });
25
+ it("reports that overrides cannot apply", () => {
26
+ expect(overridesCanApply()).toBe(false);
27
+ });
28
+ it("never applies a rule to a request", () => {
29
+ expect(overrideForRequest("https://api.example.com/menu", "GET")).toBeNull();
30
+ });
31
+ it("has a reason written for a person, not a log line", () => {
32
+ expect(OVERRIDES_INACTIVE_REASON).toMatch(/release build/i);
33
+ expect(OVERRIDES_INACTIVE_REASON).toMatch(/will not affect/i);
34
+ });
35
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkModal.d.ts","sourceRoot":"","sources":["../../../../src/network/components/NetworkModal.tsx"],"names":[],"mappings":"AAsEA,UAAU,iBAAiB;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AA23BD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAMpD;AAED,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,GAAE,oBAAyB,+BAa/D"}
1
+ {"version":3,"file":"NetworkModal.d.ts","sourceRoot":"","sources":["../../../../src/network/components/NetworkModal.tsx"],"names":[],"mappings":"AAwEA,UAAU,iBAAiB;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AA23BD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAMpD;AAED,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,GAAE,oBAAyB,+BAa/D"}
@@ -22,6 +22,23 @@ export interface OverrideHooks {
22
22
  recordMatch: (ruleId: string) => void;
23
23
  }
24
24
  export declare function setOverrideHooks(next: OverrideHooks | null): void;
25
+ /**
26
+ * Whether a rule stored right now could ever be applied to a request.
27
+ *
28
+ * `overrideForRequest` refuses in a release build, but every WRITE path
29
+ * (`upsertOverrideRule`, `setOverrideRuleEnabled`, `setOverridesEnabled`) still
30
+ * succeeds and still persists, so a remote caller was told `{ok: true}` for a
31
+ * rule that would never fire. That is fine for a human looking at the Network
32
+ * tool — they can see nothing is happening — and actively harmful for a remote
33
+ * driver relaying "done" to a QA tester, who then files a bug against data that
34
+ * was never actually faked.
35
+ *
36
+ * So the same gate is readable here and stamped onto those receipts. One
37
+ * predicate, one truth, at the same single entry point.
38
+ */
39
+ export declare function overridesCanApply(): boolean;
40
+ /** Why overrides are inert, for a caller that has to explain it to a person. */
41
+ export declare const OVERRIDES_INACTIVE_REASON = "Response overrides never apply in a release build \u2014 the rule is saved but will not affect any request.";
25
42
  /**
26
43
  * Diagnostics for the sync adapter's `debugOverrides` action.
27
44
  *
@@ -1 +1 @@
1
- {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../src/network/overrides/engine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,SAAS,YAAY,EAAE,CAAC;IACxC,qCAAqC;IACrC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;;;;;OAKG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAID,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,GAAG,IAAI,CAEjE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;EAWxD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GACb,eAAe,GAAG,IAAI,CAqBxB"}
1
+ {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../src/network/overrides/engine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,SAAS,YAAY,EAAE,CAAC;IACxC,qCAAqC;IACrC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;;;;;OAKG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAID,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,GAAG,IAAI,CAEjE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAI3C;AAED,gFAAgF;AAChF,eAAO,MAAM,yBAAyB,gHACoE,CAAC;AAE3G;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;EAWxD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GACb,eAAe,GAAG,IAAI,CAkBxB"}
@@ -116,6 +116,11 @@ export declare const networkSyncAdapter: {
116
116
  };
117
117
  /** Master switch — turns every rule off without losing any of them. */
118
118
  setOverridesEnabled: (params?: unknown) => {
119
+ active: false;
120
+ inactiveReason: string;
121
+ ok: boolean;
122
+ enabled: boolean;
123
+ } | {
119
124
  ok: boolean;
120
125
  enabled: boolean;
121
126
  };
@@ -123,7 +128,19 @@ export declare const networkSyncAdapter: {
123
128
  upsertOverrideRule: (params?: unknown) => {
124
129
  ok: boolean;
125
130
  error: string;
126
- rule?: undefined;
131
+ } | {
132
+ active: false;
133
+ inactiveReason: string;
134
+ ok: boolean;
135
+ rule: {
136
+ id: string;
137
+ urlPattern: string;
138
+ enabled: boolean;
139
+ kind: OverrideRuleKind;
140
+ status: number | undefined;
141
+ bodySize: number;
142
+ };
143
+ error?: undefined;
127
144
  } | {
128
145
  ok: boolean;
129
146
  rule: {
@@ -139,6 +156,11 @@ export declare const networkSyncAdapter: {
139
156
  setOverrideRuleEnabled: (params?: unknown) => {
140
157
  ok: boolean;
141
158
  error: string;
159
+ } | {
160
+ active: false;
161
+ inactiveReason: string;
162
+ ok: boolean;
163
+ error?: undefined;
142
164
  } | {
143
165
  ok: boolean;
144
166
  error?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"networkSyncAdapter.d.ts","sourceRoot":"","sources":["../../../../src/network/sync/networkSyncAdapter.ts"],"names":[],"mappings":"AAUA,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;AAG7C;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,QAAY,CAAC;AAEpD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAAqB,CAAC;AA2LzD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAC;AA+J9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,kBAAkB;;;;QAczB;;;;WAIG;;;;;;;;;;;;;0BAWe,MAAM,IAAI;;;QAkB9B;;;;;WAKG;gCACqB,OAAO;;;;;;QAY/B,8CAA8C;6BACzB,OAAO;;;;;;;;;QAY5B,gDAAgD;4BAC5B,OAAO;;;;;;;;;QAU3B,sDAAsD;qCACzB,OAAO;;;;;;;;;QAsBpC,uEAAuE;uCACxC,OAAO;;;;QAKtC,2CAA2C;sCACb,OAAO;;;;;;;;;;;;;;;;0CAmCH,OAAO;;;;;;;sCAOX,OAAO;;;;;;;;;;QAYrC,+EAA+E;;QAG/E;;;;WAIG;uCAC4B,OAAO;;;QAYtC,4EAA4E;QAC5E;;;;;;;WAOG;;;;;;;;;kCA2CuB,OAAO;;;;;;;;;;;;;;;;CAiBpC,CAAC"}
1
+ {"version":3,"file":"networkSyncAdapter.d.ts","sourceRoot":"","sources":["../../../../src/network/sync/networkSyncAdapter.ts"],"names":[],"mappings":"AAcA,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;AAG7C;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,QAAY,CAAC;AAEpD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAAqB,CAAC;AA2LzD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAC;AA8K9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,kBAAkB;;;;QAczB;;;;WAIG;;;;;;;;;;;;;0BAWe,MAAM,IAAI;;;QAkB9B;;;;;WAKG;gCACqB,OAAO;;;;;;QAY/B,8CAA8C;6BACzB,OAAO;;;;;;;;;QAY5B,gDAAgD;4BAC5B,OAAO;;;;;;;;;QAU3B,sDAAsD;qCACzB,OAAO;;;;;;;;;QAsBpC,uEAAuE;uCACxC,OAAO;oBA/O5B,KAAK;4BAAkB,MAAM;;;;;;;QA0PvC,2CAA2C;sCACb,OAAO;;;;oBA3P3B,KAAK;4BAAkB,MAAM;;;;;;;;;;;;;;;;;;;;;;;0CA+RL,OAAO;;;;oBA/R/B,KAAK;4BAAkB,MAAM;;;;;;;sCAsST,OAAO;;;;;;;;;;QAYrC,+EAA+E;;QAG/E;;;;WAIG;uCAC4B,OAAO;;;QAYtC,4EAA4E;QAC5E;;;;;;;WAOG;;;;;;;;;kCA2CuB,OAAO;;;;;;;;;;;;;;;;CAiBpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=overrideHonesty.release.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overrideHonesty.release.test.d.ts","sourceRoot":"","sources":["../../../../src/network/sync/overrideHonesty.release.test.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/network",
3
- "version": "7.0.30",
3
+ "version": "7.0.32",
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.30"
29
+ "@buoy-gg/shared-ui": "^7.0.32"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "*",