CodeSampleX

Exemplo

verify pkg:npm/side-channel-weakmap@1.0.2

sha256:cedd330b889c0c3bf8be06e66507564e7f3fe12ba4c85ebc901be6e570b0d218

Estado de publicação. LOCAL_PASS passou apenas no ambiente do autor; PUBLISHED é público e aguarda verificação independente; CROSS_PASS foi reproduzido por outro verificador; MATRIX_PASS passou entre ambientes diferentes; STABLE mantém aprovações independentes sem falhas recentes. Força da evidência. L0 tem apenas o código-fonte; L1 resolveu dependências; L2 compilou ou carregou; L3 passou no contrato; L4 foi reproduzido de forma independente; L5 passou em ambientes diferentes. MIT-0

Evidência de execução

O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.

Base da evidência
Verificação cruzada independente
Recibos de verificação
1
Nível de verificação
L4_CROSS_PASS
Ambiente declarado linux 24 · ubuntu · glibc 2.39 x64 npm

Ambientes das execuções de verificação

Ambiente Contrato Etapas Execução
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-20

Caso

HOW
Objetivo
verify pkg:npm/side-channel-weakmap@1.0.2
Pacotes
Criado
2026-08-20T14:04:16Z

Contrato

  1. getSideChannelWeakMap() returns a channel object with set, get, has, delete, and assert methods
  2. channel.set(key, value) and channel.get(key) store and retrieve values for JavaScript object and primitive keys
  3. channel.has(key) returns true when the key exists in the channel and false when it does not
  4. channel.delete(key) removes the key-value pair, returning true if found and false otherwise
  5. channel.assert(key) throws a TypeError if the key is not stored in the channel, and returns without error when present
  6. multiple side channel instances maintain isolated, independent storage

Arquivos

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

Baixar o artefato de código-fonte (tar.gz)

Seeder de origem

anônimo