サンプル
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