Skip to content

Commit a32952f

Browse files
committed
Release 2.4.3
1 parent a0bd999 commit a32952f

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [v2.4.3](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.4.3) (2020-06-01)
4+
- Change .babelrc to babel.config.js [\#36](https://github.com/uphold/uphold-sdk-javascript/pull/36) ([heberbranco](https://github.com/heberbranco))
5+
- Add size badge to README [\#35](https://github.com/uphold/uphold-sdk-javascript/pull/35) ([heberbranco](https://github.com/heberbranco))
6+
37
## [v2.4.2](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.4.2) (2020-05-19)
48
- Fix sorting on paginator [\#34](https://github.com/uphold/uphold-sdk-javascript/pull/34) ([pgom](https://github.com/pgom))
59
- Update dependencies [\#33](https://github.com/uphold/uphold-sdk-javascript/pull/33) ([heberbranco](https://github.com/heberbranco))

dist/browser/uphold-sdk-javascript.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/sdk.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class SDK {
4242
scope: 'uphold.scope',
4343
version: 'v0'
4444
};
45-
this.options = Object.assign(Object.assign({}, defaultOptions), options);
45+
this.options = Object.assign({}, defaultOptions, options);
4646
this.refreshRequestPromise = null;
4747
this.tokenRequestPromise = null; // Instantiate oauth client.
4848

@@ -74,7 +74,7 @@ class SDK {
7474

7575
if (authenticate && !headers.authorization) {
7676
request = this.getToken().then(tokens => {
77-
return this.client.request(url, method, body, Object.assign(Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(tokens.access_token)), headers), options);
77+
return this.client.request(url, method, body, Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(tokens.access_token), headers), options);
7878
});
7979
} else {
8080
request = this.client.request(url, method, body, headers, options);
@@ -167,7 +167,7 @@ class SDK {
167167
}
168168

169169
return this.refreshRequestPromise.then(tokens => {
170-
return this.client.request(url, method, body, Object.assign(Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(tokens.access_token)), headers), options).then(data => data.body);
170+
return this.client.request(url, method, body, Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(tokens.access_token), headers), options).then(data => data.body);
171171
});
172172
};
173173
}

dist/core/services/oauth-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class OAuthClient {
4747
body: (0, _utils.buildBody)({
4848
token
4949
}),
50-
headers: Object.assign(Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(token)), this.headers),
50+
headers: Object.assign({}, (0, _utils.buildBearerAuthorizationHeader)(token), this.headers),
5151
url: this.revokeUrl
5252
};
5353
}

dist/core/utils/error-factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function createError(error, response) {
1111
// eslint-disable-next-line no-unused-vars
1212
for (const SDKError of _errors.default) {
1313
if (SDKError.hasError && SDKError.hasError(error)) {
14-
return new SDKError(Object.assign(Object.assign({}, error), {}, {
14+
return new SDKError(Object.assign({}, error, {
1515
response
1616
}));
1717
}

dist/node/services/request-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
1414
class RequestClient extends _core.Client {
1515
request(url, method, body, headers = {}, options) {
1616
// eslint-disable-line max-params
17-
return (0, _requestPromise.default)(Object.assign(Object.assign({}, options), {}, {
17+
return (0, _requestPromise.default)(Object.assign({}, options, {
1818
body,
19-
headers: Object.assign(Object.assign({}, this.defaultHeaders), headers),
19+
headers: Object.assign({}, this.defaultHeaders, headers),
2020
method,
2121
resolveWithFullResponse: true,
2222
strictSSL: false,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uphold/uphold-sdk-javascript",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"description": "Uphold SDK for JavasScript",
55
"keywords": [
66
"api",

0 commit comments

Comments
 (0)