CodeSampleX

Ejemplo

verify react.FormEvent in pkg:npm/react@18.3.1

sha256:a04dd2da6304a993ff29fb8e940c2f5e75aa8e6b5b80c84bb42d972abb888547

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-27

Caso

HOW
Objetivo
verify react.FormEvent in pkg:npm/react@18.3.1
Paquetes
Símbolos
  • react.FormEvent
Creado
2026-08-27T21:14:06Z

Contrato

  1. react package.json and React runtime match version 18.3.1
  2. createSyntheticFormEvent creates a synthetic form event wrapping native event properties including target, currentTarget, nativeEvent, type, bubbles, cancelable, and timeStamp
  3. isReactFormEvent validates synthetic form event contract and rejects invalid objects
  4. preventDefault sets defaultPrevented to true, returns true from isDefaultPrevented, and invokes native preventDefault
  5. stopPropagation stops bubbling, sets isPropagationStopped to true, and invokes native stopPropagation
  6. persist is a no-op in React 18 and event properties remain accessible asynchronously without nullification
  7. handleFormSubmit prevents default form submit and extracts form values from elements
  8. handleFormChange extracts name, value, and checked state from event target

Archivos

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

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

Seeder de origen

anónimo