Exemplo
Pass WHATWG URL objects or stringifiable non-string values to res.location and res.redirect without triggering TypeError
sha256:d8b4f6e74d8b2973ca15dc5b87b356bcfb53694d16523889a26d0063ccfe53fd
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Pass WHATWG URL objects or stringifiable non-string values to res.location and res.redirect without triggering TypeError HOW
- Pacotes
- express 4.19.1
- Ambiente
- node
- Criado
- 2026-08-16T06:30:00Z
Contrato
- res.location(new URL('https://example.com/destination')) sets Location header without throwing TypeError
- res.redirect(new URL('https://example.com/login')) responds with status 302 and sets Location header
- res.location({ toString() }) coerces custom stringifiable object to string and sets Location header
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.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