nuxt-graphql-middleware 5.0.0-alpha.2 → 5.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -19
- package/dist/client/200.html +10 -10
- package/dist/client/404.html +10 -10
- package/dist/client/_nuxt/BM34SYth.js +1 -0
- package/dist/client/_nuxt/CROlboVl.js +1 -0
- package/dist/client/_nuxt/D5hBL5aZ.js +25 -0
- package/dist/client/_nuxt/FTbv7CO6.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/de61b0f7-ec5c-4f2f-addb-b5017c30afb1.json +1 -0
- package/dist/client/_nuxt/entry.Cn9qfNGa.css +1 -0
- package/dist/client/_nuxt/error-404.ehK72JOs.css +1 -0
- package/dist/client/_nuxt/error-500._g0akJim.css +1 -0
- package/dist/client/_nuxt/index.DGEN-H8t.css +1 -0
- package/dist/client/_nuxt/lIgCBhS_.js +2 -0
- package/dist/client/index.html +10 -10
- package/dist/client-options.d.mts +6 -0
- package/dist/client-options.mjs +5 -0
- package/dist/module.d.mts +74 -340
- package/dist/module.json +4 -4
- package/dist/module.mjs +1384 -589
- package/dist/runtime/components/CodeFrame.vue +52 -0
- package/dist/runtime/components/CodeFrame.vue.d.ts +7 -0
- package/dist/runtime/components/DevModeOverlay.vue +52 -0
- package/dist/runtime/components/DevModeOverlay.vue.d.ts +3 -0
- package/dist/runtime/components/ErrorExtensions.vue +21 -0
- package/dist/runtime/components/ErrorExtensions.vue.d.ts +5 -0
- package/dist/runtime/components/ErrorGroup.vue +78 -0
- package/dist/runtime/components/ErrorGroup.vue.d.ts +9 -0
- package/dist/runtime/composables/nuxtApp.d.ts +2 -2
- package/dist/runtime/composables/nuxtApp.js +21 -1
- package/dist/runtime/composables/useAsyncGraphqlQuery.d.ts +7 -7
- package/dist/runtime/composables/useAsyncGraphqlQuery.js +10 -2
- package/dist/runtime/composables/useGraphqlMutation.d.ts +4 -4
- package/dist/runtime/composables/useGraphqlMutation.js +1 -1
- package/dist/runtime/composables/useGraphqlQuery.d.ts +4 -4
- package/dist/runtime/composables/useGraphqlQuery.js +1 -1
- package/dist/runtime/composables/useGraphqlState.d.ts +1 -1
- package/dist/runtime/composables/useGraphqlState.js +1 -1
- package/dist/runtime/composables/useGraphqlUploadMutation.d.ts +4 -4
- package/dist/runtime/composables/useGraphqlUploadMutation.js +2 -2
- package/dist/runtime/css/output.css +1 -0
- package/dist/runtime/helpers/composables.d.ts +17 -20
- package/dist/runtime/helpers/composables.js +0 -5
- package/dist/runtime/plugins/devMode.d.ts +2 -0
- package/dist/runtime/plugins/devMode.js +23 -0
- package/dist/runtime/plugins/provideState.d.ts +1 -1
- package/dist/runtime/{serverHandler → server/api}/debug.js +3 -7
- package/dist/runtime/server/api/mutation.js +29 -0
- package/dist/runtime/server/api/query.js +30 -0
- package/dist/runtime/server/api/upload.d.ts +2 -0
- package/dist/runtime/{serverHandler → server/api}/upload.js +13 -11
- package/dist/runtime/{serverHandler → server}/helpers/index.d.ts +10 -12
- package/dist/runtime/{serverHandler → server}/helpers/index.js +9 -26
- package/dist/runtime/server/utils/doGraphqlRequest.d.ts +18 -0
- package/dist/runtime/server/utils/doGraphqlRequest.js +68 -0
- package/dist/runtime/server/utils/index.d.ts +1 -1
- package/dist/runtime/server/utils/index.js +1 -1
- package/dist/runtime/server/utils/useGraphqlMutation.d.ts +4 -4
- package/dist/runtime/server/utils/useGraphqlQuery.d.ts +4 -4
- package/dist/runtime/settings/index.d.ts +0 -14
- package/dist/runtime/settings/index.js +0 -6
- package/dist/runtime/types.d.ts +204 -3
- package/dist/server-options.d.mts +8 -0
- package/dist/server-options.mjs +5 -0
- package/dist/shared/nuxt-graphql-middleware.xfMm4rGk.d.mts +523 -0
- package/dist/types.d.mts +1 -7
- package/dist/utils.d.mts +15 -0
- package/dist/utils.mjs +18 -0
- package/package.json +64 -57
- package/dist/client/_nuxt/BS583yk8.js +0 -25
- package/dist/client/_nuxt/CZ2Qwgdk.js +0 -2
- package/dist/client/_nuxt/DpxjPVZy.js +0 -1
- package/dist/client/_nuxt/GOrnHr4p.js +0 -1
- package/dist/client/_nuxt/builds/meta/f823ebfd-daab-468f-8f6f-07a236da64bd.json +0 -1
- package/dist/client/_nuxt/entry.AjgXSF89.css +0 -1
- package/dist/client/_nuxt/error-404.BJkSn6RI.css +0 -1
- package/dist/client/_nuxt/error-500.TOCKLquH.css +0 -1
- package/dist/client/_nuxt/exxdaCPN.js +0 -1
- package/dist/client/_nuxt/index.D19Q16VT.css +0 -1
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -358
- package/dist/runtime/clientOptions/index.d.ts +0 -2
- package/dist/runtime/clientOptions/index.js +0 -3
- package/dist/runtime/serverHandler/index.js +0 -78
- package/dist/runtime/serverHandler/tsconfig.json +0 -3
- package/dist/runtime/serverOptions/defineGraphqlServerOptions.d.ts +0 -3
- package/dist/runtime/serverOptions/defineGraphqlServerOptions.js +0 -3
- package/dist/runtime/serverOptions/index.d.ts +0 -2
- package/dist/runtime/serverOptions/index.js +0 -2
- package/dist/types.d.ts +0 -7
- /package/dist/runtime/{serverHandler → server/api}/debug.d.ts +0 -0
- /package/dist/runtime/{serverHandler/index.d.ts → server/api/mutation.d.ts} +0 -0
- /package/dist/runtime/{serverHandler/upload.d.ts → server/api/query.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as P,d as B,r as q,a as N,o as I,b as U,c as T,e as H,f as V,h as A,g as L,p as F,i as z,j as x,k as O,l as M,m as D,n as $,w as W,q as G,s as K,_ as Q,t as J,v as X,x as S,y as C,z as Y,A as Z,B as ee}from"./BS583yk8.js";import{u as te}from"./exxdaCPN.js";async function E(t,n=P()){const{path:f,matched:h}=n.resolve(t);if(!h.length||(n._routePreloaded||(n._routePreloaded=new Set),n._routePreloaded.has(f)))return;const v=n._preloadPromises=n._preloadPromises||[];if(v.length>4)return Promise.all(v).then(()=>E(t,n));n._routePreloaded.add(f);const e=h.map(r=>{var u;return(u=r.components)==null?void 0:u.default}).filter(r=>typeof r=="function");for(const r of e){const u=Promise.resolve(r()).catch(()=>{}).finally(()=>v.splice(v.indexOf(u)));v.push(u)}await Promise.all(v)}const ne=(...t)=>t.find(n=>n!==void 0);function re(t){const n=t.componentName||"NuxtLink";function f(e){return typeof e=="string"&&e.startsWith("#")}function h(e,r){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return j(e,t.trailingSlash);const u="path"in e&&e.path!==void 0?e.path:r(e).path;return{...e,name:void 0,path:j(u,t.trailingSlash)}}function v(e){const r=P(),u=D(),s=x(()=>!!e.target&&e.target!=="_self"),p=x(()=>{const d=e.to||e.href||"";return typeof d=="string"&&O(d,{acceptRelative:!0})}),_=L("RouterLink"),b=typeof _!="string"?_.useLink:void 0,m=x(()=>{if(e.external)return!0;const d=e.to||e.href||"";return typeof d=="object"?!1:d===""||p.value}),a=x(()=>{const d=e.to||e.href||"";return m.value?d:h(d,r.resolve)}),c=m.value||b==null?void 0:b({...e,to:a}),y=x(()=>{var d;if(!a.value||p.value||f(a.value))return a.value;if(m.value){const k=typeof a.value=="object"&&"path"in a.value?z(a.value):a.value,w=typeof k=="object"?r.resolve(k).href:k;return h(w,r.resolve)}return typeof a.value=="object"?((d=r.resolve(a.value))==null?void 0:d.href)??null:h(M(u.app.baseURL,a.value),r.resolve)});return{to:a,hasTarget:s,isAbsoluteUrl:p,isExternal:m,href:y,isActive:(c==null?void 0:c.isActive)??x(()=>a.value===r.currentRoute.value.path),isExactActive:(c==null?void 0:c.isExactActive)??x(()=>a.value===r.currentRoute.value.path),route:(c==null?void 0:c.route)??x(()=>r.resolve(a.value)),async navigate(){await $(y.value,{replace:e.replace,external:m.value||s.value})}}}return B({name:n,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:v,setup(e,{slots:r}){const u=P(),{to:s,href:p,navigate:_,isExternal:b,hasTarget:m,isAbsoluteUrl:a}=v(e),c=q(!1),y=q(null),d=o=>{var l;y.value=e.custom?(l=o==null?void 0:o.$el)==null?void 0:l.nextElementSibling:o==null?void 0:o.$el};function k(o){var l,i;return!c.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===o:((l=e.prefetchOn)==null?void 0:l[o])??((i=t.prefetchOn)==null?void 0:i[o]))&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!se()}async function w(o=N()){if(c.value)return;c.value=!0;const l=typeof s.value=="string"?s.value:b.value?z(s.value):u.resolve(s.value).fullPath,i=b.value?new URL(l,window.location.href).href:l;await Promise.all([o.hooks.callHook("link:prefetch",i).catch(()=>{}),!b.value&&!m.value&&E(s.value,u).catch(()=>{})])}if(k("visibility")){const o=N();let l,i=null;I(()=>{const g=oe();U(()=>{l=T(()=>{var R;(R=y==null?void 0:y.value)!=null&&R.tagName&&(i=g.observe(y.value,async()=>{i==null||i(),i=null,await w(o)}))})})}),H(()=>{l&&V(l),i==null||i(),i=null})}return()=>{var i;if(!b.value&&!m.value&&!f(s.value)){const g={ref:d,to:s.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(k("interaction")&&(g.onPointerenter=w.bind(null,void 0),g.onFocus=w.bind(null,void 0)),c.value&&(g.class=e.prefetchedClass||t.prefetchedClass),g.rel=e.rel||void 0),A(L("RouterLink"),g,r.default)}const o=e.target||null,l=ne(e.noRel?"":e.rel,t.externalRelAttribute,a.value||m.value?"noopener noreferrer":"")||null;return e.custom?r.default?r.default({href:p.value,navigate:_,prefetch:w,get route(){if(!p.value)return;const g=new URL(p.value,window.location.href);return{path:g.pathname,fullPath:g.pathname,get query(){return F(g.search)},hash:g.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:p.value}},rel:l,target:o,isExternal:b.value||m.value,isActive:!1,isExactActive:!1}):null:A("a",{ref:y,href:p.value||null,rel:l,target:o},(i=r.default)==null?void 0:i.call(r))}}})}const ae=re(K);function j(t,n){const f=n==="append"?W:G;return O(t)&&!t.startsWith("http")?t:f(t,!0)}function oe(){const t=N();if(t._observer)return t._observer;let n=null;const f=new Map,h=(e,r)=>(n||(n=new IntersectionObserver(u=>{for(const s of u){const p=f.get(s.target);(s.isIntersecting||s.intersectionRatio>0)&&p&&p()}})),f.set(e,r),n.observe(e),()=>{f.delete(e),n==null||n.unobserve(e),f.size===0&&(n==null||n.disconnect(),n=null)});return t._observer={observe:h}}const ie=/2g/;function se(){const t=navigator.connection;return!!(t&&(t.saveData||ie.test(t.effectiveType)))}const le={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},ue={class:"max-w-520px text-center z-20"},ce=["textContent"],fe=["textContent"],de={class:"flex items-center justify-center w-full"},he={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return te({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(f,h)=>{const v=ae;return X(),J("div",le,[h[0]||(h[0]=S("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),S("div",ue,[S("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:C(t.statusCode)},null,8,ce),S("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:C(t.description)},null,8,fe),S("div",de,[Y(v,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:Z(()=>[ee(C(t.backHome),1)]),_:1})])])])}}},ge=Q(he,[["__scopeId","data-v-460438a1"]]);export{ge as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as s,t as a,v as i,x as e,y as o}from"./BS583yk8.js";import{u}from"./exxdaCPN.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return u({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(i(),a("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},b=s(f,[["__scopeId","data-v-9ae14d19"]]);export{b as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"f823ebfd-daab-468f-8f6f-07a236da64bd","timestamp":1741248339330,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--nui-c-context:125,125,125}html{background-color:#fff}html.dark{background-color:#151515;color:#fff;color-scheme:dark}::-moz-selection{background:#8884}::selection{background:#8884}.shiki .line{display:inline-block;position:relative;width:100%}.shiki.diff .line>span{filter:saturate(.75);opacity:.75}.shiki.diff .line-added,.shiki.diff .line-removed{scroll-margin:5em}.shiki.diff .line-added>span,.shiki.diff .line-removed>span{opacity:1!important;position:inherit;scroll-margin:20px;z-index:100}.shiki.diff .line-added>span{color:#218c3b!important}.shiki.diff .line-removed>span{color:#d15547!important}.shiki .line-added:after{background-color:#43885420}.shiki .line-added:after,.shiki .line-removed:after{bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.shiki .line-removed:after{background-color:#8f4c3926}::view-transition-new(root),::view-transition-old(root){animation:none;mix-blend-mode:normal}::view-transition-old(root){z-index:1}::view-transition-new(root){z-index:2147483646}.dark::view-transition-old(root){z-index:2147483646}.dark::view-transition-new(root){z-index:1}*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }@font-face{font-display:swap;font-family:DM Mono;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmmono/v14/aFTU7PB1QTsUX8KYthSQBLyM.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Mono;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmmono/v14/aFTU7PB1QTsUX8KYthqQBA.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRR232VGM.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRSW32.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}.carbon-chevron-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 22L6 12l1.4-1.4l8.6 8.6l8.6-8.6L26 12z'/%3E%3C/svg%3E")}.carbon-chevron-down,.carbon-search{background-color:currentColor;color:inherit;display:inline-block;height:1.2em;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle;width:1.2em}.carbon-search{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' display='inline-block' vertical-align='middle' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9'/%3E%3C/svg%3E")}.n-icon{flex:none}.n-border-base{border-color:#9ca3af33}.dark .n-bg-base{--un-bg-opacity:1;background-color:rgb(21 21 21/var(--un-bg-opacity))}.n-bg-base,.n-code-block{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.dark .n-code-block{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}.hover\:n-bg-hover:hover{background-color:#9ca3af08}.hover\:n-link-hover:hover{--un-text-opacity:1;color:rgba(var(--nui-c-context),var(--un-text-opacity));-webkit-text-decoration-color:rgba(var(--nui-c-context),var(--un-line-opacity))!important;--un-line-opacity:1!important;opacity:1!important;text-decoration-color:rgba(var(--nui-c-context),var(--un-line-opacity))!important;text-decoration-style:dotted}.n-link-base{text-decoration-color:#0003;text-decoration-line:underline;text-underline-offset:2px}.dark .n-link-base{text-decoration-color:#fff6}.focus-within\:n-focus-base:focus-within{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);--un-ring-color:rgba(var(--nui-c-context),.5)}.n-transition{transition-duration:.15s;transition-duration:.2s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.-bottom-1\/2{bottom:-50%}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-20{z-index:20}.grid{display:grid}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mb-16{margin-bottom:4rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb3{margin-bottom:.75rem}.mb4{margin-bottom:1rem}.ml-0\.3em{margin-left:.3em}.ml-0\.4em{margin-left:.4em}.ml2{margin-left:.5rem}.mr-0\.1em{margin-right:.1em}.mt1{margin-top:.25rem}.inline-block{display:inline-block}.h-1\/2{height:50%}.h-auto{height:auto}.h-full,[h-full=""]{height:100%}.h1{height:.25rem}.h2{height:.5rem}.max-w-520px{max-width:520px}.min-h-screen{min-height:100vh}.w-full{width:100%}.flex,[flex~="~"]{display:flex}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-col,[flex~=col]{flex-direction:column}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.place-content-center{place-content:center}.place-self-start,[place-self-start=""]{place-self:start}.items-center,[items-center=""]{align-items:center}.justify-center{justify-content:center}.flex-gap2,.gap2,[flex~=gap2]{gap:.5rem}.gap-3,[flex~=gap-3]{gap:.75rem}.of-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.b,.border{border-width:1px}.border-r{border-right-width:1px}[border~=b]{border-bottom-width:1px}.focus-within\:border-context:focus-within{--un-border-opacity:1;border-color:rgba(var(--nui-c-context),var(--un-border-opacity))}.border-b-gray-800{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-color:rgb(31 41 55/var(--un-border-bottom-opacity))}.border-r-gray-800{--un-border-opacity:1;--un-border-right-opacity:var(--un-border-opacity);border-right-color:rgb(31 41 55/var(--un-border-right-opacity))}.rounded{border-radius:.25rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.border-none{border-style:none}.bg-black\/5{background-color:#0000000d}.bg-gray-400\:10{background-color:#9ca3af1a}.bg-green-400\:10{background-color:#4ade801a}.bg-orange-400\:10{background-color:#fb923c1a}.bg-red-900{--un-bg-opacity:1;background-color:rgb(127 29 29/var(--un-bg-opacity))}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.dark .dark\:bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark .dark\:bg-white\/10{background-color:#ffffff1a}.p-8{padding:2rem}.p2{padding:.5rem}.p3{padding:.75rem}.p4{padding:1rem}.p5{padding:1.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-4,.px4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.px2{padding-left:.5rem;padding-right:.5rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2,.py2{padding-bottom:.5rem;padding-top:.5rem}.pb6{padding-bottom:1.5rem}.pl-1{padding-left:.25rem}.pr-2,.pr2{padding-right:.5rem}.pt-14{padding-top:3.5rem}.pt2{padding-top:.5rem}.text-center{text-align:center}.text-left{text-align:left}.text-1\.1em{font-size:1.1em}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.text-8xl{font-size:6rem;line-height:1}.text-base,[text-base=""]{font-size:1rem;line-height:1.5rem}.text-sm,[text-sm=""]{font-size:.875rem;line-height:1.25rem}.text-xl,[text-xl=""]{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.dark .dark\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.text-black{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.text-gray{--un-text-opacity:1;color:rgb(156 163 175/var(--un-text-opacity))}.text-green-400{--un-text-opacity:1;color:rgb(74 222 128/var(--un-text-opacity))}.text-orange-400{--un-text-opacity:1;color:rgb(251 146 60/var(--un-text-opacity))}.text-red-100{--un-text-opacity:1;color:rgb(254 226 226/var(--un-text-opacity))}.text-truegray{--un-text-opacity:1;color:rgb(163 163 163/var(--un-text-opacity))}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.leading-tight{line-height:1.25}.font-mono{font-family:DM Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.group:hover .group-hover\:opacity-100,.op100{opacity:1}.op50,[op50=""]{opacity:.5}.op60{opacity:.6}.op75,[op75=""]{opacity:.75}.opacity-0{opacity:0}.\!outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.transition,[transition=""]{transition-duration:.15s;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500,[duration-500=""]{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:640px){.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:text-8xl{font-size:6rem;line-height:1}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-460438a1]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-460438a1]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-460438a1]{background-color:#ffffff4d}.gradient-border[data-v-460438a1]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-460438a1]{background-color:#1414144d}.gradient-border[data-v-460438a1]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-460438a1]:before{background-size:400% auto;border-radius:.5rem;bottom:0;content:"";left:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;right:0;top:0;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-460438a1]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-460438a1]{position:fixed}.left-0[data-v-460438a1]{left:0}.right-0[data-v-460438a1]{right:0}.z-10[data-v-460438a1]{z-index:10}.z-20[data-v-460438a1]{z-index:20}.grid[data-v-460438a1]{display:grid}.mb-16[data-v-460438a1]{margin-bottom:4rem}.mb-8[data-v-460438a1]{margin-bottom:2rem}.max-w-520px[data-v-460438a1]{max-width:520px}.min-h-screen[data-v-460438a1]{min-height:100vh}.w-full[data-v-460438a1]{width:100%}.flex[data-v-460438a1]{display:flex}.cursor-pointer[data-v-460438a1]{cursor:pointer}.place-content-center[data-v-460438a1]{place-content:center}.items-center[data-v-460438a1]{align-items:center}.justify-center[data-v-460438a1]{justify-content:center}.overflow-hidden[data-v-460438a1]{overflow:hidden}.bg-white[data-v-460438a1]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-460438a1]{padding-left:1rem;padding-right:1rem}.px-8[data-v-460438a1]{padding-left:2rem;padding-right:2rem}.py-2[data-v-460438a1]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-460438a1]{text-align:center}.text-8xl[data-v-460438a1]{font-size:6rem;line-height:1}.text-xl[data-v-460438a1]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-460438a1]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-460438a1]{font-weight:300}.font-medium[data-v-460438a1]{font-weight:500}.leading-tight[data-v-460438a1]{line-height:1.25}.font-sans[data-v-460438a1]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-460438a1]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-460438a1]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-460438a1]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-460438a1]{padding-left:0;padding-right:0}.sm\:px-6[data-v-460438a1]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-460438a1]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-460438a1]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-460438a1]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-9ae14d19]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-9ae14d19]{position:fixed}.-bottom-1\/2[data-v-9ae14d19]{bottom:-50%}.left-0[data-v-9ae14d19]{left:0}.right-0[data-v-9ae14d19]{right:0}.grid[data-v-9ae14d19]{display:grid}.mb-16[data-v-9ae14d19]{margin-bottom:4rem}.mb-8[data-v-9ae14d19]{margin-bottom:2rem}.h-1\/2[data-v-9ae14d19]{height:50%}.max-w-520px[data-v-9ae14d19]{max-width:520px}.min-h-screen[data-v-9ae14d19]{min-height:100vh}.place-content-center[data-v-9ae14d19]{place-content:center}.overflow-hidden[data-v-9ae14d19]{overflow:hidden}.bg-white[data-v-9ae14d19]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-9ae14d19]{padding-left:2rem;padding-right:2rem}.text-center[data-v-9ae14d19]{text-align:center}.text-8xl[data-v-9ae14d19]{font-size:6rem;line-height:1}.text-xl[data-v-9ae14d19]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-9ae14d19]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-9ae14d19]{font-weight:300}.font-medium[data-v-9ae14d19]{font-weight:500}.leading-tight[data-v-9ae14d19]{line-height:1.25}.font-sans[data-v-9ae14d19]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-9ae14d19]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-9ae14d19]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-9ae14d19]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-9ae14d19]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-9ae14d19]{font-size:2.25rem;line-height:2.5rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as o,r as u,D as f,E as d,e as v,F as l,G as i,H as h,I as m}from"./BS583yk8.js";function U(t,a={}){const e=a.head||o();if(e)return e.ssr?e.push(t,a):p(e,t,a)}function p(t,a,e={}){const s=u(!1),n=u({});f(()=>{n.value=s.value?{}:m(a)});const r=t.push(n.value,e);return d(n,c=>{r.patch(c)}),h()&&(v(()=>{r.dispose()}),l(()=>{s.value=!0}),i(()=>{s.value=!1})),r}export{U as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.n-code-block-lines .shiki code{counter-increment:step calc(var(--start, 1) - 1);counter-reset:step}.n-code-block-lines .shiki code .line:before{content:counter(step);counter-increment:step;display:inline-block;margin-right:.5rem;padding-right:.5rem;text-align:right;width:2.5rem;color:#a3a3a380}details[data-v-c51ec814],summary[data-v-c51ec814]{border-style:none}summary[data-v-c51ec814]{list-style:none}details[open] summary[data-v-c51ec814]{border-style:none}details summary[data-v-c51ec814]::-webkit-details-marker{display:none}details[open] .chevron[data-v-c51ec814]{opacity:.75;transform:rotate(180deg)}
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { Types } from '@graphql-codegen/plugin-helpers';
|
|
3
|
-
import { SchemaASTConfig } from '@graphql-codegen/schema-ast';
|
|
4
|
-
import { GeneratorOptions } from 'graphql-typescript-deluxe';
|
|
5
|
-
import { H3Event } from 'h3';
|
|
6
|
-
import { FetchOptions, FetchResponse, FetchError } from 'ofetch';
|
|
7
|
-
import { ContextType, GraphqlServerResponse } from '#graphql-middleware/types';
|
|
8
|
-
import { GraphqlMiddlewareResponseUnion } from '#nuxt-graphql-middleware/generated-types';
|
|
9
|
-
|
|
10
|
-
type GraphqlMiddlewareRequestContext<C extends ContextType = ContextType> = {
|
|
11
|
-
client?: Partial<C>;
|
|
12
|
-
};
|
|
13
|
-
type GraphqlMiddlewareGraphqlEndpointMethod<C extends ContextType> = (event?: H3Event, operation?: string, operationName?: string, context?: GraphqlMiddlewareRequestContext<C>) => string | Promise<string> | undefined;
|
|
14
|
-
type GraphqlMiddlewareServerFetchOptionsMethod<C extends ContextType> = (event?: H3Event, operation?: string, operationName?: string, context?: GraphqlMiddlewareRequestContext<C>) => FetchOptions | Promise<FetchOptions>;
|
|
15
|
-
type GraphqlMiddlewareOnServerResponseMethod<ServerReponse, T, C extends ContextType> = (event: H3Event, response: FetchResponse<ServerReponse>, operation?: string, operationName?: string, context?: GraphqlMiddlewareRequestContext<C>) => T | Promise<T>;
|
|
16
|
-
type GraphqlMiddlewareOnServerErrorMethod<C extends ContextType> = (event: H3Event, error: FetchError, operation?: string, operationName?: string, context?: GraphqlMiddlewareRequestContext<C>) => any | Promise<any>;
|
|
17
|
-
type GraphqlMiddlewareDoRequestMethodContext<C extends ContextType> = {
|
|
18
|
-
/**
|
|
19
|
-
* The incoming request event from H3.
|
|
20
|
-
*/
|
|
21
|
-
event: H3Event;
|
|
22
|
-
/**
|
|
23
|
-
* The type of operation.
|
|
24
|
-
*/
|
|
25
|
-
operation: 'query' | 'mutation';
|
|
26
|
-
/**
|
|
27
|
-
* The name of the operation.
|
|
28
|
-
*/
|
|
29
|
-
operationName: string;
|
|
30
|
-
/**
|
|
31
|
-
* The operation document (the raw GraphQL query/mutation as a string).
|
|
32
|
-
*/
|
|
33
|
-
operationDocument: string;
|
|
34
|
-
/**
|
|
35
|
-
* Variables for the operation.
|
|
36
|
-
*/
|
|
37
|
-
variables: Record<string, any>;
|
|
38
|
-
/**
|
|
39
|
-
* For file uploads (which are done using FormData), this contains the full
|
|
40
|
-
* form data with these keys:
|
|
41
|
-
*
|
|
42
|
-
* - operations: string
|
|
43
|
-
* A JSON string of an object with "query", "variables" and "operationName" properties.
|
|
44
|
-
* Example:
|
|
45
|
-
* operations='{ "query": "mutation ($id: String!, $file: Upload!) { uploadFile(id: $id, file: $file) { id filename } }", "variables": { "file": null, "id": "1" } }'
|
|
46
|
-
* - map: string
|
|
47
|
-
* A JSON string of an object whose keys are strings starting at '0' and the values being an array with a single string:
|
|
48
|
-
* Example:
|
|
49
|
-
* map='{ "0": ["variables.file"] }'
|
|
50
|
-
* - [number]
|
|
51
|
-
* For every file there is a FormData entry with a name that matches the key in `map`.
|
|
52
|
-
* Example:
|
|
53
|
-
* 0=[Binary File]
|
|
54
|
-
*/
|
|
55
|
-
formData?: FormData;
|
|
56
|
-
context: GraphqlMiddlewareRequestContext<C>;
|
|
57
|
-
};
|
|
58
|
-
type GraphqlMiddlewareDoRequestMethod<T, C extends ContextType> = (context: GraphqlMiddlewareDoRequestMethodContext<C>) => Promise<T>;
|
|
59
|
-
/**
|
|
60
|
-
* Configuration options during runtime.
|
|
61
|
-
*/
|
|
62
|
-
type GraphqlMiddlewareServerOptions<Additions extends object = object, C extends ContextType = ContextType, CustomResponse = GraphqlServerResponse<GraphqlMiddlewareResponseUnion> & Additions> = {
|
|
63
|
-
/**
|
|
64
|
-
* Custom callback to return the GraphQL endpoint per request.
|
|
65
|
-
*
|
|
66
|
-
* The method is only called if no `doGraphqlRequest` method is implemented.
|
|
67
|
-
*
|
|
68
|
-
* @default undefined
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* function graphqlEndpoint(event, operation, operationName) {
|
|
73
|
-
* const language = getLanguageFromRequest(event)
|
|
74
|
-
* return `https://api.example.com/${language}/graphql`
|
|
75
|
-
* }
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
graphqlEndpoint?: GraphqlMiddlewareGraphqlEndpointMethod<C>;
|
|
79
|
-
/**
|
|
80
|
-
* Provide the options for the ofetch request to the GraphQL server.
|
|
81
|
-
*
|
|
82
|
-
* The method is only called if no `doGraphqlRequest` method is implemented.
|
|
83
|
-
*
|
|
84
|
-
* @default undefined
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```ts
|
|
88
|
-
* import { getHeader } from 'h3'
|
|
89
|
-
*
|
|
90
|
-
* // Pass the cookie from the client request to the GraphQL request.
|
|
91
|
-
* function serverFetchOptions(event, operation, operationName) {
|
|
92
|
-
* return {
|
|
93
|
-
* headers: {
|
|
94
|
-
* Cookie: getHeader(event, 'cookie')
|
|
95
|
-
* }
|
|
96
|
-
* }
|
|
97
|
-
* }
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
|
-
serverFetchOptions?: GraphqlMiddlewareServerFetchOptionsMethod<C>;
|
|
101
|
-
/**
|
|
102
|
-
* Handle the response from the GraphQL server.
|
|
103
|
-
*
|
|
104
|
-
* The method is only called if no `doGraphqlRequest` method is implemented.
|
|
105
|
-
*
|
|
106
|
-
* You can alter the response, add additional properties to the data, get
|
|
107
|
-
* and set headers, etc.
|
|
108
|
-
*
|
|
109
|
-
* ```ts
|
|
110
|
-
* import type { H3Event } from 'h3'
|
|
111
|
-
* import type { FetchResponse } from 'ofetch'
|
|
112
|
-
*
|
|
113
|
-
* function onServerResponse(event: H3Event, graphqlResponse: FetchResponse) {
|
|
114
|
-
* // Set a static header.
|
|
115
|
-
* event.node.res.setHeader('x-nuxt-custom-header', 'A custom header value')
|
|
116
|
-
*
|
|
117
|
-
* // Pass the set-cookie header from the GraphQL response to the client.
|
|
118
|
-
* const setCookie = graphqlResponse.headers.get('set-cookie')
|
|
119
|
-
* if (setCookie) {
|
|
120
|
-
* event.node.res.setHeader('set-cookie', setCookie)
|
|
121
|
-
* }
|
|
122
|
-
*
|
|
123
|
-
* // Add additional properties to the response.
|
|
124
|
-
* graphqlResponse._data.__customProperty = ['My', 'values']
|
|
125
|
-
*
|
|
126
|
-
* // Return the GraphQL response.
|
|
127
|
-
* return graphqlResponse._data
|
|
128
|
-
* }
|
|
129
|
-
* ```
|
|
130
|
-
*/
|
|
131
|
-
onServerResponse?: GraphqlMiddlewareOnServerResponseMethod<GraphqlServerResponse<GraphqlMiddlewareResponseUnion>, CustomResponse, C>;
|
|
132
|
-
/**
|
|
133
|
-
* Handle a fetch error from the GraphQL request.
|
|
134
|
-
*
|
|
135
|
-
* The method is only called if no `doGraphqlRequest` method is implemented.
|
|
136
|
-
*
|
|
137
|
-
* Note that errors are only thrown for responses that are not status
|
|
138
|
-
* 200-299. See https://github.com/unjs/ofetch#%EF%B8%8F-handling-errors for
|
|
139
|
-
* more information.
|
|
140
|
-
*
|
|
141
|
-
* ```ts
|
|
142
|
-
* import { createError } from 'h3'
|
|
143
|
-
* import type { H3Event } from 'h3'
|
|
144
|
-
* import type { FetchError } from 'ofetch'
|
|
145
|
-
*
|
|
146
|
-
* function onServerError(
|
|
147
|
-
* event: H3Event,
|
|
148
|
-
* error: FetchError,
|
|
149
|
-
* operation: string,
|
|
150
|
-
* operationName: string,
|
|
151
|
-
* ) {
|
|
152
|
-
* // Throw a h3 error.
|
|
153
|
-
* throw createError({
|
|
154
|
-
* statusCode: 500,
|
|
155
|
-
* statusMessage: `Couldn't execute GraphQL ${operation} "${operationName}".`,
|
|
156
|
-
* data: error.message
|
|
157
|
-
* })
|
|
158
|
-
* }
|
|
159
|
-
* ```
|
|
160
|
-
*/
|
|
161
|
-
onServerError?: GraphqlMiddlewareOnServerErrorMethod<C>;
|
|
162
|
-
/**
|
|
163
|
-
* Provide a custom fetch method for requests to the GraphQL server.
|
|
164
|
-
*
|
|
165
|
-
* This can be used if onServerError, onServerResponse, serverFetchOptions
|
|
166
|
-
* and graphqlEndpoint are not enough to meet your requirements.
|
|
167
|
-
*
|
|
168
|
-
* When this method is implemented, all other methods are not called.
|
|
169
|
-
*
|
|
170
|
-
* The method will be called in the /api/graphql server route and should
|
|
171
|
-
* perform the GraphQL request and return the response.
|
|
172
|
-
*
|
|
173
|
-
* An example use case might be to handle expired tokens.
|
|
174
|
-
*
|
|
175
|
-
* * ```ts
|
|
176
|
-
* async function doGraphqlRequest({
|
|
177
|
-
* event,
|
|
178
|
-
* operation,
|
|
179
|
-
* operationName,
|
|
180
|
-
* operationDocument,
|
|
181
|
-
* variables,
|
|
182
|
-
* }) {
|
|
183
|
-
* const result = await $fetch.raw('https://example.com/graphql', {
|
|
184
|
-
* method: 'POST'
|
|
185
|
-
* body: {
|
|
186
|
-
* query: operationDocument,
|
|
187
|
-
* variables,
|
|
188
|
-
* operationName
|
|
189
|
-
* },
|
|
190
|
-
* headers: {
|
|
191
|
-
* 'custom-header': 'foobar'
|
|
192
|
-
* }
|
|
193
|
-
* })
|
|
194
|
-
*
|
|
195
|
-
* return result._data
|
|
196
|
-
* }
|
|
197
|
-
* ```
|
|
198
|
-
*/
|
|
199
|
-
doGraphqlRequest?: GraphqlMiddlewareDoRequestMethod<CustomResponse, C>;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
interface ModuleOptions {
|
|
203
|
-
/**
|
|
204
|
-
* File glob patterns for the auto import feature.
|
|
205
|
-
*
|
|
206
|
-
* If left empty, no documents are auto imported.
|
|
207
|
-
*
|
|
208
|
-
* @default
|
|
209
|
-
* ```json
|
|
210
|
-
* ["**\/.{gql,graphql}", "!node_modules"]
|
|
211
|
-
* ```
|
|
212
|
-
*
|
|
213
|
-
* @example
|
|
214
|
-
* ```ts
|
|
215
|
-
* // Load .graphql files from pages folder and from a node_modules dependency.
|
|
216
|
-
* const autoImportPatterns = [
|
|
217
|
-
* './pages/**\/*.graphql',
|
|
218
|
-
* 'node_modules/my_library/dist/**\/*.graphql'
|
|
219
|
-
* ]
|
|
220
|
-
* ```
|
|
221
|
-
*/
|
|
222
|
-
autoImportPatterns?: string[];
|
|
223
|
-
/**
|
|
224
|
-
* Additional raw documents to include.
|
|
225
|
-
*
|
|
226
|
-
* Useful if for example you need to generate queries during build time.
|
|
227
|
-
*
|
|
228
|
-
* @default []
|
|
229
|
-
*
|
|
230
|
-
* @example
|
|
231
|
-
* ```ts
|
|
232
|
-
* const documents = [`
|
|
233
|
-
* query myQuery {
|
|
234
|
-
* articles {
|
|
235
|
-
* title
|
|
236
|
-
* id
|
|
237
|
-
* }
|
|
238
|
-
* }`,
|
|
239
|
-
* ...getGeneratedDocuments()
|
|
240
|
-
* ]
|
|
241
|
-
* ```
|
|
242
|
-
*/
|
|
243
|
-
documents?: string[];
|
|
244
|
-
/**
|
|
245
|
-
* Wether the useGraphqlQuery, useGraphqlMutation and useGraphqlState
|
|
246
|
-
* composables should be included.
|
|
247
|
-
*
|
|
248
|
-
* @default ```ts
|
|
249
|
-
* true
|
|
250
|
-
* ```
|
|
251
|
-
*/
|
|
252
|
-
includeComposables?: boolean;
|
|
253
|
-
/**
|
|
254
|
-
* Enable support for uploading files via GraphQL.
|
|
255
|
-
*
|
|
256
|
-
* When enabled, an additional `useGraphqlUploadMutation` composable is
|
|
257
|
-
* included, in addition to a new server endpoint that handles multi part
|
|
258
|
-
* file uploads for GraphQL mutations.
|
|
259
|
-
*/
|
|
260
|
-
enableFileUploads?: boolean;
|
|
261
|
-
/**
|
|
262
|
-
* Enable detailled debugging messages.
|
|
263
|
-
*
|
|
264
|
-
* @default false
|
|
265
|
-
*/
|
|
266
|
-
debug?: boolean;
|
|
267
|
-
/**
|
|
268
|
-
* The URL of the GraphQL server.
|
|
269
|
-
*
|
|
270
|
-
* For the runtime execution you can provide a method that determines the endpoint
|
|
271
|
-
* during runtime. See the server/graphqlMiddleware.serverOptions.ts documentation
|
|
272
|
-
* for more information.
|
|
273
|
-
*/
|
|
274
|
-
graphqlEndpoint: string;
|
|
275
|
-
/**
|
|
276
|
-
* Download the GraphQL schema and store it on disk.
|
|
277
|
-
*
|
|
278
|
-
* @default true
|
|
279
|
-
*/
|
|
280
|
-
downloadSchema?: boolean;
|
|
281
|
-
/**
|
|
282
|
-
* The prefix for the server route.
|
|
283
|
-
*
|
|
284
|
-
* @default ```ts
|
|
285
|
-
* "/api/graphql_middleware"
|
|
286
|
-
* ```
|
|
287
|
-
*/
|
|
288
|
-
serverApiPrefix?: string;
|
|
289
|
-
/**
|
|
290
|
-
* Path to the GraphQL schema file.
|
|
291
|
-
*
|
|
292
|
-
* If `downloadSchema` is `true`, the downloaded schema is written to this specified path.
|
|
293
|
-
* If `downloadSchema` is `false`, this file must be present in order to generate types.
|
|
294
|
-
*
|
|
295
|
-
* @default './schema.graphql'
|
|
296
|
-
*/
|
|
297
|
-
schemaPath?: string;
|
|
298
|
-
/**
|
|
299
|
-
* Options for graphql-typescript-deluxe code generator.
|
|
300
|
-
*/
|
|
301
|
-
codegenConfig?: GeneratorOptions;
|
|
302
|
-
/**
|
|
303
|
-
* Configuration for graphql-codegen when downloading the schema.
|
|
304
|
-
*/
|
|
305
|
-
codegenSchemaConfig?: {
|
|
306
|
-
/**
|
|
307
|
-
* Configure how the schema.graphql file should be generated.
|
|
308
|
-
*/
|
|
309
|
-
schemaAstConfig?: SchemaASTConfig;
|
|
310
|
-
/**
|
|
311
|
-
* Configure how the schema-ast introspection request should be made.
|
|
312
|
-
*
|
|
313
|
-
* Usually this is where you can provide a custom authentication header:
|
|
314
|
-
*
|
|
315
|
-
* ```typescript
|
|
316
|
-
* const codegenSchemaConfig = {
|
|
317
|
-
* urlSchemaOptions: {
|
|
318
|
-
* headers: {
|
|
319
|
-
* authentication: 'foobar',
|
|
320
|
-
* }
|
|
321
|
-
* }
|
|
322
|
-
* }
|
|
323
|
-
* ```
|
|
324
|
-
*/
|
|
325
|
-
urlSchemaOptions?: Types.UrlSchemaOptions;
|
|
326
|
-
};
|
|
327
|
-
/**
|
|
328
|
-
* Set to true if you want to output each compiled query and mutation in the
|
|
329
|
-
* .nuxt folder.
|
|
330
|
-
* Set to a path to output to a custom path.
|
|
331
|
-
*/
|
|
332
|
-
outputDocuments?: boolean | string;
|
|
333
|
-
/**
|
|
334
|
-
* Enable Nuxt DevTools integration.
|
|
335
|
-
*/
|
|
336
|
-
devtools?: boolean;
|
|
337
|
-
/**
|
|
338
|
-
* Client caching configuration.
|
|
339
|
-
*/
|
|
340
|
-
clientCache?: {
|
|
341
|
-
enabled?: boolean;
|
|
342
|
-
maxSize?: number;
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
interface ModuleHooks {
|
|
346
|
-
}
|
|
347
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
348
|
-
|
|
349
|
-
declare module '@nuxt/schema' {
|
|
350
|
-
interface AppConfig {
|
|
351
|
-
graphqlMiddleware: {
|
|
352
|
-
clientCacheEnabled: boolean;
|
|
353
|
-
clientCacheMaxSize: number;
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
export { type GraphqlMiddlewareServerOptions, type ModuleHooks, type ModuleOptions, _default as default };
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { defineEventHandler, getQuery, readBody } from "h3";
|
|
2
|
-
import {
|
|
3
|
-
queryParamToVariables,
|
|
4
|
-
getEndpoint,
|
|
5
|
-
getFetchOptions,
|
|
6
|
-
validateRequest,
|
|
7
|
-
onServerResponse,
|
|
8
|
-
onServerError,
|
|
9
|
-
extractRequestContext
|
|
10
|
-
} from "./helpers/index.js";
|
|
11
|
-
import { GraphqlMiddlewareOperation } from "./../settings/index.js";
|
|
12
|
-
import { operations } from "#graphql-documents";
|
|
13
|
-
import { serverOptions } from "#graphql-middleware-server-options-build";
|
|
14
|
-
import { useRuntimeConfig } from "#imports";
|
|
15
|
-
export default defineEventHandler(async (event) => {
|
|
16
|
-
const method = event.method;
|
|
17
|
-
const operation = event.context?.params?.operation;
|
|
18
|
-
const operationName = event.context?.params?.name;
|
|
19
|
-
validateRequest(method, operation, operationName, operations);
|
|
20
|
-
const operationDocument = operations[operation][operationName];
|
|
21
|
-
const queryParams = getQuery(event);
|
|
22
|
-
const context = extractRequestContext(queryParams);
|
|
23
|
-
const variables = operation === GraphqlMiddlewareOperation.Query ? queryParamToVariables(queryParams) : await readBody(event);
|
|
24
|
-
if (serverOptions.doGraphqlRequest) {
|
|
25
|
-
return serverOptions.doGraphqlRequest({
|
|
26
|
-
event,
|
|
27
|
-
operation,
|
|
28
|
-
operationName,
|
|
29
|
-
operationDocument,
|
|
30
|
-
variables,
|
|
31
|
-
context
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
const runtimeConfig = useRuntimeConfig().graphqlMiddleware;
|
|
35
|
-
const endpoint = await getEndpoint(
|
|
36
|
-
runtimeConfig,
|
|
37
|
-
serverOptions,
|
|
38
|
-
event,
|
|
39
|
-
operation,
|
|
40
|
-
operationName,
|
|
41
|
-
context
|
|
42
|
-
);
|
|
43
|
-
const fetchOptions = await getFetchOptions(
|
|
44
|
-
serverOptions,
|
|
45
|
-
event,
|
|
46
|
-
operation,
|
|
47
|
-
operationName,
|
|
48
|
-
context
|
|
49
|
-
);
|
|
50
|
-
return $fetch.raw(endpoint, {
|
|
51
|
-
// @todo: Remove any once https://github.com/unjs/nitro/pull/883 is released.
|
|
52
|
-
method: "POST",
|
|
53
|
-
body: {
|
|
54
|
-
query: operationDocument,
|
|
55
|
-
variables,
|
|
56
|
-
operationName
|
|
57
|
-
},
|
|
58
|
-
...fetchOptions
|
|
59
|
-
}).then((response) => {
|
|
60
|
-
return onServerResponse(
|
|
61
|
-
serverOptions,
|
|
62
|
-
event,
|
|
63
|
-
response,
|
|
64
|
-
operation,
|
|
65
|
-
operationName,
|
|
66
|
-
context
|
|
67
|
-
);
|
|
68
|
-
}).catch((error) => {
|
|
69
|
-
return onServerError(
|
|
70
|
-
serverOptions,
|
|
71
|
-
event,
|
|
72
|
-
error,
|
|
73
|
-
operation,
|
|
74
|
-
operationName,
|
|
75
|
-
context
|
|
76
|
-
);
|
|
77
|
-
});
|
|
78
|
-
});
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { GraphqlClientContext } from '#graphql-middleware-client-options';
|
|
2
|
-
import { type GraphqlMiddlewareServerOptions } from './../../types.js';
|
|
3
|
-
export declare function defineGraphqlServerOptions<T extends object>(options: GraphqlMiddlewareServerOptions<T, GraphqlClientContext>): GraphqlMiddlewareServerOptions<T, GraphqlClientContext>;
|
package/dist/types.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|