
Research
/Security News
CanisterWorm: npm Publisher Compromise Deploys Backdoor Across 29+ Packages
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.
@escapace/sequentialize
Advanced tools
Wrap async functions to queue multiple calls for sequential execution.
Wrap async functions to queue multiple calls for sequential execution.
pnpm add @escapace/sequentialize
import { sequentialize } from '@escapace/sequentialize'
const wrapper = sequentialize()
// Original async function
const fetchData = async (id: string) => {
const response = await fetch(`/api/data/${id}`)
return response.json()
}
// Wrapped function executes sequentially
const sequentialFetch = wrapper(fetchData)
// These calls will execute one after another, not concurrently
void sequentialFetch('1') // executes first
void sequentialFetch('2') // waits for first to complete
void sequentialFetch('3') // waits for second to complete
The sequentialize function returns a wrapper that maintains an internal queue of promises. Each wrapped function call:
Functions execute in first-in-first-out (FIFO) order regardless of their individual completion times.
When a sequentialized function fails, all subsequent functions in the queue will fail with the same error due to the promise chain dependency:
const wrapper = sequentialize()
const mayFail = wrapper(async (shouldFail: boolean) => {
if (shouldFail) throw new Error('Failed')
return 'Success'
})
void mayFail(false).catch(() => console.log('Call 1 failed')) // does not catch
void mayFail(true).catch(() => console.log('Call 2 failed')) // logs "Call 2 failed"
void mayFail(false).catch(() => console.log('Call 3 failed')) // logs "Call 3 failed"
Returns a wrapper function that converts async functions to sequential execution.
Returns: <T>(fn: T) => T - A function that wraps async functions
FAQs
Wrap async functions to queue multiple calls for sequential execution.
The npm package @escapace/sequentialize receives a total of 1 weekly downloads. As such, @escapace/sequentialize popularity was classified as not popular.
We found that @escapace/sequentialize demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.

Research
/Security News
Attackers compromised Trivy GitHub Actions by force-updating tags to deliver malware, exposing CI/CD secrets across affected pipelines.

Security News
ENISA’s new package manager advisory outlines the dependency security practices companies will need to demonstrate as the EU’s Cyber Resilience Act begins enforcing software supply chain requirements.