@novu/framework
Version:
The Code-First Notifications Workflow SDK.
2 lines (1 loc) • 721 B
JavaScript
import{b as y,c as t,d as i}from"../chunk-ZF4VXELU.js";import{h as l,ja as H,ra as S}from"../chunk-YLCZR2QR.js";import{getHeader as o,getQuery as a,readBody as p,send as n,setHeaders as m}from"h3";var h="h3",N=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,S as SeverityLevelEnum,h as frameworkName,H as providerSchemas,N as serve,i as workflow};