You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@turf/unkink-polygon

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/unkink-polygon - npm Package Compare versions

Comparing version

to
3.13.0

4

index.js
var simplepolygon = require('simplepolygon');
var flatten = require('geojson-flatten');
var flatten = require('@turf/flatten');
var featureEach = require('@turf/meta').featureEach;

@@ -33,3 +33,3 @@ var featureCollection = require('@turf/helpers').featureCollection;

// Handle MultiPolygons as Feature or FeatureCollection
if (feature.geometry.type === 'MultiPolygon') { feature = featureCollection(flatten(feature)); }
if (feature.geometry.type === 'MultiPolygon') { feature = flatten(feature); }

@@ -36,0 +36,0 @@ // Store simple polygons in results

{
"name": "@turf/unkink-polygon",
"version": "3.10.5",
"description": "turf unkink polygon module",
"version": "3.13.0",
"description": "turf unkink-polygon module",
"main": "index.js",
"types": "index.d.ts",
"files": [

@@ -10,16 +11,2 @@ "index.js",

],
"dependencies": {
"@turf/helpers": "^3.10.5",
"@turf/meta": "^3.10.5",
"geojson-flatten": "^0.2.1",
"simplepolygon": "^1.1.1"
},
"devDependencies": {
"benchmark": "^2.1.3",
"eslint": "^3.16.1",
"eslint-config-mourner": "^2.0.1",
"load-json-file": "^2.0.0",
"tape": "^3.5.0",
"write-json-file": "^2.0.0"
},
"scripts": {

@@ -46,3 +33,16 @@ "test": "node test.js",

"homepage": "https://github.com/Turfjs/turf",
"types": "index.d.ts"
"devDependencies": {
"benchmark": "^2.1.3",
"eslint": "^3.16.1",
"eslint-config-mourner": "^2.0.1",
"load-json-file": "^2.0.0",
"tape": "^3.5.0",
"write-json-file": "^2.0.0"
},
"dependencies": {
"@turf/flatten": "^3.13.0",
"@turf/helpers": "^3.13.0",
"@turf/meta": "^3.13.0",
"simplepolygon": "^1.1.1"
}
}