@angular/router 12.2.0 → 12.2.1

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.0
2
+ * @license Angular v12.2.1
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.0
2
+ * @license Angular v12.2.1
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.0
2
+ * @license Angular v12.2.1
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -5889,7 +5889,7 @@
5889
5889
  });
5890
5890
  };
5891
5891
  RouterLinkActive.prototype.isLinkActive = function (router) {
5892
- var options = 'paths' in this.routerLinkActiveOptions ?
5892
+ var options = isActiveMatchOptions(this.routerLinkActiveOptions) ?
5893
5893
  this.routerLinkActiveOptions :
5894
5894
  // While the types should disallow `undefined` here, it's possible without strict inputs
5895
5895
  (this.routerLinkActiveOptions.exact || false);
@@ -5923,6 +5923,12 @@
5923
5923
  routerLinkActiveOptions: [{ type: core.Input }],
5924
5924
  routerLinkActive: [{ type: core.Input }]
5925
5925
  };
5926
+ /**
5927
+ * Use instead of `'paths' in options` to be compatible with property renaming
5928
+ */
5929
+ function isActiveMatchOptions(options) {
5930
+ return !!options.paths;
5931
+ }
5926
5932
 
5927
5933
  /**
5928
5934
  * @license
@@ -6727,7 +6733,7 @@
6727
6733
  /**
6728
6734
  * @publicApi
6729
6735
  */
6730
- var VERSION = new core.Version('12.2.0');
6736
+ var VERSION = new core.Version('12.2.1');
6731
6737
 
6732
6738
  /**
6733
6739
  * @license