
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
reack-checkbox0
Advanced tools
https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.6/immutable.min.js https://cdnjs.cloudflare.com/ajax/libs/lodash.js/
https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.6/immutable.min.js https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.3.0/lodash.min.js https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js https://cdnjs.cloudflare.com/ajax/libs/randomcolor/0.4.4/randomColor.min.js
$ sudo npm install -g npx $ sudo npm install -g create-react-app $ npx create-react-app rock-reack $ cd rock-reack && npm start
index.js Button.js
npm start
npm run dist
npm run build
npm publish
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
npm info reack-button version
npm install --save source-map-explorer
yarn add source-map-explorer
npm run build npm run analyze
const digits = Immutable.fromJS({ '0': [1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1], '1': [0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1], '2': [1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1], '3': [1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1], '4': [1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1], '5': [1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1], '6': [1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1], '7': [1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1], '8': [1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1], '9': [1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1], ':': [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0] });
function Segment(props) {
const style = {
backgroundColor: props.active ? props.color : 'transparent'
};
return (<div className="segment" style={style} />);
}
const Digit = React.createClass({
shouldComponentUpdate: function (nextProps) {
return nextProps.data !== this.props.data;
},
render: function() {
const colors = randomColor({count: 15});
const segments = _.zipWith(this.props.data.toArray(), colors, (active, color) => {
return {
active: active,
color: color
};
});
return (
<div className="digit">
{segments.map((segment) => <Segment {...segment} />)}
</div>
);
}
});
const Clock = React.createClass({
getInitialState: function() {
return {
time: moment()
};
},
componentDidMount: function() {
this.interval = setInterval(this.updateTime, 1000);
},
componentWillUnmount: function() {
clearInterval(this.interval);
delete(this.interval);
},
updateTime: function() {
this.setState({
time: moment()
});
},
render: function() {
const time = this.state.time.format('HH:mm:ss').split('');
return (
<div className="clock">
{time.map((digit) => <Digit data={digits.get(digit)} />)}
</div>
);
}
});
const mountNode = document.getElementById('i-am-root'); ReactDOM.render(, mountNode);
FAQs
https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.6/immutable.min.js https://cdnjs.cloudflare.com/ajax/libs/lodash.js/
We found that reack-checkbox0 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.
Research
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.