rajt 0.0.52 → 0.0.53

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/README.md CHANGED
@@ -11,10 +11,10 @@
11
11
 
12
12
  ## Packages
13
13
 
14
- | Package | Version (click for changelogs) |
15
- | ----------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------- |
16
- | [rajt](https://github.com/attla/rajt) | [![rajt version](https://img.shields.io/npm/v/rajt.svg?label=%20)](https://github.com/attla/rajt/CHANGELOG.md) |
17
- | [create-rajt](https://github.com/attla/create-rajt) | [![create-rajt version](https://img.shields.io/npm/v/create-rajt.svg?label=%20)](https://github.com/attla/create-rajt/CHANGELOG.md) |
14
+ | Package | Version |
15
+ | --------------------------------------------------- | :----------------------------------------------------------------------------- |
16
+ | [rajt](https://github.com/attla/rajt) | ![rajt version](https://img.shields.io/npm/v/rajt.svg?label=%20) |
17
+ | [create-rajt](https://github.com/attla/create-rajt) | ![create-rajt version](https://img.shields.io/npm/v/create-rajt.svg?label=%20) |
18
18
 
19
19
  ## License
20
20
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rajt",
3
3
  "description": "A serverless bundler layer, fully typed for AWS Lambda (Node.js and LLRT) and Cloudflare Workers.",
4
- "version": "0.0.52",
4
+ "version": "0.0.53",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "exports": {
package/src/http.ts CHANGED
@@ -32,6 +32,22 @@ export function Delete(path = '/') {
32
32
  return method('delete', path)
33
33
  }
34
34
 
35
+ export function Head(path = '/') {
36
+ return method('head', path)
37
+ }
38
+
39
+ export function Options(path = '/') {
40
+ return method('options', path)
41
+ }
42
+
43
+ export function Connect(path = '/') {
44
+ return method('connect', path)
45
+ }
46
+
47
+ export function Trace(path = '/') {
48
+ return method('trace', path)
49
+ }
50
+
35
51
  export function Middleware(...handlers: MiddlewareType[]) {
36
52
  return function (target: any) {
37
53
  mergeMiddleware(target, ...handlers)
package/src/routes.ts CHANGED
@@ -36,7 +36,6 @@ const walk = async (dir: string, baseDir: string, fn: Function, parentMw: string
36
36
  }
37
37
  }
38
38
 
39
-
40
39
  export async function getRoutes(
41
40
  dirs: string[] = ['actions', 'features']
42
41
  ): Promise<Route[]> {