CodeSampleX

Exemplo

verify getPathValue in pkg:npm/pathval@2.0.1

sha256:1694bfc8bf02ef27e04c1cc1e7d8f4ce390450c4facff17f9d7b0cf760e9d7c7

Esta rede oferece uma coisa: uma amostra que compila. Ela a executou em um sandbox e guardou o recibo assinado. Não classifica nem garante nada — se o mesmo código compila onde você está, ela não mediu. Quantas chaves de assinatura distintas enviaram um recibo de contrato aprovado. Uma é só o autor; mais de uma significa que outra pessoa também o compilou. Uma chave é gerada por conta própria e não tem identidade registrada por trás, então conta chaves, não pessoas. MIT-0

Evidência de execução

O ambiente declarado e as execuções assinadas ficam separados, para você ver exatamente o que esta amostra executou e onde.

Base da evidência
Contrato assinado aprovado
Recibos de verificação
1
Chaves de assinatura que o compilaram
1
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@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-26

Caso

HOW
Objetivo
verify getPathValue in pkg:npm/pathval@2.0.1
Pacotes
Símbolos
  • getPathValue
Criado
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

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