Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-router-tools

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-tools - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

es/index.js

@@ -42,3 +42,7 @@ import React from 'react';

route: function route(renderFn) {
// eslint-disable-next-line
route: function route() {
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
renderFn = _ref2.render;
var child = null;

@@ -48,3 +52,2 @@ if (renderFn || render) {

} else if (component) {
console.log(fullPath);
child = React.createElement(Route, { key: fullPath, path: fullPath, component: component, exact: exact });

@@ -51,0 +54,0 @@ } else {

@@ -57,3 +57,7 @@ 'use strict';

route: function route(renderFn) {
// eslint-disable-next-line
route: function route() {
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
renderFn = _ref2.render;
var child = null;

@@ -63,3 +67,2 @@ if (renderFn || render) {

} else if (component) {
console.log(fullPath);
child = _react2.default.createElement(_reactRouter.Route, { key: fullPath, path: fullPath, component: component, exact: exact });

@@ -66,0 +69,0 @@ } else {

{
"name": "react-router-tools",
"version": "1.0.0",
"version": "1.0.1",
"description": "A collection of assorted React Router(v4) utility functions",

@@ -5,0 +5,0 @@ "author": "Fredrik Westmark (fredrik.westmark@gmail.com)",

@@ -28,3 +28,4 @@ import React from 'react';

route: ( renderFn ) => {
// eslint-disable-next-line
route: ( { render: renderFn } = {} ) => {
let child = null;

@@ -34,3 +35,2 @@ if ( renderFn || render ) {

} else if ( component ) {
console.log( fullPath );
child = ( <Route key={ fullPath } path={ fullPath } component={ component } exact={ exact } /> );

@@ -37,0 +37,0 @@ } else {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc