Exemplo
Detect C standard library family and version without non-Linux false positives, semver assumptions, or unhandled descriptor close callback errors
sha256:9d9f48d1e0f14e1158b8b61741267b426aa158d3eadc22765d10ccf445004c31
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Detect C standard library family and version without non-Linux false positives, semver assumptions, or unhandled descriptor close callback errors HOW
- Pacotes
- detect-libc 2.1.2
- Ambiente
- node
- Criado
- 2026-08-16T06:22:13Z
Contrato
- assert GLIBC and MUSL string constants equal 'glibc' and 'musl'
- assert familySync, versionSync, and isNonGlibcLinuxSync return synchronously while family, version, and isNonGlibcLinux return Promises
- assert family and version sync and async methods resolve to matching values
- assert isNonGlibcLinux returns false on non-Linux platforms rather than true
- assert on Linux systems family returns glibc, musl, or null, and version returns decimal version without requiring semver patch
- assert file descriptor close in filesystem detection includes callback avoiding ERR_INVALID_CALLBACK
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9