@turf/union
Advanced tools
Comparing version
@@ -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": { |
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
7342
0.89%7
-12.5%2
100%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed