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

flux-router-component

Package Overview
Dependencies
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flux-router-component - npm Package Compare versions

Comparing version 0.3.4 to 0.4.1

.idea/.name

22

lib/NavLink.js

@@ -7,8 +7,10 @@ /**

var React = require('react/addons'),
NavLink,
navigateAction = require('../actions/navigate'),
debug = require('debug')('NavLink');
var React = require('react/addons');
var NavLink;
var navigateAction = require('../actions/navigate');
var debug = require('debug')('NavLink');
var objectAssign = require('object-assign');
NavLink = React.createClass({
displayName: 'NavLink',
propTypes: {

@@ -38,8 +40,10 @@ context: React.PropTypes.object.isRequired

}
return this.transferPropsTo(
React.DOM.a(
{onClick:this.dispatchNavAction, href:this.props.href},
return React.createElement(
'a',
objectAssign({}, this.props, {
onClick: this.dispatchNavAction,
href: this.props.href
}),
this.props.children
)
);
);
}

@@ -46,0 +50,0 @@ });

{
"name": "flux-router-component",
"version": "0.3.4",
"version": "0.4.1",
"description": "Router-related React component and mixin for applications with Flux architecture",

@@ -24,4 +24,5 @@ "main": "index.js",

"debug": "^2.0.0",
"object-assign": "^1.0.0",
"query-string": "^1.0.0",
"react": "^0.11.1"
"react": "^0.12.0"
},

@@ -40,3 +41,3 @@ "devDependencies": {

"precommit-hook": "^1.0.2",
"react-tools": "^0.11.1"
"react-tools": "^0.12.0"
},

@@ -43,0 +44,0 @@ "jshintConfig": {

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