Comparing version 0.10.4 to 0.10.5
@@ -78,6 +78,4 @@ "use strict"; | ||
} | ||
else { | ||
if (_this.receivedRoute.url.hash) { | ||
scrollToHash(_this.receivedRoute.url.hash, _this.hashScrollBehavior); | ||
} | ||
else if (_this.receivedRoute && _this.receivedRoute.url.hash) { | ||
scrollToHash(_this.receivedRoute.url.hash, _this.hashScrollBehavior); | ||
} | ||
@@ -84,0 +82,0 @@ }; |
@@ -272,2 +272,3 @@ "use strict"; | ||
resolver: this.resolver, | ||
withContent: this.options.withContent, | ||
}), | ||
@@ -274,0 +275,0 @@ }); |
@@ -25,2 +25,3 @@ import { Switch } from './Switch'; | ||
expandPattern?: (pattern: string, router: Router) => undefined | string[] | Promise<undefined | string[]>; | ||
withContent?: boolean; | ||
} | ||
@@ -27,0 +28,0 @@ export declare function createRouter<Context extends object>(options: RouterOptions<Context>): Router<Context>; |
@@ -75,6 +75,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
else { | ||
if (_this.receivedRoute.url.hash) { | ||
scrollToHash(_this.receivedRoute.url.hash, _this.hashScrollBehavior); | ||
} | ||
else if (_this.receivedRoute && _this.receivedRoute.url.hash) { | ||
scrollToHash(_this.receivedRoute.url.hash, _this.hashScrollBehavior); | ||
} | ||
@@ -81,0 +79,0 @@ }; |
@@ -270,2 +270,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
resolver: this.resolver, | ||
withContent: this.options.withContent, | ||
}), | ||
@@ -272,0 +273,0 @@ }); |
@@ -25,2 +25,3 @@ import { Switch } from './Switch'; | ||
expandPattern?: (pattern: string, router: Router) => undefined | string[] | Promise<undefined | string[]>; | ||
withContent?: boolean; | ||
} | ||
@@ -27,0 +28,0 @@ export declare function createRouter<Context extends object>(options: RouterOptions<Context>): Router<Context>; |
{ | ||
"name": "navi", | ||
"version": "0.10.4", | ||
"version": "0.10.5", | ||
"description": "A router-loader for React.", | ||
@@ -5,0 +5,0 @@ "author": "James K Nelson <james@jamesknelson.com>", |
@@ -205,6 +205,4 @@ import { createBrowserHistory, History } from 'history'; | ||
} | ||
else { | ||
if (this.receivedRoute.url.hash) { | ||
scrollToHash(this.receivedRoute.url.hash, this.hashScrollBehavior) | ||
} | ||
else if (this.receivedRoute && this.receivedRoute.url.hash) { | ||
scrollToHash(this.receivedRoute.url.hash, this.hashScrollBehavior) | ||
} | ||
@@ -211,0 +209,0 @@ } |
@@ -304,2 +304,3 @@ import { URLDescriptor, createURLDescriptor, joinPaths } from './URLTools' | ||
resolver: this.resolver, | ||
withContent: this.options.withContent, | ||
}), | ||
@@ -306,0 +307,0 @@ }) |
@@ -33,2 +33,3 @@ import { Switch } from './Switch' | ||
expandPattern?: (pattern: string, router: Router) => undefined | string[] | Promise<undefined | string[]>, | ||
withContent?: boolean, | ||
} | ||
@@ -35,0 +36,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
669043
13163