Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
callbag-concat
Advanced tools
/**
npm install callbag-concat
const fromIter = require('callbag-from-iter');
const iterate = require('callbag-iterate');
const concat = require('callbag-concat');
const source = concat(fromIter([10,20,30]), fromIter(['a','b']));
iterate(x => console.log(x))(source); // 10
// 20
// 30
// a
// b
*/
const concat = (...sources) => (start, sink) => { if (start !== 0) return; const n = sources.length; if (n === 0) { sink(0, () => {}); sink(2); return; } let i = 0; let sourceTalkback; const talkback = (t, d) => { if (t === 1 || t === 2) { sourceTalkback(t, d); } }; (function next() { if (i === n) { sink(2); return; } sources[i](0, (t, d) => { if (t === 0) { sourceTalkback = d; if (i === 0) sink(0, talkback); else sourceTalkback(1); } else if (t === 1) { sink(1, d); } else if (t === 2) { i++; next(); } }); })(); };
module.exports = concat;
FAQs
Callbag factory that concatenates data from multiple callbag sources
We found that callbag-concat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.