Skip to content

Commit b341434

Browse files
authored
Merge branch 'master' into meal_voucher_card_tokenization
2 parents 111da05 + 5d5a74f commit b341434

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@craftgate/craftgate",
3-
"version": "1.0.67",
3+
"version": "1.0.68",
44
"description": "Craftgate API JavaScript Client",
55
"main": "dist/index.js",
66
"scripts": {
@@ -38,6 +38,6 @@
3838
"typescript": "4.4.4"
3939
},
4040
"dependencies": {
41-
"axios": "0.31.1"
41+
"axios": "0.32.0"
4242
}
4343
}

src/lib/HttpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class HttpClient {
8585
config.headers[API_KEY_HEADER_NAME] = this._options.apiKey;
8686
config.headers[RANDOM_HEADER_NAME] = randomStr;
8787
config.headers[AUTH_VERSION_HEADER_NAME] = '1';
88-
config.headers[CLIENT_VERSION_HEADER_NAME] = 'craftgate-node-client:1.0.67';
88+
config.headers[CLIENT_VERSION_HEADER_NAME] = 'craftgate-node-client:1.0.68';
8989
if (this._options.language) {
9090
config.headers[LANGUAGE_HEADER_NAME] = this._options.language;
9191
}

test/lib/HttpClient.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ test('HttpClient::get() should set the correct PKI headers for given params', as
9797

9898
const mock = new MockAdapter(client._client);
9999

100-
mock.onGet('/foo', { params: { foo: 42 } })
100+
mock.onGet('/foo')
101101
.reply(config => {
102102
const allHeadersOk = [
103+
config.params && config.params.foo === 42,
103104
config.headers['x-api-key'] === 'dummy',
104105
config.headers['x-auth-version'] === '1',
105106
config.headers['x-rnd-key'] === 'foo',
@@ -131,9 +132,10 @@ test('HttpClient::delete() should set the correct PKI headers for given params',
131132

132133
const mock = new MockAdapter(client._client);
133134

134-
mock.onDelete('/foo', { params: { foo: 42 } })
135+
mock.onDelete('/foo')
135136
.reply(config => {
136137
const allHeadersOk = [
138+
config.params && config.params.foo === 42,
137139
config.headers['x-api-key'] === 'dummy',
138140
config.headers['x-auth-version'] === '1',
139141
config.headers['x-rnd-key'] === 'foo',

0 commit comments

Comments
 (0)