@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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.5 (2025-12-08)
2
+
3
+ Fix: Resolved an issue where severity mapping bug by treating the value as Double instead of Int.
4
+
1
5
  ## 0.2.4 (2025-12-07)
2
6
 
3
7
  ### 🩹 Fixes
@@ -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 -> writableMap.putDouble(key, value.toDouble())
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
@@ -219,7 +219,7 @@ function stopJsRefreshRateSampler() {
219
219
  appStateSub = null;
220
220
  }
221
221
 
222
- var version = "0.2.4";
222
+ var version = "0.2.5";
223
223
  var pkg = {
224
224
  version: version};
225
225
 
package/index.esm.js CHANGED
@@ -217,7 +217,7 @@ function stopJsRefreshRateSampler() {
217
217
  appStateSub = null;
218
218
  }
219
219
 
220
- var version = "0.2.4";
220
+ var version = "0.2.5";
221
221
  var pkg = {
222
222
  version: version};
223
223
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/react-native-plugin",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Official Coralogix React Native plugin",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",