@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.
@@ -2428,7 +2428,8 @@ var UploadTask = /** @class */ (function () {
2428
2428
  this._fetchMetadata();
2429
2429
  }
2430
2430
  else {
2431
- setTimeout(function () {
2431
+ this.pendingTimeout = setTimeout(function () {
2432
+ _this.pendingTimeout = undefined;
2432
2433
  _this._continueUpload();
2433
2434
  }, this.sleepTime);
2434
2435
  }
@@ -2579,6 +2580,7 @@ var UploadTask = /** @class */ (function () {
2579
2580
  }
2580
2581
  switch (state) {
2581
2582
  case "canceling" /* CANCELING */:
2583
+ case "pausing" /* PAUSING */:
2582
2584
  // TODO(andysoto):
2583
2585
  // assert(this.state_ === InternalTaskState.RUNNING ||
2584
2586
  // this.state_ === InternalTaskState.PAUSING);
@@ -2586,13 +2588,10 @@ var UploadTask = /** @class */ (function () {
2586
2588
  if (this._request !== undefined) {
2587
2589
  this._request.cancel();
2588
2590
  }
2589
- break;
2590
- case "pausing" /* PAUSING */:
2591
- // TODO(andysoto):
2592
- // assert(this.state_ === InternalTaskState.RUNNING);
2593
- this._state = state;
2594
- if (this._request !== undefined) {
2595
- this._request.cancel();
2591
+ else if (this.pendingTimeout) {
2592
+ clearTimeout(this.pendingTimeout);
2593
+ this.pendingTimeout = undefined;
2594
+ this.completeTransitions_();
2596
2595
  }
2597
2596
  break;
2598
2597
  case "running" /* RUNNING */:
@@ -3486,7 +3485,7 @@ var FirebaseStorageImpl = /** @class */ (function () {
3486
3485
  }());
3487
3486
 
3488
3487
  var name = "@firebase/storage";
3489
- var version = "0.9.11";
3488
+ var version = "0.9.12-canary.7b6e99d51";
3490
3489
 
3491
3490
  /**
3492
3491
  * @license