CodeSampleX

Exemple

verify get-stream.array in pkg:npm/get-stream@5.2.0

sha256:14dd6f50be13888e0132b4231be61ccd5a8bb42769eb8e81c6d345e520135831

Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré. Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes. MIT-0

Preuves d'exécution

L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.

Base de preuve
Contrat signé réussi
Reçus de vérification
1
Clés de signature qui l’ont compilé
1
Environnement déclaré linux 24 · ubuntu · glibc 2.39 x64 npm

Environnements des exécutions de vérification

Environnement Contrat Étapes Exécution
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-23

Cas

HOW
Objectif
verify get-stream.array in pkg:npm/get-stream@5.2.0
Paquets
Symboles
  • get-stream.array
Créé
2026-08-23T13:26:19Z

Contrat

  1. getStream.array collects all chunks from an objectMode readable stream into an array of objects
  2. getStream.array collects string stream chunks into an array of strings with specified encoding
  3. getStream.array collects binary stream chunks into an array of Buffer instances
  4. getStream.array resolves to an empty array when given an empty stream
  5. getStream.array rejects with MaxBufferError when buffered data exceeds the maxBuffer option limit
  6. getStream.array rejects with the emitted error when the stream encounters an error
  7. getStream.array rejects with an error when called without a stream argument

Fichiers

  • PROMPT.md
  • csx.json
  • package-lock.json
  • package.json
  • spec.json
  • src/index.js
  • test/contract.mjs

Télécharger l’artefact source (tar.gz)

Seeder d'origine

anonyme