
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
hash-set-map
Advanced tools
Set and Map extension to prove a custom key derivation function. It also supports JSON serialization and de-serialization
The original Set and Map object are not modified, so can still be used.
This library does not provides polyfills for Set and Map.
npm i hash-set-map
The current version supports node v10+ and modern browsers.
import { Set, Map } from 'hash-set-map'
var Set = require('hash-set-map').Set;
var Map = require('hash-set-map').Map;
The unmodified Set and Map class can still be used:
import { Set as hSet, Map as hMap } from 'hash-set-map'
let originalMap = new Map()
let originalSet = new Set()
let hashMap = new hMap()
let hashSet = new hSet()
export function dateToKey(d: Date) {
return d.valueOf();
}
const set = new Set([new Date(1), new Date(1)], dateToKey);
set.size // size is 1
set.has(new Date(1)) // returns true
export function stringIgnoreCase(s: string) {
return s.toLowerCase();
}
const map = new Map([['a', 1], ['b', 3], ['C', 3]], stringIgnoreCase);
map.get('c') // returns 3
map.set('c', 42);
map.get('C') // returns 42
For further documentation on toJSON and fromJSON methods refer to json-set-map.
Refer to the JSDoc documentation on the files for mode details.
FAQs
Set and Map extension to prove a custom key derivation function
The npm package hash-set-map receives a total of 3,290 weekly downloads. As such, hash-set-map popularity was classified as popular.
We found that hash-set-map 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.