From fff660bc840890467689adfd83380a097b679c53 Mon Sep 17 00:00:00 2001 From: NLOG Date: Fri, 4 Dec 2020 13:20:33 +0900 Subject: [PATCH 1/2] Fix to override config, and modify POST body (#76) --- src/api/web-api-client.ts | 2 +- src/config/client-config-provider.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/web-api-client.ts b/src/api/web-api-client.ts index d775f095..3316e4a4 100644 --- a/src/api/web-api-client.ts +++ b/src/api/web-api-client.ts @@ -79,7 +79,7 @@ export abstract class WebApiClient implements ApiHeaderDecorator { if (form) { let formData = this.convertToFormData(form); - reqData.data = formData; + reqData.data = formData.toString(); } let res = JsonUtil.parseLoseless((await Axios.request(reqData)).data); diff --git a/src/config/client-config-provider.ts b/src/config/client-config-provider.ts index 4b5c255c..95a3442d 100644 --- a/src/config/client-config-provider.ts +++ b/src/config/client-config-provider.ts @@ -17,7 +17,7 @@ export class DefaultClientConfigProvider implements ClientConfigProvider { private configuration: ClientConfig; constructor(config?: Partial) { - this.configuration = config ? Object.assign(config, DefaultConfiguration) : DefaultConfiguration; + this.configuration = config ? Object.assign(DefaultConfiguration, config) : DefaultConfiguration; } get Configuration() { From cb1129ac15d37dbef41219003634accce05cde19 Mon Sep 17 00:00:00 2001 From: storycraft Date: Fri, 4 Dec 2020 13:34:13 +0900 Subject: [PATCH 2/2] Update to 3.1.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index af4c0c06..ec983ce8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-kakao", - "version": "3.1.3", + "version": "3.1.4", "description": "Loco protocol compatible library", "main": "dist/index.js", "scripts": {