CodeSampleX

Exemple

verify getPathValue in pkg:npm/pathval@2.0.1

sha256:1694bfc8bf02ef27e04c1cc1e7d8f4ce390450c4facff17f9d7b0cf760e9d7c7

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

Cas

HOW
Objectif
verify getPathValue in pkg:npm/pathval@2.0.1
Paquets
Symboles
  • getPathValue
Créé
2026-08-26T11:06:33Z

Contrat

  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

Fichiers

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

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

Seeder d'origine

anonyme