{"version":3,"file":"node.mjs","names":["srvxServe","srvxToNodeHandler"],"sources":["../src/_entries/node.ts"],"sourcesContent":["import type { Server, ServerOptions } from 'srvx';\nimport { serve as srvxServe, toNodeHandler as srvxToNodeHandler } from 'srvx/node';\nimport type { IApp } from '../app/types.ts';\n\nexport * from '../index.ts';\n\nexport function serve(app: IApp, options?: Omit<ServerOptions, 'fetch'>): Server {\n    return srvxServe({ fetch: app.fetch.bind(app), ...options });\n}\n\nexport function toNodeHandler(app: IApp) {\n    return srvxToNodeHandler(app.fetch.bind(app));\n}\n"],"mappings":";;;AAMA,SAAgB,MAAM,KAAW,SAAgD;CAC7E,OAAOA,QAAU;EAAE,OAAO,IAAI,MAAM,KAAK,IAAI;EAAE,GAAG;EAAS,CAAC;;AAGhE,SAAgB,cAAc,KAAW;CACrC,OAAOC,gBAAkB,IAAI,MAAM,KAAK,IAAI,CAAC"}