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

geojson-elevation

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geojson-elevation - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

LICENSE

11

index.js
var coordEach = require('turf-meta').coordEach;
module.exports = {
addElevation: function(geojson, elevationProvider, cb) {
addElevation: function(geojson, elevationProvider, cb, nodata) {
var waiting = 0,

@@ -13,4 +13,9 @@ allProcessed = false;

if (err) {
cb(err);
waiting = -1;
if (nodata != null) {
coords[2] = nodata;
waiting--;
} else {
cb(err);
waiting = -1;
}
} else {

@@ -17,0 +22,0 @@ coords[2] = elevation;

{
"name": "geojson-elevation",
"version": "1.0.1",
"version": "1.1.0",
"description": "Add elevation data to GeoJSON objects",
"homepage": "https://github.com/perliedman/geojson-elevation",
"repository": "git@github.com:perliedman/geojson-elevation.git",
"main": "index.js",
"repository": "git@github.com:perliedman/geojson-elevation.git",
"scripts": {

@@ -18,5 +19,5 @@ "test": "echo \"Error: no test specified\" && exit 1"

"dependencies": {
"node-hgt": "^1.0.2",
"node-hgt": "^1.1.0",
"turf-meta": "^1.0.2"
}
}
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