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 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
- var currentChunkProgress = progressEvent.loaded; // Bytes uploaded of the current chunk
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 += currentChunkProgress;
18682
+ totalUploaded += chunkSize || 1024 * 1024;
18683
18683
  if (onProgress) {
18684
18684
  onProgress(fileSize, totalUploaded);
18685
18685
  }