@coralogix/react-native-plugin 0.2.4 → 0.2.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/CHANGELOG.md +4 -0
- package/android/src/main/java/com/cxsdk/CxSdkModule.kt +8 -2
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -372,7 +372,6 @@ class CxSdkModule(reactContext: ReactApplicationContext) :
|
|
|
372
372
|
is Int -> array.pushInt(value)
|
|
373
373
|
is Double -> array.pushDouble(value)
|
|
374
374
|
is Float -> array.pushDouble(value.toDouble())
|
|
375
|
-
is Long -> array.pushDouble(value.toDouble())
|
|
376
375
|
is String -> array.pushString(value)
|
|
377
376
|
is Map<*, *> -> {
|
|
378
377
|
@Suppress("UNCHECKED_CAST")
|
|
@@ -396,7 +395,14 @@ class CxSdkModule(reactContext: ReactApplicationContext) :
|
|
|
396
395
|
is Int -> writableMap.putInt(key, value)
|
|
397
396
|
is Double -> writableMap.putDouble(key, value)
|
|
398
397
|
is Float -> writableMap.putDouble(key, value.toDouble())
|
|
399
|
-
is Long ->
|
|
398
|
+
is Long -> {
|
|
399
|
+
if (key == "severity") {
|
|
400
|
+
writableMap.putInt(key, value.toInt())
|
|
401
|
+
} else {
|
|
402
|
+
writableMap.putString(key, value.toString())
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
400
406
|
is String -> writableMap.putString(key, value)
|
|
401
407
|
is Map<*, *> -> {
|
|
402
408
|
@Suppress("UNCHECKED_CAST")
|
package/index.cjs.js
CHANGED
package/index.esm.js
CHANGED