CodeSampleX

Ejemplo

verify bare-events.once in pkg:npm/bare-events@2.9.1

sha256:6588cc35a188d36b6375a1b9e48f329221d9d9b263eafeda464b3bf6278e743a

Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido. Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas. MIT-0

Evidencia de ejecución

El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.

Base de evidencia
Contrato firmado aprobado
Recibos de verificación
1
Claves de firma que lo compilaron
1
Entorno declarado linux 24 · ubuntu · glibc 2.39 x64 npm

Entornos de las ejecuciones de verificación

Entorno Contrato Etapas Ejecución
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-26

Caso

HOW
Objetivo
verify bare-events.once in pkg:npm/bare-events@2.9.1
Paquetes
Símbolos
  • bare-events.once
Creado
2026-08-26T11:31:14Z

Contrato

  1. emitter.once registers a listener that is invoked on the first emit and automatically removed for subsequent emissions
  2. emitter.once returns the EventEmitter instance to allow method chaining
  3. emitter.addOnceListener functions identically to once as an alias
  4. emitter.prependOnceListener adds a one-time listener to the beginning of the listener list
  5. emitter.off and removeListener can remove a once listener before it is emitted
  6. EventEmitter.once static helper returns a Promise that resolves with an array of emitted event arguments
  7. EventEmitter.once static helper rejects if the emitter emits an error event while waiting for another event
  8. EventEmitter.once static helper can listen directly to the error event and resolves with the emitted error
  9. EventEmitter.once static helper rejects when an AbortSignal option is aborted

Archivos

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

Descargar el artefacto de código fuente (tar.gz)

Seeder de origen

anónimo