Skip to content

Commit 4efab59

Browse files
byCedrichuntie
authored andcommitted
feature(dev-middleware): add inspector proxy nativeNetworkInspection target capabilty flag (#43310)
Summary: This adds the `nativeNetworkInspection` target capability flag, to enable/disable the proxy-side network inspection handling. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [GENERAL][ADDED] Add inspector proxy `nativeNetworkInspection` target capability flag Pull Request resolved: #43310 Test Plan: Once this lands, and is published through `react-native/dev-middleware`, we (Expo) can disable the proxy-side network inspection handling. See expo/expo@1a1b601 on PR expo/expo#27425 Reviewed By: christophpurrer, motiz88 Differential Revision: D54486516 Pulled By: huntie fbshipit-source-id: cc151349c816fb3866d3ec07af1a29a5f4ff9b00
1 parent e3da9b8 commit 4efab59

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • packages/dev-middleware/src/inspector-proxy

packages/dev-middleware/src/inspector-proxy/types.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ export type TargetCapabilityFlags = $ReadOnly<{
3030
* In the proxy, this disables source fetching emulation and host rewrites.
3131
*/
3232
nativeSourceCodeFetching?: boolean,
33+
34+
/**
35+
* The target supports native network inspection.
36+
*
37+
* In the proxy, this disables intercepting and storing network requests.
38+
*/
39+
nativeNetworkInspection?: boolean,
3340
}>;
3441

3542
// Page information received from the device. New page is created for

0 commit comments

Comments
 (0)