Skip to content

Commit

Permalink
fixing issue reported by @m-schmoock in #11
Browse files Browse the repository at this point in the history
  • Loading branch information
brozeph committed Feb 11, 2019
1 parent 4b8a2c9 commit 992ee16
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -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
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": "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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});

Expand Down

0 comments on commit 992ee16

Please sign in to comment.