Comparing version 2.1.1 to 2.1.2
@@ -140,4 +140,4 @@ var Pbf = require('pbf') | ||
} else if (type === 'number') { | ||
if (value !== (value | 0)) { | ||
result = { float_value: value } | ||
if (value % 1 !== 0) { | ||
result = { double_value: value } | ||
} else if (value < 0) { | ||
@@ -144,0 +144,0 @@ result = { sint_value: value } |
{ | ||
"name": "vt-pbf", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Serialize mapbox vector tiles to binary protobufs in javascript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# vt-pbf | ||
# vt-pbf [](https://circleci.com/gh/mapbox/vt-pbf) | ||
@@ -3,0 +3,0 @@ Serialize [Mapbox vector tiles](https://github.com/mapbox/vector-tile-spec) to binary protobufs in javascript. |
@@ -70,2 +70,4 @@ var fs = require('fs') | ||
t.same(second.d, '{"hello":"world"}') | ||
t.equal(first.e, 39953616224) | ||
t.equal(first.f, 331.75415) | ||
t.end() | ||
@@ -72,0 +74,0 @@ }) |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
55066
391
15
1