@turf/meta
Advanced tools
Comparing version 6.4.0 to 6.5.0
@@ -1,2 +0,2 @@ | ||
import { feature, point, lineString, isObject } from '@turf/helpers'; | ||
import { feature, lineString, isObject, point } from '@turf/helpers'; | ||
@@ -887,9 +887,9 @@ /** | ||
function segmentEach(geojson, callback) { | ||
flattenEach(geojson, function (feature$$1, featureIndex, multiFeatureIndex) { | ||
flattenEach(geojson, function (feature, featureIndex, multiFeatureIndex) { | ||
var segmentIndex = 0; | ||
// Exclude null Geometries | ||
if (!feature$$1.geometry) return; | ||
if (!feature.geometry) return; | ||
// (Multi)Point geometries do not contain segments therefore they are ignored during this operation. | ||
var type = feature$$1.geometry.type; | ||
var type = feature.geometry.type; | ||
if (type === "Point" || type === "MultiPoint") return; | ||
@@ -904,3 +904,3 @@ | ||
coordEach( | ||
feature$$1, | ||
feature, | ||
function ( | ||
@@ -929,3 +929,3 @@ currentCoord, | ||
[previousCoords, currentCoord], | ||
feature$$1.properties | ||
feature.properties | ||
); | ||
@@ -1067,9 +1067,9 @@ if ( | ||
flattenEach(geojson, function (feature$$1, featureIndex, multiFeatureIndex) { | ||
if (feature$$1.geometry === null) return; | ||
var type = feature$$1.geometry.type; | ||
var coords = feature$$1.geometry.coordinates; | ||
flattenEach(geojson, function (feature, featureIndex, multiFeatureIndex) { | ||
if (feature.geometry === null) return; | ||
var type = feature.geometry.type; | ||
var coords = feature.geometry.coordinates; | ||
switch (type) { | ||
case "LineString": | ||
if (callback(feature$$1, featureIndex, multiFeatureIndex, 0, 0) === false) | ||
if (callback(feature, featureIndex, multiFeatureIndex, 0, 0) === false) | ||
return false; | ||
@@ -1085,3 +1085,3 @@ break; | ||
callback( | ||
lineString(coords[geometryIndex], feature$$1.properties), | ||
lineString(coords[geometryIndex], feature.properties), | ||
featureIndex, | ||
@@ -1406,2 +1406,2 @@ multiFeatureIndex, | ||
export { coordEach, coordReduce, propEach, propReduce, featureEach, featureReduce, coordAll, geomEach, geomReduce, flattenEach, flattenReduce, segmentEach, segmentReduce, lineEach, lineReduce, findSegment, findPoint }; | ||
export { coordAll, coordEach, coordReduce, featureEach, featureReduce, findPoint, findSegment, flattenEach, flattenReduce, geomEach, geomReduce, lineEach, lineReduce, propEach, propReduce, segmentEach, segmentReduce }; |
@@ -1405,18 +1405,18 @@ 'use strict'; | ||
exports.coordAll = coordAll; | ||
exports.coordEach = coordEach; | ||
exports.coordReduce = coordReduce; | ||
exports.propEach = propEach; | ||
exports.propReduce = propReduce; | ||
exports.featureEach = featureEach; | ||
exports.featureReduce = featureReduce; | ||
exports.coordAll = coordAll; | ||
exports.findPoint = findPoint; | ||
exports.findSegment = findSegment; | ||
exports.flattenEach = flattenEach; | ||
exports.flattenReduce = flattenReduce; | ||
exports.geomEach = geomEach; | ||
exports.geomReduce = geomReduce; | ||
exports.flattenEach = flattenEach; | ||
exports.flattenReduce = flattenReduce; | ||
exports.lineEach = lineEach; | ||
exports.lineReduce = lineReduce; | ||
exports.propEach = propEach; | ||
exports.propReduce = propReduce; | ||
exports.segmentEach = segmentEach; | ||
exports.segmentReduce = segmentReduce; | ||
exports.lineEach = lineEach; | ||
exports.lineReduce = lineReduce; | ||
exports.findSegment = findSegment; | ||
exports.findPoint = findPoint; |
{ | ||
"name": "@turf/meta", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "turf meta module", | ||
@@ -20,2 +20,3 @@ "author": "Turf Authors", | ||
}, | ||
"funding": "https://opencollective.com/turf", | ||
"publishConfig": { | ||
@@ -70,3 +71,3 @@ "access": "public" | ||
"devDependencies": { | ||
"@turf/random": "^6.4.0", | ||
"@turf/random": "^6.5.0", | ||
"benchmark": "*", | ||
@@ -78,5 +79,5 @@ "npm-run-all": "*", | ||
"dependencies": { | ||
"@turf/helpers": "^6.4.0" | ||
"@turf/helpers": "^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
133953
0
Updated@turf/helpers@^6.5.0