Beispiel
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
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS
Deklarierte Umgebung
- Ausführungskontext
- node
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- node
- Sprache
- node
- Paketmanager
- npm
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- node 22
- Betriebssystem
- linux alpine · musl
- Architektur
- x64
- Runtime
- node 22
- Sprache
- javascript
- Paketmanager
- npm
- Ausführung
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18
Fall
- Ziel
- 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
- Pakete
-
fast-glob 3.3.3
- Umgebung
- node
- Erstellt
- 2026-08-18T01:23:46Z
Häufige Annahme
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.
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- 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.
Dateien
- 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
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18 · ed25519:d91480838ac982c9