
Research
/Security News
Malicious Chrome Extension Performs Hidden Affiliate Hijacking
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.
babel-plugin-comparison-chaining
Advanced tools
Unlike the discipline of mathematics, JavaScript interpreters don't recognize chains of comparison operators as a linear sequence, but as recursive calls compare the right-most node and everything to the left of the operator. If a developer wishes to wri
Unlike the discipline of mathematics, JavaScript interpreters don't recognize chains of comparison operators as a linear sequence, but as recursive calls compare the right-most node and everything to the left of the operator. If a developer wishes to write conditionally chained expressions that are linearly evaluated, this plugin is of use.
JavaScript will recursively evaluate the right-most node compared against whatever is on the left.
// written
1 < 6 < 4 < 2 < 7
//evaluated
(1 < 6 < 4 < 2) < 7
((1 < 6 < 4) < 2) < 7
(((1 < 6) < 4) < 2) < 7
((((1) < 6) < 4) < 2) < 7
Written expression evaluated linearly
1 < 6 && 6 < 4 && 4 < 2 && 2 < 7;
$ npm install --save-dev babel-plugin-comparison-chaining
.babelrc (Recommended).babelrc
{
"plugins": ["comparison-chaining"]
}
$ babel --plugins comparison-chaining script.js
require('babel-core').transform('code', {
plugins: ['comparison-chaining']
});
MIT
FAQs
Unlike the discipline of mathematics, JavaScript interpreters don't recognize chains of comparison operators as a linear sequence, but as recursive calls compare the right-most node and everything to the left of the operator. If a developer wishes to wri
We found that babel-plugin-comparison-chaining 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
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.

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.