@react-native/dev-middleware 0.74.1 → 0.74.3

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.
@@ -129,6 +129,7 @@ class InspectorProxy {
129
129
  response.writeHead(200, {
130
130
  "Content-Type": "application/json; charset=UTF-8",
131
131
  "Cache-Control": "no-cache",
132
+ "Content-Length": Buffer.byteLength(data).toString(),
132
133
  Connection: "close",
133
134
  });
134
135
  response.end(data);
@@ -29,6 +29,12 @@ export type TargetCapabilityFlags = Readonly<{
29
29
  * In the proxy, this disables source fetching emulation and host rewrites.
30
30
  */
31
31
  nativeSourceCodeFetching?: boolean;
32
+ /**
33
+ * The target supports native network inspection.
34
+ *
35
+ * In the proxy, this disables intercepting and storing network requests.
36
+ */
37
+ nativeNetworkInspection?: boolean;
32
38
  }>;
33
39
  export type PageFromDevice = Readonly<{
34
40
  id: string;
@@ -30,6 +30,13 @@ export type TargetCapabilityFlags = $ReadOnly<{
30
30
  * In the proxy, this disables source fetching emulation and host rewrites.
31
31
  */
32
32
  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,
33
40
  }>;
34
41
 
35
42
  // Page information received from the device. New page is created for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/dev-middleware",
3
- "version": "0.74.1",
3
+ "version": "0.74.3",
4
4
  "description": "Dev server middleware for React Native",
5
5
  "keywords": ["react-native", "tools"],
6
6
  "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/dev-middleware#readme",