
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
deprecated-js
Advanced tools
deprecated is a function decorator that can be used to mark functions and methods as deprecated.
deprecated is a function decorator that can be used to mark functions and methods as deprecated. deprecated serves the same purpose as the deprecate with some differences.
Using a decorator gives you the ability to mark a function as deprecated without
having to change the function's code. Simply pass a message and a function to
deprecated and you get a new function that will now warn users it is
deprecated when called. deprecated does not change the signature of your
functions and you can continue to use them like you did before.
deprecated using console.log instead of a stream so that it can be used in node and browsers.
var deprecated = require('deprecated');
function add(lhs, rhs) {
return lhs + rhs;
}
console.log(add(1, 3));
>> 4
var deprecatedAdd = deprecated('The add function will be removed in v2.', add);
console.log(deprecatedAdd(1, 3));
>> WARNING!
>> The add function will be removed in v2.
>> 4
FAQs
deprecated is a function decorator that can be used to mark functions and methods as deprecated.
We found that deprecated-js 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.