Huge News!Announcing our $40M Series B led by Abstract Ventures.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 3.10.5 to 3.11.6

24

index.d.ts
/// <reference types="geojson" />
type LineString = GeoJSON.Feature<GeoJSON.LineString>;
type Polygon = GeoJSON.Feature<GeoJSON.Polygon>;
type MultiLineString = GeoJSON.Feature<GeoJSON.MultiLineString>;
type MultiPolygon = GeoJSON.Feature<GeoJSON.MultiPolygon>;
type LineStrings = GeoJSON.FeatureCollection<GeoJSON.LineString>;
type Polygons = GeoJSON.FeatureCollection<GeoJSON.Polygon>;
type MultiLineStrings = GeoJSON.FeatureCollection<GeoJSON.MultiLineString>;
type MultiPolygons = GeoJSON.FeatureCollection<GeoJSON.MultiPolygon>;
type Features = GeoJSON.FeatureCollection<any>;
type GeometryCollection = GeoJSON.GeometryCollection;
interface UnionStatic {
/**
* http://turfjs.org/docs/#union
*/
(feature: LineString, tolerance?: number, highQuality?: boolean): LineString;
}
declare const union: UnionStatic;
declare namespace union { }
export = union;
/**
* http://turfjs.org/docs/#union
*/
declare function union(...features: Polygon[]): Polygon | MultiPolygon;
declare namespace union {}
export = union

@@ -1,3 +0,1 @@

'use strict';
var jsts = require('jsts');

@@ -55,3 +53,3 @@

*/
var index_es6 = function () {
module.exports = function () {
var reader = new jsts.io.GeoJSONReader();

@@ -73,3 +71,1 @@ var result = reader.read(JSON.stringify(arguments[0].geometry));

};
module.exports = index_es6;
{
"name": "@turf/union",
"version": "3.10.5",
"version": "3.11.6",
"description": "find the union of geographic features",
"main": "index.js",
"jsnext:main": "index.es6.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.es6.js",
"index.d.ts"

@@ -15,4 +13,3 @@ ],

"test": "node test.js",
"pretest": "npm run rollup",
"rollup": "rollup -c rollup.config.js"
"bench": "node bench.js"
},

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

"glob": "~4.3.5",
"rollup": "^0.41.4",
"tape": "~3.5.0"

@@ -39,0 +35,0 @@ },

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