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.
es6-promise-promise
Advanced tools
Simple package that exports the Promise
property from es6-promise
.
# Install
npm i es6-promise-promise
Instead of
var Promise = require('es6-promise').Promise;
just
var Promise = require('es6-promise-promise');
If you want to ship less code sometimes you just want to replace some Promise implementations by another.
For example if you don't want universal-promise
in yup and you want to alias it (webpack configuration), you can't do it easily with
alias: {
'universal-promise': 'es6-promise',
}
because one is a promise, the other an object.
Fix this by using
alias: {
'universal-promise': 'es6-promise-promise',
}
and you're good to go.
Same thing with the ProvidePlugin for example ... This won't work
new webpack.ProvidePlugin({
Promise: 'es6-promise', // Promise is not a function
})
This will
new webpack.ProvidePlugin({
Promise: 'es6-promise-promise', // works as expected
})
FAQs
module that exports the Promise property from es6-promise
We found that es6-promise-promise 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.