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

flux-router-component

Package Overview
Dependencies
Maintainers
5
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.5.6 to 0.5.7

14

lib/NavLink.js

@@ -14,2 +14,10 @@ /**

function isLeftClickEvent (e) {
return e.button === 0;
}
function isModifiedEvent (e) {
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
}
NavLink = React.createClass({

@@ -27,2 +35,8 @@ displayName: 'NavLink',

if (isModifiedEvent(e) || !isLeftClickEvent(e)) {
// this is a click with a modifier or not a left-click
// let browser handle it natively
return;
}
var href = this.props.href;

@@ -29,0 +43,0 @@

7

lib/RouterMixin.js
/**
* Copyright 2014, Yahoo! Inc.
* Copyright 2014-2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.

@@ -11,2 +11,3 @@ */

var History = require('./History');
var React = require('react');
var TYPE_CLICK = 'click';

@@ -34,2 +35,6 @@ var TYPE_PAGELOAD = 'pageload';

RouterMixin = {
contextTypes: {
executeAction: React.PropTypes.func,
makePath: React.PropTypes.func
},
componentDidMount: function() {

@@ -36,0 +41,0 @@ var self = this;

2

package.json
{
"name": "flux-router-component",
"version": "0.5.6",
"version": "0.5.7",
"description": "Router-related React component and mixin for applications with Flux architecture",

@@ -5,0 +5,0 @@ "main": "index.js",

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