pomelo-protobuf
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -14,11 +14,5 @@ var encoder = require('./encoder'); | ||
Protobuf.encode = function(key, msg){ | ||
try{ | ||
return encoder.encode(key, msg); | ||
}catch (e){ | ||
console.trace(); | ||
console.log('encode msg failed! key : %j, msg :%j', key, msg); | ||
} | ||
return encoder.encode(key, msg); | ||
}; | ||
Protobuf.encode2Bytes = function(key, msg){ | ||
@@ -59,2 +53,10 @@ var buffer = this.encode(key, msg); | ||
Protobuf.setEncoderProtos = function(protos){ | ||
encoder.init(protos); | ||
}; | ||
Protobuf.setDecoderProtos = function(protos){ | ||
decoder.init(protos); | ||
}; | ||
Protobuf.init = function(opts){ | ||
@@ -61,0 +63,0 @@ //On the serverside, use serverProtos to encode messages send to client |
{ | ||
"name": "pomelo-protobuf", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"main": "./lib/protobuf", | ||
@@ -5,0 +5,0 @@ "dependencies": {}, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77299
2858