
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
A couple of redux utils that I wrote to make my life easier and reduce boilerplate.
Etymology: redux + deck
yarn add reddeck
The actionCreator function returns an action object with type and payload.
import { actionCreator } from 'reddeck';
const setName = actionCreator('SET_NAME');
Then, I can use the action creator to dispatch and action.
dispatch(setName('Serena')); // { type: 'SET_NAME', payload: 'Serena' }
Similar to the actionCreator function, but instead of returning a simple action, it returns an object with 3 keys: pending, success and error.
Every key has a simple action as associated value.
import { asyncActionCreator } from 'reddeck';
const getData = asyncActionCreator(
'GET_DATA_PENDING',
'GET_DATA_SUCCESS',
'GET_DATA_ERROR'
);
It's useful when you want to handle an asynchronous control flow
const get = async () => {
try {
dispatch(getData.pending()); // { type: 'GET_DATA_PENDING', payload: {} }
const data = await getDataFromAPI();
dispatch(getData.success(data)); // { type: 'GET_DATA_SUCCESS', payload: data }
} catch (err) {
dispatch(getData.error(err)); // { type: 'GET_DATA_ERROR', payload: err }
}
};
First parameter is a string containing all the types. Spaces are ignored. The second parameter specifies the options and it's optional.
import { typeCreator } from 'reddeck';
const options = {
prefix: 'app/'
};
const types = typeCreator(
`
SET_NAME
GET_DATA_PENDING
GET_DATA_SUCCESS
GET_DATA_ERROR
`,
options
);
console.log(types);
/*
{
SET_NAME: 'app/SET_NAME',
GET_DATA_PENDING: 'app/GET_DATA_PENDING',
GET_DATA_SUCCESS: 'app/GET_DATA_SUCCESS',
GET_DATA_ERROR: 'app/GET_DATA_ERROR'
}
*/
import { apiStateCreator } from 'reddeck';
const api = apiStateCreator();
console.log(api);
/*
{
pending: false,
success: false,
error: false
}
*/
const apiPending = apiStateCreator({ pending: true });
console.log(apiPending);
/*
{
pending: true,
success: false,
error: false
}
*/
FAQs
A couple of Redux utils that make life easier and less boilerplaty
We found that reddeck 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.