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

@turf/kinks

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/kinks - npm Package Compare versions

Comparing version 3.10.5 to 3.13.0

23

index.d.ts

@@ -1,19 +0,10 @@

/// <reference types="geojson" />
import {LineString, MultiLineString, Polygon, MultiPolygon, Points} from '@turf/helpers'
type LineString = GeoJSON.Feature<GeoJSON.LineString> | GeoJSON.LineString;
type MultiLineString = GeoJSON.Feature<GeoJSON.MultiLineString> | GeoJSON.MultiLineString;
type Polygon = GeoJSON.Feature<GeoJSON.Polygon> | GeoJSON.Polygon;
type MultiPolygon = GeoJSON.Feature<GeoJSON.MultiPolygon> | GeoJSON.MultiPolygon;
type Points = GeoJSON.FeatureCollection<GeoJSON.Point>;
type FeatureIn = LineString | MultiLineString | Polygon | MultiPolygon
interface Kinks {
/**
* http://turfjs.org/docs/#kinks
*/
(featureIn: LineString): Points;
(featureIn: MultiLineString): Points;
(featureIn: Polygon): Points;
(featureIn: MultiPolygon): Points;
}
declare const kinks: Kinks;
/**
* http://turfjs.org/docs/#kinks
*/
declare function kinks(featureIn: FeatureIn): Points;
declare namespace kinks {}
export = kinks;

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

var point = require('@turf/helpers').point;
/**

@@ -5,3 +7,3 @@ * Takes a {@link LineString|linestring}, {@link MultiLineString|multi-linestring}, {@link MultiPolygon|multi-polygon}, or {@link Polygon|polygon} and returns {@link Point|points} at all self-intersections.

* @name kinks
* @param {Feature<LineString|MultiLineString|MultiPolygon|Polygon>} feature input feature
* @param {Feature<LineString|MultiLineString|MultiPolygon|Polygon>} featureIn input feature
* @returns {FeatureCollection<Point>} self-intersections

@@ -34,5 +36,2 @@ * @example

*/
var point = require('@turf/helpers').point;
module.exports = function (featureIn) {

@@ -39,0 +38,0 @@ var coordinates;

{
"name": "@turf/kinks",
"version": "3.10.5",
"version": "3.13.0",
"description": "turf kinks module",
"main": "index.js",
"dependencies": {
"@turf/helpers": "^3.10.5"
},
"devDependencies": {
"benchmark": "^1.0.0",
"tape": "^3.5.0"
},
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts"
],
"scripts": {
"test": "node test.js"
"test": "node test.js",
"bench": "node bench.js"
},

@@ -31,3 +30,12 @@ "repository": {

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

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