Comparing version 6.4.0 to 6.5.0
'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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9455
123
0
Updated@turf/clone@^6.5.0
Updated@turf/helpers@^6.5.0
Updated@turf/meta@^6.5.0