Beispiel
Configure date-fns global defaults with setDefaultOptions and handle locale object and week numbering rules without string tag errors
sha256:ab08efd4bb62dbdbd02c9cfbd6a6a24927747d96b3d1c03b6f213e2cc2f25803
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Configure date-fns global defaults with setDefaultOptions and handle locale object and week numbering rules without string tag errors HOW
- Pakete
- date-fns 4.1.0
- Umgebung
- node
- Erstellt
- 2026-08-16T07:07:10Z
Contract
- assert passing string locale code throws TypeError at runtime
- assert setDefaultOptions with Locale object formats localized dates globally
- assert startOfWeek inherits weekStartsOn from global locale configuration
- assert call-site options take precedence over global defaultOptions
- assert ISO-8601 week calculation requires firstWeekContainsDate 4 alongside weekStartsOn 1
- assert unsetting an explicit option with undefined reverts to locale default
Dateien
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9