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

strange-router

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strange-router - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

5

dist/index.js

@@ -48,5 +48,2 @@ 'use strict';

// This gets incremented and used as a the `key` prop for each route
internals.routeCount = 0;
exports.Router = (_temp = _class = function (_React$PureComponent) {

@@ -95,3 +92,3 @@ (0, _inherits3.default)(StrangeRouter, _React$PureComponent);

exact: route.exact,
key: ++internals.routeCount,
key: i,
path: path,

@@ -98,0 +95,0 @@ strict: route.strict,

7

lib/index.js

@@ -11,5 +11,2 @@ const React = require('react');

// This gets incremented and used as a the `key` prop for each route
internals.routeCount = 0;
exports.Router = class StrangeRouter extends React.PureComponent {

@@ -48,4 +45,4 @@

<Route
exact={route.exact}
key={++internals.routeCount}
exact={route.exact}
key={i}
path={path}

@@ -52,0 +49,0 @@ strict={route.strict}

{
"name": "strange-router",
"version": "0.0.2",
"version": "0.1.0",
"description": "A module to aid bringing configurable routes to react-router v4.x",

@@ -30,5 +30,3 @@ "main": "dist/index.js",

"devDependencies": {
"babel-cli": "^6.26.0"
},
"dependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",

@@ -38,3 +36,4 @@ "babel-preset-es2015": "^6.24.1",

"babel-preset-stage-0": "^6.24.1"
}
},
"dependencies": {}
}
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