@supacloud/elysia 0.2.0 → 0.4.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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Elysia } from "elysia";
2
2
  export interface CompiledRoute {
3
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
4
4
  path: string;
5
5
  /** Method name on the controller instance. */
6
6
  handler: string;
package/dist/index.js CHANGED
@@ -237,6 +237,12 @@ function createModulePlugin(compiled, services, ctxFactory = defaultRequestConte
237
237
  case "DELETE":
238
238
  plugin.delete(path, handler, schema);
239
239
  break;
240
+ case "HEAD":
241
+ plugin.head(path, handler, schema);
242
+ break;
243
+ case "OPTIONS":
244
+ plugin.options(path, handler, schema);
245
+ break;
240
246
  }
241
247
  }
242
248
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/elysia",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Elysia runtime adapter for SupaCloud compiled modules: application/request scopes, route registration and validation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",