
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
reactabular-dnd
Advanced tools
reactabular-dnd provides React DnD based helpers for Reactabular.
Example:
/*
import React from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import cloneDeep from 'lodash/cloneDeep';
import findIndex from 'lodash/findIndex';
import * as Table from 'reactabular-table';
import * as dnd from 'reactabular-dnd';
import * as resolve from 'table-resolver';
*/
const rows = [
{
id: 1,
name: {
first: 'John',
last: 'Johnson'
},
company: 'John Inc.',
sentence: 'consequatur nihil minima corporis omnis nihil rem'
},
{
id: 2,
name: {
first: 'Mike',
last: 'Mikeson'
},
company: 'Mike Inc.',
sentence: 'a sequi doloremque sed id quo voluptatem voluptatem ut voluptatibus'
},
{
id: 3,
name: {
first: 'Jake',
last: 'Jackson'
},
company: 'Jake Inc.',
sentence: 'sed id quo voluptatem voluptatem ut voluptatibus'
},
{
id: 4,
name: {
first: 'Don',
last: 'Donson'
},
company: 'Don Inc.',
sentence: 'voluptatem voluptatem ut voluptatibus'
}
];
class DragAndDropTable extends React.Component {
constructor(props) {
super(props);
this.state = {
columns: [
{
props: {
style: {
width: 100
}
},
header: {
label: 'Name',
props: {
label: 'Name',
onMove: o => this.onMoveColumn(o)
}
},
children: [
{
property: 'name.first',
props: {
style: {
width: 50
}
},
header: {
label: 'First Name',
props: {
label: 'First Name',
onMove: o => this.onMoveChildColumn(o)
}
}
},
{
property: 'name.last',
props: {
style: {
width: 50
}
},
header: {
label: 'Last Name',
props: {
label: 'Last Name',
onMove: o => this.onMoveChildColumn(o)
}
}
}
]
},
{
property: 'company',
props: {
label: 'Company',
style: {
width: 100
}
},
header: {
label: 'Company',
props: {
onMove: o => this.onMoveColumn(o)
}
}
},
{
property: 'sentence',
props: {
style: {
width: 300
}
},
header: {
label: 'Sentence',
props: {
label: 'Sentence',
onMove: o => this.onMoveColumn(o)
}
}
}
],
rows
};
this.onRow = this.onRow.bind(this);
this.onMoveRow = this.onMoveRow.bind(this);
this.onMoveColumn = this.onMoveColumn.bind(this);
this.onMoveChildColumn = this.onMoveChildColumn.bind(this);
}
render() {
const renderers = {
header: {
cell: dnd.Header
},
body: {
row: dnd.Row
}
};
const { columns, rows } = this.state;
const resolvedColumns = resolve.columnChildren({ columns });
const resolvedRows = resolve.resolve({
columns: resolvedColumns,
method: resolve.nested
})(rows);
return (
<Table.Provider
renderers={renderers}
columns={resolvedColumns}
>
<Table.Header
headerRows={resolve.headerRows({ columns })}
/>
<Table.Body
rows={resolvedRows}
rowKey="id"
onRow={this.onRow}
/>
</Table.Provider>
);
}
onRow(row) {
return {
rowId: row.id,
onMove: this.onMoveRow
};
}
onMoveRow({ sourceRowId, targetRowId }) {
const rows = dnd.moveRows({
sourceRowId,
targetRowId
})(this.state.rows);
if (rows) {
this.setState({ rows });
}
}
onMoveColumn(labels) {
const movedColumns = dnd.moveLabels(this.state.columns, labels);
if (movedColumns) {
// Retain widths to avoid flashing while drag and dropping.
const source = movedColumns.source;
const target = movedColumns.target;
const sourceWidth = source.props.style && source.props.style.width;
const targetWidth = target.props.style && target.props.style.width;
source.props.style = {
...source.props.style,
width: targetWidth
};
target.props.style = {
...target.props.style,
width: sourceWidth
};
this.setState({
columns: movedColumns.columns
});
}
}
onMoveChildColumn(labels) {
const movedChildren = dnd.moveChildrenLabels(this.state.columns, labels);
if (movedChildren) {
const columns = cloneDeep(this.state.columns);
columns[movedChildren.target].children = movedChildren.columns;
// Here we assume children have the same width.
this.setState({ columns });
}
}
}
// Set up drag and drop context
//const DragAndDrop = DragDropContext(HTML5Backend)(DragAndDropTable);
<DragAndDropTable />
FAQs
Drag and drop helpers for Reactabular
The npm package reactabular-dnd receives a total of 1,404 weekly downloads. As such, reactabular-dnd popularity was classified as popular.
We found that reactabular-dnd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.