Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@agoric/store
Advanced tools
A wrapper around JavaScript Map.
Store adds some additional functionality on top of Map.
Store distinguishes between initializing (init
) a (key,
value) pair and resetting the key to a different value (set
),
whereas Map doesn't. This means you can use the Store
abstraction without having to check whether the key already exists.
This is because the method that you call (init
or set
) marks
your intention and does it for you.
You can use the Store methods in a functional programming
pattern, which you can't with Map. For instance, you can create
a new function const getPurse = Store.get
and you can do
myArray.map(Store.get)
. You can't do either of these with
Map, because the Map methods are not tied to a particular
Map instance.
See makeScalarWeakMapStore
for the wrapper around JavaScript's WeakMap abstraction.
Be aware that both @agoric/base-zone
and this package @agoric/store
will move from the agoric-sdk repository to the endo repository and likely renamed @endo/zone
and @endo/store
. At that time, we will first deprecate the versions here, then replace them with deprecated stubs that reexport from their new home. We hope to eventually remove even these stubs, depending on the compat cost at that time.
FAQs
Wrapper for JavaScript map
The npm package @agoric/store receives a total of 4,484 weekly downloads. As such, @agoric/store popularity was classified as popular.
We found that @agoric/store demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.