
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A small wrapper around Nuclear JS, Fluxium allows you to write your actions and stores as plain JS objects. The action creators of Flux, which traditionally dispatch actions via a central dispatch method, are replaced with intents which return observable streams of actions which Fluxium takes care of dispatching.
Here is a deliberately simplistic example, showing how to use Fluxium.
var fluxium = require('fluxium');
var React = require('react');
var Observable = require('rx').Observable;
var Immutable = fluxium.Immutable;
var flux = fluxium.create({
intents: {
showAlert: function(message) {
return Observable.just({
type: 'SHOW_ALERT',
payload: { message: message }
})
},
dismissAlert: function () {
return Observable.just({
type: 'DISMISS_ALERT'
})
}
},
stores: {
alert: {
initialState: Immutable.Map({
message: undefined
}),
handlers: {
SHOW_ALERT: function (state, payload) {
return state.set('message', payload.message)
},
DISMISS_ALERT: function (state) {
return state.set('message', undefined)
}
}
}
},
handleError: function (error) {
console.error(JSON.stringify(error))
}
});
var getters = {
message: ['alert', 'message']
};
var Alert = React.createClass({
mixins: [flux.mixin],
getDataBindings: function () {
message: getters.message
},
render: function () {
var message = this.state.message
if (message) {
<div>
<p>{this.state.message}</p>
<button onClick={dismissAlert}>x</button>
</div>
}
else {
<div>No message</div>
}
},
dismissAlert: function () {
flux.intents.dismissAlert()
}
})
FAQs
A moderately reactive Flux implementation wrapped around Nuclear JS.
The npm package fluxium receives a total of 5 weekly downloads. As such, fluxium popularity was classified as not popular.
We found that fluxium 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.