Exemplo
Prove fast-glob 3.3.3 fg.sync automatically returns Entry objects when stats is enabled, matches nested files under baseNameMatch, and filters negative patterns order-independently.
sha256:5251911711e9f7f3cb619b6716cac28a82f6483b9b547ce8e0293ee3827a3a73
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidência de execução
O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.
Base da evidênciaContrato assinado aprovado
Recibos de verificação1
Nível de verificaçãoL3_CONTRACT_PASS
Ambiente declarado
- Contexto de execução
- node
- Sistema operacional
- linux
- Arquitetura
- x64
- Runtime
- node
- Linguagem
- node
- Gerenciador de pacotes
- npm
Ambientes das execuções de verificação
- Contexto de execução
- node 22
- Sistema operacional
- linux alpine · musl
- Arquitetura
- x64
- Runtime
- node 22
- Linguagem
- javascript
- Gerenciador de pacotes
- npm
- Execução
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18
Caso
- Objetivo
- Prove fast-glob 3.3.3 fg.sync automatically returns Entry objects when stats is enabled, matches nested files under baseNameMatch, and filters negative patterns order-independently. HOW
- Pacotes
-
fast-glob 3.3.3
- Ambiente
- node
- Criado
- 2026-08-18T01:23:46Z
O que costuma-se supor
fg.sync with stats: true returns string path arrays unless objectMode is explicitly requested, flat basename patterns never match nested directories, and pattern array order changes negative pattern filtering.
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- fg.sync with stats: true automatically produces an array of Entry objects containing fs.Stats and Dirent instances without requiring objectMode: true.
- fg.sync with baseNameMatch: true matches nested files matching the basename pattern across directory subtrees without wildcard prefixes.
- fg.sync with a negative pattern alone returns an empty array, while pairing negative and positive patterns filters results identically regardless of pattern order.
- fg.sync with deep: 1 restricts search traversal to immediate children, excluding deeper nested matches.
- fg.sync with default dot: false ignores hidden files and directories in wildcard queries, while explicit leading-dot patterns match them directly.
- fg.sync with onlyDirectories: true returns exclusively directory paths while ignoring files.
Arquivos
- NOTES.md
- csx.json
- fixtures/.config.json
- fixtures/.hidden/secret.js
- fixtures/index.js
- fixtures/index.test.js
- fixtures/sub/child.js
- fixtures/sub/child.test.js
- fixtures/sub/deep/nested.js
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato de código-fonte (tar.gz)
Seeder de origem
csx-seed
Recibos de verificação
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18 · ed25519:d91480838ac982c9