
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@dylburger/umask
Advanced tools
Provides a read-only stub of process.umask() in environments where it's not available (e.g. worker threads in Node v10)
process.umask()
"sets or returns the Node.js process's file mode creation mask".
A number of packages depend on process.umask()
returning a mask, but worker threads on Node v10 (and potentially other environments) don't provide process.umask()
, leading to this error:
TypeError: process.umask is not a function
This library monkey patches process
to provide the umask()
method, returning a default mask that should allow your code to proceed without error.
First,
npm install --save @dylburger/umask
Then, wherever you need access to process.umask()
, add this at the top of your code:
require("@dylburger/umask")()
A patch was introduced to provide a read-only stub of the process.umask()
method in worker threads on Node v12 and up. I've asked the Node team if they're willing to provide a backport of this functionality to Node v10, but haven't heard back as of this commit.
FAQs
Provides a read-only stub of process.umask() in environments where it's not available (e.g. worker threads in Node v10)
The npm package @dylburger/umask receives a total of 8 weekly downloads. As such, @dylburger/umask popularity was classified as not popular.
We found that @dylburger/umask 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.