@novu/framework
Version:
The Code-First Notifications Workflow SDK.
2 lines (1 loc) • 661 B
JavaScript
import{b as y,c as t,d as H}from"../chunk-66TEX6IH.js";import{h as l}from"../chunk-J2MPR7MB.js";import{getHeader as o,getQuery as a,readBody as p,send as n,setHeaders as m}from"h3";var h="h3",f=d=>new t({frameworkName:h,...d,handler:r=>({body:()=>p(r),headers:e=>o(r,e),method:()=>r.method,url:()=>new URL(String(r.path),`${process.env.NODE_ENV==="development"?"http":"https"}://${String(o(r,"host"))}`),queryString:e=>String(a(r)[e]),transformResponse:e=>{let{res:s}=r.node;return s.statusCode=e.status,m(r,e.headers),n(r,e.body)}})}).createHandler();export{y as Client,l as CronExpression,t as NovuRequestHandler,h as frameworkName,f as serve,H as workflow};