
Research
/Security News
Intercom’s npm Package Compromised in Ongoing Mini Shai-Hulud Worm Attack
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.
A thing that is a lot like ES6 `Map`, but without iterators, for use in environments where `for..of` syntax and `Map` are not available.
A thing that is a lot like ES6 Map, but without iterators, for use
in environments where for..of syntax and Map are not available.
If you need iterators, or just in general a more faithful polyfill to ES6 Maps, check out es6-map.
If you are in an environment where Map is supported, then that will
be returned instead, unless process.env.TEST_PSEUDOMAP is set.
You can use any value as keys, and any value as data. Setting again with the identical key will overwrite the previous value.
Internally, data is stored on an Object.create(null) style object.
The key is coerced to a string to generate the key on the internal
data-bag object. The original key used is stored along with the data.
In the event of a stringified-key collision, a new key is generated by appending an increasing number to the stringified-key until finding either the intended key or an empty spot.
Note that because object traversal order of plain objects is not
guaranteed to be identical to insertion order, the insertion order
guarantee of Map.prototype.forEach is not guaranteed in this
implementation. However, in all versions of Node.js and V8 where this
module works, forEach does traverse data in insertion order.
Most of the Map API, with the following exceptions:
Map object is not an iterator.values, keys, and entries methods are not implemented,
because they return iterators.[key, value]
pairs, or a Map or PseudoMap object. But, since iterators
aren't used, passing any plain-old iterator won't initialize the
map properly.Use just like a regular ES6 Map.
var PseudoMap = require('pseudomap')
// optionally provide a pseudomap, or an array of [key,value] pairs
// as the argument to initialize the map with
var myMap = new PseudoMap()
myMap.set(1, 'number 1')
myMap.set('1', 'string 1')
var akey = {}
var bkey = {}
myMap.set(akey, { some: 'data' })
myMap.set(bkey, { some: 'other data' })
Implements the complete ES6 Map API and provides additional features like iterators and methods like forEach. It is more feature-rich compared to pseudomap but also larger in size, making it less ideal for environments with strict size constraints.
Offers basic map functionalities similar to pseudomap but with a focus on minimalistic design and performance. It is comparable to pseudomap but might offer better performance in certain scenarios.
FAQs
A thing that is a lot like ES6 `Map`, but without iterators, for use in environments where `for..of` syntax and `Map` are not available.
The npm package pseudomap receives a total of 9,140,816 weekly downloads. As such, pseudomap popularity was classified as popular.
We found that pseudomap 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
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.

Research
Socket detected a malicious supply chain attack on PyPI package lightning versions 2.6.2 and 2.6.3, which execute credential-stealing malware on import.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.