@niledatabase/elysia 5.3.3-alpha.0 → 5.3.3-alpha.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/index.d.mts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import * as elysia from 'elysia';
|
|
1
2
|
import { Elysia } from 'elysia';
|
|
2
3
|
import { Server } from '@niledatabase/server';
|
|
3
4
|
|
|
4
5
|
declare const nilePlugin: <S extends Server>(nile: S) => Elysia<"", {
|
|
5
|
-
decorator: {
|
|
6
|
-
nile: S;
|
|
7
|
-
};
|
|
6
|
+
decorator: {};
|
|
8
7
|
store: {};
|
|
9
8
|
derive: {};
|
|
10
|
-
resolve: {
|
|
9
|
+
resolve: {
|
|
10
|
+
readonly nile: S;
|
|
11
|
+
};
|
|
11
12
|
}, {
|
|
12
13
|
typebox: {};
|
|
13
14
|
error: {};
|
|
@@ -17,7 +18,9 @@ declare const nilePlugin: <S extends Server>(nile: S) => Elysia<"", {
|
|
|
17
18
|
macro: {};
|
|
18
19
|
macroFn: {};
|
|
19
20
|
parser: {};
|
|
20
|
-
response: {
|
|
21
|
+
response: elysia.ExtractErrorFromHandle<{
|
|
22
|
+
readonly nile: S;
|
|
23
|
+
}>;
|
|
21
24
|
}, {}, {
|
|
22
25
|
derive: {};
|
|
23
26
|
resolve: {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import * as elysia from 'elysia';
|
|
1
2
|
import { Elysia } from 'elysia';
|
|
2
3
|
import { Server } from '@niledatabase/server';
|
|
3
4
|
|
|
4
5
|
declare const nilePlugin: <S extends Server>(nile: S) => Elysia<"", {
|
|
5
|
-
decorator: {
|
|
6
|
-
nile: S;
|
|
7
|
-
};
|
|
6
|
+
decorator: {};
|
|
8
7
|
store: {};
|
|
9
8
|
derive: {};
|
|
10
|
-
resolve: {
|
|
9
|
+
resolve: {
|
|
10
|
+
readonly nile: S;
|
|
11
|
+
};
|
|
11
12
|
}, {
|
|
12
13
|
typebox: {};
|
|
13
14
|
error: {};
|
|
@@ -17,7 +18,9 @@ declare const nilePlugin: <S extends Server>(nile: S) => Elysia<"", {
|
|
|
17
18
|
macro: {};
|
|
18
19
|
macroFn: {};
|
|
19
20
|
parser: {};
|
|
20
|
-
response: {
|
|
21
|
+
response: elysia.ExtractErrorFromHandle<{
|
|
22
|
+
readonly nile: S;
|
|
23
|
+
}>;
|
|
21
24
|
}, {}, {
|
|
22
25
|
derive: {};
|
|
23
26
|
resolve: {};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var u=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var P=Object.prototype.hasOwnProperty;var y=(e,t)=>{for(var s in t)u(e,s,{get:t[s],enumerable:!0})},b=(e,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of m(t))!P.call(e,n)&&n!==s&&u(e,n,{get:()=>t[n],enumerable:!(r=S(t,n))||r.enumerable});return e};var R=e=>b(u({},"__esModule",{value:!0}),e);var I={};y(I,{nilePlugin:()=>C});module.exports=R(I);var l=require("elysia"),p=e=>e.replaceAll(/\{([^}]+)\}/g,":$1"),d=new WeakMap,f=0;function x(e){let t=d.get(e);return t||(f+=1,t=`nile-${f}`,d.set(e,t)),t}function U(e,t,s){if(!e.bodyUsed||t==="GET")return e;let r=new Headers(e.headers);r.delete("content-length");let n;if(s!=null)if(typeof s=="string"||s instanceof Uint8Array||s instanceof ArrayBuffer)n=s;else if((r.get("content-type")?.toLowerCase()??"").includes("application/x-www-form-urlencoded")&&typeof s=="object"){let a=new URLSearchParams;for(let[i,o]of Object.entries(s))o!=null&&a.append(i,String(o));n=a.toString()}else n=JSON.stringify(s);return new Request(e.url,{method:t,headers:r,body:n})}var C=e=>{if(!e)throw new Error("Nile instance is required. usage: nile(myNile)");typeof Bun<"u"&&(e.skipHostHeader=!0);let t=new l.Elysia({name:"nile",seed:x(e)}).resolve({as:"global"},async({request:n,params:c})=>{let a=c;return{nile:await e.withContext({headers:new Headers(n.headers),tenantId:a?.tenantId})??e}}),s={GET:e.paths.get.map(p),POST:e.paths.post.map(p),PUT:e.paths.put.map(p),DELETE:e.paths.delete.map(p)},r=n=>async c=>{let{request:a,params:i,body:o}=c,E=i?.tenantId,T=new Headers(a.headers),g=U(a,n,o),h={headers:T,tenantId:E};return await e.withContext(h,async w=>await w.handlers[n](g))};return s.GET.forEach(n=>t.get(n,r("GET"))),s.POST.forEach(n=>t.post(n,r("POST"),{parse:"none"})),s.PUT.forEach(n=>t.put(n,r("PUT"),{parse:"none"})),s.DELETE.forEach(n=>t.delete(n,r("DELETE"),{parse:"none"})),t};0&&(module.exports={nilePlugin});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { Elysia, Context } from \"elysia\";\nimport type { Server } from \"@niledatabase/server\";\n\nconst cleaner = (val: string) => val.replaceAll(/\\{([^}]+)\\}/g, \":$1\");\n\nexport const nilePlugin = <S extends Server>(nile: S) => {\n if (!nile) {\n throw new Error(\"Nile instance is required. usage: nile(myNile)\");\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof Bun !== \"undefined\") {\n nile.skipHostHeader = true;\n }\n\n const app = new Elysia({\n name: \"nile\",\n seed: nile,\n }).
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { Elysia, Context } from \"elysia\";\nimport type { Server } from \"@niledatabase/server\";\n\nconst cleaner = (val: string) => val.replaceAll(/\\{([^}]+)\\}/g, \":$1\");\n\nconst instanceSeeds = new WeakMap<object, string>();\nlet seedCounter = 0;\n\nfunction getPluginSeed(nile: object): string {\n let seed = instanceSeeds.get(nile);\n if (!seed) {\n seedCounter += 1;\n seed = `nile-${seedCounter}`;\n instanceSeeds.set(nile, seed);\n }\n return seed;\n}\n\nfunction reconstructRequestIfConsumed(\n request: Request,\n method: \"GET\" | \"POST\" | \"PUT\" | \"DELETE\",\n parsedBody: unknown\n): Request {\n if (!request.bodyUsed || method === \"GET\") {\n return request;\n }\n\n const headers = new Headers(request.headers);\n headers.delete(\"content-length\");\n let body: BodyInit | undefined;\n\n if (parsedBody !== undefined && parsedBody !== null) {\n if (\n typeof parsedBody === \"string\" ||\n parsedBody instanceof Uint8Array ||\n parsedBody instanceof ArrayBuffer\n ) {\n body = parsedBody as BodyInit;\n } else {\n const contentType = headers.get(\"content-type\")?.toLowerCase() ?? \"\";\n if (\n contentType.includes(\"application/x-www-form-urlencoded\") &&\n typeof parsedBody === \"object\"\n ) {\n const params = new URLSearchParams();\n for (const [k, v] of Object.entries(\n parsedBody as Record<string, unknown>\n )) {\n if (v !== undefined && v !== null) {\n params.append(k, String(v));\n }\n }\n body = params.toString();\n } else {\n body = JSON.stringify(parsedBody);\n }\n }\n }\n\n return new Request(request.url, {\n method,\n headers,\n body,\n });\n}\n\nexport const nilePlugin = <S extends Server>(nile: S) => {\n if (!nile) {\n throw new Error(\"Nile instance is required. usage: nile(myNile)\");\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof Bun !== \"undefined\") {\n nile.skipHostHeader = true;\n }\n\n const app = new Elysia({\n name: \"nile\",\n seed: getPluginSeed(nile),\n }).resolve({ as: \"global\" }, async ({ request, params }) => {\n const pathParams = params as Record<string, string> | undefined;\n const scoped = await nile.withContext({\n headers: new Headers(request.headers),\n tenantId: pathParams?.tenantId,\n });\n return { nile: (scoped ?? nile) as S };\n });\n\n const paths = {\n GET: nile.paths.get.map(cleaner),\n POST: nile.paths.post.map(cleaner),\n PUT: nile.paths.put.map(cleaner),\n DELETE: nile.paths.delete.map(cleaner),\n };\n\n const createHandler =\n (method: \"GET\" | \"POST\" | \"PUT\" | \"DELETE\") => async (ctx: Context) => {\n const { request, params: pathParams, body } = ctx;\n const tenantId = pathParams?.tenantId;\n const headers = new Headers(request.headers);\n const forwardRequest = reconstructRequestIfConsumed(\n request,\n method,\n body\n );\n\n const context = {\n headers,\n tenantId,\n };\n\n const response = await nile.withContext(context, async (nileCtx) => {\n return (await nileCtx.handlers[method](forwardRequest)) as Response;\n });\n\n return response;\n };\n\n paths.GET.forEach((path) => app.get(path, createHandler(\"GET\")));\n paths.POST.forEach((path) =>\n app.post(path, createHandler(\"POST\"), { parse: \"none\" })\n );\n paths.PUT.forEach((path) =>\n app.put(path, createHandler(\"PUT\"), { parse: \"none\" })\n );\n paths.DELETE.forEach((path) =>\n app.delete(path, createHandler(\"DELETE\"), { parse: \"none\" })\n );\n\n return app;\n};\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAgC,kBAG1BC,EAAWC,GAAgBA,EAAI,WAAW,eAAgB,KAAK,EAE/DC,EAAgB,IAAI,QACtBC,EAAc,EAElB,SAASC,EAAcC,EAAsB,CAC3C,IAAIC,EAAOJ,EAAc,IAAIG,CAAI,EACjC,OAAKC,IACHH,GAAe,EACfG,EAAO,QAAQH,CAAW,GAC1BD,EAAc,IAAIG,EAAMC,CAAI,GAEvBA,CACT,CAEA,SAASC,EACPC,EACAC,EACAC,EACS,CACT,GAAI,CAACF,EAAQ,UAAYC,IAAW,MAClC,OAAOD,EAGT,IAAMG,EAAU,IAAI,QAAQH,EAAQ,OAAO,EAC3CG,EAAQ,OAAO,gBAAgB,EAC/B,IAAIC,EAEJ,GAAgCF,GAAe,KAC7C,GACE,OAAOA,GAAe,UACtBA,aAAsB,YACtBA,aAAsB,YAEtBE,EAAOF,W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,EACAG,CACF,EAEMW,EAAU,CACd,QAAAZ,EACA,SAAAU,CACF,EAMA,OAJiB,MAAMhB,EAAK,YAAYkB,EAAS,MAAOC,GAC9C,MAAMA,EAAQ,SAASf,CAAM,EAAEa,CAAc,CACtD,CAGH,EAEF,OAAAJ,EAAM,IAAI,QAASO,GAAST,EAAI,IAAIS,EAAMN,EAAc,KAAK,CAAC,CAAC,EAC/DD,EAAM,KAAK,QAASO,GAClBT,EAAI,KAAKS,EAAMN,EAAc,MAAM,EAAG,CAAE,MAAO,MAAO,CAAC,CACzD,EACAD,EAAM,IAAI,QAASO,GACjBT,EAAI,IAAIS,EAAMN,EAAc,KAAK,EAAG,CAAE,MAAO,MAAO,CAAC,CACvD,EACAD,EAAM,OAAO,QAASO,GACpBT,EAAI,OAAOS,EAAMN,EAAc,QAAQ,EAAG,CAAE,MAAO,MAAO,CAAC,CAC7D,EAEOH,CACT","names":["index_exports","__export","nilePlugin","__toCommonJS","import_elysia","cleaner","val","instanceSeeds","seedCounter","getPluginSeed","nile","seed","reconstructRequestIfConsumed","request","method","parsedBody","headers","body","params","k","v","app","pathParams","paths","createHandler","ctx","tenantId","forwardRequest","context","nileCtx","path"]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Elysia as
|
|
1
|
+
import{Elysia as h}from"elysia";var p=e=>e.replaceAll(/\{([^}]+)\}/g,":$1"),u=new WeakMap,d=0;function w(e){let s=u.get(e);return s||(d+=1,s=`nile-${d}`,u.set(e,s)),s}function S(e,s,n){if(!e.bodyUsed||s==="GET")return e;let r=new Headers(e.headers);r.delete("content-length");let t;if(n!=null)if(typeof n=="string"||n instanceof Uint8Array||n instanceof ArrayBuffer)t=n;else if((r.get("content-type")?.toLowerCase()??"").includes("application/x-www-form-urlencoded")&&typeof n=="object"){let a=new URLSearchParams;for(let[i,o]of Object.entries(n))o!=null&&a.append(i,String(o));t=a.toString()}else t=JSON.stringify(n);return new Request(e.url,{method:s,headers:r,body:t})}var b=e=>{if(!e)throw new Error("Nile instance is required. usage: nile(myNile)");typeof Bun<"u"&&(e.skipHostHeader=!0);let s=new h({name:"nile",seed:w(e)}).resolve({as:"global"},async({request:t,params:c})=>{let a=c;return{nile:await e.withContext({headers:new Headers(t.headers),tenantId:a?.tenantId})??e}}),n={GET:e.paths.get.map(p),POST:e.paths.post.map(p),PUT:e.paths.put.map(p),DELETE:e.paths.delete.map(p)},r=t=>async c=>{let{request:a,params:i,body:o}=c,f=i?.tenantId,l=new Headers(a.headers),E=S(a,t,o),T={headers:l,tenantId:f};return await e.withContext(T,async g=>await g.handlers[t](E))};return n.GET.forEach(t=>s.get(t,r("GET"))),n.POST.forEach(t=>s.post(t,r("POST"),{parse:"none"})),n.PUT.forEach(t=>s.put(t,r("PUT"),{parse:"none"})),n.DELETE.forEach(t=>s.delete(t,r("DELETE"),{parse:"none"})),s};export{b as nilePlugin};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { Elysia, Context } from \"elysia\";\nimport type { Server } from \"@niledatabase/server\";\n\nconst cleaner = (val: string) => val.replaceAll(/\\{([^}]+)\\}/g, \":$1\");\n\nexport const nilePlugin = <S extends Server>(nile: S) => {\n if (!nile) {\n throw new Error(\"Nile instance is required. usage: nile(myNile)\");\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof Bun !== \"undefined\") {\n nile.skipHostHeader = true;\n }\n\n const app = new Elysia({\n name: \"nile\",\n seed: nile,\n }).
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { Elysia, Context } from \"elysia\";\nimport type { Server } from \"@niledatabase/server\";\n\nconst cleaner = (val: string) => val.replaceAll(/\\{([^}]+)\\}/g, \":$1\");\n\nconst instanceSeeds = new WeakMap<object, string>();\nlet seedCounter = 0;\n\nfunction getPluginSeed(nile: object): string {\n let seed = instanceSeeds.get(nile);\n if (!seed) {\n seedCounter += 1;\n seed = `nile-${seedCounter}`;\n instanceSeeds.set(nile, seed);\n }\n return seed;\n}\n\nfunction reconstructRequestIfConsumed(\n request: Request,\n method: \"GET\" | \"POST\" | \"PUT\" | \"DELETE\",\n parsedBody: unknown\n): Request {\n if (!request.bodyUsed || method === \"GET\") {\n return request;\n }\n\n const headers = new Headers(request.headers);\n headers.delete(\"content-length\");\n let body: BodyInit | undefined;\n\n if (parsedBody !== undefined && parsedBody !== null) {\n if (\n typeof parsedBody === \"string\" ||\n parsedBody instanceof Uint8Array ||\n parsedBody instanceof ArrayBuffer\n ) {\n body = parsedBody as BodyInit;\n } else {\n const contentType = headers.get(\"content-type\")?.toLowerCase() ?? \"\";\n if (\n contentType.includes(\"application/x-www-form-urlencoded\") &&\n typeof parsedBody === \"object\"\n ) {\n const params = new URLSearchParams();\n for (const [k, v] of Object.entries(\n parsedBody as Record<string, unknown>\n )) {\n if (v !== undefined && v !== null) {\n params.append(k, String(v));\n }\n }\n body = params.toString();\n } else {\n body = JSON.stringify(parsedBody);\n }\n }\n }\n\n return new Request(request.url, {\n method,\n headers,\n body,\n });\n}\n\nexport const nilePlugin = <S extends Server>(nile: S) => {\n if (!nile) {\n throw new Error(\"Nile instance is required. usage: nile(myNile)\");\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof Bun !== \"undefined\") {\n nile.skipHostHeader = true;\n }\n\n const app = new Elysia({\n name: \"nile\",\n seed: getPluginSeed(nile),\n }).resolve({ as: \"global\" }, async ({ request, params }) => {\n const pathParams = params as Record<string, string> | undefined;\n const scoped = await nile.withContext({\n headers: new Headers(request.headers),\n tenantId: pathParams?.tenantId,\n });\n return { nile: (scoped ?? nile) as S };\n });\n\n const paths = {\n GET: nile.paths.get.map(cleaner),\n POST: nile.paths.post.map(cleaner),\n PUT: nile.paths.put.map(cleaner),\n DELETE: nile.paths.delete.map(cleaner),\n };\n\n const createHandler =\n (method: \"GET\" | \"POST\" | \"PUT\" | \"DELETE\") => async (ctx: Context) => {\n const { request, params: pathParams, body } = ctx;\n const tenantId = pathParams?.tenantId;\n const headers = new Headers(request.headers);\n const forwardRequest = reconstructRequestIfConsumed(\n request,\n method,\n body\n );\n\n const context = {\n headers,\n tenantId,\n };\n\n const response = await nile.withContext(context, async (nileCtx) => {\n return (await nileCtx.handlers[method](forwardRequest)) as Response;\n });\n\n return response;\n };\n\n paths.GET.forEach((path) => app.get(path, createHandler(\"GET\")));\n paths.POST.forEach((path) =>\n app.post(path, createHandler(\"POST\"), { parse: \"none\" })\n );\n paths.PUT.forEach((path) =>\n app.put(path, createHandler(\"PUT\"), { parse: \"none\" })\n );\n paths.DELETE.forEach((path) =>\n app.delete(path, createHandler(\"DELETE\"), { parse: \"none\" })\n );\n\n return app;\n};\n"],"mappings":"AAAA,OAAS,UAAAA,MAAuB,SAGhC,IAAMC,EAAWC,GAAgBA,EAAI,WAAW,eAAgB,KAAK,EAE/DC,EAAgB,IAAI,QACtBC,EAAc,EAElB,SAASC,EAAcC,EAAsB,CAC3C,IAAIC,EAAOJ,EAAc,IAAIG,CAAI,EACjC,OAAKC,IACHH,GAAe,EACfG,EAAO,QAAQH,CAAW,GAC1BD,EAAc,IAAIG,EAAMC,CAAI,GAEvBA,CACT,CAEA,SAASC,EACPC,EACAC,EACAC,EACS,CACT,GAAI,CAACF,EAAQ,UAAYC,IAAW,MAClC,OAAOD,EAGT,IAAMG,EAAU,IAAI,QAAQH,EAAQ,OAAO,EAC3CG,EAAQ,OAAO,gBAAgB,EAC/B,IAAIC,EAEJ,GAAgCF,GAAe,KAC7C,GACE,OAAOA,GAAe,UACtBA,aAAsB,YACtBA,aAAsB,YAEtBE,EAAOF,WAEaC,EAAQ,IAAI,cAAc,GAAG,YAAY,GAAK,IAEpD,SAAS,mCAAmC,GACxD,OAAOD,GAAe,SACtB,CACA,IAAMG,EAAS,IAAI,gBACnB,OAAW,C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CAAM,EAAEc,CAAc,CACtD,CAGH,EAEF,OAAAJ,EAAM,IAAI,QAASO,GAAST,EAAI,IAAIS,EAAMN,EAAc,KAAK,CAAC,CAAC,EAC/DD,EAAM,KAAK,QAASO,GAClBT,EAAI,KAAKS,EAAMN,EAAc,MAAM,EAAG,CAAE,MAAO,MAAO,CAAC,CACzD,EACAD,EAAM,IAAI,QAASO,GACjBT,EAAI,IAAIS,EAAMN,EAAc,KAAK,EAAG,CAAE,MAAO,MAAO,CAAC,CACvD,EACAD,EAAM,OAAO,QAASO,GACpBT,EAAI,OAAOS,EAAMN,EAAc,QAAQ,EAAG,CAAE,MAAO,MAAO,CAAC,CAC7D,EAEOH,CACT","names":["Elysia","cleaner","val","instanceSeeds","seedCounter","getPluginSeed","nile","seed","reconstructRequestIfConsumed","request","method","parsedBody","headers","body","params","k","v","nilePlugin","app","pathParams","paths","createHandler","ctx","tenantId","forwardRequest","context","nileCtx","path"]}
|