gemi 0.4.77 → 0.4.79
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/dist/app/index.js +1 -1
- package/dist/chunk-0f4780d78065ed6f.js +2 -0
- package/dist/chunk-1488c30be491de9b.js +2 -0
- package/dist/chunk-1e96eb132f10e361.js +2 -0
- package/dist/{chunk-ff29cddef49e00e4.js → chunk-3bb296632dccdb02.js} +1 -1
- package/dist/chunk-3ccfbc315f74b335.js +2 -0
- package/dist/chunk-4573fe60e6dbd787.js +2 -0
- package/dist/chunk-4e41bf12b68e3aa2.js +2 -0
- package/dist/chunk-584b2ebaffb0c907.js +9 -0
- package/dist/chunk-611480789c8b04f4.js +3 -0
- package/dist/chunk-788611478527c8c3.js +6 -0
- package/dist/chunk-7ab2e8abae3c8902.js +2 -0
- package/dist/{chunk-89e90a79da7b7d4f.js → chunk-827fe74e5b55863c.js} +1 -1
- package/dist/chunk-8b1dc3428a74b1f4.js +2 -0
- package/dist/chunk-9b2a6bd400c9c6c7.js +18 -0
- package/dist/chunk-9ca526226958d45c.js +2 -0
- package/dist/chunk-a2795d68352fdd98.js +2 -0
- package/dist/chunk-ae46c8b6092236d2.js +2 -0
- package/dist/chunk-b092d6945f70ff1c.js +2 -0
- package/dist/chunk-bfc01c0e40e4551c.js +2 -0
- package/dist/chunk-e20c0e69128c42f5.js +2 -0
- package/dist/{chunk-20e12a96dfe36b97.js → chunk-e9695f3cdafee20b.js} +1 -1
- package/dist/{chunk-ce4edd37b38f213e.js → chunk-ed4022c20775d58f.js} +1 -1
- package/dist/chunk-f7784dffc6c59a9e.js +2 -0
- package/dist/chunk-fcaf4626e5fe5d26.js +3 -0
- package/dist/client/HttpReload.d.ts.map +1 -1
- package/dist/client/index.js +20 -18
- package/dist/client/useQuery.d.ts.map +1 -1
- package/dist/email/Email.d.ts +12 -5
- package/dist/email/Email.d.ts.map +1 -1
- package/dist/email/index.d.ts +0 -2
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +1 -1
- package/dist/facades/Prefetch.d.ts.map +1 -1
- package/dist/facades/index.js +1 -1
- package/dist/http/index.js +1 -1
- package/dist/kernel/Kernel.d.ts +4 -3
- package/dist/kernel/Kernel.d.ts.map +1 -1
- package/dist/kernel/context.d.ts +2 -2
- package/dist/kernel/context.d.ts.map +1 -1
- package/dist/kernel/index.js +1 -2
- package/dist/server/index.js +1 -1
- package/dist/services/ServiceContainer.d.ts +7 -0
- package/dist/services/ServiceContainer.d.ts.map +1 -0
- package/dist/services/email/EmailServiceContainer.d.ts +8 -0
- package/dist/services/email/EmailServiceContainer.d.ts.map +1 -0
- package/dist/services/email/EmailServiceProvider.d.ts +9 -0
- package/dist/services/email/EmailServiceProvider.d.ts.map +1 -0
- package/dist/services/email/drivers/EmailDriver.d.ts +5 -0
- package/dist/services/email/drivers/EmailDriver.d.ts.map +1 -0
- package/dist/services/email/drivers/ResendDriver.d.ts +8 -0
- package/dist/services/email/drivers/ResendDriver.d.ts.map +1 -0
- package/dist/{email → services/email/drivers}/types.d.ts +2 -3
- package/dist/services/email/drivers/types.d.ts.map +1 -0
- package/dist/services/index.d.ts +4 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -10
- package/package.json +2 -1
- package/dist/chunk-0db33ac43bd1d504.js +0 -2
- package/dist/chunk-1188efed5cccf7ee.js +0 -2
- package/dist/chunk-193d58e0d5debcce.js +0 -2
- package/dist/chunk-262b22a97074dc8e.js +0 -2
- package/dist/chunk-33a7a8e8edf3b1f5.js +0 -18
- package/dist/chunk-46c8ce96eb46b34e.js +0 -2
- package/dist/chunk-503c9c540c3e0da0.js +0 -3
- package/dist/chunk-510bdb2fff647a32.js +0 -2
- package/dist/chunk-64e4ceaa55b4483e.js +0 -2
- package/dist/chunk-6cb18981e131ebdb.js +0 -6
- package/dist/chunk-8401f0f53dc26633.js +0 -1
- package/dist/chunk-86828b70027cd6b5.js +0 -2
- package/dist/chunk-895d9b1ef7a65211.js +0 -2
- package/dist/chunk-92acbb11789c8564.js +0 -2
- package/dist/chunk-95e4f6637849e021.js +0 -9
- package/dist/chunk-a3a347630c23269b.js +0 -2
- package/dist/chunk-e2694d95f2b71db0.js +0 -2
- package/dist/email/EmailServiceProvider.d.ts +0 -8
- package/dist/email/EmailServiceProvider.d.ts.map +0 -1
- package/dist/email/EmailTemplate.d.ts +0 -22
- package/dist/email/EmailTemplate.d.ts.map +0 -1
- package/dist/email/providers.d.ts +0 -5
- package/dist/email/providers.d.ts.map +0 -1
- package/dist/email/types.d.ts.map +0 -1
package/dist/app/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{b as I1,e as F4,h as Z3,i as K3,l as
|
|
2
|
+
import{b as I1,e as F4,h as Z3,i as K3,l as $7} from"../http/index.js";import{w as R4,x as _4} from"../chunk-e9695f3cdafee20b.js";import{z as T1} from"../chunk-f7784dffc6c59a9e.js";import{A as IW,B as a1} from"../chunk-e3d242546d1a2927.js";var B4=a1((r6,z4)=>{var q7=function(w){return typeof w=="function"?w:(H)=>H.$extends(w)},C7=function(w){return w},b7=function(...w){return(H)=>H},y=function(w,H){let A=new RegExp(`\\x1b\\[${H}m`,"g"),W=`\x1B[${w}m`,X=`\x1B[${H}m`;return function($){return!x5.enabled||$==null?$:W+(~(""+$).indexOf(X)?$.replace(A,X+W):$)+X}},r7=function(w){let H={color:Q4[n7++%Q4.length],enabled:e0.enabled(w),namespace:w,log:e0.log,extend:()=>{}};return new Proxy((...W)=>{let{enabled:X,namespace:$,color:J,log:V}=H;if(W.length!==0&&t0.push([$,...W]),t0.length>i7&&t0.shift(),e0.enabled($)||X){let Y=W.map((K)=>typeof K=="string"?K:t7(K)),Z=`+${Date.now()-U4}ms`;U4=Date.now(),globalThis.DEBUG_COLORS?V(_3[J](J0($)),...Y,_3[J](Z)):V($,...Y,Z)}},{get:(W,X)=>H[X],set:(W,X,$)=>H[X]=$})},t7=function(w,H=2){let A=new Set;return JSON.stringify(w,(W,X)=>{if(typeof X=="object"&&X!==null){if(A.has(X))return"[Circular *]";A.add(X)}else if(typeof X=="bigint")return X.toString();return X},H)},e7=function(w=7500){let H=t0.map(([A,...W])=>`${A} ${W.map((X)=>typeof X=="string"?X:JSON.stringify(X)).join(" ")}`).join(`
|
|
3
3
|
`);return H.length<w?H:H.slice(-w)},w8=function(){t0.length=0},A8=function(){let w=process.env.PRISMA_QUERY_ENGINE_LIBRARY;if(!(w&&H8.default.existsSync(w))&&process.arch==="ia32")throw new Error('The default query engine type (Node-API, "library") is currently not supported for 32bit Node. Please set `engineType = "binary"` in the "generator" block of your "schema.prisma" file (or use the environment variables "PRISMA_CLIENT_ENGINE_TYPE=binary" and/or "PRISMA_CLI_QUERY_ENGINE_TYPE=binary".)')},X8=function(w,H){let A=H==="url";return w.includes("windows")?A?"query_engine.dll.node":`query_engine-${w}.dll.node`:w.includes("darwin")?A?`${S1}.dylib.node`:`${S1}-${w}.dylib.node`:A?`${S1}.so.node`:`${S1}-${w}.so.node`},W0=function(w){return Object.assign(w,{optional:()=>V8(w),and:(H)=>E(w,H),or:(H)=>Y8(w,H),select:(H)=>H===void 0?x4(w):x4(H,w)})},V8=function(w){return W0({[x0]:()=>({match:(H)=>{let A={},W=(X,$)=>{A[X]=$};return H===void 0?(y0(w).forEach((X)=>W(X,void 0)),{matched:!0,selections:A}):{matched:B0(w,H,W),selections:A}},getSelectionKeys:()=>y0(w),matcherType:"optional"})})},E=function(...w){return W0({[x0]:()=>({match:(H)=>{let A={},W=(X,$)=>{A[X]=$};return{matched:w.every((X)=>B0(X,H,W)),selections:A}},getSelectionKeys:()=>X1(w,y0),matcherType:"and"})})},Y8=function(...w){return W0({[x0]:()=>({match:(H)=>{let A={},W=(X,$)=>{A[X]=$};return X1(w,y0).forEach((X)=>W(X,void 0)),{matched:w.some((X)=>B0(X,H,W)),selections:A}},getSelectionKeys:()=>X1(w,y0),matcherType:"or"})})},k=function(w){return{[x0]:()=>({match:(H)=>({matched:!!w(H)})})}},x4=function(...w){let H=typeof w[0]=="string"?w[0]:void 0,A=w.length===2?w[1]:typeof w[0]=="string"?void 0:w[0];return W0({[x0]:()=>({match:(W)=>{let X={[H??h1]:W};return{matched:A===void 0||B0(A,W,($,J)=>{X[$]=J}),selections:X}},getSelectionKeys:()=>[H??h1].concat(A===void 0?[]:y0(A))})})},K0=function(w){return typeof w=="number"},T0=function(w){return typeof w=="string"},S0=function(w){return typeof w=="bigint"},i1=function(w){return new Z8(w,M3)},j3=function(w,...H){z8.warn()&&console.warn(`${j8.warn} ${w}`,...H)};async function O8(){let w=U3.default.platform(),H=process.arch;if(w==="freebsd"){let J=await d1("freebsd-version");if(J&&J.trim().length>0){let V=/^(\d+)\.?/.exec(J);if(V)return{platform:"freebsd",targetDistro:`freebsd${V[1]}`,arch:H}}}if(w!=="linux")return{platform:w,arch:H};let A=await R8(),W=await S8(),X=L8({arch:H,archFromUname:W,familyDistro:A.familyDistro}),{libssl:$}=await Q8(X);return{platform:"linux",libssl:$,arch:H,archFromUname:W,...A}}var F8=function(w){let H=/^ID="?([^"\n]*)"?$/im,A=/^ID_LIKE="?([^"\n]*)"?$/im,W=H.exec(w),X=W&&W[1]&&W[1].toLowerCase()||"",$=A.exec(w),J=$&&$[1]&&$[1].toLowerCase()||"",V=i1({id:X,idLike:J}).with({id:"alpine"},({id:Y})=>({targetDistro:"musl",familyDistro:Y,originalDistro:Y})).with({id:"raspbian"},({id:Y})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:Y})).with({id:"nixos"},({id:Y})=>({targetDistro:"nixos",originalDistro:Y,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:Y})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:Y})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:Y})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:Y})).when(({idLike:Y})=>Y.includes("debian")||Y.includes("ubuntu"),({id:Y})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:Y})).when(({idLike:Y})=>X==="arch"||Y.includes("arch"),({id:Y})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:Y})).when(({idLike:Y})=>Y.includes("centos")||Y.includes("fedora")||Y.includes("rhel")||Y.includes("suse"),({id:Y})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:Y})).otherwise(({id:Y})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:Y}));return i(`Found distro info:
|
|
4
4
|
${JSON.stringify(V,null,2)}`),V};async function R8(){let w="/etc/os-release";try{let H=await I5.default.readFile(w,{encoding:"utf-8"});return F8(H)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}var _8=function(w){let H=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(w);if(H){let A=`${H[1]}.x`;return T5(A)}},M4=function(w){let H=/libssl\.so\.(\d)(\.\d)?/.exec(w);if(H){let A=`${H[1]}${H[2]??".0"}.x`;return T5(A)}},T5=function(w){let H=(()=>{if(k5(w))return w;let A=w.split(".");return A[1]="0",A.join(".")})();if(G8.includes(H))return H},L8=function(w){return i1(w).with({familyDistro:"musl"},()=>(i('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:H})=>(i('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${H}-linux-gnu`,`/lib/${H}-linux-gnu`])).with({familyDistro:"rhel"},()=>(i('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:H,arch:A,archFromUname:W})=>(i(`Don't know any platform-specific paths for "${H}" on ${A} (${W})`),[]))};async function Q8(w){let H='grep -v "libssl.so.0"',A=await I4(w);if(A){i(`Found libssl.so file using platform-specific paths: ${A}`);let $=M4(A);if(i(`The parsed libssl version is: ${$}`),$)return{libssl:$,strategy:"libssl-specific-path"}}i('Falling back to "ldconfig" and other generic paths');let W=await d1(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${H}`);if(W||(W=await I4(["/lib64","/usr/lib64","/lib"])),W){i(`Found libssl.so file using "ldconfig" or other generic paths: ${W}`);let $=M4(W);if(i(`The parsed libssl version is: ${$}`),$)return{libssl:$,strategy:"ldconfig"}}let X=await d1("openssl version -v");if(X){i(`Found openssl binary with version: ${X}`);let $=_8(X);if(i(`The parsed openssl version is: ${$}`),$)return{libssl:$,strategy:"openssl-binary"}}return i("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function I4(w){for(let H of w){let A=await U8(H);if(A)return A}}async function U8(w){try{return(await I5.default.readdir(w)).find((H)=>H.startsWith("libssl.so.")&&!H.startsWith("libssl.so.0"))}catch(H){if(H.code==="ENOENT")return;throw H}}async function a3(){let{binaryTarget:w}=await S5();return w}var x8=function(w){return w.binaryTarget!==void 0};async function M8(){let{memoized:w,...H}=await S5();return H}async function S5(){if(x8(k1))return Promise.resolve({...k1,memoized:!0});let w=await O8(),H=I8(w);return k1={...w,binaryTarget:H},{...k1,memoized:!1}}var I8=function(w){let{platform:H,arch:A,archFromUname:W,libssl:X,targetDistro:$,familyDistro:J,originalDistro:V}=w;H==="linux"&&!["x64","arm64"].includes(A)&&j3(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${A}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${W}".`);let Y="1.1.x";if(H==="linux"&&X===void 0){let K=i1({familyDistro:J}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");j3(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${Y}".
|
|
5
5
|
${K}`)}let Z="debian";if(H==="linux"&&$===void 0&&i(`Distro is "${V}". Falling back to Prisma engines built for "${Z}".`),H==="darwin"&&A==="arm64")return"darwin-arm64";if(H==="darwin")return"darwin";if(H==="win32")return"windows";if(H==="freebsd")return $;if(H==="openbsd")return"openbsd";if(H==="netbsd")return"netbsd";if(H==="linux"&&$==="nixos")return"linux-nixos";if(H==="linux"&&A==="arm64")return`${$==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${X||Y}`;if(H==="linux"&&A==="arm")return`linux-arm-openssl-${X||Y}`;if(H==="linux"&&$==="musl"){let K="linux-musl";return!X||k5(X)?K:`${K}-openssl-${X}`}return H==="linux"&&$&&X?`${$}-openssl-${X}`:(H!=="linux"&&j3(`Prisma detected unknown OS "${H}" and may not work as expected. Defaulting to "linux".`),X?`${Z}-openssl-${X}`:$?`${$}-openssl-${Y}`:`${Z}-openssl-${Y}`)};async function T8(w){try{return await w()}catch{return}}var d1=function(w){return T8(async()=>{let H=await B8(w);return i(`Command "${w}" successfully returned "${H.stdout}"`),H.stdout})};async function S8(){return typeof U3.default.machine=="function"?U3.default.machine():(await d1("uname -m"))?.trim()}var k5=function(w){return w.startsWith("1.")},D8=function(w){return k8.default(w,w,{fallback:H0})},q8=function(){return f.default.join(__dirname,"../")},C8=function(w){if(process.platform==="win32")return;let H=T4.default.statSync(w),A=H.mode|64|8|1;if(H.mode===A){S4(`Execution permissions of ${w} are fine`);return}let W=A.toString(8).slice(-3);S4(`Have to call chmodPlusX on ${w}`),T4.default.chmodSync(w,W)},b8=function(w){let H=w.e,A=(V)=>`Prisma cannot find the required \`${V}\` system library in your system`,W=H.message.includes("cannot open shared object file"),X=`Please refer to the documentation about Prisma's system requirements: ${D8("https://pris.ly/d/system-requirements")}`,$=`Unable to require(\`${j1(w.id)}\`).`,J=i1({message:H.message,code:H.code}).with({code:"ENOENT"},()=>"File does not exist.").when(({message:V})=>W&&V.includes("libz"),()=>`${A("libz")}. Please install it and try again.`).when(({message:V})=>W&&V.includes("libgcc_s"),()=>`${A("libgcc_s")}. Please install it and try again.`).when(({message:V})=>W&&V.includes("libssl"),()=>{let V=w.platformInfo.libssl?`openssl-${w.platformInfo.libssl}`:"openssl";return`${A("libssl")}. Please install ${V} and try again.`}).when(({message:V})=>V.includes("GLIBC"),()=>`Prisma has detected an incompatible version of the \`glibc\` C standard library installed in your system. This probably means your system may be too old to run Prisma. ${X}`).when(({message:V})=>w.platformInfo.platform==="linux"&&V.includes("symbol not found"),()=>`The Prisma engines are not compatible with your system ${w.platformInfo.originalDistro} on (${w.platformInfo.archFromUname}) which uses the \`${w.platformInfo.binaryTarget}\` binaryTarget by default. ${X}`).otherwise(()=>`The Prisma engines do not seem to be compatible with your system. ${X}`);return`${$}
|