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/cjs/index.js CHANGED
@@ -18679,9 +18679,9 @@ var Requests = /** @class */ (function () {
18679
18679
  onUploadProgress: function (progressEvent) {
18680
18680
  var currentChunkProgress = 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 += currentChunkProgress;
18682
+ var totalProgress = totalUploaded + currentChunkProgress;
18683
18683
  if (onProgress) {
18684
- onProgress(fileSize, totalUploaded);
18684
+ onProgress(fileSize, totalProgress);
18685
18685
  }
18686
18686
  }
18687
18687
  })];