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

@turf/boolean-clockwise

Package Overview
Dependencies
Maintainers
7
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/boolean-clockwise - npm Package Compare versions

Comparing version 6.5.0 to 7.0.0-alpha.0

10

dist/es/index.js

@@ -18,7 +18,7 @@ import { getCoords } from "@turf/invariant";

export default function booleanClockwise(line) {
var ring = getCoords(line);
var sum = 0;
var i = 1;
var prev;
var cur;
const ring = getCoords(line);
let sum = 0;
let i = 1;
let prev;
let cur;
while (i < ring.length) {

@@ -25,0 +25,0 @@ prev = cur || ring[0];

@@ -1,2 +0,2 @@

import { Feature, LineString, Position } from "@turf/helpers";
import { Feature, LineString, Position } from "geojson";
/**

@@ -3,0 +3,0 @@ * Takes a ring and return true or false whether or not the ring is clockwise or counter-clockwise.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var invariant_1 = require("@turf/invariant");
const invariant_1 = require("@turf/invariant");
/**

@@ -20,7 +20,7 @@ * Takes a ring and return true or false whether or not the ring is clockwise or counter-clockwise.

function booleanClockwise(line) {
var ring = invariant_1.getCoords(line);
var sum = 0;
var i = 1;
var prev;
var cur;
const ring = invariant_1.getCoords(line);
let sum = 0;
let i = 1;
let prev;
let cur;
while (i < ring.length) {

@@ -27,0 +27,0 @@ prev = cur || ring[0];

{
"name": "@turf/boolean-clockwise",
"version": "6.5.0",
"version": "7.0.0-alpha.0",
"description": "turf boolean-clockwise module",

@@ -65,6 +65,7 @@ "author": "Turf Authors",

"dependencies": {
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0"
"@turf/helpers": "^7.0.0-alpha.0",
"@turf/invariant": "^7.0.0-alpha.0",
"tslib": "^2.3.0"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
}

@@ -9,7 +9,7 @@ # @turf/boolean-clockwise

**Parameters**
### Parameters
- `line` **([Feature][1]&lt;[LineString][2]> | [LineString][2] \| [Array][3]&lt;[Array][3]&lt;[number][4]>>)** to be evaluated
* `line` **([Feature][1]<[LineString][2]> | [LineString][2] | [Array][3]<[Array][3]<[number][4]>>)** to be evaluated
**Examples**
### Examples

@@ -16,0 +16,0 @@ ```javascript

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