cluster-client
Advanced tools
Comparing version 1.1.0 to 1.2.0
1.2.0 / 2017-02-20 | ||
================== | ||
* feat: use serialize-json to support encode/decode buffer, date, undef… (#10) | ||
1.1.0 / 2017-02-07 | ||
@@ -3,0 +8,0 @@ ================== |
'use strict'; | ||
exports.encode = function encode(obj) { | ||
return new Buffer(JSON.stringify(obj)); | ||
}; | ||
const S_JSON = require('serialize-json'); | ||
exports.decode = function decode(buf) { | ||
return JSON.parse(buf); | ||
}; | ||
exports.encode = S_JSON.encode; | ||
exports.decode = S_JSON.decode; |
{ | ||
"name": "cluster-client", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Sharing Connection among Multi-Process Nodejs", | ||
@@ -38,2 +38,3 @@ "main": "./lib/index.js", | ||
"sdk-base": "^2.0.1", | ||
"serialize-json": "^1.0.1", | ||
"tcp-base": "^1.1.0", | ||
@@ -40,0 +41,0 @@ "utility": "^1.9.0", |
56646
11
1483
+ Addedserialize-json@^1.0.1
+ Addeddebug@3.2.7(transitive)
+ Addedms@2.1.3(transitive)
+ Addedserialize-json@1.0.3(transitive)