protocol-buffers
Advanced tools
Comparing version 2.4.4 to 2.4.5
{ | ||
"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 @@ ``` |
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
33532