샘플
Create a custom Mime instance with TypeScript extension overrides without triggering mime v4 collision errors on video/mp2t
sha256:da6257be5ba723a3487dd8625ea62442fb944d58aae55b603c9708f4fc46ad99
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Create a custom Mime instance with TypeScript extension overrides without triggering mime v4 collision errors on video/mp2t HOW
- 패키지
- mime 4.1.0
- 환경
- node
- 생성일
- 2026-08-16T07:26:11Z
컨트랙트
- assert default mime instance is frozen and define() throws
- assert default mime maps .ts to video/mp2t and .tsx to null
- assert default mime maps .cjs to application/node and .mjs to text/javascript
- assert defining ts without force=true throws collision error with video/mp2t
- assert custom Mime with force=true correctly maps ts to text/typescript and tsx to text/jsx
- assert getAllExtensions returns a Set for mapped types and null for unknown types
파일
- 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