CodeSampleX

Beispiel

verify pkg:npm/get-package-type@0.1.0

sha256:f9f669307817e6e340f5ac2a2ef66d4166250467db8a6830d9e66c34937d80fb

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
1
Signaturschlüssel, die es gebaut haben
1
Deklarierte Umgebung node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
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

Fall

HOW
Ziel
verify pkg:npm/get-package-type@0.1.0
Pakete
Umgebung
node 22.23.2
Erstellt
2026-08-26T06:36:30Z

Contract

  1. assert getPackageType asynchronously resolves to "module" for a file inside a package with type module
  2. assert getPackageType asynchronously resolves to "commonjs" for a file inside a package with type commonjs
  3. assert getPackageType asynchronously resolves to "commonjs" for a file inside a package without explicit type field
  4. assert getPackageType asynchronously resolves to "commonjs" when no package.json exists in directory hierarchy
  5. assert getPackageType asynchronously stops at node_modules boundary and returns "commonjs" ignoring parent type module
  6. assert getPackageType.sync synchronously returns "module" for a file inside a package with type module
  7. assert getPackageType.sync synchronously returns "commonjs" for a file inside a package with type commonjs
  8. assert getPackageType.sync synchronously returns "commonjs" for a file inside a package without explicit type field
  9. assert getPackageType.sync synchronously resolves nested module package inside node_modules
  10. assert getPackageType.sync synchronously returns "module" when searching from nested subdirectories up to package.json

Dateien

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

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym