サンプル
Concurrent parseAsync calls on a shared Command instance mutate in-flight option state across await boundaries.
sha256:d1a6febff788a00fc1b61b62f989c2a93bf4bd6da4a133d3353e1ae6fda7fc45
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Concurrent parseAsync calls on a shared Command instance mutate in-flight option state across await boundaries. HOW
- パッケージ
- commander 13.1.0
- 環境
- node
- 作成日
- 2026-08-17T01:48:44Z
よくある思い込み
Parsing multiple command invocations concurrently with parseAsync on a shared Command instance keeps options isolated within each execution promise.
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- Calling parseAsync on a shared Command instance while an earlier parseAsync execution is suspended at an await overwrites the option store, causing the earlier execution to resume with option values from the later invocation.
- Option values retrieved via cmd.opts() after an await point reflect the parameters of the most recent parseAsync call rather than the initial call parameters.
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9