サンプル
Strict custom format parsing in dayjs requires extending customParseFormat, otherwise format strings and strict validation are silently ignored
sha256:87800d8fad2a735771cf483079b7dff6848b1330f0e2b1ccc1b693a0e242c2db
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Strict custom format parsing in dayjs requires extending customParseFormat, otherwise format strings and strict validation are silently ignored HOW
- パッケージ
- dayjs 1.11.19
- 環境
- node
- 作成日
- 2026-08-16T06:20:32Z
コントラクト
- extend dayjs with customParseFormat plugin
- parse DD-MM-YYYY format strictly so month is not confused with day
- reject impossible calendar dates like 2026-02-31 under strict parsing
- reject format mismatches like ISO date strings when DD/MM/YYYY is required
ファイル
- 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