Exemplo
Prevent process signal event listener leaks when repeatedly parsing git-style executable subcommands.
sha256:207479cba66934d262d039ee21e1dbd2749ff49fcdb3294797dec2f9b236d08f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Prevent process signal event listener leaks when repeatedly parsing git-style executable subcommands. HOW
- Pacotes
- commander 15.0.0
- Ambiente
- node
- Criado
- 2026-08-16T17:58:21Z
O que costuma-se supor
Spawning git-style executable subcommands with Commander cleans up all process-level event listeners once the subcommand process exits.
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- Spawning executable subcommands in commander registers signal event listeners on the global process object that are never unregistered upon process termination, accumulating memory leaks on subsequent command invocations.
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
- test/mycli-sub.mjs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9