Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
knockout-observablemap
Advanced tools
Observable maps, sets, weak maps and weak sets.
The collections created are:
Each of the functions of the keyed collections either observes or mutates the collection.
Mutates | Observes | |
---|---|---|
Map | set, clear, delete | get, has, values, keys, entries, forEach, valueOf |
Set | add, clear, delete | entries, values, keys, has, forEach, valueOf |
WeakMap | add, delete, has | valueOf |
WeakSet | delete, set | has, get, valueOf |
The observable is always triggered asynchronously, so multiple updates will be pooled together into one change.
These functions also expose some Knockout observable functions, namely:
subscribe(callback[, thisArg])
where the callback receives the entire collection when calledvalueHasMutated()
getSubscriptionCount()
31 Mar 2017 - 🐠 3.1.0
.peek
to the observers e.g. map.values.peek()
or map.has.peek('x')
() => ...
and spreads, so may need transpiling.28 Feb 2017 - 🦐 3.0.0
KeyClass
)12 Aug 2014 – 🌵2.2.0
Array.from
Symbol
is not definedko.tasks.schedule
if available15 Jul 2015 – 🐸 2.1.1
ko.Set
and ko.WeakSet
ko.Set(...)
, etc., or new ko.Set(...)
WeakSet
and WeakMap
Run tests with karma start
.
Run tests with karma start
(or if karma is not installed globally,
./node_modules/karma/bin/karma start
).
FAQs
Observable ES6 Map for Knockout
The npm package knockout-observablemap receives a total of 0 weekly downloads. As such, knockout-observablemap popularity was classified as not popular.
We found that knockout-observablemap 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.