Skip to content

Commit

Permalink
Merge pull request #354 from mercadopago/release/2.1.1
Browse files Browse the repository at this point in the history
Release/2.1.1
  • Loading branch information
VickieAranha authored Dec 27, 2024
2 parents d6087e2 + e01ed5b commit e0a97ac
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Releases
## VERSION 2.1.1
- Fix `X-Expand-Responde-Nodes` header to request options

## VERSION 2.1.0

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mercadopago",
"version": "2.1.0",
"version": "2.1.1",
"description": "Mercadopago SDK for Node.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class AppConfig {
static readonly BASE_URL = 'https://api.mercadopago.com';
static readonly PRODUCT_ID = 'bc32b6ntrpp001u8nhkg';

static SDK_VERSION = '2.1.0';
static SDK_VERSION = '2.1.1';

static readonly Headers = {
AUTHORIZATION: 'Authorization',
Expand All @@ -18,7 +18,7 @@ export class AppConfig {
INTEGRATOR_ID: 'X-Integrator-Id',
PLATFORM_ID: 'X-Platform-Id',
MELI_SESSION_ID: 'X-Meli-Session-Id',
EXPAND_RESPONSE_NODES: 'X-Expand-Response-Nodes',
EXPAND_RESPONDE_NODES: 'X-Expand-Responde-Nodes',
CARD_VALIDATION: 'X-Card-Validation',
};

Expand Down
2 changes: 1 addition & 1 deletion src/utils/restClient/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class RestClient {
...(integratorId ? { [AppConfig.Headers.INTEGRATOR_ID]: integratorId } : {}),
...(plataformId ? { [AppConfig.Headers.PLATFORM_ID]: plataformId } : {}),
...(meliSessionId ? { [AppConfig.Headers.MELI_SESSION_ID]: meliSessionId } : {}),
...(expandResponseNodes ? { [AppConfig.Headers.EXPAND_RESPONSE_NODES]: expandResponseNodes } : {}),
...(expandResponseNodes ? { [AppConfig.Headers.EXPAND_RESPONDE_NODES]: expandResponseNodes } : {}),
...(cardValidation ? { [AppConfig.Headers.CARD_VALIDATION]: cardValidation } : {}),
};

Expand Down
2 changes: 1 addition & 1 deletion src/utils/restClient/restClient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('RestClient', () => {
'X-Product-Id': expect.any(String),
'X-Tracking-Id': expect.any(String),
'X-Meli-Session-Id': 'device_id',
'X-Expand-Response-Nodes': 'gateway.reference',
'X-Expand-Responde-Nodes': 'gateway.reference',
'X-Card-Validation': 'card_validation',
},
});
Expand Down

0 comments on commit e0a97ac

Please sign in to comment.