react-native-macos 0.0.0-9752ce9da → 0.0.0-97a7e106d
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/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +12 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
package/React/Base/RCTVersion.m
CHANGED
|
@@ -110,9 +110,21 @@ static void sendEventToAllConnections(NSString *event)
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
NSString *key = [inspectorURL absoluteString];
|
|
113
|
+
// [TODO(macOS GH#774) - safety check to avoid a crash
|
|
114
|
+
if (key == nil) {
|
|
115
|
+
RCTLogError(@"failed to get inspector URL");
|
|
116
|
+
return nil;
|
|
117
|
+
}
|
|
118
|
+
// ]TODO(macOS GH#774)
|
|
113
119
|
RCTInspectorPackagerConnection *connection = socketConnections[key];
|
|
114
120
|
if (!connection || !connection.isConnected) {
|
|
115
121
|
connection = [[RCTInspectorPackagerConnection alloc] initWithURL:inspectorURL];
|
|
122
|
+
// [TODO(macOS GH#774) - safety check to avoid a crash
|
|
123
|
+
if (connection == nil) {
|
|
124
|
+
RCTLogError(@"failed to initialize RCTInspectorPackagerConnection");
|
|
125
|
+
return nil;
|
|
126
|
+
}
|
|
127
|
+
// ]TODO(macOS GH#774)
|
|
116
128
|
socketConnections[key] = connection;
|
|
117
129
|
[connection connect];
|
|
118
130
|
}
|
package/package.json
CHANGED