From 45c96a40481b6df1349632d304d107f78c6da42b Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Sun, 16 Jan 2022 17:24:18 +0100 Subject: [PATCH] Update to v1.1.8 --- README.md | 2 +- index.d.ts | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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": {},