react-native-nitro-sse 2.2.2 → 2.2.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.
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
encodedDataLength:(NSInteger)encodedDataLength {
|
|
12
12
|
#ifdef HAS_NETWORK_REPORTER
|
|
13
13
|
NSString *requestId = [[NSUUID UUID] UUIDString];
|
|
14
|
-
[RCTInspectorNetworkReporter reportRequestStart:requestId request:request encodedDataLength:(int)encodedDataLength];
|
|
15
|
-
[RCTInspectorNetworkReporter reportConnectionTiming:requestId request:request];
|
|
14
|
+
[RCTInspectorNetworkReporter reportRequestStart:(id)requestId request:request encodedDataLength:(int)encodedDataLength];
|
|
15
|
+
[RCTInspectorNetworkReporter reportConnectionTiming:(id)requestId request:request];
|
|
16
16
|
return requestId;
|
|
17
17
|
#else
|
|
18
18
|
return nil;
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
HTTPVersion:@"HTTP/1.1"
|
|
40
40
|
headerFields:mergedHeaders];
|
|
41
41
|
// Pass the merged headers to the reporter as well
|
|
42
|
-
[RCTInspectorNetworkReporter reportResponseStart:requestId response:finalResponse statusCode:(int)statusCode headers:mergedHeaders];
|
|
42
|
+
[RCTInspectorNetworkReporter reportResponseStart:(id)requestId response:finalResponse statusCode:(int)statusCode headers:mergedHeaders];
|
|
43
43
|
} else {
|
|
44
|
-
[RCTInspectorNetworkReporter reportResponseStart:requestId response:finalResponse statusCode:(int)statusCode headers:headers ?: @{}];
|
|
44
|
+
[RCTInspectorNetworkReporter reportResponseStart:(id)requestId response:finalResponse statusCode:(int)statusCode headers:headers ?: @{}];
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
#endif
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
encodedDataLength:(NSInteger)encodedDataLength {
|
|
52
52
|
#ifdef HAS_NETWORK_REPORTER
|
|
53
53
|
if (requestId) {
|
|
54
|
-
[RCTInspectorNetworkReporter reportResponseEnd:requestId encodedDataLength:(int)encodedDataLength];
|
|
54
|
+
[RCTInspectorNetworkReporter reportResponseEnd:(id)requestId encodedDataLength:(int)encodedDataLength];
|
|
55
55
|
}
|
|
56
56
|
#endif
|
|
57
57
|
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
cancelled:(BOOL)cancelled {
|
|
61
61
|
#ifdef HAS_NETWORK_REPORTER
|
|
62
62
|
if (requestId) {
|
|
63
|
-
[RCTInspectorNetworkReporter reportRequestFailed:requestId cancelled:cancelled];
|
|
63
|
+
[RCTInspectorNetworkReporter reportRequestFailed:(id)requestId cancelled:cancelled];
|
|
64
64
|
}
|
|
65
65
|
#endif
|
|
66
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nitro-sse",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "High-performance Server-Sent Events (SSE) for React Native, powered by Nitro Modules.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|