@datadog/mobile-react-native 2.6.5 → 2.6.6

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.
@@ -230,3 +230,15 @@ internal fun ReadableMap.getBooleanOrNull(key: String): Boolean? {
230
230
  null
231
231
  }
232
232
  }
233
+
234
+ /**
235
+ * Returns the double for the given key, or null if the entry is
236
+ * not in the map.
237
+ */
238
+ internal fun ReadableMap.getDoubleOrNull(key: String): Double? {
239
+ return if (hasKey(key)) {
240
+ getDouble(key)
241
+ } else {
242
+ null
243
+ }
244
+ }
@@ -49,7 +49,7 @@ internal fun ReadableMap.asDdSdkConfiguration(): DdSdkConfiguration {
49
49
  bundleLogsWithTraces = getBoolean("bundleLogsWithTraces"),
50
50
  trackNonFatalAnrs = getBooleanOrNull("trackNonFatalAnrs"),
51
51
  batchProcessingLevel = getString("batchProcessingLevel"),
52
- initialResourceThreshold = getDouble("initialResourceThreshold")
52
+ initialResourceThreshold = getDoubleOrNull("initialResourceThreshold")
53
53
  )
54
54
  }
55
55
 
@@ -7,4 +7,4 @@
7
7
  package com.datadog.reactnative
8
8
 
9
9
  // This is automatically updated by the update-version.sh script
10
- internal const val SDK_VERSION = "2.6.5"
10
+ internal const val SDK_VERSION = "2.6.6"
@@ -7,4 +7,4 @@
7
7
  import Foundation
8
8
 
9
9
  // This is automatically updated by the update-version.sh script
10
- let SdkVersion = "2.6.5"
10
+ let SdkVersion = "2.6.6"
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // generated by genversion
8
- const version = exports.version = '2.6.5';
8
+ const version = exports.version = '2.6.6';
9
9
  //# sourceMappingURL=version.js.map
@@ -1,3 +1,3 @@
1
1
  // generated by genversion
2
- export const version = '2.6.5';
2
+ export const version = '2.6.6';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const version = "2.6.5";
1
+ export declare const version = "2.6.6";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/mobile-react-native",
3
- "version": "2.6.5",
3
+ "version": "2.6.6",
4
4
  "description": "A client-side React Native module to interact with Datadog",
5
5
  "keywords": [
6
6
  "datadog",
@@ -100,5 +100,5 @@
100
100
  "dependencies": {
101
101
  "big-integer": "^1.6.52"
102
102
  },
103
- "gitHead": "1f3d75abb1851875b133c8e4d6cf7b54e57b0aa3"
103
+ "gitHead": "c70476391a97ab9f62671426eb9ff1bbddeb5ea8"
104
104
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '2.6.5';
2
+ export const version = '2.6.6';