@dewib/dw-api
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [2.4.0](https://github.com/gaetansenn/dw-api/compare/v2.3.0...v2.4.0) (2022-03-10) | ||
### Features | ||
* inject body to delete method ([16d74e8](https://github.com/gaetansenn/dw-api/commit/16d74e833ca64ddd9c996bcd01be1b3babcdc676)) | ||
## [2.3.0](https://github.com/gaetansenn/dw-api/compare/v2.2.0...v2.3.0) (2022-01-05) | ||
@@ -7,0 +14,0 @@ |
@@ -51,5 +51,6 @@ import { isObject, camelCase, isEmpty, isString, get } from 'lodash' | ||
delete (url, { fields, queryParams, multi, headers, scope } = {}) { | ||
delete (url, { fields, queryParams, multi, headers, scope, body = null } = {}) { | ||
return this.handleRequest({ | ||
method: 'delete', | ||
body, | ||
url, | ||
@@ -56,0 +57,0 @@ fields, |
{ | ||
"name": "@dewib/dw-api", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Wrap all your request into one place and map your response for your needs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
12843
207