サンプル
Dispatch Client and Pool requests composed with interceptors.dns() without origin TypeError in undici 8.4.1
sha256:a40d7f23a7553db846896ca28ec8f7c6c6b132e22d61c01c48414c25a4c841ca
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Dispatch Client and Pool requests composed with interceptors.dns() without origin TypeError in undici 8.4.1 HOW
- パッケージ
- undici 8.4.1
- 環境
- node
- 作成日
- 2026-08-16T04:51:25Z
コントラクト
- const client = new Client(origin).compose(interceptors.dns({ dualStack: false }))
- const clientResponse = await client.request({ path: '/client-test', method: 'GET' })
- assert.equal(clientResponse.statusCode, 200)
- assert.equal(await clientResponse.body.text(), 'client-ok')
- const pool = new Pool(origin).compose(interceptors.dns({ dualStack: false }))
- const poolResponse = await pool.request({ path: '/pool-test', method: 'GET' })
- assert.equal(poolResponse.statusCode, 200)
- assert.equal(await poolResponse.body.text(), 'pool-ok')
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9