@firebase/storage 0.9.11 → 0.9.12-canary.7b6e99d51

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.
@@ -2370,7 +2370,8 @@ class UploadTask {
2370
2370
  this._fetchMetadata();
2371
2371
  }
2372
2372
  else {
2373
- setTimeout(() => {
2373
+ this.pendingTimeout = setTimeout(() => {
2374
+ this.pendingTimeout = undefined;
2374
2375
  this._continueUpload();
2375
2376
  }, this.sleepTime);
2376
2377
  }
@@ -2514,6 +2515,7 @@ class UploadTask {
2514
2515
  }
2515
2516
  switch (state) {
2516
2517
  case "canceling" /* CANCELING */:
2518
+ case "pausing" /* PAUSING */:
2517
2519
  // TODO(andysoto):
2518
2520
  // assert(this.state_ === InternalTaskState.RUNNING ||
2519
2521
  // this.state_ === InternalTaskState.PAUSING);
@@ -2521,13 +2523,10 @@ class UploadTask {
2521
2523
  if (this._request !== undefined) {
2522
2524
  this._request.cancel();
2523
2525
  }
2524
- break;
2525
- case "pausing" /* PAUSING */:
2526
- // TODO(andysoto):
2527
- // assert(this.state_ === InternalTaskState.RUNNING);
2528
- this._state = state;
2529
- if (this._request !== undefined) {
2530
- this._request.cancel();
2526
+ else if (this.pendingTimeout) {
2527
+ clearTimeout(this.pendingTimeout);
2528
+ this.pendingTimeout = undefined;
2529
+ this.completeTransitions_();
2531
2530
  }
2532
2531
  break;
2533
2532
  case "running" /* RUNNING */:
@@ -3343,7 +3342,7 @@ class FirebaseStorageImpl {
3343
3342
  }
3344
3343
 
3345
3344
  const name = "@firebase/storage";
3346
- const version = "0.9.11";
3345
+ const version = "0.9.12-canary.7b6e99d51";
3347
3346
 
3348
3347
  /**
3349
3348
  * @license