Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pomelo-protobuf

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pomelo-protobuf - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

16

lib/protobuf.js

@@ -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": {},

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc