@angular/router 7.2.8 → 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.8
2
+ * @license Angular v7.2.12
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -133,7 +133,7 @@ var se=function Qt(){},ce=function(){function t(t,e,r,n,o,i){this.rootComponentT
133
133
  * Use of this source code is governed by an MIT-style license that can be
134
134
  * found in the LICENSE file at https://angular.io/license
135
135
  */
136
- function Pe(t){throw t}function Oe(t,e,r){return e.parse("/")}function _e(t,e){return n.of(null)}var xe=function(){function t(t,e,o,i,a,u,s,c){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=o,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new n.Subject,this.errorHandler=Pe,this.malformedUriErrorHandler=Oe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_e,afterPreactivation:_e},this.urlHandlingStrategy=new Ue,this.routeReuseStrategy=new we,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(r.NgModuleRef),this.console=a.get(r.ɵConsole);var p=a.get(r.NgZone);this.isNgZoneEnabled=p instanceof r.NgZone,this.resetConfig(c),this.currentUrlTree=function h(){return new $(new K([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ce(u,s,function(t){return l.triggerEvent(new P(t))},function(t){return l.triggerEvent(new O(t))}),this.routerState=Ct(this.currentUrlTree,this.rootComponentType),this.transitions=new n.BehaviorSubject({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,r=this.events;return t.pipe(o.filter(function(t){return 0!==t.id}),o.map(function(t){return s({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),o.tap(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?s({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),o.switchMap(function(t){var i,a,u,c=!1,l=!1;return n.of(t).pipe(o.switchMap(function(t){var i=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||i)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return n.of(t).pipe(o.switchMap(function(t){var o=e.transitions.getValue();return r.next(new v(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),o!==e.transitions.getValue()?n.EMPTY:[t]}),o.switchMap(function(t){return Promise.resolve(t)}),function a(t,e,r,n){return function(i){return i.pipe(o.switchMap(function(i){return function a(t,e,r,n,o){return new Kt(t,e,r,n,o).apply()}(t,e,r,i.extractedUrl,n).pipe(o.map(function(t){return s({},i,{urlAfterRedirects:t})}))}))}}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),o.tap(function(t){e.currentNavigation=s({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function u(t,e,r,n,i){return function(a){return a.pipe(o.mergeMap(function(a){return function u(t,e,r,n,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new ce(t,e,r,n,o,i).recognize()}(t,e,a.urlAfterRedirects,r(a.urlAfterRedirects),n,i).pipe(o.map(function(t){return s({},a,{targetSnapshot:t})}))}))}}
136
+ function Pe(t){throw t}function Oe(t,e,r){return e.parse("/")}function _e(t,e){return n.of(null)}var xe=function(){function t(t,e,o,i,a,u,s,c){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=o,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new n.Subject,this.errorHandler=Pe,this.malformedUriErrorHandler=Oe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_e,afterPreactivation:_e},this.urlHandlingStrategy=new Ue,this.routeReuseStrategy=new we,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(r.NgModuleRef),this.console=a.get(r.ɵConsole);var p=a.get(r.NgZone);this.isNgZoneEnabled=p instanceof r.NgZone,this.resetConfig(c),this.currentUrlTree=function h(){return new $(new K([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ce(u,s,function(t){return l.triggerEvent(new P(t))},function(t){return l.triggerEvent(new O(t))}),this.routerState=Ct(this.currentUrlTree,this.rootComponentType),this.transitions=new n.BehaviorSubject({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,r=this.events;return t.pipe(o.filter(function(t){return 0!==t.id}),o.map(function(t){return s({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),o.switchMap(function(t){var i,a,u,c=!1,l=!1;return n.of(t).pipe(o.tap(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?s({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),o.switchMap(function(t){var i=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||i)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return n.of(t).pipe(o.switchMap(function(t){var o=e.transitions.getValue();return r.next(new v(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),o!==e.transitions.getValue()?n.EMPTY:[t]}),o.switchMap(function(t){return Promise.resolve(t)}),function a(t,e,r,n){return function(i){return i.pipe(o.switchMap(function(i){return function a(t,e,r,n,o){return new Kt(t,e,r,n,o).apply()}(t,e,r,i.extractedUrl,n).pipe(o.map(function(t){return s({},i,{urlAfterRedirects:t})}))}))}}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),o.tap(function(t){e.currentNavigation=s({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function u(t,e,r,n,i){return function(a){return a.pipe(o.mergeMap(function(a){return function u(t,e,r,n,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new ce(t,e,r,n,o,i).recognize()}(t,e,a.urlAfterRedirects,r(a.urlAfterRedirects),n,i).pipe(o.map(function(t){return s({},a,{targetSnapshot:t})}))}))}}
137
137
  /**
138
138
  * @license
139
139
  * Copyright Google Inc. All Rights Reserved.
@@ -175,7 +175,7 @@ function Pe(t){throw t}function Oe(t,e,r){return e.parse("/")}function _e(t,e){r
175
175
  *
176
176
  * Use of this source code is governed by an MIT-style license that can be
177
177
  * found in the LICENSE file at https://angular.io/license
178
- */var ir=new r.Version("7.2.8");
178
+ */var ir=new r.Version("7.2.12");
179
179
  /**
180
180
  * @license
181
181
  * Copyright Google Inc. All Rights Reserved.