bitbucket-v2
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -125,5 +125,5 @@ const _ = require('lodash'); | ||
headers, | ||
url: prebuiltURL, | ||
responseType: 'json', | ||
timeout: $options.timeout * 1000 | ||
json: true, | ||
timeout: $options.timeout * 1000, | ||
url: prebuiltURL | ||
}; | ||
@@ -184,7 +184,7 @@ | ||
const xhrOptions = { | ||
headers, | ||
json: true, | ||
method, | ||
headers, | ||
url: `https://${hostname}${path}`, | ||
responseType: 'json', | ||
timeout: options.timeout * 1000 | ||
timeout: options.timeout * 1000, | ||
url: `https://${hostname}${path}` | ||
}; | ||
@@ -191,0 +191,0 @@ if (method === 'POST') { |
{ | ||
"name": "bitbucket-v2", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Wrapper for the BitBucket API v2, the version required to use OAuth2. Includes support for XHR requests.", | ||
@@ -5,0 +5,0 @@ "author": "Jordan Wallet <jjwallet@gmail.com>", |
25818