@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  #Unreleased
2
2
 
3
+ ## 0.9.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5f55ed828`](https://github.com/firebase/firebase-js-sdk/commit/5f55ed828e7e7d3084590ff04d8c3e75fc718a51) [#6667](https://github.com/firebase/firebase-js-sdk/pull/6667) - Cleared retry timeouts when uploads are paused/canceled
8
+
9
+ - Updated dependencies [[`807f06aa2`](https://github.com/firebase/firebase-js-sdk/commit/807f06aa26438a91aaea08fd38efb6c706bb8a5d)]:
10
+ - @firebase/util@1.7.2
11
+ - @firebase/component@0.5.20
12
+
3
13
  ## 0.9.11
4
14
 
5
15
  ### Patch Changes
@@ -2432,7 +2432,8 @@ var UploadTask = /** @class */ (function () {
2432
2432
  this._fetchMetadata();
2433
2433
  }
2434
2434
  else {
2435
- setTimeout(function () {
2435
+ this.pendingTimeout = setTimeout(function () {
2436
+ _this.pendingTimeout = undefined;
2436
2437
  _this._continueUpload();
2437
2438
  }, this.sleepTime);
2438
2439
  }
@@ -2583,6 +2584,7 @@ var UploadTask = /** @class */ (function () {
2583
2584
  }
2584
2585
  switch (state) {
2585
2586
  case "canceling" /* CANCELING */:
2587
+ case "pausing" /* PAUSING */:
2586
2588
  // TODO(andysoto):
2587
2589
  // assert(this.state_ === InternalTaskState.RUNNING ||
2588
2590
  // this.state_ === InternalTaskState.PAUSING);
@@ -2590,13 +2592,10 @@ var UploadTask = /** @class */ (function () {
2590
2592
  if (this._request !== undefined) {
2591
2593
  this._request.cancel();
2592
2594
  }
2593
- break;
2594
- case "pausing" /* PAUSING */:
2595
- // TODO(andysoto):
2596
- // assert(this.state_ === InternalTaskState.RUNNING);
2597
- this._state = state;
2598
- if (this._request !== undefined) {
2599
- this._request.cancel();
2595
+ else if (this.pendingTimeout) {
2596
+ clearTimeout(this.pendingTimeout);
2597
+ this.pendingTimeout = undefined;
2598
+ this.completeTransitions_();
2600
2599
  }
2601
2600
  break;
2602
2601
  case "running" /* RUNNING */:
@@ -3490,7 +3489,7 @@ var FirebaseStorageImpl = /** @class */ (function () {
3490
3489
  }());
3491
3490
 
3492
3491
  var name = "@firebase/storage";
3493
- var version = "0.9.11";
3492
+ var version = "0.9.12-canary.7b6e99d51";
3494
3493
 
3495
3494
  /**
3496
3495
  * @license