@turf/voronoi
Advanced tools
Comparing version 5.1.0 to 5.1.5
@@ -42,8 +42,8 @@ 'use strict'; | ||
options = options || {}; | ||
if (!helpers.isObject(options)) { throw new Error('options is invalid'); } | ||
if (!helpers.isObject(options)) throw new Error('options is invalid'); | ||
var bbox = options.bbox || [-180, -85, 180, 85]; | ||
// Input Validation | ||
if (!points) { throw new Error('points is required'); } | ||
if (!Array.isArray(bbox)) { throw new Error('bbox is invalid'); } | ||
if (!points) throw new Error('points is required'); | ||
if (!Array.isArray(bbox)) throw new Error('bbox is invalid'); | ||
invariant.collectionOf(points, 'Point', 'points'); | ||
@@ -50,0 +50,0 @@ |
{ | ||
"name": "@turf/voronoi", | ||
"version": "5.1.0", | ||
"version": "5.1.5", | ||
"description": "turf voronoi module", | ||
"main": "main.js", | ||
"module": "main.mjs", | ||
"module": "main.es.js", | ||
"types": "index.d.ts", | ||
@@ -12,3 +12,3 @@ "files": [ | ||
"main.js", | ||
"main.mjs" | ||
"main.es.js" | ||
], | ||
@@ -18,2 +18,3 @@ "scripts": { | ||
"test": "node -r @std/esm test.js", | ||
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", | ||
"bench": "node -r @std/esm bench.js", | ||
@@ -51,3 +52,2 @@ "docs": "node ../../scripts/generate-readmes" | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*", | ||
@@ -57,4 +57,4 @@ "write-json-file": "*" | ||
"dependencies": { | ||
"@turf/helpers": "^5.1.0", | ||
"@turf/invariant": "^5.1.0", | ||
"@turf/helpers": "^5.1.5", | ||
"@turf/invariant": "^5.1.5", | ||
"d3-voronoi": "1.1.2" | ||
@@ -61,0 +61,0 @@ }, |
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
10717
7
Updated@turf/helpers@^5.1.5
Updated@turf/invariant@^5.1.5