New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vt-pbf

Package Overview
Dependencies
Maintainers
36
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vt-pbf - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

7

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc