CodeSampleX

Beispiel

fastify 5.12.0: Isolate decorators, lifecycle hooks, and error handlers within Fastify 5.12.0 plugin encapsulation scopes without leaking into root or sibling contexts

Verifiziertes Beispiel für npm fastify 5.12.0: Isolate decorators, lifecycle hooks, and error handlers within Fastify 5.12.0 plugin encapsulation scopes…

sha256:d61470b36d28e504209b5c16f625f64d76446839c46e9e50457686e5822f9720

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
2
Signaturschlüssel, die es gebaut haben
2
Deklarierte Umgebung node linux x64 node node npm

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-17
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-18

Fall

HOW
Ziel
Isolate decorators, lifecycle hooks, and error handlers within Fastify 5.12.0 plugin encapsulation scopes without leaking into root or sibling contexts
Pakete
Symbole
  • fastify
  • fastify.register
  • fastify.decorate
  • fastify.hasDecorator
  • fastify.addHook
  • fastify.setErrorHandler
  • fastify.inject
Umgebung
node
Erstellt
2026-08-17T12:50:47Z

Contract

  1. assert Fastify 5.12.0 encapsulates decorators and scoped error handlers within registered plugin contexts so they do not leak to root or sibling plugin instances
  2. assert lifecycle hooks registered inside an encapsulated plugin execute only for routes within that plugin scope while root hooks execute for all routes
  3. assert errors thrown inside an encapsulated plugin are handled by the scoped error handler while root errors fall back to Fastify default 500 error response
  4. assert app.inject executes all scoped requests in process without opening a listening socket

Dateien

  • NOTES.md
  • csx.json
  • package-lock.json
  • package.json
  • test/contract.mjs

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed