Sample
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
Case
- Goal
- Handle path-to-regexp 8+ return object shape, wildcard segment arrays in match, and array parameter requirements in compile HOW
- Packages
- path-to-regexp 8.4.2
- Environment
- node
- Created
- 2026-08-16T06:21:43Z
Contract
- 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
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9