pomelo-protobuf
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -139,3 +139,3 @@ var codec = require('./codec'); | ||
//Use a tmp buffer to build an internal msg | ||
var tmpBuffer = new Buffer(Buffer.byteLength(JSON.stringify(value))); | ||
var tmpBuffer = new Buffer(Buffer.byteLength(JSON.stringify(value))*2); | ||
length = 0; | ||
@@ -162,3 +162,2 @@ | ||
var i = 0; | ||
if(util.isSimpleType(proto.type)){ | ||
@@ -165,0 +164,0 @@ offset = writeBytes(buffer, offset, encodeTag(proto.type, proto.tag)); |
{ | ||
"name": "pomelo-protobuf", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"main": "./lib/protobuf", | ||
@@ -5,0 +5,0 @@ "dependencies": {}, |
@@ -5,4 +5,4 @@ { | ||
"message Path": { | ||
"required uInt32 x" : 1, | ||
"required uInt32 y" : 2 | ||
"required double x" : 1, | ||
"required double y" : 2 | ||
}, | ||
@@ -9,0 +9,0 @@ "repeated Path path" : 2, |
@@ -47,11 +47,11 @@ { | ||
{ | ||
"x": 128, | ||
"y": 796 | ||
"x": 10.4, | ||
"y": 90.9 | ||
}, | ||
{ | ||
"x": 677, | ||
"y": 895 | ||
"x": 10.4, | ||
"y": 90.1 | ||
} | ||
], | ||
"speed": 160 | ||
"speed": 160.0 | ||
}, | ||
@@ -58,0 +58,0 @@ "onUpgrade": { |
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
77261