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

@turf/union

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/union - npm Package Compare versions

Comparing version

to
5.0.5

2

index.js

@@ -1,2 +0,2 @@

import { GeoJSONReader, GeoJSONWriter, UnionOp } from 'jsts-es';
import { GeoJSONReader, GeoJSONWriter, UnionOp } from 'turf-jsts';

@@ -3,0 +3,0 @@ /**

'use strict';
var jstsEs = require('jsts-es');
var turfJsts = require('turf-jsts');

@@ -33,10 +33,10 @@ /**

function union() {
var reader = new jstsEs.GeoJSONReader();
var reader = new turfJsts.GeoJSONReader();
var result = reader.read(JSON.stringify(arguments[0].geometry));
for (var i = 1; i < arguments.length; i++) {
result = jstsEs.UnionOp.union(result, reader.read(JSON.stringify(arguments[i].geometry)));
result = turfJsts.UnionOp.union(result, reader.read(JSON.stringify(arguments[i].geometry)));
}
var writer = new jstsEs.GeoJSONWriter();
var writer = new turfJsts.GeoJSONWriter();
result = writer.write(result);

@@ -43,0 +43,0 @@

{
"name": "@turf/union",
"version": "5.0.4",
"version": "5.0.5",
"description": "turf union module",

@@ -17,3 +17,4 @@ "main": "main",

"test": "node -r @std/esm test.js",
"bench": "node -r @std/esm bench.js"
"bench": "node -r @std/esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},

@@ -36,3 +37,2 @@ "repository": {

"@std/esm": "*",
"@turf/helpers": "^5.0.4",
"benchmark": "*",

@@ -46,3 +46,4 @@ "glob": "*",

"dependencies": {
"jsts-es": "*"
"turf-jsts": "*",
"@turf/helpers": "^5.0.4"
},

@@ -49,0 +50,0 @@ "@std/esm": {