From 1ed62fb120c5676b9e00bfd903c5b08854dc7f48 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 19 Aug 2019 19:05:08 +0900 Subject: [PATCH 1/2] fix: http request --- src/plugins/http-proxy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/http-proxy.ts b/src/plugins/http-proxy.ts index 593cbdc..a232702 100644 --- a/src/plugins/http-proxy.ts +++ b/src/plugins/http-proxy.ts @@ -83,8 +83,8 @@ const maker: EnginePluginBuilder = (_$, name, options) => { const url = ENDPOINT + (TYPE === undefined ? '' : '/' + encodeURIComponent(TYPE)) + - (ID === undefined ? '' : '/' + encodeURIComponent(ID)) + - (CMD === undefined ? '' : '/' + encodeURIComponent(CMD)) + + (TYPE === undefined || ID === undefined ? '' : '/' + encodeURIComponent(ID)) + + (TYPE === undefined || ID === undefined || CMD === undefined ? '' : '/' + encodeURI(CMD)) + //NOTE - cmd could have additional '/' char. (!query_string ? '' : '?' + query_string); const request = REQUEST; const options: any = { From 16ef2a7de55fced2933cd8cdb194d161ca2cdd37 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 19 Aug 2019 19:06:01 +0900 Subject: [PATCH 2/2] ver 2.2.5 --- README.md | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5eb0766..909c932 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ Plz, request PR. See [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) | Version | Description |-- |-- +| 2.2.5 | improve http-request of type+id+cmd. | 2.2.4 | optimize log in init engine. | 2.2.3 | hot-fix type error of `$U.dt()`. | 2.2.2 | relay context as `that._ctx` in `on_record_update()`, and use common `BACKBONE_API` env. diff --git a/package.json b/package.json index d4428c0..0f97b36 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lemon-engine", - "version": "2.2.4", + "version": "2.2.5", "description": "Lemon Engine Module to Synchronize Node over DynamoDB + ElastiCache + Elasticsearch by [lemoncloud](https://lemoncloud.io)", "main": "dist/index.js", "types": "dist/index.d.ts",