
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@putout/plugin-merge-duplicate-functions
Advanced tools
🐊Putout plugin adds ability to merge duplicate functions
Functions are one of the fundamental building blocks in JavaScript. A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship between the input and the output. To use a function, you must define it somewhere in the scope from which you wish to call it.
(c) MDN
🐊Putout plugin adds ability to find and merge duplicate functions. Checkout in 🐊Putout Editor.
npm i @putout/plugin-merge-duplicate-functions
{
"rules": {
"merge-duplicate-functions": "on"
}
}
const isFn = (a) => typeof a === 'function';
const isFn1 = (a) => typeof a === 'function';
const isFn2 = (a) => typeof a === 'function';
isFn(1);
isFn1(2);
const isFn = (a) => typeof a === 'function';
isFn(1);
isFn(2);
MIT
FAQs
🐊Putout plugin adds ability to merge duplicate functions
The npm package @putout/plugin-merge-duplicate-functions receives a total of 6,219 weekly downloads. As such, @putout/plugin-merge-duplicate-functions popularity was classified as popular.
We found that @putout/plugin-merge-duplicate-functions demonstrated a healthy version release cadence and project activity because the last version was released less than 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 flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.