@angular/router 7.2.11 → 7.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 v7.2.11
2
+ * @license Angular v7.2.12
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.11
2
+ * @license Angular v7.2.12
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/fesm5/router.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.11
2
+ * @license Angular v7.2.12
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3816,23 +3816,23 @@ var Router = /** @class */ (function () {
3816
3816
  return transitions.pipe(filter(function (t) { return t.id !== 0; }),
3817
3817
  // Extract URL
3818
3818
  map(function (t) { return (__assign({}, t, { extractedUrl: _this.urlHandlingStrategy.extract(t.rawUrl) })); }),
3819
- // Store the Navigation object
3820
- tap(function (t) {
3821
- _this.currentNavigation = {
3822
- id: t.id,
3823
- initialUrl: t.currentRawUrl,
3824
- extractedUrl: t.extractedUrl,
3825
- trigger: t.source,
3826
- extras: t.extras,
3827
- previousNavigation: _this.lastSuccessfulNavigation ? __assign({}, _this.lastSuccessfulNavigation, { previousNavigation: null }) :
3828
- null
3829
- };
3830
- }),
3831
3819
  // Using switchMap so we cancel executing navigations when a new one comes in
3832
3820
  switchMap(function (t) {
3833
3821
  var completed = false;
3834
3822
  var errored = false;
3835
- return of(t).pipe(switchMap(function (t) {
3823
+ return of(t).pipe(
3824
+ // Store the Navigation object
3825
+ tap(function (t) {
3826
+ _this.currentNavigation = {
3827
+ id: t.id,
3828
+ initialUrl: t.currentRawUrl,
3829
+ extractedUrl: t.extractedUrl,
3830
+ trigger: t.source,
3831
+ extras: t.extras,
3832
+ previousNavigation: _this.lastSuccessfulNavigation ? __assign({}, _this.lastSuccessfulNavigation, { previousNavigation: null }) :
3833
+ null
3834
+ };
3835
+ }), switchMap(function (t) {
3836
3836
  var urlTransition = !_this.navigated || t.extractedUrl.toString() !== _this.browserUrlTree.toString();
3837
3837
  var processCurrentUrl = (_this.onSameUrlNavigation === 'reload' ? true : urlTransition) &&
3838
3838
  _this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);
@@ -5726,7 +5726,7 @@ function provideRouterInitializer() {
5726
5726
  /**
5727
5727
  * @publicApi
5728
5728
  */
5729
- var VERSION = new Version('7.2.11');
5729
+ var VERSION = new Version('7.2.12');
5730
5730
 
5731
5731
  /**
5732
5732
  * @license