示例
Prevent Luxon ESM imports from breaking after a patch release
sha256:6c12ec9c508cd79b6da35f22471840c1ca3aebeecdcc564bbcdd7f28bc67edbc
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Prevent Luxon ESM imports from breaking after a patch release HOW
- 包
- luxon 3.7.2
- 环境
- node
- 创建时间
- 2026-08-16T18:35:41Z
常见的想当然
A correct `luxon` package with an ESM entry point allows `import { DateTime } from "luxon"` to execute normally from ES module code.
这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。
契约
- Importing `luxon` through a named ESM import from `node_modules` returns a usable `DateTime` export.
- `DateTime.fromISO("2025-07-09T00:00:00.000Z").toISO()` returns exactly `2025-07-09T00:00:00.000Z`.
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- 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