expo-app-metrics 0.1.2 → 0.1.4

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.
Files changed (2) hide show
  1. package/ios/Metric.swift +1 -1
  2. package/package.json +1 -1
package/ios/Metric.swift CHANGED
@@ -32,7 +32,7 @@ public struct Metric: Codable, Sendable {
32
32
  self.value = value
33
33
  self.timestamp = timestamp
34
34
  self.routeName = routeName
35
- self.params = AnyCodable(params)
35
+ self.params = params != nil ? AnyCodable(params) : nil
36
36
  }
37
37
 
38
38
  func getMetricKey() -> String {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-app-metrics",
3
3
  "title": "Expo App Metrics",
4
- "version": "0.1.2",
4
+ "version": "0.1.4",
5
5
  "description": "Expo module that collects app startup, frame rate, memory, and session metrics",
6
6
  "main": "src/index.ts",
7
7
  "types": "build/index.d.ts",