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

@turf/simplify

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/simplify - npm Package Compare versions

Comparing version 3.7.3 to 3.7.5

test.js

4

index.js

@@ -150,5 +150,5 @@ var simplify = require('simplify-js');

return simplify(coordinates.map(function (coord) {
return {x: coord[0], y: coord[1]};
return {x: coord[0], y: coord[1], z: coord[2]};
}), tolerance, highQuality).map(function (coords) {
return [coords.x, coords.y];
return (coords.z) ? [coords.x, coords.y, coords.z] : [coords.x, coords.y];
});

@@ -155,0 +155,0 @@ }

{
"name": "@turf/simplify",
"version": "3.7.3",
"version": "3.7.5",
"description": "simplify geographic shapes",

@@ -10,3 +10,3 @@ "main": "index.js",

"scripts": {
"test": "tape test/*.js"
"test": "tape test.js"
},

@@ -13,0 +13,0 @@ "repository": {

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