CodeSampleX

サンプル

verify getPathValue in pkg:npm/pathval@2.0.1

sha256:1694bfc8bf02ef27e04c1cc1e7d8f4ce390450c4facff17f9d7b0cf760e9d7c7

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
1
ビルドした署名鍵
1
宣言された環境 linux 24 · ubuntu · glibc 2.39 x64 npm

検証実行環境

環境 コントラクト ステージ 実行日
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

ケース

HOW
ゴール
verify getPathValue in pkg:npm/pathval@2.0.1
パッケージ
シンボル
  • getPathValue
作成日
2026-08-26T11:06:33Z

コントラクト

  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

ファイル

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

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名