Socket
Socket
Sign inDemoInstall

protocol-buffers

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protocol-buffers - npm Package Compare versions

Comparing version 2.4.4 to 2.4.5

2

package.json
{
"name": "protocol-buffers",
"version": "2.4.4",
"version": "2.4.5",
"description": "Protocol Buffers for Node.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -18,3 +18,3 @@ # protocol-buffers

enum FOO {
BAR = 1;
BAR = 1;
}

@@ -28,3 +28,3 @@

message AnotherOne {
repeated FOO list = 1;
repeated FOO list = 1;
}

@@ -42,7 +42,7 @@ ```

var buf = messages.Test.encode({
num: 42,
payload: 'hello world'
});
num: 42,
payload: 'hello world'
})
console.log(buf); // should print a buffer
console.log(buf) // should print a buffer
```

@@ -53,4 +53,4 @@

``` js
var obj = messages.Test.decode(buf);
console.log(obj); // should print an object similar to above
var obj = messages.Test.decode(buf)
console.log(obj) // should print an object similar to above
```

@@ -70,5 +70,5 @@

var buf = messages.AnotherOne.encode({
list: [
messages.FOO.BAR
]
list: [
messages.FOO.BAR
]
})

@@ -75,0 +75,0 @@ ```

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