glitch-javascript-sdk 0.8.0 → 0.8.2

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
@@ -5495,9 +5495,9 @@ var Requests = /** @class */ (function () {
5495
5495
  onUploadProgress: function (progressEvent) {
5496
5496
  var currentChunkProgress = 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
+ var totalProgress = totalUploaded + currentChunkProgress;
5499
5499
  if (onProgress) {
5500
- onProgress(fileSize, totalUploaded);
5500
+ onProgress(fileSize, totalProgress);
5501
5501
  }
5502
5502
  }
5503
5503
  })];