diff --git a/history.md b/history.md index 3c8e676..66b97cb 100644 --- a/history.md +++ b/history.md @@ -1,3 +1,7 @@ +# v1.1.2 - 02/11/2019 + +* Fixed issue in `Client` module where usage of `#call` with object was not properly stringified + # v1.1.0 - 02/05/2019 * Updated Babel dependencies diff --git a/package.json b/package.json index e1ec082..70fb1cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-ipc-lib", - "version": "1.1.1", + "version": "1.1.2", "description": "Enables creation and consumption of Unix domain socket based IPC channels between Node.js apps using JSON-RPC 2.0 as a protocol.", "main": "./dist", "scripts": { diff --git a/src/Client.js b/src/Client.js index f82df85..a4d2ccf 100644 --- a/src/Client.js +++ b/src/Client.js @@ -71,7 +71,7 @@ export class Client { 'Client: writing message to socket connection: %o', request); - socket.write(JSON.stringify(request)); + socket.write(typeof request === 'string' ? request : JSON.stringify(request)); } });