Skip to content

Commit ff7a6fd

Browse files
authored
Merge pull request #396 from vr1jorg/fix-options-type-typo
Fix: Corrected 'plataformId' typo to 'platformId'.
2 parents eee7798 + 1ab43c5 commit ff7a6fd

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Releases
2+
## VERSION 2.9.1
3+
- Fix: Corrected 'plataformId' typo to 'platformId'.
4+
25
## VERSION 2.9.0
36
- Task: Update the local project to comply with release 2.8.0
47
- Task: Update dependencies and validate builds/tests

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export declare type Config = {
66
export declare type Options = {
77
timeout?: number;
88
idempotencyKey?: string;
9-
plataformId?: string;
9+
platformId?: string;
1010
integratorId?: string;
1111
corporationId?: string;
1212
meliSessionId?: string;

src/utils/restClient/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class RestClient {
6767
retries = AppConfig.DEFAULT_RETRIES,
6868
corporationId,
6969
integratorId,
70-
plataformId,
70+
platformId,
7171
meliSessionId,
7272
expandResponseNodes,
7373
cardValidation,
@@ -84,7 +84,7 @@ class RestClient {
8484
[AppConfig.Headers.USER_AGENT]: AppConfig.getUserAgent(),
8585
...(corporationId ? { [AppConfig.Headers.CORPORATION_ID]: corporationId } : {}),
8686
...(integratorId ? { [AppConfig.Headers.INTEGRATOR_ID]: integratorId } : {}),
87-
...(plataformId ? { [AppConfig.Headers.PLATFORM_ID]: plataformId } : {}),
87+
...(platformId ? { [AppConfig.Headers.PLATFORM_ID]: platformId } : {}),
8888
...(meliSessionId ? { [AppConfig.Headers.MELI_SESSION_ID]: meliSessionId } : {}),
8989
...(expandResponseNodes ? { [AppConfig.Headers.EXPAND_RESPONDE_NODES]: expandResponseNodes } : {}),
9090
...(cardValidation ? { [AppConfig.Headers.CARD_VALIDATION]: cardValidation } : {}),
@@ -135,4 +135,4 @@ class RestClient {
135135
}
136136
}
137137

138-
export { RestClient };
138+
export { RestClient };

0 commit comments

Comments
 (0)