protocol-buffers
Advanced tools
Comparing version 2.4.7 to 2.5.0
@@ -135,2 +135,6 @@ var encodings = require('./encodings') | ||
m.enums.forEach(function( val ) { | ||
exports[ val.name ] = val.values | ||
}) | ||
var enc = m.fields.map(function(f, i) { | ||
@@ -400,2 +404,2 @@ return resolve(f.type, m.id) | ||
})) | ||
} | ||
} |
{ | ||
"name": "protocol-buffers", | ||
"version": "2.4.7", | ||
"version": "2.5.0", | ||
"description": "Protocol Buffers for Node.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -72,2 +72,12 @@ # protocol-buffers | ||
Nested emums are accessed as properties on the corresponding message | ||
``` js | ||
var buf = message.SomeMessage.encode({ | ||
list: [ | ||
messages.SomeMessage.NESTED_ENUM.VALUE | ||
] | ||
}) | ||
``` | ||
See the [Google Protocol Buffers docs](https://developers.google.com/protocol-buffers/) for more information about the | ||
@@ -74,0 +84,0 @@ available types etc. |
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
35368
1031
137