示例
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