@angular/router 12.2.10 → 12.2.14

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.10
2
+ * @license Angular v12.2.14
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.10
2
+ * @license Angular v12.2.14
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.10
2
+ * @license Angular v12.2.14
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4822,6 +4822,7 @@
4822
4822
  completed = true;
4823
4823
  }
4824
4824
  }), operators.finalize(function () {
4825
+ var _a;
4825
4826
  /* When the navigation stream finishes either through error or success, we
4826
4827
  * set the `completed` or `errored` flag. However, there are some situations
4827
4828
  * where we could get here without either of those being set. For instance, a
@@ -4854,10 +4855,11 @@
4854
4855
  // id.
4855
4856
  }
4856
4857
  }
4857
- // currentNavigation should always be reset to null here. If navigation was
4858
- // successful, lastSuccessfulTransition will have already been set. Therefore
4859
- // we can safely set currentNavigation to null here.
4860
- _this.currentNavigation = null;
4858
+ // Only clear current navigation if it is still set to the one that
4859
+ // finalized.
4860
+ if (((_a = _this.currentNavigation) === null || _a === void 0 ? void 0 : _a.id) === t.id) {
4861
+ _this.currentNavigation = null;
4862
+ }
4861
4863
  }), operators.catchError(function (e) {
4862
4864
  // TODO(atscott): The NavigationTransition `t` used here does not accurately
4863
4865
  // reflect the current state of the whole transition because some operations
@@ -6767,7 +6769,7 @@
6767
6769
  /**
6768
6770
  * @publicApi
6769
6771
  */
6770
- var VERSION = new core.Version('12.2.10');
6772
+ var VERSION = new core.Version('12.2.14');
6771
6773
 
6772
6774
  /**
6773
6775
  * @license