diff --git a/README.md b/README.md index efc884092..d29cb7064 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,10 @@ MIT Changelog ========= +[1.0.5](https://github.com/jdalrymple/node-gitlab-api/commit/fe5a5fbb8d01fb670b7c7b14ce2c5b7f30d71fe5) (2017-06-23) +------------------ +- Fixing bug within the delete API calls. It was missing query parameters + [1.0.4](https://github.com/jdalrymple/node-gitlab-api/commit/fe5a5fbb8d01fb670b7c7b14ce2c5b7f30d71fe5) (2017-06-23) ------------------ - Adding more to the labels API diff --git a/package.json b/package.json index b8f2c602a..ea9e23f4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-gitlab-api", - "version": "1.0.4", + "version": "1.0.5", "description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.", "main": "src/index.js", "directories": {}, diff --git a/src/API.js b/src/API.js index f214191e8..89e81be5c 100644 --- a/src/API.js +++ b/src/API.js @@ -50,10 +50,11 @@ class API { }); } - delete(endpoint) { + delete(endpoint, options) { return Request.delete({ url: this.url + endpoint, headers: this.headers, + qs: options, json: true, }); }