diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 24a93b8..12bce94 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,6 @@ # Releases +## VERSION 2.1.1 +- Fix `X-Expand-Responde-Nodes` header to request options ## VERSION 2.1.0 diff --git a/package.json b/package.json index 08f9d49..70e0286 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/utils/config/index.ts b/src/utils/config/index.ts index 8456da5..b62fdf6 100644 --- a/src/utils/config/index.ts +++ b/src/utils/config/index.ts @@ -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', @@ -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', }; diff --git a/src/utils/restClient/index.ts b/src/utils/restClient/index.ts index bcb37a7..4d6196d 100644 --- a/src/utils/restClient/index.ts +++ b/src/utils/restClient/index.ts @@ -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 } : {}), }; diff --git a/src/utils/restClient/restClient.spec.ts b/src/utils/restClient/restClient.spec.ts index 97c0126..6785f35 100644 --- a/src/utils/restClient/restClient.spec.ts +++ b/src/utils/restClient/restClient.spec.ts @@ -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', }, });