@spatial/helpers
Advanced tools
+4
-4
@@ -204,3 +204,3 @@ /** | ||
| return featureCollection(coordinates.map(coords => point(coords, properties)), options); | ||
| return featureCollection(coordinates.map(function (coords) { return point(coords, properties); }), options); | ||
| } | ||
@@ -268,3 +268,3 @@ | ||
| return featureCollection(coordinates.map(coords => polygon(coords, properties)), options); | ||
| return featureCollection(coordinates.map(function (coords) { return polygon(coords, properties); }), options); | ||
| } | ||
@@ -323,3 +323,3 @@ | ||
| return featureCollection(coordinates.map(coords => lineString(coords, properties)), options); | ||
| return featureCollection(coordinates.map(function (coords) { return lineString(coords, properties); }), options); | ||
| } | ||
@@ -688,3 +688,3 @@ | ||
| if (bbox.length !== 4 && bbox.length !== 6) throw new Error('bbox must be an Array of 4 or 6 numbers'); | ||
| bbox.forEach((num) => { | ||
| bbox.forEach(function (num) { | ||
| if (!isNumber(num)) throw new Error('bbox must only contain numbers'); | ||
@@ -691,0 +691,0 @@ }); |
+4
-4
@@ -204,3 +204,3 @@ /** | ||
| return featureCollection(coordinates.map(coords => point(coords, properties)), options); | ||
| return featureCollection(coordinates.map(function (coords) { return point(coords, properties); }), options); | ||
| } | ||
@@ -268,3 +268,3 @@ | ||
| return featureCollection(coordinates.map(coords => polygon(coords, properties)), options); | ||
| return featureCollection(coordinates.map(function (coords) { return polygon(coords, properties); }), options); | ||
| } | ||
@@ -323,3 +323,3 @@ | ||
| return featureCollection(coordinates.map(coords => lineString(coords, properties)), options); | ||
| return featureCollection(coordinates.map(function (coords) { return lineString(coords, properties); }), options); | ||
| } | ||
@@ -688,3 +688,3 @@ | ||
| if (bbox.length !== 4 && bbox.length !== 6) throw new Error('bbox must be an Array of 4 or 6 numbers'); | ||
| bbox.forEach((num) => { | ||
| bbox.forEach(function (num) { | ||
| if (!isNumber(num)) throw new Error('bbox must only contain numbers'); | ||
@@ -691,0 +691,0 @@ }); |
+4
-4
@@ -208,3 +208,3 @@ 'use strict'; | ||
| return featureCollection(coordinates.map(coords => point(coords, properties)), options); | ||
| return featureCollection(coordinates.map(function (coords) { return point(coords, properties); }), options); | ||
| } | ||
@@ -272,3 +272,3 @@ | ||
| return featureCollection(coordinates.map(coords => polygon(coords, properties)), options); | ||
| return featureCollection(coordinates.map(function (coords) { return polygon(coords, properties); }), options); | ||
| } | ||
@@ -327,3 +327,3 @@ | ||
| return featureCollection(coordinates.map(coords => lineString(coords, properties)), options); | ||
| return featureCollection(coordinates.map(function (coords) { return lineString(coords, properties); }), options); | ||
| } | ||
@@ -692,3 +692,3 @@ | ||
| if (bbox.length !== 4 && bbox.length !== 6) throw new Error('bbox must be an Array of 4 or 6 numbers'); | ||
| bbox.forEach((num) => { | ||
| bbox.forEach(function (num) { | ||
| if (!isNumber(num)) throw new Error('bbox must only contain numbers'); | ||
@@ -695,0 +695,0 @@ }); |
+2
-2
| { | ||
| "name": "@spatial/helpers", | ||
| "version": "1.0.5", | ||
| "version": "2.0.0", | ||
| "description": "turf helpers module", | ||
@@ -56,3 +56,3 @@ "main": "main.js", | ||
| }, | ||
| "gitHead": "e448e0465bd2406d476128f71ddfbce1c6d980b0" | ||
| "gitHead": "169a7a5b931e70b4ad1941738f6cc4b51bd310fa" | ||
| } |
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
113154
0.18%1
Infinity%