Comparing version 3.1.2 to 3.1.3
@@ -97,3 +97,7 @@ var Pbf = require('pbf') | ||
for (var key in feature.properties) { | ||
var value = feature.properties[key] | ||
var keyIndex = keycache[key] | ||
if (value === null) continue // don't encode null value properties | ||
if (typeof keyIndex === 'undefined') { | ||
@@ -106,5 +110,4 @@ keys.push(key) | ||
var value = feature.properties[key] | ||
var type = typeof value | ||
if (value !== null && type !== 'string' && type !== 'boolean' && type !== 'number') { | ||
if (type !== 'string' && type !== 'boolean' && type !== 'number') { | ||
value = JSON.stringify(value) | ||
@@ -111,0 +114,0 @@ } |
{ | ||
"name": "vt-pbf", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Serialize mapbox vector tiles to binary protobufs in javascript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11989
211