@ammarahmed/react-native-upload 6.22.0 → 6.23.0

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.
@@ -40,8 +40,8 @@ class GlobalRequestObserverDelegate(reactContext: ReactApplicationContext) : Req
40
40
  val params = Arguments.createMap()
41
41
  params.putString("id", uploadInfo.uploadId)
42
42
  params.putInt("progress", uploadInfo.progressPercent) //0-100
43
- params.putLong("totalBytes", uploadInfo.totalBytes)
44
- params.putLong("uploadedBytes", uploadInfo.uploadedBytes)
43
+ params.putDouble("totalBytes", uploadInfo.totalBytes.toDouble())
44
+ params.putDouble("uploadedBytes", uploadInfo.uploadedBytes.toDouble())
45
45
  sendEvent("progress", params, context)
46
46
  }
47
47
 
@@ -51,8 +51,8 @@ class GlobalRequestObserverDelegate(reactContext: ReactApplicationContext) : Req
51
51
  params.putInt("responseCode", serverResponse.code)
52
52
  params.putString("responseBody", serverResponse.bodyString)
53
53
  params.putInt("progress", uploadInfo.progressPercent)
54
- params.putLong("totalBytes", uploadInfo.totalBytes)
55
- params.putLong("uploadedBytes", uploadInfo.uploadedBytes)
54
+ params.putDouble("totalBytes", uploadInfo.totalBytes.toDouble())
55
+ params.putDouble("uploadedBytes", uploadInfo.uploadedBytes.toDouble())
56
56
  sendEvent("completed", params, context)
57
57
  }
58
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ammarahmed/react-native-upload",
3
- "version": "6.22.0",
3
+ "version": "6.23.0",
4
4
  "description": "Cross platform http post file uploader with Android and iOS background support.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",