@angular/router 12.2.9 → 12.2.13

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.
@@ -14,5 +14,5 @@ import { Version } from '@angular/core';
14
14
  /**
15
15
  * @publicApi
16
16
  */
17
- export const VERSION = new Version('12.2.9');
17
+ export const VERSION = new Version('12.2.13');
18
18
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3JvdXRlci9zcmMvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSDs7OztHQUlHO0FBRUgsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV0Qzs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSByb3V0ZXIgcGFja2FnZS5cbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEBwdWJsaWNBcGlcbiAqL1xuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.9
2
+ * @license Angular v12.2.13
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4224,6 +4224,7 @@ class Router {
4224
4224
  completed = true;
4225
4225
  }
4226
4226
  }), finalize(() => {
4227
+ var _a;
4227
4228
  /* When the navigation stream finishes either through error or success, we
4228
4229
  * set the `completed` or `errored` flag. However, there are some situations
4229
4230
  * where we could get here without either of those being set. For instance, a
@@ -4256,10 +4257,11 @@ class Router {
4256
4257
  // id.
4257
4258
  }
4258
4259
  }
4259
- // currentNavigation should always be reset to null here. If navigation was
4260
- // successful, lastSuccessfulTransition will have already been set. Therefore
4261
- // we can safely set currentNavigation to null here.
4262
- this.currentNavigation = null;
4260
+ // Only clear current navigation if it is still set to the one that
4261
+ // finalized.
4262
+ if (((_a = this.currentNavigation) === null || _a === void 0 ? void 0 : _a.id) === t.id) {
4263
+ this.currentNavigation = null;
4264
+ }
4263
4265
  }), catchError((e) => {
4264
4266
  // TODO(atscott): The NavigationTransition `t` used here does not accurately
4265
4267
  // reflect the current state of the whole transition because some operations
@@ -6094,7 +6096,7 @@ function provideRouterInitializer() {
6094
6096
  /**
6095
6097
  * @publicApi
6096
6098
  */
6097
- const VERSION = new Version('12.2.9');
6099
+ const VERSION = new Version('12.2.13');
6098
6100
 
6099
6101
  /**
6100
6102
  * @license