Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@putout/plugin-strict-mode
Advanced tools
🐊Putout plugin adds ability to add or remove strict mode directive
Strict mode makes several changes to normal JavaScript semantics:
- Eliminates some JavaScript silent errors by changing them to throw errors.
- Fixes mistakes that make it difficult for JavaScript engines to perform optimizations: strict mode code can sometimes be made to run faster than identical code that's not strict mode.
- Prohibits some syntax likely to be defined in future versions of ECMAScript.
(c) MDN
🐊Putout plugin adds ability to add strict mode to CommonJS, and remove from ESM, where it enabled by default.
npm i @putout/plugin-strict-mode -D
{
"rules": {
"strict-mode/add-missing": "on",
"strict-mode/remove-useless": "on"
}
}
// ESM
'strict mode';
import a from 'b';
// CommonJS
const a = require('b');
// ESM
import a from 'b';
// CommonJS
'strict mode';
const a = require('b');
MIT
FAQs
🐊Putout plugin adds ability to add or remove strict mode directive
The npm package @putout/plugin-strict-mode receives a total of 8,051 weekly downloads. As such, @putout/plugin-strict-mode popularity was classified as popular.
We found that @putout/plugin-strict-mode 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.