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

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.6 to 2.4.7

test/corrupted.js

1

compile.js

@@ -301,2 +301,3 @@ var encodings = require('./encodings')

('if (!end) end = buf.length')
('if (!(end <= buf.length && offset <= buf.length)) throw new Error("Decoded message is not valid")')
('var oldOffset = offset')

@@ -303,0 +304,0 @@ ('var obj = new Message()')

2

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

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

@@ -108,4 +108,20 @@ # protocol-buffers

## Leveldb encoding compatibility
Compiled protocol buffers messages are valid levelup encodings.
This means you can pass them as `valueEncoding` and `keyEncoding`.
``` js
var level = require('level')
var db = level('db')
db.put('hello', {payload:'world'}, {valueEncoding:messages.Test}, function(err) {
db.get('hello', {valueEncoding:messages.Test}, function(err, message) {
console.log(message)
})
})
```
## License
MIT
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