{"version":3,"sources":["../../../src/frameworks/fastify/index.ts","../../../src/frameworks/fastify/fastify.framework.ts"],"sourcesContent":["export * from './fastify.framework';\n","//#region Imports\n\nimport type { IncomingMessage, ServerResponse } from 'http';\nimport type { FastifyInstance } from 'fastify';\nimport type { FrameworkContract } from '../../contracts';\n\n//#endregion\n\n/**\n * The framework that forwards requests to fastify handler\n *\n * @breadcrumb Frameworks / FastifyFramework\n * @public\n */\nexport class FastifyFramework implements FrameworkContract<FastifyInstance> {\n  /**\n   * {@inheritDoc}\n   */\n  public sendRequest(\n    app: FastifyInstance,\n    request: IncomingMessage,\n    response: ServerResponse,\n  ): void {\n    // ref: https://www.fastify.io/docs/latest/Guides/Serverless/#implement-and-export-the-function\n    app.ready().then(() => app.server.emit('request', request, response));\n  }\n}\n"],"mappings":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GCcO,IAAMI,EAAN,KAAqE,CAd5E,MAc4E,CAAAC,EAAA,yBAInE,YACLC,EACAC,EACAC,EACM,CAENF,EAAI,MAAM,EAAE,KAAK,IAAMA,EAAI,OAAO,KAAK,UAAWC,EAASC,CAAQ,CAAC,CACtE,CACF","names":["fastify_exports","__export","FastifyFramework","__toCommonJS","FastifyFramework","__name","app","request","response"]}