Skip to content

Commit

Permalink
Upgrade farce
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Nov 3, 2016
1 parent beee218 commit 22cd461
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"homepage": "https://github.com/4Catalyzer/found#readme",
"dependencies": {
"babel-runtime": "^6.18.0",
"farce": "^0.0.4",
"farce": "^0.0.6",
"invariant": "^2.2.1",
"is-promise": "^2.1.0",
"lodash": "^4.16.4",
Expand Down
6 changes: 5 additions & 1 deletion src/createBaseRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import HttpError from './HttpError';
import { routerShape } from './PropTypes';
import RedirectException from './RedirectException';

export default function createBaseRouter({ routeConfig, matcher, render }) {
export default function createBaseRouter({
routeConfig,
matcher,
render,
}) {
const propTypes = {
match: React.PropTypes.object.isRequired,
resolvedMatch: React.PropTypes.object.isRequired,
Expand Down
8 changes: 5 additions & 3 deletions src/createFarceRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ export default function createFarceRouter({
found: foundReducer,
}),
compose(
createHistoryEnhancer(
historyProtocol, historyMiddlewares, historyOptions,
),
createHistoryEnhancer({
...historyOptions,
protocol: historyProtocol,
middlewares: historyMiddlewares,
}),
createMatchEnhancer(matcher),
),
);
Expand Down

0 comments on commit 22cd461

Please sign in to comment.