@angular/router 12.2.8 → 12.2.12

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.8
2
+ * @license Angular v12.2.12
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.8
2
+ * @license Angular v12.2.12
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.8
2
+ * @license Angular v12.2.12
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4334,6 +4334,7 @@
4334
4334
  var context = this.getContext(childName);
4335
4335
  if (context) {
4336
4336
  context.outlet = null;
4337
+ context.attachRef = null;
4337
4338
  }
4338
4339
  };
4339
4340
  /**
@@ -4821,6 +4822,7 @@
4821
4822
  completed = true;
4822
4823
  }
4823
4824
  }), operators.finalize(function () {
4825
+ var _a;
4824
4826
  /* When the navigation stream finishes either through error or success, we
4825
4827
  * set the `completed` or `errored` flag. However, there are some situations
4826
4828
  * where we could get here without either of those being set. For instance, a
@@ -4853,10 +4855,11 @@
4853
4855
  // id.
4854
4856
  }
4855
4857
  }
4856
- // currentNavigation should always be reset to null here. If navigation was
4857
- // successful, lastSuccessfulTransition will have already been set. Therefore
4858
- // we can safely set currentNavigation to null here.
4859
- _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
+ }
4860
4863
  }), operators.catchError(function (e) {
4861
4864
  // TODO(atscott): The NavigationTransition `t` used here does not accurately
4862
4865
  // reflect the current state of the whole transition because some operations
@@ -6766,7 +6769,7 @@
6766
6769
  /**
6767
6770
  * @publicApi
6768
6771
  */
6769
- var VERSION = new core.Version('12.2.8');
6772
+ var VERSION = new core.Version('12.2.12');
6770
6773
 
6771
6774
  /**
6772
6775
  * @license