Пример
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