expo-dev-launcher 2.2.0 → 2.2.1
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/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 2.2.1 — 2023-04-14
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fixed `Invalid State: Cannot call send: until connection is open` crash when using network inspector on iOS. ([#22130](https://github.com/expo/expo/pull/22130) by [@kudo](https://github.com/kudo))
|
|
18
|
+
|
|
13
19
|
## 2.2.0 — 2023-04-13
|
|
14
20
|
|
|
15
21
|
### 🎉 New features
|
package/android/build.gradle
CHANGED
|
@@ -197,10 +197,26 @@ extension RCTInspectorDevServerHelper {
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
extension RCTInspectorPackagerConnection {
|
|
200
|
+
/**
|
|
201
|
+
Indicates whether the packager connection is established and ready to send messages
|
|
202
|
+
*/
|
|
203
|
+
func isReadyToSend() -> Bool {
|
|
204
|
+
guard isConnected() else {
|
|
205
|
+
return false
|
|
206
|
+
}
|
|
207
|
+
guard let webSocket = value(forKey: "_webSocket") as? RCTSRWebSocket else {
|
|
208
|
+
return false
|
|
209
|
+
}
|
|
210
|
+
return webSocket.readyState == .OPEN
|
|
211
|
+
}
|
|
212
|
+
|
|
200
213
|
/**
|
|
201
214
|
Sends message from native to inspector proxy
|
|
202
215
|
*/
|
|
203
216
|
func sendWrappedEventToAllPages(_ event: String) {
|
|
217
|
+
guard isReadyToSend() else {
|
|
218
|
+
return
|
|
219
|
+
}
|
|
204
220
|
for page in RCTInspector.pages() {
|
|
205
221
|
perform(NSSelectorFromString("sendWrappedEvent:message:"), with: String(page.id), with: event)
|
|
206
222
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-dev-launcher",
|
|
3
3
|
"title": "Expo Development Launcher",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"description": "Pre-release version of the Expo development launcher package for testing.",
|
|
6
6
|
"main": "build/DevLauncher.js",
|
|
7
7
|
"types": "build/DevLauncher.d.ts",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"./setupTests.ts"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "6b73082d014ebe93f091aa75cd06f4d4d90eff19"
|
|
67
67
|
}
|