glitch-javascript-sdk 0.8.0 → 0.8.1
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/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/util/Requests.ts +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -18677,9 +18677,9 @@ var Requests = /** @class */ (function () {
|
|
|
18677
18677
|
return [4 /*yield*/, axios$1.post(fullUploadUrl, formData, {
|
|
18678
18678
|
headers: headers,
|
|
18679
18679
|
onUploadProgress: function (progressEvent) {
|
|
18680
|
-
|
|
18680
|
+
progressEvent.loaded; // Bytes uploaded of the current chunk
|
|
18681
18681
|
// Calculate the total uploaded size including previous chunks and the current chunk's progress
|
|
18682
|
-
totalUploaded +=
|
|
18682
|
+
totalUploaded += chunkSize || 1024 * 1024;
|
|
18683
18683
|
if (onProgress) {
|
|
18684
18684
|
onProgress(fileSize, totalUploaded);
|
|
18685
18685
|
}
|