diff --git a/README.md b/README.md index 7da8822..605b9fc 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ An unlimited number of functions getting [`req`](#req-object) and [`res`](#res-o Key | Type | Description --------- | ------------------- | ----------- -`body` | `object` / `string` | Only available if method is `POST`, `PUT` or `PATCH`. Contains either the received body string or a parsed object if valid JSON was sent. +`body` | `object` / `string` | Only available if method is `POST`, `PUT`, `PATCH` or `DELETE`. Contains either the received body string or a parsed object if valid JSON was sent. `headers` | `object` | Object containing request headers `method` | `string` | HTTP request method `params` | `object` | Object containing all parameters defined in the url string diff --git a/index.d.ts b/index.d.ts index 6c4b890..1b4ccdf 100644 --- a/index.d.ts +++ b/index.d.ts @@ -44,7 +44,7 @@ declare class Router { * @property {Object} params Object containing all parameters defined in the url string * @property {Object} query Object containing all query parameters * @property {Object} headers Object containing request headers - * @property {Object|string} body Only available if method is `POST`, `PUT` or `PATCH`. Contains either the received body string or a parsed object if valid JSON was sent. + * @property {Object|string} body Only available if method is `POST`, `PUT`, `PATCH` or `DELETE`. Contains either the received body string or a parsed object if valid JSON was sent. * @property {Object} cf object containing custom Cloudflare properties. (https://developers.cloudflare.com/workers/examples/accessing-the-cloudflare-object) */ /** diff --git a/package.json b/package.json index 1fc17d7..e3e1b35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tsndr/cloudflare-worker-router", - "version": "1.1.7", + "version": "1.1.8", "description": "", "main": "index.js", "scripts": {},