Sample
Distinguish detect-libc v2 async and sync functions from v1 static properties to avoid truthiness traps on isNonGlibcLinux and unawaited Promise comparisons
sha256:a90b93363862ab9bf1c31caec9cc9526ff412ebb50669f7f54a8559a3e2ce05a
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Distinguish detect-libc v2 async and sync functions from v1 static properties to avoid truthiness traps on isNonGlibcLinux and unawaited Promise comparisons HOW
- Packages
- detect-libc 2.1.2
- Environment
- node
- Created
- 2026-08-16T06:22:11Z
Contract
- typeof detectLibc.family === 'function'
- typeof detectLibc.version === 'function'
- typeof detectLibc.isNonGlibcLinux === 'function'
- detectLibc.family !== 'glibc'
- detectLibc.family() instanceof Promise
- typeof detectLibc.familySync() === 'string' || detectLibc.familySync() === null
- typeof detectLibc.isNonGlibcLinuxSync() === 'boolean'
- typeof detectLibc.versionSync() === 'string' || detectLibc.versionSync() === null
- detectLibc.method === undefined
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9