
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
built-in-decorators
Advanced tools
Based on the Fall 2019, Stage 2 Decorators Proposal, these decorators are defined as "built-in decorators that can either be used directly, or can be used as a basis to define other decorators."
@wrapThe @wrap decorator can be used on a method to pass the function through another function. For example:
class C {
@wrap(f) method() {}
}
is roughly equivalent to the following:
class C {
method() {}
}
C.prototype.method = f(C.prototype.method);
@wrap can also be used on a class to wrap the entire class:
@wrap(f)
class C {}
is roughly equivalent to:
class C {}
C = f(C);
@registerThe @register decorator schedules a callback to run after the class is created.
class C {
@register(f) method() {}
}
is roughly equivalent to:
class C {
method() {}
}
f(C, 'method');
@initializeNot currently implemented, this proved difficult with the legacy decorators approach.
FAQs
Legacy decorators for proposed built-in decorators
We found that built-in-decorators 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.