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

@turf/tag

Package Overview
Dependencies
Maintainers
6
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/tag - npm Package Compare versions

Comparing version 6.4.0 to 6.5.0

18

dist/js/index.js
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var booleanPointInPolygon = _interopDefault(require('@turf/boolean-point-in-polygon'));
var clone = _interopDefault(require('@turf/clone'));
var booleanPointInPolygon = require('@turf/boolean-point-in-polygon');
var clone = require('@turf/clone');
var meta = require('@turf/meta');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var booleanPointInPolygon__default = /*#__PURE__*/_interopDefaultLegacy(booleanPointInPolygon);
var clone__default = /*#__PURE__*/_interopDefaultLegacy(clone);
/**

@@ -46,4 +49,4 @@ * Takes a set of {@link Point|points} and a set of {@link Polygon|polygons} and/or {@link MultiPolygon|multipolygons} and performs a spatial join.

// prevent mutations
points = clone(points);
polygons = clone(polygons);
points = clone__default['default'](points);
polygons = clone__default['default'](polygons);
meta.featureEach(points, function (pt) {

@@ -53,3 +56,3 @@ if (!pt.properties) pt.properties = {};

if (pt.properties[outField] === undefined) {
if (booleanPointInPolygon(pt, poly))
if (booleanPointInPolygon__default['default'](pt, poly))
pt.properties[outField] = poly.properties[field];

@@ -63,1 +66,2 @@ }

module.exports = tag;
module.exports.default = tag;
{
"name": "@turf/tag",
"version": "6.4.0",
"version": "6.5.0",
"description": "turf tag module",

@@ -15,2 +15,3 @@ "author": "Turf Authors",

},
"funding": "https://opencollective.com/turf",
"publishConfig": {

@@ -59,8 +60,8 @@ "access": "public"

"dependencies": {
"@turf/boolean-point-in-polygon": "^6.4.0",
"@turf/clone": "^6.4.0",
"@turf/helpers": "^6.4.0",
"@turf/meta": "^6.4.0"
"@turf/boolean-point-in-polygon": "^6.5.0",
"@turf/clone": "^6.5.0",
"@turf/helpers": "^6.5.0",
"@turf/meta": "^6.5.0"
},
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac"
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}
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