@takeoffmedia/react-native-penthera 0.2.40 → 0.2.41

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.
@@ -144,10 +144,14 @@ class OfflineVideoEngine(private val context: ReactApplicationContext) {
144
144
  dataMap["id"] = value
145
145
  }
146
146
  if (columnName == "durationSeconds") {
147
- dataMap["duration"] = value
147
+ dataMap["data"] = (dataMap["data"] as? MutableMap<String, Any> ?: mutableMapOf()).apply {
148
+ put("duration", value)
149
+ }
148
150
  }
149
151
  if (columnName == "expectedSize") {
150
- dataMap["estimatedSize"] = value
152
+ dataMap["data"] = (dataMap["data"] as? MutableMap<String, Any> ?: mutableMapOf()).apply {
153
+ put("estimatedSize", value)
154
+ }
151
155
  }
152
156
  }
153
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeoffmedia/react-native-penthera",
3
- "version": "0.2.40",
3
+ "version": "0.2.41",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -166,4 +166,4 @@
166
166
  "dependencies": {
167
167
  "zustand": "^4.4.0"
168
168
  }
169
- }
169
+ }