@angular/router 7.2.11 → 7.2.15
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.
- package/bundles/router-testing.umd.js +1 -1
- package/bundles/router-testing.umd.min.js +1 -1
- package/bundles/router-testing.umd.min.js.map +1 -1
- package/bundles/router-upgrade.umd.js +1 -1
- package/bundles/router-upgrade.umd.min.js +1 -1
- package/bundles/router-upgrade.umd.min.js.map +1 -1
- package/bundles/router.umd.js +43 -29
- package/bundles/router.umd.js.map +1 -1
- package/bundles/router.umd.min.js +3 -3
- package/bundles/router.umd.min.js.map +1 -1
- package/esm2015/src/config.js +3 -2
- package/esm2015/src/interfaces.js +2 -2
- package/esm2015/src/router.js +14 -14
- package/esm2015/src/router_module.js +42 -45
- package/esm2015/src/router_state.js +4 -4
- package/esm2015/src/version.js +1 -1
- package/esm5/src/config.js +1 -1
- package/esm5/src/interfaces.js +1 -1
- package/esm5/src/router.js +14 -14
- package/esm5/src/router_module.js +26 -12
- package/esm5/src/router_state.js +4 -4
- package/esm5/src/version.js +1 -1
- package/fesm2015/router.js +42 -28
- package/fesm2015/router.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm2015/upgrade.js +1 -1
- package/fesm5/router.js +43 -29
- package/fesm5/router.js.map +1 -1
- package/fesm5/testing.js +1 -1
- package/fesm5/upgrade.js +1 -1
- package/package.json +4 -4
- package/router.metadata.json +1 -1
- package/src/config.d.ts +2 -1
- package/src/interfaces.d.ts +1 -1
- package/src/router_module.d.ts +50 -53
- package/src/router_state.d.ts +3 -3
- package/testing.d.ts +1 -1
- package/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v7.2.
|
|
2
|
+
* @license Angular v7.2.15
|
|
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
|
|
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.
|
|
178
|
+
*/var ir=new r.Version("7.2.15");
|
|
179
179
|
/**
|
|
180
180
|
* @license
|
|
181
181
|
* Copyright Google Inc. All Rights Reserved.
|