Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@agoric/make-hardener
Advanced tools
Create a 'hardener' which freezes the API surface of a set of objects
Build a defensible API surface around an object by freezing all reachable properties.
Note: If you're writing an application, you probably don't want to use this package directly. You'll want to use the
harden()
function provided in SES to perform an all-encompassing "deep freeze" on your objects. Alternatively, if you want to test your code before using it in SES, you can import the @agoric/harden package. Note that without SES,harden()
is insecure, and should be used for testing purposes only.
Please see the harden() package for more documentation.
This package (@agoric/make-hardener
) provides a makeHardener()
which can be used to build your own harden()
function. When you call makeHardener()
, you give it an iterable of stopping points (the "fringe"), and the recursive property walk will stop its search when it runs into the fringe. The resulting harden()
will throw an exception if anything it freezes has a prototype that is not already in the fringe, or was frozen during the same call (and thus added to the fringe).
FAQs
Create a 'hardener' which freezes the API surface of a set of objects
The npm package @agoric/make-hardener receives a total of 438 weekly downloads. As such, @agoric/make-hardener popularity was classified as not popular.
We found that @agoric/make-hardener demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.