gemi 0.40.1 → 0.41.0
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/app/prismaExtension.d.ts +1 -5
- package/dist/app/prismaExtension.d.ts.map +1 -1
- package/dist/bin/gemi.js +171 -6641
- package/dist/bin/gemi.js.map +7 -7
- package/dist/{chunk-fs8zhe24.js → chunk-1skcvfwy.js} +1 -1
- package/dist/{chunk-0xabjqdt.js → chunk-59dfj0a9.js} +1 -1
- package/dist/{chunk-34bhbqbh.js → chunk-5a4hvpbv.js} +1 -1
- package/dist/{chunk-he4nzstf.js → chunk-8egdqsbr.js} +1 -1
- package/dist/{chunk-pca557td.js → chunk-8spbzsaa.js} +1 -1
- package/dist/{chunk-71e1rmh4.js → chunk-9gj1htjp.js} +2 -2
- package/dist/chunk-j7harkz1.js +6 -0
- package/dist/{chunk-py00anah.js.map → chunk-j7harkz1.js.map} +2 -2
- package/dist/{chunk-b2f631nw.js → chunk-k5ddt5jb.js} +1 -1
- package/dist/chunk-th24m9jj.js +4 -0
- package/dist/chunk-th24m9jj.js.map +13 -0
- package/dist/{chunk-8zrzjvj8.js → chunk-w102mcq7.js} +2 -2
- package/dist/{chunk-8zrzjvj8.js.map → chunk-w102mcq7.js.map} +1 -1
- package/dist/{chunk-tgrnmmg5.js → chunk-w262fkzb.js} +1 -1
- package/dist/config/index.d.ts +15 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/load.d.ts +3 -0
- package/dist/config/load.d.ts.map +1 -0
- package/dist/kernel/index.js +1 -1
- package/dist/server/httpDev.d.ts.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/services/index.js +1 -1
- package/package.json +6 -29
- package/dist/chunk-hq4yhfaq.js +0 -274
- package/dist/chunk-hq4yhfaq.js.map +0 -15
- package/dist/chunk-py00anah.js +0 -6
- /package/dist/{chunk-fs8zhe24.js.map → chunk-1skcvfwy.js.map} +0 -0
- /package/dist/{chunk-0xabjqdt.js.map → chunk-59dfj0a9.js.map} +0 -0
- /package/dist/{chunk-34bhbqbh.js.map → chunk-5a4hvpbv.js.map} +0 -0
- /package/dist/{chunk-he4nzstf.js.map → chunk-8egdqsbr.js.map} +0 -0
- /package/dist/{chunk-pca557td.js.map → chunk-8spbzsaa.js.map} +0 -0
- /package/dist/{chunk-71e1rmh4.js.map → chunk-9gj1htjp.js.map} +0 -0
- /package/dist/{chunk-b2f631nw.js.map → chunk-k5ddt5jb.js.map} +0 -0
- /package/dist/{chunk-tgrnmmg5.js.map → chunk-w262fkzb.js.map} +0 -0
package/dist/chunk-py00anah.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{h as C}from"./chunk-zjxbe8tx.js";import{G as Y}from"./chunk-9x52jhc8.js";import"./chunk-cy0yet3t.js";import{join as c}from"path";function S(b){let x=b.toString(),j=new Bun.CryptoHasher("sha1");return j.update(x),j.digest("hex")}if(!globalThis.URLPattern)globalThis.URLPattern=Y;import{exists as bb}from"fs/promises";import{createElement as w}from"react";async function k(b=[]){return b.map((x,j)=>{return w("style",{key:j,id:x?.id,type:"text/css",dangerouslySetInnerHTML:{__html:x.content}})})}import{existsSync as h}from"fs";import{basename as p}from"path";import{networkInterfaces as f}from"os";var v={name:"gemi",version:"0.40.1",private:!1,license:"MIT",author:"Enes Tufekci <enes@gemijs.dev>",bin:{gemi:"./dist/bin/gemi.js"},files:["dist/**/*"],module:!0,exports:{"./http":"./dist/http/index.js","./client":"./dist/client/index.js","./app":"./dist/app/index.js","./facades":"./dist/facades/index.js","./email":"./dist/email/index.js","./vite":"./dist/vite/index.mjs","./runtime":"./dist/runtime/index.js","./kernel":"./dist/kernel/index.js","./services":"./dist/services/index.js","./broadcasting":"./dist/broadcasting/index.js","./i18n":"./dist/i18n/index.js","./server":"./dist/server/index.js","./config":"./dist/config/index.js","./bun/preload":"./dist/bun/preload.js","./bun/plugin":"./dist/bun/plugin.js"},scripts:{lint:"oxlint",build:"NODE_ENV=production bun run build:core && bun run build:bin && bun run build:types && bun run build:client && bun run build:plugin && bun run build:client-types","build:core":"bun ./scripts/build.ts","build:bin":"bun build --outdir=./dist/bin --target=bun --external=vite --external=react-dom --external=react/jsx-runtime --external=bun --external=sharp --sourcemap ./bin/gemi.ts && bun ./scripts/prepare-bin.ts","build:client":"vite build -c vite.client.config.mts","build:plugin":"vite build -c vite.plugin.config.mts","build:types":"tsc","build:client-types":"tsc -p tsconfig.browser.json",test:"vitest",prepublishOnly:"bun run build && bun scripts/setupExports.ts prod",postpublish:"bun scripts/setupExports.ts dev"},dependencies:{"@aws-sdk/client-s3":"^3.629.0","@aws-sdk/s3-request-presigner":"^3.629.0","@prisma/client":"^6.4.1","ast-types":"^0.14.2",commander:"^12.1.0",history:"^5.3.0","jsx-email":"2.0.0-rc2.1",open:"^10.1.0","react-error-boundary":"^6.0.0",recast:"^0.23.9",resend:"^6.12.3",satori:"^0.12.2","temporal-polyfill":"^0.2.5","twitter-api-v2":"^1.20.2","urlpattern-polyfill":"^10.0.0",uuid:"^9.0.1"},devDependencies:{"@babel/parser":"^7.25.4","@repo/typescript-config":"*","@types/bun":"^1.3.14","@types/eslint":"^8.56.5","@types/node":"^20.11.24","@types/react":"^19.0.2","@types/react-dom":"^19.0.2",eslint:"^8.57.0",oxlint:"^1.39.0",react:"19.2.3","react-dom":"19.2.3",typescript:"^5.7.3",vitest:"^4.0.0"},peerDependencies:{react:">=19","react-dom":">=19",sharp:"^0.34.2",vite:"^8.0.0"}};var m=[" \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557\u2588\u2588\u2557","\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551","\u2588\u2588\u2551 \u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2551","\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2551","\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551\u2588\u2588\u2551"," \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D"],s=Boolean(process.stdout.isTTY)&&!process.env.NO_COLOR,Q=(b,x)=>s?`\x1B[${b}m${x}\x1B[0m`:x,l=(b)=>Q("1",b),A=(b)=>Q("2",b),I=(b)=>Q("36",b),o=(b)=>Q("32",b),t=(b)=>Q("35",b);function r(){return v.version??"?"}function a(b){for(let x of Object.values(f()))for(let j of x??[])if((j.family==="IPv4"||j.family===4)&&!j.internal)return`http://${j.address}:${b}`;return null}function e(b){return C(b).filter((x)=>h(x)).map((x)=>p(x))}function N(b){let{port:x,rootDir:j}=b,T=`http://localhost:${x}`,z=a(x),G=e(j),U=(_,E)=>` ${o("\u279C")} ${l(_.padEnd(9))}${E}`,$=["",...m.map((_)=>t(_)),"",` ${A("gemi")} ${I(`v${r()}`)}`,"",U("Local:",I(T)),U("Network:",z?I(z):A("unavailable")),U("Env:",G.length?G.join(", "):A("none")),""];console.log($.join(`
|
|
3
|
-
`))}var ub=process.env.GEMI_PROJECT_DIR??"",Z=c(process.cwd(),ub),xb=c(Z,"app"),R=c(Z,"dist");async function Eb(b,x){let j=await import(`${R}/client/.vite/manifest.json`),T=await import(`${R}/server/.vite/manifest.json`);process.env.ROOT_DIR=Z,process.env.APP_DIR=xb,process.env.DIST_DIR=R;let z={},G={},U={},$=(u,d)=>`"${u}": () => import("${d}")`,_=[];for(let u of["404",...b.getFlatComponentTree.call(b)]){let d=T[`app/views/${u}.tsx`];if(!d?.file){console.log(`Server file not found for ${u}`),console.log(d);let H=Object.keys(T),W=`app/views/${u}.tsx`;console.log(`${W} not found in server manifest`),console.log(H)}let L=await import(`${process.env.DIST_DIR}/server/${d?.file}`);z[u]=L.default,G[u]=L.OpenGraph;let O=j[`app/views/${u}.tsx`];if(O?.css&&O?.css.length>0)U[u]=O?.css;if(O)_.push($(u,`/${O?.file}`))}let E=`{${_.join(",")}}`,y=j["app/client.tsx"]?.css??[],D=(await Promise.all(y.map((u)=>Bun.file(`${R}/client/${u}`).text()))).join(`
|
|
4
|
-
`);async function q(u){let{pathname:d}=new URL(u.url),L=new Y({pathname:"/*.:filetype(png|txt|js|css|jpg|svg|jpeg|avif|webp|ico|ttf|map)"}),O=d.startsWith("/.well-known"),H=L.test({pathname:d})||O,W=d.startsWith("/api");if(H&&!W){let n=new URL(u.url),J=u.url.replace(n.origin,"").split("?")[0],X=`${R}/client${J.replace("/assets/assets","/assets")}`;if(!await bb(X)&&n.pathname.includes(".js"))return new Response(`if(caches){caches?.delete("${X}")}window.location.reload();export {}`,{headers:{"Content-Type":"application/javascript"}});try{let g=Bun.file(X),K=S(g.lastModified);return new Response(g.stream(),{headers:{"Content-Type":g.type,"Cache-Control":"public, max-age=31536000, must-revalidate","Content-Length":String(g.size),ETag:K}})}catch(g){return b.onException?.(g),new Response("Not found",{status:404})}}let F=b.fetch.bind(b);try{let n=await F(u);if(n instanceof Response)return n;else{let J=[];return J.push({content:D}),await n({getStyles:async(B)=>{if(!B)return k([]);for(let g of B){let K=j[`app/views/${g}.tsx`];for(let P of K?.css??[]){let i=Bun.file(`${process.env.DIST_DIR}/client/${P}`);J.push({id:P,content:await i.text()})}}return k(J)},bootstrapModules:[`/${j["app/client.tsx"].file}`],loaders:E,viewImportMap:z,ogMap:G,cssManifest:U})}}catch(n){if(console.error(n),d.startsWith("/api"))return new Response(JSON.stringify({error:n.message}),{status:500,headers:{"Content-Type":"application/json"}});return b.onException?.(n),new Response(n.stack,{status:500})}}let V=Bun.serve({maxRequestBodySize:10737418240,fetch:async(u,d)=>{if(!u.headers.get("x-forwarded-for")){let L=d.requestIP(u);if(L)u.headers.set("x-forwarded-for",L.address)}return await x(u,q)},idleTimeout:Number(process.env.SERVER_IDLE_TIMEOUT??10),port:process.env.PORT||5173});return N({port:V.port,rootDir:Z}),V}export{Eb as httpProd};
|
|
5
|
-
|
|
6
|
-
//# debugId=F0F63DC9FF48323064756E2164756E21
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|