UNPKG

@novu/framework

Version:

The Code-First Notifications Workflow SDK.

2 lines (1 loc) 723 B
import{b as H,c as t,d as y}from"../chunk-ZF4VXELU.js";import{h as l,ja as S,ra as i}from"../chunk-YLCZR2QR.js";import{getHeader as o,getQuery as a,readBody as n,send as p,setHeaders as m}from"h3";var u="nuxt",w=d=>new t({frameworkName:u,...d,handler:r=>({queryString:e=>String(a(r)[e]),body:()=>n(r),headers:e=>o(r,e),url:()=>new URL(String(r.path),`${process.env.NODE_ENV==="development"?"http":"https"}://${String(o(r,"host"))}`),method:()=>r.method,transformResponse:e=>{let{res:s}=r.node;return s.statusCode=e.status,m(r,e.headers),p(r,e.body)}})}).createHandler();export{H as Client,l as CronExpression,t as NovuRequestHandler,i as SeverityLevelEnum,u as frameworkName,S as providerSchemas,w as serve,y as workflow};