From a979c9447a8b0f149e5d79e47aa3de312eadfbad Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Fri, 27 Dec 2024 15:26:09 -0300 Subject: [PATCH 1/7] Update index.ts --- src/utils/config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config/index.ts b/src/utils/config/index.ts index 8456da5..7cac075 100644 --- a/src/utils/config/index.ts +++ b/src/utils/config/index.ts @@ -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', }; From 982552a420494ec0f1101fa1512158e96e800ace Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Fri, 27 Dec 2024 15:26:54 -0300 Subject: [PATCH 2/7] Update restClient.spec.ts --- src/utils/restClient/restClient.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', }, }); From f01577041d201d0675593df8e31660f858541c2e Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Fri, 27 Dec 2024 15:27:46 -0300 Subject: [PATCH 3/7] Update CHANGELOG.MD --- CHANGELOG.MD | 2 ++ 1 file changed, 2 insertions(+) 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 From 6c9fa247782590f42986727c265056d20d41daf3 Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Fri, 27 Dec 2024 15:28:43 -0300 Subject: [PATCH 4/7] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 1d4a19bd6afe04104bdee39dd848334c48f371a1 Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Fri, 27 Dec 2024 15:29:41 -0300 Subject: [PATCH 5/7] Update index.ts --- src/utils/config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config/index.ts b/src/utils/config/index.ts index 7cac075..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', From 16d62902ce2b503e59eedf491990738a35dfa314 Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Fri, 27 Dec 2024 15:43:51 -0300 Subject: [PATCH 6/7] Update index.ts --- src/utils/restClient/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/restClient/index.ts b/src/utils/restClient/index.ts index bcb37a7..a2ec3f7 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 } : {}), + ...(expandRespondeNodes ? { [AppConfig.Headers.EXPAND_RESPONDE_NODES]: expandRespondeNodes } : {}), ...(cardValidation ? { [AppConfig.Headers.CARD_VALIDATION]: cardValidation } : {}), }; From e01ed5b8f4c0fb4b884cdb2472af82ae4b5af4f8 Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Fri, 27 Dec 2024 15:50:08 -0300 Subject: [PATCH 7/7] Update index.ts --- src/utils/restClient/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/restClient/index.ts b/src/utils/restClient/index.ts index a2ec3f7..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 } : {}), - ...(expandRespondeNodes ? { [AppConfig.Headers.EXPAND_RESPONDE_NODES]: expandRespondeNodes } : {}), + ...(expandResponseNodes ? { [AppConfig.Headers.EXPAND_RESPONDE_NODES]: expandResponseNodes } : {}), ...(cardValidation ? { [AppConfig.Headers.CARD_VALIDATION]: cardValidation } : {}), };