Skip to content

Commit

Permalink
Merge pull request #14 from lemoncloud-io/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
steve-lemon authored Aug 19, 2019
2 parents 6846c27 + 16ef2a7 commit 9c595bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/http-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ const maker: EnginePluginBuilder<HttpProxy> = (_$, 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 = {
Expand Down

0 comments on commit 9c595bf

Please sign in to comment.