
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
future-router
Advanced tools
Intuitive React-Flux Router. It allows reloading a page, backwards and forwards actions and defining routes in a separate module. Signaling a route change is very simple by either including Router.route('name_of_route',{args}) in a href attribute or invok
Intuitive Router built specifically for React-Flux. It allows reloading a page, backwards and forwards actions and defining routes in a separate module. Signaling a route change is very simple by either including Router.route('name_of_route',{args}) in a href attribute or invoking the action dynamically by doing Router.route(route_name,{args},true).
The router is built upon the idea of keeping routing information in a separate module from the components and letting the router handle the transistions. The Router can be further factored out into 'sub router if it makes sense to do so'. We personally like having the Router be global but if the complexity of the routes requires locality it can be done easily. In the following code you would export the Router variable instead of assigning in globally.
//Router.js
//Global Router
global.Router = require('future-router').Router;
//Define Custom Routes
Router.Routes = {
toDumb: function(args){
//This function can do whatever you want with the specified args which
//are a JSON but if you are changing a page we recommend using
//these functions
//Pull in a component, or move this outside if you want a broader scope
var About = require('./components/About.js');
//Where the Components will be mounted to, can use another accessor if needed.
var mount_point = document.getElementById('res');
//Unmount
React.unmountComponentAtNode(mount_point);
//Mount new component and send in args as a prop or do processing of args.
React.render(<About data={args}/>, mount_point));
},
//Must exist, This is the primary entry point, you dont necessarily need to do anything here as it will load react normally.
root: function(args){
}
};
var App = require('./components/app');
//Dont need to assign to a var if using globally.
require('./router.js');
React.render (
<App id="app"/>,
document.getElementById('main')
);
Router.init();
var data = {json_stuff: "",more_stuff: ""};
//In JSX with a href tag(The function returns a string making it easier to create a nice route quickly):
<a href={Router.route('route_name',data)}>
//In an event handler
handleClick(){
//the last param signifies that you want the route to be immediately invoked, the function defaults to false to return a string that can be used in a href or something similar
Router.route('route_name',data,true);
}
<button onClick={this.handlerClick}>Click Me</button>
FAQs
Intuitive React-Flux Router. It allows reloading a page, backwards and forwards actions and defining routes in a separate module. Signaling a route change is very simple by either including Router.route('name_of_route',{args}) in a href attribute or invok
We found that future-router demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.