
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
A simple, useful, but somewhat incorrect implementation of the Maybe monad in Javascript.
A simple, useful, and slightly incorrect implementation of the Maybe monad in Javascript.
For starters, some implementation is about what's useful in JS rather than following laws. For example, id(Maybe.Just(1)) !== Maybe.Just(1).map(id). The value will remain the same, but the referential equality is lost.
Join isn't the typical join either, wherein a doubly wrapped Maybe would be unwrapped to a single layer. It is more the ability to combine two wrapped values together safely.
But hey, the usefulness is real.
More detail to come.
import Maybe from 'jsmaybe';
const a = Maybe.of('test');
const b = a.map(test => `${test} post, please ignore`);
// => Just { 'test post, please ignore' }
const c = b.map(v => v.unsupportedOp());
// => Nothing
const d = Maybe.of('post');
const e = a.join(d, (test, post) => `${test} ${post}`);
// => Just { 'test post' }
e.value('default');
// => 'test post'
c.value('default');
// => 'default'
FAQs
A simple, useful, but somewhat incorrect implementation of the Maybe monad in Javascript.
We found that jsmaybe 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 found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.