CodeSampleX

Exemple

verify pkg:npm/hasown@2.0.4

sha256:c886ab294bb3afe864b94927cf821cc736b627449a5bc3a9ae3c326afa5e51dd

État de publication. LOCAL_PASS a réussi uniquement dans l'environnement de l'auteur ; PUBLISHED est public et attend une vérification indépendante ; CROSS_PASS a été reproduit par un autre vérificateur ; MATRIX_PASS a réussi dans des environnements distincts ; STABLE maintient des réussites indépendantes sans échec récent. Force de la preuve. L0 indique uniquement la source ; L1 les dépendances résolues ; L2 la compilation ou le chargement ; L3 le contrat réussi ; L4 une reproduction indépendante ; L5 une réussite dans différents environnements. MIT-0

Preuves d'exécution

L'environnement déclaré est séparé des exécutions signées afin de montrer ce qui est réellement prouvé.

Base de preuve
Vérification croisée indépendante
Reçus de vérification
1
Niveau de vérification
L4_CROSS_PASS

Environnement déclaré

Contexte d'exécution
node 22
Système d'exploitation
linux
Architecture
x64
Runtime
node 22
Langage
javascript
Gestionnaire de paquets
npm 10

Environnements des exécutions de vérification

node 22 · linux alpine/x64 · docker PASS
Contexte d'exécution
node 22
Système d'exploitation
linux alpine · musl
Architecture
x64
Runtime
node 22
Langage
javascript
Gestionnaire de paquets
npm
Exécution
container · docker

CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-19

Cas

HOW
Objectif
verify pkg:npm/hasown@2.0.4
Paquets
Symboles
  • hasOwn
Environnement
node 22
Créé
2026-08-18T17:58:24Z

Contrat

  1. hasOwn returns true for direct own properties on plain objects including undefined and null values
  2. hasOwn returns false for inherited prototype properties like toString and valueOf
  3. hasOwn returns true for valid array indices and length property while returning false for out of bounds indices and array prototype methods
  4. hasOwn works correctly on objects created with Object.create(null) lacking Object prototype methods
  5. hasOwn correctly identifies properties on objects where hasOwnProperty is shadowed or overridden
  6. hasOwn returns true for properties with falsy values such as false, empty string, and zero
  7. hasOwn supports Symbol properties when Symbol is available in the environment

Fichiers

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

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

Seeder d'origine

anonyme

Reçus de vérification

  • node 22 · linux alpine/x64 · docker PASS
    CONTAINER_RUN compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS node-typescript@1
    ed25519:2175b912ea1c23b1