@dynatrace/cordova-plugin 1.253.3 → 1.253.5

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
@@ -781,7 +781,7 @@ When using Apple Pay with WKWebView, there are specific checks that WebKit (Appl
781
781
 
782
782
  ## Changelog
783
783
 
784
- 1.253.3
784
+ 1.253.5
785
785
  * Updated Android (8.253.1.1003) & iOS Agent (8.253.1.1006)
786
786
  * Fixed wrong declaration for dtrum & MFP API
787
787
  * Fixed broken export of axios library
@@ -15,12 +15,14 @@ var NativeNetworkInterceptorUtils = require(pluginId + '.native-network-intercep
15
15
  var origWLResourceRequest;
16
16
  var isNetworkIntercepted = false;
17
17
  var tagSendRequest = function (request) {
18
- if (request.getHeader('x-dynatrace') === undefined) {
18
+ var headerValue = request.getHeader('x-dynatrace');
19
+ if (headerValue === undefined || headerValue === null) {
19
20
  var actionId = NativeNetworkInterceptorUtils.enterNativeRequestAction(request.getUrl(), 'Mobile First');
20
21
  var headers = NativeNetworkInterceptorUtils.getHeadersForNativeRequest(actionId);
21
- for (var _i = 0, headers_1 = headers; _i < headers_1.length; _i++) {
22
- var headerProp = headers_1[_i];
23
- request.setHeader(headerProp, headers[headerProp]);
22
+ for (var headerProp in headers) {
23
+ if (typeof headers[headerProp] === 'string' || headers[headerProp] instanceof String) {
24
+ request.setHeader(headerProp, headers[headerProp]);
25
+ }
24
26
  }
25
27
  return actionId;
26
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/cordova-plugin",
3
- "version": "1.253.3",
3
+ "version": "1.253.5",
4
4
  "description": "This plugin gives you the ability to use the Dynatrace instrumentation in your hybrid application (Cordova, Ionic, ..). It uses the Mobile Agent, the JavaScript Agent. The Mobile Agent will give you all device specific values containing lifecycle information and the Javascript Agent will allow you to manually instrument your JavaScript/TypeScript code out of the box (Typescript definitions included). The JavaScript Agent will cover the network calls and will automatically detect them.",
5
5
  "cordova": {
6
6
  "id": "dynatrace-cordova-plugin",
@@ -35,7 +35,7 @@
35
35
  "license": "Copyright (c) 2012-2020 Dynatrace LLC. All rights reserved.",
36
36
  "dependencies": {
37
37
  "axios": "^1.1.3",
38
- "cordova-common": "^4.0.2",
38
+ "cordova-common": "^4.1.0",
39
39
  "jsdom": "^20.0.2",
40
40
  "plist": "^3.0.6"
41
41
  },
package/plugin.xml CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
4
4
  id="dynatrace-cordova-plugin"
5
- version="1.253.3">
5
+ version="1.253.5">
6
6
  <name>Dynatrace</name>
7
7
  <description>Dynatrace Cordova Plugin</description>
8
8