CodeSampleX

Ejemplo

verify getPathValue in pkg:npm/pathval@2.0.1

sha256:1694bfc8bf02ef27e04c1cc1e7d8f4ce390450c4facff17f9d7b0cf760e9d7c7

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 getPathValue in pkg:npm/pathval@2.0.1
Paquetes
Símbolos
  • getPathValue
Creado
2026-08-26T11:06:33Z

Contrato

  1. getPathValue is exported as a function from the pathval module
  2. getPathValue retrieves shallow and deeply nested object properties using dot-delimited path strings
  3. getPathValue retrieves array elements by index using bracket notation and supports chained object properties within arrays
  4. getPathValue resolves property keys containing literal dots and brackets when escaped with backslashes
  5. getPathValue returns undefined for non-existent direct properties and null when intermediate path segments do not exist
  6. getPathValue returns null without throwing when the target object is null or undefined
  7. getPathValue resolves property and index access on primitive values including string characters and string length
  8. getPathValue prevents prototype pollution by returning undefined when querying prototype, constructor, or __proto__ properties
  9. getPathValue accurately preserves and retrieves falsy values such as false, 0, empty string, and null

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