
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.
pubcore-reducer-datatable
Advanced tools
Redux is used
npm install --save pubcore-reducer-datatable
Place it within your root-reducer or in any other slice reducer.
The slice-key (sk) is used to distinguish between other reducers, especially if you have more than one pubcore-reducer-datatable used on the page. It makes corresponding action types unique in context of your app.
import {sort} from pubcore-reducer-datatable
const initState = [{col:'firstname', order:'asc'}]
//[..]
combineReducer({
//[..]
sort:sort({sk:'sort', initState})
//[..]
})
or for "columns":
import {columns} from pubcore-reducer-datatable
//[..]
const initState = {
all:['name', 'birthday'],
sequence:['name', 'birthday'],
visible:['name']
}
combineReducer({
//[..]
columns:columns({sk:'tables.users.columns', initState})
})
(multi) sort of table columns
sort by firstname desc, birthday asc
//array of object
[
{col:'firstname', order:'desc'},
{col:'birthday', order:'asc'}
]
//change secondary sort order (priority=1) of column "birthday",
{type:'sort_TOGGLE_SORT', col:'birthday', priority:1}
//toggle sort order
//if no priorty is given, default priority is 0 (no multisort)
{type:'sort_TOGGLE_SORT', col:'firstname'}
show/hide, change sequence of table columns
{
all:['firstname', 'birthday'],
sequence:['birthday', 'firstname'],
visible:['firstname']
}
{type:'columns_RESET', all, sequence, visible}
{type:'columns_CHANGE_COL_SEQUENCE', from:0, to:1}
{type:'columns_SHOW_COL', col:'birthday', isVisible:false}
FAQs
redux reducers to manage state of datatables
The npm package pubcore-reducer-datatable receives a total of 0 weekly downloads. As such, pubcore-reducer-datatable popularity was classified as not popular.
We found that pubcore-reducer-datatable 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.