
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Tools to ease generate actions and reducers for redux
// NPM
npm install reduxt
// Yarn
yarn add reduxt
// NPM
npm run build
// Yarn
yarn build
generateActions(prefix, ...actions);
import { generateActions } from "reduxt";
// actionsAT = Action types
// actionsAC = Actions to dispatch
const [actionsAT, actionsAC] = generateActions(null, "action 1", "action_2", [
"action 3",
value => !value
]);
actionsAT.action1 --> ACTION_1
actionsAT.action2 --> ACTION_2
actionsAT.action3 --> ACTION_3
actionsAC.action1() --> {
type : 'ACTION_1',
payload : undefined,
}
actionsAC.action2('Hello!') --> {
type : 'ACTION_2',
payload : 'Hello!',
}
actionsAC.action3(false) --> {
type : 'ACTION_3',
payload : true,
}
import { generateActions } from "reduxt";
const [actionsAT, actionsAC] = generateActions(
"custom prefix",
"action 1",
"action_2",
["action 3", value => !value]
);
actionsAT.action1 --> 'CUSTOM_PREFIX/ACTION_1'
actionsAT.action2 --> 'CUSTOM_PREFIX/ACTION_2'
actionsAT.action3 --> 'CUSTOM_PREFIX/ACTION_3'
actionsAC.action1() --> {
type : 'CUSTOM_PREFIX/ACTION_1',
payload : undefined,
}
actionsAC.action2('Hello!') --> {
type : 'CUSTOM_PREFIX/ACTION_2',
payload : 'Hello!',
}
actionsAC.action3(false) --> {
type : 'CUSTOM_PREFIX/ACTION_3',
payload : true,
}
generateReducer(initialState, ...reducers);
import { generateReducer } from "reduxt";
const initialState = {
test: true,
foo: "foo"
};
// Reducers
const changeTestValueReducer = (state, { payload }) => ({
...state,
test: payload
});
const toggleTestValueReducer = (state, { payload }) => ({
...state,
test: !state.test
});
const changeFooValue = (state, { payload }) => ({ ...state, foo: payload });
const reducer = generateReducer(initialState, {
CHANGE_TEST_VALUE: changeTestValueReducer,
TOGGLE_TEST_VALUE: changeTestValueReducer,
CHANGE_FOO_VALUE: changeFooValue
});
// Examples
dispatch(actionsAC.changeTestValue(false));
state --> {
test : false,
foo : 'foo',
};
dispatch(actionsAC.toggleTestValue());
state --> {
test : true,
foo : 'foo',
}
dispatch(actionsAC.changeFooValue('Modified'));
state --> {
test : true,
foo : 'Modified',
}
FAQs
Tools for redux
We found that reduxt 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.