@react-native/dev-middleware 0.73.3 → 0.74.0-nightly-20231004-2000acc6c
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/dist/inspector-proxy/DeviceEventReporter.d.ts +2 -1
- package/dist/inspector-proxy/DeviceEventReporter.js.flow +1 -1
- package/dist/inspector-proxy/InspectorProxy.js +6 -0
- package/dist/utils/DefaultBrowserLauncher.d.ts +2 -1
- package/dist/utils/DefaultBrowserLauncher.js.flow +1 -1
- package/package.json +16 -6
|
@@ -50,4 +50,5 @@ declare class DeviceEventReporter {
|
|
|
50
50
|
logDisconnection(disconnectedEntity: "device" | "debugger"): void;
|
|
51
51
|
_logExpiredCommand(pendingCommand: PendingCommand): void;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
declare const $$EXPORT_DEFAULT_DECLARATION$$: typeof DeviceEventReporter;
|
|
54
|
+
export default $$EXPORT_DEFAULT_DECLARATION$$;
|
|
@@ -133,6 +133,9 @@ class InspectorProxy {
|
|
|
133
133
|
const wss = new _ws.default.Server({
|
|
134
134
|
noServer: true,
|
|
135
135
|
perMessageDeflate: true,
|
|
136
|
+
// Don't crash on exceptionally large messages - assume the device is
|
|
137
|
+
// well-behaved and the debugger is prepared to handle large messages.
|
|
138
|
+
maxPayload: 0,
|
|
136
139
|
});
|
|
137
140
|
// $FlowFixMe[value-as-type]
|
|
138
141
|
wss.on("connection", async (socket, req) => {
|
|
@@ -179,6 +182,9 @@ class InspectorProxy {
|
|
|
179
182
|
const wss = new _ws.default.Server({
|
|
180
183
|
noServer: true,
|
|
181
184
|
perMessageDeflate: false,
|
|
185
|
+
// Don't crash on exceptionally large messages - assume the debugger is
|
|
186
|
+
// well-behaved and the device is prepared to handle large messages.
|
|
187
|
+
maxPayload: 0,
|
|
182
188
|
});
|
|
183
189
|
// $FlowFixMe[value-as-type]
|
|
184
190
|
wss.on("connection", async (socket, req) => {
|
|
@@ -15,4 +15,5 @@ import type { BrowserLauncher } from "../types/BrowserLauncher";
|
|
|
15
15
|
* machine.
|
|
16
16
|
*/
|
|
17
17
|
declare const DefaultBrowserLauncher: BrowserLauncher;
|
|
18
|
-
|
|
18
|
+
declare const $$EXPORT_DEFAULT_DECLARATION$$: typeof DefaultBrowserLauncher;
|
|
19
|
+
export default $$EXPORT_DEFAULT_DECLARATION$$;
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/dev-middleware",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.74.0-nightly-20231004-2000acc6c",
|
|
4
4
|
"description": "Dev server middleware for React Native",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react-native",
|
|
7
|
+
"tools"
|
|
8
|
+
],
|
|
6
9
|
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/dev-middleware#readme",
|
|
7
10
|
"bugs": "https://github.com/facebook/react-native/issues",
|
|
8
11
|
"repository": {
|
|
@@ -11,11 +14,16 @@
|
|
|
11
14
|
"directory": "packages/dev-middleware"
|
|
12
15
|
},
|
|
13
16
|
"license": "MIT",
|
|
14
|
-
"exports": {
|
|
15
|
-
|
|
17
|
+
"exports": {
|
|
18
|
+
".": "./dist/index.js",
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
16
24
|
"dependencies": {
|
|
17
25
|
"@isaacs/ttlcache": "^1.4.1",
|
|
18
|
-
"@react-native/debugger-frontend": "
|
|
26
|
+
"@react-native/debugger-frontend": "0.74.0-nightly-20231004-2000acc6c",
|
|
19
27
|
"chrome-launcher": "^0.15.2",
|
|
20
28
|
"chromium-edge-launcher": "^1.0.0",
|
|
21
29
|
"connect": "^3.6.5",
|
|
@@ -24,5 +32,7 @@
|
|
|
24
32
|
"serve-static": "^1.13.1",
|
|
25
33
|
"temp-dir": "^2.0.0"
|
|
26
34
|
},
|
|
27
|
-
"engines": {
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=18"
|
|
37
|
+
}
|
|
28
38
|
}
|