Skip to content

Commit

Permalink
Release 2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pgom committed Jun 1, 2020
1 parent a0bd999 commit a32952f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## [v2.4.3](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.4.3) (2020-06-01)
- Change .babelrc to babel.config.js [\#36](https://github.com/uphold/uphold-sdk-javascript/pull/36) ([heberbranco](https://github.com/heberbranco))
- Add size badge to README [\#35](https://github.com/uphold/uphold-sdk-javascript/pull/35) ([heberbranco](https://github.com/heberbranco))

## [v2.4.2](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.4.2) (2020-05-19)
- Fix sorting on paginator [\#34](https://github.com/uphold/uphold-sdk-javascript/pull/34) ([pgom](https://github.com/pgom))
- Update dependencies [\#33](https://github.com/uphold/uphold-sdk-javascript/pull/33) ([heberbranco](https://github.com/heberbranco))
Expand Down
2 changes: 1 addition & 1 deletion dist/browser/uphold-sdk-javascript.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/core/sdk.js
Expand Up @@ -42,7 +42,7 @@ class SDK {
scope: 'uphold.scope',
version: 'v0'
};
this.options = Object.assign(Object.assign({}, defaultOptions), options);
this.options = Object.assign({}, defaultOptions, options);
this.refreshRequestPromise = null;
this.tokenRequestPromise = null; // Instantiate oauth client.

Expand Down Expand Up @@ -74,7 +74,7 @@ class SDK {

if (authenticate && !headers.authorization) {
request = this.getToken().then(tokens => {
return this.client.request(url, method, body, Object.assign(Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(tokens.access_token)), headers), options);
return this.client.request(url, method, body, Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(tokens.access_token), headers), options);
});
} else {
request = this.client.request(url, method, body, headers, options);
Expand Down Expand Up @@ -167,7 +167,7 @@ class SDK {
}

return this.refreshRequestPromise.then(tokens => {
return this.client.request(url, method, body, Object.assign(Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(tokens.access_token)), headers), options).then(data => data.body);
return this.client.request(url, method, body, Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(tokens.access_token), headers), options).then(data => data.body);
});
};
}
Expand Down
2 changes: 1 addition & 1 deletion dist/core/services/oauth-client.js
Expand Up @@ -47,7 +47,7 @@ class OAuthClient {
body: (0, _utils.buildBody)({
token
}),
headers: Object.assign(Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(token)), this.headers),
headers: Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(token), this.headers),
url: this.revokeUrl
};
}
Expand Down
2 changes: 1 addition & 1 deletion dist/core/utils/error-factory.js
Expand Up @@ -11,7 +11,7 @@ function createError(error, response) {
// eslint-disable-next-line no-unused-vars
for (const SDKError of _errors.default) {
if (SDKError.hasError && SDKError.hasError(error)) {
return new SDKError(Object.assign(Object.assign({}, error), {}, {
return new SDKError(Object.assign({}, error, {
response
}));
}
Expand Down
4 changes: 2 additions & 2 deletions dist/node/services/request-client.js
Expand Up @@ -14,9 +14,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
class RequestClient extends _core.Client {
request(url, method, body, headers = {}, options) {
// eslint-disable-line max-params
return (0, _requestPromise.default)(Object.assign(Object.assign({}, options), {}, {
return (0, _requestPromise.default)(Object.assign({}, options, {
body,
headers: Object.assign(Object.assign({}, this.defaultHeaders), headers),
headers: Object.assign({}, this.defaultHeaders, headers),
method,
resolveWithFullResponse: true,
strictSSL: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@uphold/uphold-sdk-javascript",
"version": "2.4.2",
"version": "2.4.3",
"description": "Uphold SDK for JavasScript",
"keywords": [
"api",
Expand Down

0 comments on commit a32952f

Please sign in to comment.