Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
temporal-hash
Advanced tools
update(hash, timestamp)
Date.now()
resolve()
Deep merge all of the hashes in order by time ascending and return the result.
compact(timestamp)
Date.now()
Same as resolve()
however also clears internal store and adds one value to
the store at the provided timestamp.
null
and undefined
Using lodash merge which by default ignores when keys have a value of undefined -- so keys can't be cleared. For example,
var _ = require('lodash');
_.merge({a: 10, q: 20}, {a: 42, q: undefined})
Returns:
{ a: 42, q: 20 }
However, if q: null
, we would end up with:
{ a: 42, q: null }
It would be preferable to have q
get cleared if it were set to undefined
so
that behavior will eventually be implemented.
FAQs
Hash with key insertion time preserved
The npm package temporal-hash receives a total of 0 weekly downloads. As such, temporal-hash popularity was classified as not popular.
We found that temporal-hash 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.