gemi 0.4.47 → 0.4.48
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/auth/AuthenticationServiceProvider.d.ts.map +1 -1
- package/dist/chunk-03c8e645c994d40a.js +1 -1
- package/dist/chunk-1900e90c372bb1d6.js +1 -1
- package/dist/chunk-3e3078cae755e834.js +2 -0
- package/dist/chunk-590cd512f9e72880.js +18 -0
- package/dist/chunk-5fd67245740e3908.js +1 -1
- package/dist/chunk-b9cba2a8bd5bcd3e.js +2 -0
- package/dist/chunk-c609d06153ed09ce.js +1 -1
- package/dist/chunk-d5709251a0493152.js +6 -0
- package/dist/chunk-d9577d79d4b718a6.js +2 -0
- package/dist/chunk-f34a78d9e3a62c43.js +3 -0
- package/dist/http/HttpRequest.d.ts +1 -1
- package/dist/http/HttpRequest.d.ts.map +1 -1
- package/dist/kernel/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/storage/index.js +4 -4
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{w as T,x as C} from"../chunk-e9695f3cdafee20b.js";import{y as E} from"../chunk-7ce930fe69575c87.js";import{
|
|
2
|
+
import{w as T,x as C} from"../chunk-e9695f3cdafee20b.js";import{y as E} from"../chunk-7ce930fe69575c87.js";import{xa as L} from"../chunk-90c5196ff1f827a8.js";import S from"path";function g(r){return r.map((t,c)=>{if(t.isDev)return x("style",{type:"text/css","data-vite-dev-id":t.id,children:t.content},t.id,!1,void 0,this);else return x("style",{type:"text/css",children:t.content},c,!1,void 0,this)})}import{jsxDEV as x} from"react/jsx-dev-runtime";var P=E(L(),1);async function w(r){const t=new URL(r.url),c=t.searchParams.get("url"),u=Number(t.searchParams.get("w")),s=Number(t.searchParams.get("h")),i=t.searchParams.get("fit")??"cover",o=Number(t.searchParams.get("q"));if(!c)return new Response(JSON.stringify({error:"url query parameter is required"}),{headers:{"Content-Type":"application/json"},status:404});const p=`${c.startsWith("http")?"":`http://localhost:${process.env.PORT||5173}`}${c}`,e=await fetch(p);if(!e.ok)return new Response(JSON.stringify({error:"Image not found",info:p}),{headers:{"Content-Type":"application/json"},status:404});const n=Buffer.from(await e.arrayBuffer()),f=await P.default(n).resize(u>0?u:void 0,s>0?s:void 0,{fit:i}).webp({quality:o>0?o:80,force:!0}).toBuffer();return e.headers.delete("Content-Type"),e.headers.delete("Content-Length"),new Response(f,{headers:{"Content-Type":"image/webp","Content-Length":`${f.byteLength}`,...e.headers.toJSON()}})}function R(r){return`
|
|
3
3
|
<!DOCTYPE html>
|
|
4
4
|
<html lang="en">
|
|
5
5
|
<head>
|