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

@turf/boolean-intersects

Package Overview
Dependencies
Maintainers
7
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/boolean-intersects - npm Package Compare versions

Comparing version 6.5.0 to 7.0.0-alpha.0

6

dist/es/index.js

@@ -18,5 +18,5 @@ import booleanDisjoint from "@turf/boolean-disjoint";

export default function booleanIntersects(feature1, feature2) {
var bool = false;
flattenEach(feature1, function (flatten1) {
flattenEach(feature2, function (flatten2) {
let bool = false;
flattenEach(feature1, (flatten1) => {
flattenEach(feature2, (flatten2) => {
if (bool === true) {

@@ -23,0 +23,0 @@ return true;

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

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

@@ -3,0 +3,0 @@ * Boolean-intersects returns (TRUE) two geometries intersect.

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var boolean_disjoint_1 = __importDefault(require("@turf/boolean-disjoint"));
var meta_1 = require("@turf/meta");
const tslib_1 = require("tslib");
const boolean_disjoint_1 = tslib_1.__importDefault(require("@turf/boolean-disjoint"));
const meta_1 = require("@turf/meta");
/**

@@ -23,5 +21,5 @@ * Boolean-intersects returns (TRUE) two geometries intersect.

function booleanIntersects(feature1, feature2) {
var bool = false;
meta_1.flattenEach(feature1, function (flatten1) {
meta_1.flattenEach(feature2, function (flatten2) {
let bool = false;
meta_1.flattenEach(feature1, (flatten1) => {
meta_1.flattenEach(feature2, (flatten2) => {
if (bool === true) {

@@ -28,0 +26,0 @@ return true;

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

@@ -64,7 +64,8 @@ "author": "Turf Authors",

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

@@ -9,8 +9,8 @@ # @turf/boolean-intersects

**Parameters**
### Parameters
- `feature1` **([Geometry][1] \| [Feature][2]<any>)** GeoJSON Feature or Geometry
- `feature2` **([Geometry][1] \| [Feature][2]<any>)** GeoJSON Feature or Geometry
* `feature1` **([Geometry][1] | [Feature][2]\<any>)** GeoJSON Feature or Geometry
* `feature2` **([Geometry][1] | [Feature][2]\<any>)** GeoJSON Feature or Geometry
**Examples**
### Examples

@@ -17,0 +17,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