flux-router-component
Advanced tools
Comparing version 0.3.4 to 0.4.1
@@ -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": { |
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
48174
22
295
4
+ Addedobject-assign@^1.0.0
+ Addedacorn@5.7.4(transitive)
+ Addedast-types@0.9.6(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase62@1.2.8(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommoner@0.10.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddetective@4.7.1(transitive)
+ Addedenvify@3.4.1(transitive)
+ Addedesprima@3.1.3(transitive)
+ Addedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjstransform@11.0.3(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedobject-assign@1.0.02.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedq@1.5.1(transitive)
+ Addedreact@0.12.2(transitive)
+ Addedrecast@0.11.23(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsource-map@0.4.40.5.7(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedbase62@0.1.1(transitive)
- Removedenvify@2.0.1(transitive)
- Removedesprima-fb@3001.1.0-dev-harmony-fb(transitive)
- Removedjstransform@3.0.0(transitive)
- Removedobject-keys@0.4.0(transitive)
- Removedreact@0.11.2(transitive)
- Removedsource-map@0.1.31(transitive)
- Removedxtend@2.1.2(transitive)
Updatedreact@^0.12.0