Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

georender-pack

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

georender-pack - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

lib/sort.js

19

encode.js

@@ -5,2 +5,3 @@ var earcut = require('earcut')

var varint = require('varint')
var sortMembers = require('./lib/sort.js')

@@ -118,4 +119,6 @@ module.exports = function (item, deps) {

var ref0 = -1
for (var i=0; i<item.members.length; i++){
var role = item.members[i].role
var smembers = sortMembers(item.members, deps)
for (var i=0; i<smembers.length; i++) {
var role = smembers[i].role
if (role === "outer") {

@@ -131,5 +134,6 @@ if (closed) {

}
if (!deps[item.members[i].id]) continue
var member = deps[item.members[i].id]
if (!deps[smembers[i].id]) continue
var member = deps[smembers[i].id]
if (!member.refs) continue
if (smembers[i].reverse) member.refs.reverse()
for (var j=0; j<member.refs.length; j++) {

@@ -147,6 +151,7 @@ if (ref0 === member.refs[j]) {

}
else if (item.members[i].role === "inner") {
if (!deps[item.members[i].id]) continue
var member = deps[item.members[i].id]
else if (smembers[i].role === "inner") {
if (!deps[smembers[i].id]) continue
var member = deps[smembers[i].id]
if (!member.refs) continue
if (smembers[i].reverse) member.refs.reverse()
for (var j=0; j<member.refs.length; j++) {

@@ -153,0 +158,0 @@ if (ref0 === member.refs[j]) {

{
"name": "georender-pack",
"version": "2.1.0",
"version": "2.1.1",
"description": "pack and unpack osm data based on the peermaps buffer schema",

@@ -22,2 +22,3 @@ "main": "index.js",

"split2": "^3.1.1",
"tape": "^5.2.0",
"varint": "^5.0.0",

@@ -24,0 +25,0 @@ "xhr": "^2.5.0"

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