protocol-buffers
Advanced tools
Comparing version 2.4.6 to 2.4.7
@@ -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()') |
{ | ||
"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 |
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
35101
23
1027
127