strange-router
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -37,4 +37,4 @@ 'use strict'; | ||
var _require2 = require('react-router-dom/Router'), | ||
Router = _require2.default; | ||
var _require2 = require('react-router-redux'), | ||
ConnectedRouter = _require2.ConnectedRouter; | ||
@@ -66,3 +66,3 @@ var _require3 = require('react-router-dom/Switch'), | ||
return React.createElement( | ||
Router, | ||
ConnectedRouter, | ||
{ | ||
@@ -119,3 +119,3 @@ history: history }, | ||
var computeMatch = Router.prototype.computeMatch; | ||
var computeMatch = ConnectedRouter.prototype.computeMatch; | ||
@@ -122,0 +122,0 @@ |
@@ -5,3 +5,3 @@ const React = require('react'); | ||
const { default: MatchPath } = require('react-router-dom/matchPath'); | ||
const { default: Router } = require('react-router-dom/Router'); | ||
const { ConnectedRouter } = require('react-router-redux'); | ||
const { default: Switch } = require('react-router-dom/Switch'); | ||
@@ -24,6 +24,6 @@ const { default: Route } = require('react-router-dom/Route'); | ||
return ( | ||
<Router | ||
<ConnectedRouter | ||
history={history}> | ||
{internals.renderRoutes(routes)} | ||
</Router> | ||
</ConnectedRouter> | ||
); | ||
@@ -76,3 +76,3 @@ } | ||
const { computeMatch } = Router.prototype; | ||
const { computeMatch } = ConnectedRouter.prototype; | ||
@@ -79,0 +79,0 @@ exports.matchRoutes = (routes, pathname, branch = []) => { |
{ | ||
"name": "strange-router", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A module to aid bringing configurable routes to react-router v4.x", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8948