bitbucket-ext
Advanced tools
Comparing version 0.0.2 to 0.0.3
## 0.0.2 | ||
## 0.0.3 | ||
* 1e010e0 fixing default-reviewers adding request | ||
## v0.0.2 | ||
* 5ffd5bc 0.0.2 | ||
* 616c4ac fixing command name | ||
@@ -4,0 +7,0 @@ * 4e22de0 fixing command name |
@@ -17,5 +17,3 @@ "use strict"; | ||
const config = config_1.loadConfig(); | ||
let result = request[method](uri) | ||
.set('content-type', 'application/json') | ||
.set('Authorization', `Basic ${config.basic}`); | ||
let result = request[method](uri).set('Authorization', `Basic ${config.basic}`); | ||
if (config.logCalls) { | ||
@@ -40,3 +38,3 @@ result = result.use(require('superdebug')((x) => console.info(`${x}\n\n\n`))); | ||
if (payload) { | ||
req = req.send(payload); | ||
req = req.set('content-type', 'application/json').send(payload); | ||
} | ||
@@ -46,3 +44,5 @@ return (await req).body; | ||
async patch(resource, path, payload) { | ||
return (await this.req(Methods.PATCH, resource, path).send(payload)).body; | ||
return (await this.req(Methods.PATCH, resource, path) | ||
.set('content-type', 'application/json') | ||
.send(payload)).body; | ||
} | ||
@@ -49,0 +49,0 @@ async delete(resource, path) { |
{ | ||
"name": "bitbucket-ext", | ||
"description": "A tool to manipulate your Bitbucket repositories more easily", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Thiago O Santos <tos.oliveira@gmail.com>" |
17962