示例
Handle silent breaking changes in path-to-regexp v8 across pathToRegexp return shapes, match params prototype, wildcard array segmentation, and compile validation
sha256:cb6c1282c918029ff20cfb1014e9ce00ed585175193bd4ad986c134abb431d02
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Handle silent breaking changes in path-to-regexp v8 across pathToRegexp return shapes, match params prototype, wildcard array segmentation, and compile validation HOW
- 包
- path-to-regexp 8.4.2
- 环境
- node
- 创建时间
- 2026-08-16T06:21:49Z
契约
- assert pathToRegexp returns { regexp, keys } and does not mutate an array passed in the second parameter position
- assert match parses wildcard *splat matches into string arrays of segments rather than flat strings
- assert compile requires non-empty arrays for wildcard tokens and throws TypeError for flat strings or empty arrays
- assert match returns params with a null prototype lacking hasOwnProperty and omits absent optional parameter keys
- assert compile silently drops an entire multi-parameter optional group when any of its parameters are omitted
- assert pathToRegexp enables trailing delimiter matching by default
文件
- 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