@atlaskit/util-service-support
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,6 +0,16 @@ | ||
<a name="2.0.1"></a> | ||
## 2.0.1 (2017-07-24) | ||
<a name="2.0.2"></a> | ||
## 2.0.2 (2017-09-12) | ||
<a name="2.0.2"></a> | ||
## 2.0.2 (2017-09-12) | ||
### Bug Fixes | ||
* **component:** requestService can handle 204 responses with no content ([edf13d5](https://bitbucket.org/atlassian/atlaskit/commits/edf13d5)) | ||
<a name="2.0.1"></a> | ||
@@ -7,0 +17,0 @@ ## 2.0.1 (2017-07-24) |
@@ -76,3 +76,6 @@ import * as URL from 'url'; | ||
.then((response) => { | ||
if (response.ok) { | ||
if (response.status === 204) { | ||
return Promise.resolve(); | ||
} | ||
else if (response.ok) { | ||
return response.json(); | ||
@@ -79,0 +82,0 @@ } |
@@ -80,3 +80,6 @@ "use strict"; | ||
.then(function (response) { | ||
if (response.ok) { | ||
if (response.status === 204) { | ||
return Promise.resolve(); | ||
} | ||
else if (response.ok) { | ||
return response.json(); | ||
@@ -83,0 +86,0 @@ } |
{ | ||
"name": "@atlaskit/util-service-support", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"config": { | ||
@@ -18,4 +18,4 @@ "access": "public" | ||
"validate/typescript": "../../build/bin/validate.typescript.sh", | ||
"jest": "../../node_modules/.bin/jest -c ../../build/config/jest.config.js", | ||
"jest/watch": "../../node_modules/.bin/jest --watch -c ../../build/config/jest.config.js" | ||
"test:unit": "../../node_modules/.bin/jest -c ../../build/config/jest.config.js", | ||
"jest": "echo 'yarn run jest is deprecated and removed. please run yarn run test:unit instead.'" | ||
}, | ||
@@ -22,0 +22,0 @@ "files": [ |
@@ -86,3 +86,5 @@ import * as URL from 'url'; | ||
.then((response: Response) => { | ||
if (response.ok) { | ||
if (response.status === 204) { | ||
return Promise.resolve(); | ||
} else if (response.ok) { | ||
return response.json(); | ||
@@ -89,0 +91,0 @@ } else if (response.status === 401 && refreshedSecurityProvider) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39244
714