@sigiljs/sigil
Version:
TypeScript-first Node.js HTTP framework offering schema-driven routing, modifier-based middleware, plugin extensibility, and flexible response templating
2 lines (1 loc) • 604 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class i{static name;name;$routes;$responseTemplate;$pluginConfig;logger;sigil;constructor(){const t=new.target;this.name=t.name;const e=new.target.prototype.__$ctx;if(!e)throw new Error("Cannot initialize plugin without context");this.$routes=e.routes,this.$pluginConfig=e.pluginConfig,this.sigil=e.sigilApi,this.$responseTemplate=e.responseTemplate,this.logger=e.logger}onRequestReceived(t){}onBeforeResponseSent(t,e){}onInternalServerStarted(t){}onUpdateCallback(){}onInitialize(){}onBeforeExit(){}}exports.SigilPlugin=i;