
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
fluxible-plugin-middleware
Advanced tools
A plugin for Fluxible applications to provide an interface that attaches middlewares between an action dispatch and a store handler
A plugin for Fluxible applications to provide an interface that attaches middlewares between an action dispatch and a store handler. Highly inspired by Redux middlewares.
npm install fluxible-plugin-middleware
import middlewarePlugin from "fluxible-plugin-middleware";
import Fluxible from "fluxible";
const app = new Fluxible();
const logMiddleware = function(actionContext){
return function(next) {
return function(type, payload){
console.log(actionContext);
console.info(type, payload);
next(type, payload);
};
};
};
app.plug(middlewarePlugin(logMiddleware));
Now, when calling the context.dispatch
method within action creators, all action objects will pass through the middlewares before getting dispatched into the stores for handling.
Your middlewares will also have access to the entire actionContext
so you can fire the context functions within your middlewares if you like.
For additional middlewares:
app.plug(middlewarePlugin(logMiddleware, secondMiddleware, thirdMiddleware));
FAQs
A plugin for Fluxible applications to provide an interface that attaches middlewares between an action dispatch and a store handler
The npm package fluxible-plugin-middleware receives a total of 0 weekly downloads. As such, fluxible-plugin-middleware popularity was classified as not popular.
We found that fluxible-plugin-middleware 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.