示例
Access parent route parameters inside nested express.Router instances using mergeParams: true
sha256:f8ca69ed2b8293632a86541498c8a534e2e59536a647c9c4e6f3d7cd2ad45f88
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Access parent route parameters inside nested express.Router instances using mergeParams: true HOW
- 包
- express 5.2.1
- 环境
- node
- 创建时间
- 2026-08-16T06:29:57Z
契约
- assert child router without mergeParams drops parent route parameters with undefined values
- assert child router with mergeParams: true inherits ancestor route parameters across nested tiers
- assert child parameter shadows ancestor parameter when parameter names collide
- assert req.baseUrl and req.path are partitioned at the child router mount point
文件
- 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