Skip to content

Commit e0a97ac

Browse files
authored
Merge pull request #354 from mercadopago/release/2.1.1
Release/2.1.1
2 parents d6087e2 + e01ed5b commit e0a97ac

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

CHANGELOG.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Releases
2+
## VERSION 2.1.1
3+
- Fix `X-Expand-Responde-Nodes` header to request options
24

35
## VERSION 2.1.0
46

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mercadopago",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Mercadopago SDK for Node.js",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/utils/config/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export class AppConfig {
55
static readonly BASE_URL = 'https://api.mercadopago.com';
66
static readonly PRODUCT_ID = 'bc32b6ntrpp001u8nhkg';
77

8-
static SDK_VERSION = '2.1.0';
8+
static SDK_VERSION = '2.1.1';
99

1010
static readonly Headers = {
1111
AUTHORIZATION: 'Authorization',
@@ -18,7 +18,7 @@ export class AppConfig {
1818
INTEGRATOR_ID: 'X-Integrator-Id',
1919
PLATFORM_ID: 'X-Platform-Id',
2020
MELI_SESSION_ID: 'X-Meli-Session-Id',
21-
EXPAND_RESPONSE_NODES: 'X-Expand-Response-Nodes',
21+
EXPAND_RESPONDE_NODES: 'X-Expand-Responde-Nodes',
2222
CARD_VALIDATION: 'X-Card-Validation',
2323
};
2424

src/utils/restClient/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class RestClient {
8383
...(integratorId ? { [AppConfig.Headers.INTEGRATOR_ID]: integratorId } : {}),
8484
...(plataformId ? { [AppConfig.Headers.PLATFORM_ID]: plataformId } : {}),
8585
...(meliSessionId ? { [AppConfig.Headers.MELI_SESSION_ID]: meliSessionId } : {}),
86-
...(expandResponseNodes ? { [AppConfig.Headers.EXPAND_RESPONSE_NODES]: expandResponseNodes } : {}),
86+
...(expandResponseNodes ? { [AppConfig.Headers.EXPAND_RESPONDE_NODES]: expandResponseNodes } : {}),
8787
...(cardValidation ? { [AppConfig.Headers.CARD_VALIDATION]: cardValidation } : {}),
8888
};
8989

src/utils/restClient/restClient.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('RestClient', () => {
120120
'X-Product-Id': expect.any(String),
121121
'X-Tracking-Id': expect.any(String),
122122
'X-Meli-Session-Id': 'device_id',
123-
'X-Expand-Response-Nodes': 'gateway.reference',
123+
'X-Expand-Responde-Nodes': 'gateway.reference',
124124
'X-Card-Validation': 'card_validation',
125125
},
126126
});

0 commit comments

Comments
 (0)