Ejemplo
Handle path-to-regexp 8+ return object shape, wildcard segment arrays in match, and array parameter requirements in compile
sha256:e0298fc83c817a07d766085d151aa4eaec44730bbe955f1b1e8167d5e3018a43
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Handle path-to-regexp 8+ return object shape, wildcard segment arrays in match, and array parameter requirements in compile HOW
- Paquetes
- path-to-regexp 8.4.2
- Entorno
- node
- Creado
- 2026-08-16T06:21:43Z
Contrato
- assert pathToRegexp returns { regexp, keys } object rather than a bare RegExp
- assert passing a keys array as second argument to pathToRegexp is ignored and not populated
- assert match parses wildcard *param into an array of path segment strings rather than a raw string
- assert compile requires wildcard parameters to be non-empty arrays and rejects strings with TypeError
- assert compile throws TypeError for missing required parameters but permits omitted optional groups
- assert parse returns a TokenData instance with nested group tokens for optional segments
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9