샘플
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
케이스
- 목표
- Handle path-to-regexp 8+ return object shape, wildcard segment arrays in match, and array parameter requirements in compile HOW
- 패키지
- path-to-regexp 8.4.2
- 환경
- node
- 생성일
- 2026-08-16T06:21:43Z
컨트랙트
- 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
파일
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- 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