protocol-buffers
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -8,2 +8,11 @@ /* eslint-disable no-spaced-func */ | ||
var flatten = function (values) { | ||
if (!values) return null | ||
var result = {} | ||
Object.keys(values).forEach(function (k) { | ||
result[k] = values[k].value | ||
}) | ||
return result | ||
} | ||
var skip = function (type, buffer, offset) { | ||
@@ -172,3 +181,3 @@ switch (type) { | ||
m.enums.forEach(function (val) { | ||
exports[val.name] = val.values | ||
exports[val.name] = flatten(val.values) | ||
}) | ||
@@ -175,0 +184,0 @@ |
{ | ||
"name": "protocol-buffers", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Protocol Buffers for Node.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
44427
1311