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

turf-erase

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-erase - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

.npmignore

15

index.js

@@ -6,4 +6,3 @@ // look here for help http://svn.osgeo.org/grass/grass/branches/releasebranch_6_4/vector/v.overlay/main.c

var jsts = require('jsts'),
_ = require('lodash')
var jsts = require('jsts')

@@ -21,14 +20,10 @@ module.exports = function(poly1, poly2, done){

var newPoly = _.cloneDeep(poly1);
newPoly.geometry = erased
poly1.geometry = erased
done = done || function () {};
done(null, newPoly)
return newPoly;
return poly1;
}
function correctRings(poly){
_.each(poly.geometry.coordinates, function(ring){
var isWrapped =_.isEqual(ring[0], ring.slice(-1)[0])
poly.geometry.coordinates.forEach(function(ring){
var isWrapped = (ring[0][0] === ring.slice(-1)[0][0] && ring[0][1] === ring.slice(-1)[0][1])
if(!isWrapped){

@@ -35,0 +30,0 @@ ring.push(ring[0])

{
"name": "turf-erase",
"version": "0.0.0",
"version": "0.1.0",
"description": "erase features",

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