balena-request
Advanced tools
Comparing version 11.3.0-fetch-ponyfill-v7-bce63fb3d099af7b3b3a7f81310b22856b092ce0 to 11.3.0-use-versioned-refresh-token-endpoint-1f062bf1833b470a7b02a5299101ad1ffa1a89c2
@@ -66,3 +66,3 @@ "use strict"; | ||
(yield utils.shouldRefreshKey(auth))) { | ||
if (!isAbsoluteUrl) { | ||
if (baseUrl && !isAbsoluteUrl) { | ||
yield exports.refreshToken({ baseUrl }); | ||
@@ -343,3 +343,3 @@ } | ||
response = yield exports.send({ | ||
url: '/whoami', | ||
url: '/user/v1/refresh-token', | ||
baseUrl, | ||
@@ -346,0 +346,0 @@ refreshToken: false, |
@@ -8,6 +8,11 @@ # Change Log | ||
# v11.3.0 | ||
## (2021-02-09) | ||
## (2021-03-12) | ||
* Update fetch-ponyfill to v7 [Thodoris Greasidis] | ||
* Switch to the versioned token refresh endpoint [Thodoris Greasidis] | ||
# v11.2.1 | ||
## (2021-03-12) | ||
* Prevent token refresh when no base url is provided [Thodoris Greasidis] | ||
# v11.2.0 | ||
@@ -14,0 +19,0 @@ ## (2020-11-12) |
@@ -88,3 +88,3 @@ /* | ||
) { | ||
if (!isAbsoluteUrl) { | ||
if (baseUrl && !isAbsoluteUrl) { | ||
await exports.refreshToken({ baseUrl }); | ||
@@ -390,3 +390,3 @@ } | ||
response = await exports.send({ | ||
url: '/whoami', | ||
url: '/user/v1/refresh-token', | ||
baseUrl, | ||
@@ -393,0 +393,0 @@ refreshToken: false, |
{ | ||
"name": "balena-request", | ||
"version": "11.3.0-fetch-ponyfill-v7-bce63fb3d099af7b3b3a7f81310b22856b092ce0", | ||
"version": "11.3.0-use-versioned-refresh-token-endpoint-1f062bf1833b470a7b02a5299101ad1ffa1a89c2", | ||
"description": "Balena HTTP client", | ||
@@ -57,3 +57,3 @@ "main": "build/request.js", | ||
"balena-errors": "^4.7.1", | ||
"fetch-ponyfill": "^7.1.0", | ||
"fetch-ponyfill": "^6.1.1", | ||
"fetch-readablestream": "^0.2.0", | ||
@@ -60,0 +60,0 @@ "progress-stream": "^2.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
171670
+ Addedfetch-ponyfill@6.1.1(transitive)
- Removedfetch-ponyfill@7.1.0(transitive)
Updatedfetch-ponyfill@^6.1.1