mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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: https://github.com/facebook/react-native/pull/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 https://github.com/expo/expo/pull/27425/commits/1a1b601a29fbc5766628238db7259121689f6cd6 on PR expo/expo#27425 Reviewed By: christophpurrer, motiz88 Differential Revision: D54486516 Pulled By: huntie fbshipit-source-id: cc151349c816fb3866d3ec07af1a29a5f4ff9b00
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f043c832d1
commit
f3ce7cd76e
@@ -30,6 +30,13 @@ export type TargetCapabilityFlags = $ReadOnly<{
|
||||
* In the proxy, this disables source fetching emulation and host rewrites.
|
||||
*/
|
||||
nativeSourceCodeFetching?: boolean,
|
||||
|
||||
/**
|
||||
* The target supports native network inspection.
|
||||
*
|
||||
* In the proxy, this disables intercepting and storing network requests.
|
||||
*/
|
||||
nativeNetworkInspection?: boolean,
|
||||
}>;
|
||||
|
||||
// Page information received from the device. New page is created for
|
||||
|
||||
Reference in New Issue
Block a user