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/esm/index.js CHANGED
@@ -5493,9 +5493,9 @@ var Requests = /** @class */ (function () {
5493
5493
  return [4 /*yield*/, axios$1.post(fullUploadUrl, formData, {
5494
5494
  headers: headers,
5495
5495
  onUploadProgress: function (progressEvent) {
5496
- var currentChunkProgress = progressEvent.loaded; // Bytes uploaded of the current chunk
5496
+ progressEvent.loaded; // Bytes uploaded of the current chunk
5497
5497
  // Calculate the total uploaded size including previous chunks and the current chunk's progress
5498
- totalUploaded += currentChunkProgress;
5498
+ totalUploaded += chunkSize || 1024 * 1024;
5499
5499
  if (onProgress) {
5500
5500
  onProgress(fileSize, totalUploaded);
5501
5501
  }