gemi 0.44.0 → 0.44.1
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/{chunk-7yrykpak.js → chunk-fksvw2gz.js} +2 -2
- package/dist/{chunk-7yrykpak.js.map → chunk-fksvw2gz.js.map} +1 -1
- package/dist/{chunk-q9z58372.js → chunk-ks0xswsd.js} +1 -1
- package/dist/{chunk-nfsdbjr5.js → chunk-revm9qww.js} +1 -1
- package/dist/{chunk-25d4feyv.js → chunk-y133781b.js} +14 -14
- package/dist/{chunk-25d4feyv.js.map → chunk-y133781b.js.map} +3 -3
- package/dist/kernel/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/services/file-storage/drivers/AzureBlobDriver.d.ts.map +1 -1
- package/dist/services/index.js +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-q9z58372.js.map → chunk-ks0xswsd.js.map} +0 -0
- /package/dist/{chunk-nfsdbjr5.js.map → chunk-revm9qww.js.map} +0 -0
package/dist/kernel/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{q as y}from"../chunk-h509r9s3.js";import{r as z}from"../chunk-tatd75jn.js";import{A as X,E as Y,G as N,H as Z,I as $,K as J,M as K,N as V,s as Q,v as W}from"../chunk-q8haepmm.js";import{$ as p,ba as H,fa as L}from"../chunk-fk9xtngd.js";import{ka as T}from"../chunk-ty3q916e.js";import{Aa as u,Ea as m,Ia as C,Ka as c,La as E,na as A,oa as R,ta as S,wa as d,xa as h,ya as k,za as I}from"../chunk-
|
|
2
|
+
import{q as y}from"../chunk-h509r9s3.js";import{r as z}from"../chunk-tatd75jn.js";import{A as X,E as Y,G as N,H as Z,I as $,K as J,M as K,N as V,s as Q,v as W}from"../chunk-q8haepmm.js";import{$ as p,ba as H,fa as L}from"../chunk-fk9xtngd.js";import{ka as T}from"../chunk-ty3q916e.js";import{Aa as u,Ea as m,Ia as C,Ka as c,La as E,na as A,oa as R,ta as S,wa as d,xa as h,ya as k,za as I}from"../chunk-y133781b.js";import"../chunk-knrx23te.js";import"../chunk-20376aj6.js";import"../chunk-ngnrytfh.js";import"../chunk-9s3te5pa.js";import"../chunk-qy3aczt9.js";import"../chunk-ytr22fm4.js";import"../chunk-kkdtznm5.js";import"../chunk-s49529x2.js";import"../chunk-5kx4hw7c.js";import"../chunk-nx8t65g3.js";import"../chunk-sdj112nj.js";import"../chunk-gv4v6qsg.js";import{Kb as _}from"../chunk-9r2k5ykk.js";import{_b as B}from"../chunk-whj1a3vr.js";import{$b as G,ac as O}from"../chunk-sdx8r2qb.js";import"../chunk-6gtmkbh0.js";class q extends O{service;static _name="CronServiceContainer";constructor(x){super();this.service=x;if(this.service.jobs.length===0)return;let P=globalThis.__gemiCronJobs??=new Map,f=async(w)=>{return await this.service.kernel.waitForBoot.call(this.service.kernel),await this.service.kernel.run.call(this.service.kernel,w)};for(let w of this.service.jobs){let U=new w;if(!U.name){console.error(`Cron job must have a name. Job: ${JSON.stringify(U)}`);continue}if(!U.cron){console.error(`Cron job must have an expression. Job: ${U.name}`);continue}P.get(U.name)?.stop();let l=Bun.cron(U.cron,()=>f(async()=>{try{await U.onTick.call(U)}catch(M){console.error(`Error executing cron job ${U.name}:`,M)}try{await U.callback.call(U)}catch(M){console.error(`Error in cron job ${U.name}:`,M)}try{await U.onComplete.call(U)}catch(M){console.error(`Error completing cron job ${U.name}:`,M)}}));P.set(U.name,l)}}}class D extends B{id=crypto.randomUUID();boot(){}}class F extends B{services=new Map;boot(){}}class j{emailServiceProvider=d;authenticationServiceProvider=N;middlewareServiceProvider=p;i18nServiceProvider=y;fileStorageServiceProvider=A;apiRouterServiceProvider=R;viewRouterServiceProvider=k;rateLimiterServiceProvider=S;broadcastingsServiceProvider=h;loggingServiceProvider=I;queueServiceProvider=u;imageServiceProvider=m;cronServiceProvider=C;kernelIdServiceProvider=D;redisServiceProvider=c;services={};booted=!1;boot(){this.services={[z._name]:new z(new this.emailServiceProvider),[H._name]:new H(new this.authenticationServiceProvider),[$._name]:new $(new this.middlewareServiceProvider),[T._name]:new T(new this.i18nServiceProvider),[W._name]:new W(new this.fileStorageServiceProvider),[V._name]:new V(new this.apiRouterServiceProvider),[K._name]:new K(new this.viewRouterServiceProvider),[L._name]:new L(new this.rateLimiterServiceProvider),[Q._name]:new Q(new this.broadcastingsServiceProvider),[X._name]:new X(new this.loggingServiceProvider),[_._name]:new _(new this.queueServiceProvider),[Z._name]:new Z(new this.imageServiceProvider),[q._name]:new q(new this.cronServiceProvider(this)),[J._name]:new J(new this.kernelIdServiceProvider),[Y._name]:new Y(new this.redisServiceProvider),[E._name]:new E(new F)},this.booted=!0}run(x){let P=this.services;return G.run(P,x)}destroy(){for(let x of Object.keys(this.services))delete this.services[x];G.disable()}async waitForBoot(){if(!this.booted)await new Promise((x)=>{while(!this.booted)setTimeout(()=>{if(this.booted)x()},10)})}}class v{prisma;constructor(x){this.prisma=x}async findUserByVerificationToken(x){return await this.prisma.user.findFirst({where:{verificationToken:x}})}async verifyUser(x){return await this.prisma.user.update({where:{email:x},data:{emailVerifiedAt:new Date}})}async createSessionV2(x){return await this.prisma.session.create({data:x,include:{user:{select:{password:!1,id:!0,email:!0,globalRole:!0,name:!0,locale:!0,publicId:!0,accounts:{select:{id:!0,publicId:!0,organization:!0,organizationRole:!0}}}}}})}async createSession(x){return await this.prisma.session.create({data:x,include:{user:!0}})}async createUser(x){return await this.prisma.user.create({data:x,omit:{password:!0}})}async deleteSession(x){return await this.prisma.session.deleteMany({where:{token:x.token}})}async findUserByEmailAddress(x,P){if(P)return await this.prisma.user.findUnique({where:{email:x,emailVerifiedAt:{not:null}}});return await this.prisma.user.findUnique({where:{email:x}})}async findSession(x){if(!x.token)return null;try{return await this.prisma.session.findUnique({where:{token:x.token},include:{user:{select:{password:!1,id:!0,email:!0,globalRole:!0,name:!0,locale:!0,publicId:!0,accounts:{select:{id:!0,publicId:!0,organization:!0,organizationRole:!0}}}}}})}catch(P){return console.log(P),null}}async updateSession(x){return await this.prisma.session.update({where:{token:x.token},data:{expiresAt:x.expiresAt},include:{user:{select:{id:!0,password:!1,email:!0,globalRole:!0,name:!0,locale:!0,publicId:!0,accounts:{select:{id:!0,publicId:!0,organization:!0,organizationRole:!0}},organization:!0}}}})}async updateUserPassword(x){return await this.prisma.user.update({where:{id:x.id},data:{password:x.password}})}async createPasswordResetToken(x){return await this.prisma.passwordResetToken.create({data:{user:{connect:{id:x.user.id}},token:x.token}})}async findPasswordResetToken(x){let{token:P}=x;return await this.prisma.passwordResetToken.findUnique({where:{token:P},include:{user:!0}})}async deleteAllUserSessions(x){return await this.prisma.session.deleteMany({where:{userId:x}})}async deletePasswordResetToken(x){let{token:P}=x;return await this.prisma.passwordResetToken.delete({where:{token:P}})}async createAccount(x){return await this.prisma.account.create({data:{organizationId:x.organizationId,organizationRole:x.organizationRole,userId:x.userId}})}async deleteInvitationById(x){return await this.prisma.organizationInvitation.delete({where:{publicId:x}})}async findInvitation(x,P){return await this.prisma.organizationInvitation.findFirst({where:{publicId:x,email:P}})}async createMagicLinkToken(x){return await this.prisma.magicLinkToken.create({data:{email:x.email,token:x.token,pin:x.pin}})}async findUserMagicLinkToken(x){let{token:P,pin:f,email:w}=x;if(P)return this.prisma.magicLinkToken.findUnique({where:{token_email:{email:w,token:P}}});else return await this.prisma.magicLinkToken.findUnique({where:{pin_email:{email:w,pin:f}}})}async deleteMagicLinkToken(x){return await this.prisma.magicLinkToken.deleteMany({where:{email:x}})}async createSocialAccount(x){return await this.prisma.socialAccount.create({data:x})}}export{v as PrismaAuthenticationAdapter,j as Kernel,N as AuthenticationServiceProvider};
|
|
3
3
|
|
|
4
4
|
//# debugId=4C9A3D295A07FEA264756E2164756E21
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{n as g}from"../chunk-ppt296ye.js";import{o as b}from"../chunk-m359awjw.js";import"../chunk-q8haepmm.js";import"../chunk-fk9xtngd.js";import"../chunk-ty3q916e.js";import"../chunk-9r2k5ykk.js";import"../chunk-whj1a3vr.js";import"../chunk-sdx8r2qb.js";import{ec as S}from"../chunk-6gtmkbh0.js";class i{app;instrumentation;constructor(f){this.app=new b({kernel:f.kernel}),this.instrumentation=f.instrumentation??((z,B)=>B(z))}async start(){if(Bun.env.NODE_ENV==="production"){let{httpProd:f}=await import("../chunk-
|
|
2
|
+
import{n as g}from"../chunk-ppt296ye.js";import{o as b}from"../chunk-m359awjw.js";import"../chunk-q8haepmm.js";import"../chunk-fk9xtngd.js";import"../chunk-ty3q916e.js";import"../chunk-9r2k5ykk.js";import"../chunk-whj1a3vr.js";import"../chunk-sdx8r2qb.js";import{ec as S}from"../chunk-6gtmkbh0.js";class i{app;instrumentation;constructor(f){this.app=new b({kernel:f.kernel}),this.instrumentation=f.instrumentation??((z,B)=>B(z))}async start(){if(Bun.env.NODE_ENV==="production"){let{httpProd:f}=await import("../chunk-ks0xswsd.js");await f(this.app,this.instrumentation.bind(this))}else{g();let{httpDev:f}=await import("../chunk-revm9qww.js");await f(this.app,this.instrumentation.bind(this))}}}export{i as Server};
|
|
3
3
|
|
|
4
4
|
//# debugId=7B6CB429BACC298B64756E2164756E21
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AzureBlobDriver.d.ts","sourceRoot":"","sources":["../../../../services/file-storage/drivers/AzureBlobDriver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAQrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEzE;;;GAGG;AACH,UAAU,cAAc;IACtB,QAAQ,CACN,MAAM,CAAC,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC;QACT,kBAAkB,CAAC,EAAE,MAAM,CAAC,cAAc,CA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,MAAM,EAAE,cAAc,GAAG,MAAM;IAkBrC,IAAI,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAsEzD,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;IAgBpC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM;CAc7C"}
|
package/dist/services/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Aa as u,Ba as v,Ca as w,Da as x,Ea as y,Fa as z,Ga as A,Ha as B,Ia as C,Ja as D,Ka as E,Ma as F,la as f,ma as g,na as h,oa as i,pa as j,qa as k,ra as l,sa as m,ta as n,ua as o,va as p,wa as q,xa as r,ya as s,za as t}from"../chunk-
|
|
2
|
+
import{Aa as u,Ba as v,Ca as w,Da as x,Ea as y,Fa as z,Ga as A,Ha as B,Ia as C,Ja as D,Ka as E,Ma as F,la as f,ma as g,na as h,oa as i,pa as j,qa as k,ra as l,sa as m,ta as n,ua as o,va as p,wa as q,xa as r,ya as s,za as t}from"../chunk-y133781b.js";import"../chunk-knrx23te.js";import"../chunk-20376aj6.js";import"../chunk-ngnrytfh.js";import"../chunk-9s3te5pa.js";import"../chunk-qy3aczt9.js";import"../chunk-ytr22fm4.js";import"../chunk-kkdtznm5.js";import"../chunk-s49529x2.js";import"../chunk-5kx4hw7c.js";import"../chunk-nx8t65g3.js";import"../chunk-sdj112nj.js";import"../chunk-gv4v6qsg.js";import"../chunk-9r2k5ykk.js";import{Mb as a,Nb as b,Ob as c,Vb as d,Wb as e}from"../chunk-whj1a3vr.js";import"../chunk-sdx8r2qb.js";import"../chunk-6gtmkbh0.js";export{b as toRangeHeaderValue,a as resolveRange,c as parseContentRange,B as XOAuthProvider,s as ViewRouterServiceProvider,F as Singleton,x as Sharp,j as S3Driver,p as ResendDriver,E as RedisServiceProvider,n as RateLimiterServiceProvider,l as RateLimiterDriver,d as RangeNotSatisfiableError,u as QueueServiceProvider,z as OAuthProvider,t as LoggingServiceProvider,v as Job,m as InMemoryRateLimiter,y as ImageOptimizationServiceProvider,w as ImageOptimizationDriver,A as GoogleOAuthProvider,g as FileSystemDriver,h as FileStorageServiceProvider,f as FileStorageDriver,e as FileNotFoundError,q as EmailServiceProvider,o as EmailDriver,C as CronServiceProvider,D as CronJob,r as BroadcastingServiceProvider,k as AzureBlobDriver,i as ApiRouterServiceProvider};
|
|
3
3
|
|
|
4
4
|
//# debugId=1E7100BBAF44775764756E2164756E21
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|