Пример
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