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

@turf/difference

Package Overview
Dependencies
Maintainers
4
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/difference - npm Package Compare versions

Comparing version 3.10.3 to 3.10.4

0

bench.js

@@ -0,0 +0,0 @@ var difference = require('./');

3

index.d.ts
/// <reference types="geojson" />
type Polygon = GeoJSON.Feature<GeoJSON.Polygon>;
type MultiPolygon = GeoJSON.Feature<GeoJSON.MultiPolygon>;

@@ -8,4 +9,4 @@ /**

*/
declare function difference(poly1: Polygon, poly2: Polygon): Polygon;
declare function difference(poly1: Polygon, poly2: Polygon): Polygon|MultiPolygon;
declare namespace difference { }
export = difference;

@@ -11,3 +11,3 @@ // depend on jsts for now https://github.com/bjornharrtell/jsts/blob/master/examples/overlay.html

* @param {Feature<Polygon>} p2 Polygon feature to difference from `p1`
* @return {Feature<Polygon>} a Polygon feature showing the area of `p1` excluding the area of `p2`
* @return {Feature<(Polygon|MultiPolygon)>} a Polygon or MultiPolygon feature showing the area of `p1` excluding the area of `p2`
* @example

@@ -14,0 +14,0 @@ * var poly1 = {

{
"name": "@turf/difference",
"version": "3.10.3",
"version": "3.10.4",
"description": "[Turf](http://turfjs.org/) difference module",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,0 +0,0 @@ # @turf/difference

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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