@buoy-gg/network 7.0.18 → 7.0.20
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 +8 -3
- package/lib/typescript/network/overrides/__tests__/applyToFetch.test.d.ts +0 -16
- package/lib/typescript/network/overrides/__tests__/applyToFetch.test.d.ts.map +0 -1
- package/lib/typescript/network/overrides/__tests__/applyToXhr.test.d.ts +0 -19
- package/lib/typescript/network/overrides/__tests__/applyToXhr.test.d.ts.map +0 -1
- package/lib/typescript/network/overrides/__tests__/resolveOverride.test.d.ts +0 -22
- package/lib/typescript/network/overrides/__tests__/resolveOverride.test.d.ts.map +0 -1
- package/lib/typescript/network/sync/__tests__/networkSyncAdapter.test.d.ts +0 -2
- package/lib/typescript/network/sync/__tests__/networkSyncAdapter.test.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/network",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.20",
|
|
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.
|
|
29
|
+
"@buoy-gg/shared-ui": "^7.0.20"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "*",
|
|
@@ -54,7 +54,12 @@
|
|
|
54
54
|
"sourceMaps": false
|
|
55
55
|
}
|
|
56
56
|
],
|
|
57
|
-
|
|
57
|
+
[
|
|
58
|
+
"typescript",
|
|
59
|
+
{
|
|
60
|
+
"project": "tsconfig.build.json"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
58
63
|
]
|
|
59
64
|
},
|
|
60
65
|
"repository": {
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unit tests for the fetch-side synthesis.
|
|
3
|
-
*
|
|
4
|
-
* This layer exists because of a finding that only showed up on a real device:
|
|
5
|
-
* Expo replaces `globalThis.fetch` with a NATIVE `expo/fetch` (see
|
|
6
|
-
* `expo/src/winter/runtime.native.ts`), so those requests never construct an
|
|
7
|
-
* XMLHttpRequest and an XHR-only override silently does nothing. Verified on
|
|
8
|
-
* Expo SDK 56 / RN 0.85.3.
|
|
9
|
-
*
|
|
10
|
-
* Same self-contained harness as the other tests — see the run command in
|
|
11
|
-
* `resolveOverride.test.ts`. Excluded from the publish build by
|
|
12
|
-
* `tsconfig.build.json`.
|
|
13
|
-
*/
|
|
14
|
-
declare function main(): Promise<void>;
|
|
15
|
-
export { main as runApplyToFetchTests };
|
|
16
|
-
//# sourceMappingURL=applyToFetch.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applyToFetch.test.d.ts","sourceRoot":"","sources":["../../../../../src/network/overrides/__tests__/applyToFetch.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AA2KH,iBAAe,IAAI,kBAsBlB;AAaD,OAAO,EAAE,IAAI,IAAI,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unit tests for the XHR response synthesis, against a faithful clone of React
|
|
3
|
-
* Native's XMLHttpRequest state machine.
|
|
4
|
-
*
|
|
5
|
-
* WHY A CLONE RATHER THAN A MOCK: the interesting behaviour is not "did we set
|
|
6
|
-
* some fields", it's whether RN's own `setReadyState` / `abort` branches then
|
|
7
|
-
* do the right thing — which terminal event fires, and what `abort()` does when
|
|
8
|
-
* `_sent` is or isn't claimed. A mock that just records calls would pass while
|
|
9
|
-
* the real thing hung the app's fetch promise. `FakeRNXhr` below is transcribed
|
|
10
|
-
* from `react-native/Libraries/Network/XMLHttpRequest.js` (verified identical on
|
|
11
|
-
* RN 0.81.4 and 0.85.3), so these assertions are about real semantics.
|
|
12
|
-
*
|
|
13
|
-
* Same self-contained harness as the other tests — see the run command in
|
|
14
|
-
* `resolveOverride.test.ts`. Excluded from the publish build by
|
|
15
|
-
* `tsconfig.build.json`.
|
|
16
|
-
*/
|
|
17
|
-
declare function main(): Promise<void>;
|
|
18
|
-
export { main as runApplyToXhrTests };
|
|
19
|
-
//# sourceMappingURL=applyToXhr.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applyToXhr.test.d.ts","sourceRoot":"","sources":["../../../../../src/network/overrides/__tests__/applyToXhr.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA2qBH,iBAAe,IAAI,kBAuBlB;AAaD,OAAO,EAAE,IAAI,IAAI,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unit tests for the override matcher + resolver — the pure half of the
|
|
3
|
-
* feature, and the half worth testing without a device.
|
|
4
|
-
*
|
|
5
|
-
* The glob cases mirror Chrome DevTools' own `escapeRegex` behaviour
|
|
6
|
-
* (`NetworkPersistenceManager.ts:1051`), because these patterns are the same
|
|
7
|
-
* syntax a developer already uses in Chrome's "Override headers" `applyTo`
|
|
8
|
-
* field and must not quietly mean something different here.
|
|
9
|
-
*
|
|
10
|
-
* Same self-contained harness as the perf-monitor tests (no Jest wired up yet);
|
|
11
|
-
* renames to Jest globals later. There is no `tsx` in this repo, so run it with
|
|
12
|
-
* the esbuild that is already here, from the repo root:
|
|
13
|
-
*
|
|
14
|
-
* node_modules/.bin/esbuild <this file> --bundle --platform=node \
|
|
15
|
-
* --format=cjs --outfile=/tmp/t.cjs && node /tmp/t.cjs
|
|
16
|
-
*
|
|
17
|
-
* `__tests__` is excluded from the publish build via `tsconfig.build.json`,
|
|
18
|
-
* so this file ships nowhere — it's developer infrastructure.
|
|
19
|
-
*/
|
|
20
|
-
declare function main(): Promise<void>;
|
|
21
|
-
export { main as runResolveOverrideTests };
|
|
22
|
-
//# sourceMappingURL=resolveOverride.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveOverride.test.d.ts","sourceRoot":"","sources":["../../../../../src/network/overrides/__tests__/resolveOverride.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AA0XH,iBAAe,IAAI,kBAuBlB;AAeD,OAAO,EAAE,IAAI,IAAI,uBAAuB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"networkSyncAdapter.test.d.ts","sourceRoot":"","sources":["../../../../../src/network/sync/__tests__/networkSyncAdapter.test.ts"],"names":[],"mappings":""}
|