@dynatrace/react-native-plugin 2.297.1 → 2.297.2

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/README.md CHANGED
@@ -1438,9 +1438,10 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1438
1438
  <br/><br/>
1439
1439
  ## Changelog
1440
1440
 
1441
- 2.297.1
1441
+ 2.297.2
1442
1442
  * Update Android (8.297.1.1004) & iOS Agent (8.297.1.1003)
1443
1443
  * Added information about [Instrumentation Overhead](#instrumentation-overhead) to README
1444
+ * Fixed manual webrequest timing missing stopWebRequestTimingWithSize in iOS
1444
1445
 
1445
1446
  2.295.1
1446
1447
  * Update Android (8.295.1.1006) & iOS Agent (8.295.1.1020)
@@ -264,17 +264,27 @@ RCT_EXPORT_METHOD(startWebRequestTiming:(NSString*) requestTag url:(NSString*) u
264
264
 
265
265
  }
266
266
 
267
- RCT_EXPORT_METHOD(stopWebRequestTiming:(NSString*) requestTag url:(NSString*)url responseCode:(nonnull NSNumber*) responseCode responseMessage:(NSString*)responseMessage)
267
+ - (void)stopWebRequestTimingHelper:(NSString*) requestTag url:(NSString*)url responseCode:(nonnull NSNumber*) responseCode responseMessage:(NSString*)responseMessage bytesSent:(nonnull NSNumber*)bytesSent bytesReceived:(nonnull NSNumber*)bytesReceived
268
268
  {
269
269
  if(requestTag != NULL){
270
270
  DTXWebRequestTiming* timing = [webTimingsDict objectForKey:requestTag];
271
271
  if(timing){
272
- [timing stopWebRequestTiming:[responseCode stringValue]];
272
+ [timing stopWebRequestTiming:[responseCode stringValue] bytesSent:[bytesSent longLongValue] bytesReceived:[bytesReceived longLongValue]];
273
273
  [webTimingsDict removeObjectForKey:requestTag];
274
274
  }
275
275
  }
276
276
  }
277
277
 
278
+ RCT_EXPORT_METHOD(stopWebRequestTiming:(NSString*) requestTag url:(NSString*)url responseCode:(nonnull NSNumber*) responseCode responseMessage:(NSString*)responseMessage)
279
+ {
280
+ [self stopWebRequestTimingHelper:requestTag url:url responseCode:responseCode responseMessage:responseMessage bytesSent:0 bytesReceived:0];
281
+ }
282
+
283
+ RCT_EXPORT_METHOD(stopWebRequestTimingWithSize:(NSString*) requestTag url:(NSString*)url responseCode:(nonnull NSNumber*) responseCode responseMessage:(NSString*)responseMessage requestSize:(nonnull NSNumber*)requestSize responseSize:(nonnull NSNumber*)responseSize)
284
+ {
285
+ [self stopWebRequestTimingHelper:requestTag url:url responseCode:responseCode responseMessage:responseMessage bytesSent:requestSize bytesReceived:responseSize];
286
+ }
287
+
278
288
  RCT_EXPORT_METHOD(identifyUser:(NSString *)user platform: (NSString *) platform)
279
289
  {
280
290
  if ([self shouldWorkOnIosWithPlatform: platform])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.297.1",
3
+ "version": "2.297.2",
4
4
  "description": "This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.",
5
5
  "main": "index.js",
6
6
  "types": "typings/react-native-dynatrace.d.ts",
@@ -72,7 +72,7 @@
72
72
  "license": "SEE LICENSE IN LICENSE.md",
73
73
  "dependencies": {
74
74
  "@babel/runtime": "^7.25.0",
75
- "jscodeshift": "^0.16.1",
75
+ "jscodeshift": "^17.0.0",
76
76
  "plist": "^3.1.0",
77
77
  "proxy-polyfill": "^0.3.2",
78
78
  "semver": "^7.6.3"