CodeSampleX

サンプル

verify pkg:npm/filelist@1.0.6

sha256:74e0b73db78506aeadb79713c3d4afd6932ce67c833fa0ff110a4b956c4929e7

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

実行証拠

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

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

検証実行環境

環境 コントラクト ステージ 実行日
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 pkg:npm/filelist@1.0.6
パッケージ
環境
node 22.23.2
作成日
2026-08-26T07:25:55Z

コントラクト

  1. FileList instance includes string filenames and array of filenames
  2. exclude(string) removes exact matching files from the resolved file list
  3. exclude(RegExp) removes pattern matching files from the resolved file list
  4. exclude(Function) removes files that satisfy the predicate function
  5. shouldExclude(filename) returns true for excluded paths and false otherwise
  6. clearInclusions() resets pending additions before resolution
  7. clearExclusions() clears active exclusion patterns
  8. length() returns the number of resolved files in the list
  9. Array methods like map() return a new FileList instance with transformed items
  10. FileList.clone(fl) creates a cloned copy of the FileList

ファイル

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

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

オリジンシーダー

匿名