@turf/boolean-clockwise
Advanced tools
Comparing version 5.1.0 to 5.1.5
@@ -22,5 +22,5 @@ 'use strict'; | ||
// validation | ||
if (!line) { throw new Error('line is required'); } | ||
if (!line) throw new Error('line is required'); | ||
var type = (line.geometry) ? line.geometry.type : line.type; | ||
if (!Array.isArray(line) && type !== 'LineString') { throw new Error('geometry must be a LineString'); } | ||
if (!Array.isArray(line) && type !== 'LineString') throw new Error('geometry must be a LineString'); | ||
@@ -27,0 +27,0 @@ var ring = invariant.getCoords(line); |
{ | ||
"name": "@turf/boolean-clockwise", | ||
"version": "5.1.0", | ||
"version": "5.1.5", | ||
"description": "turf boolean-clockwise 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", | ||
@@ -49,8 +50,7 @@ "docs": "node ../../scripts/generate-readmes" | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*" | ||
}, | ||
"dependencies": { | ||
"@turf/helpers": "^5.1.0", | ||
"@turf/invariant": "^5.1.0" | ||
"@turf/helpers": "^5.1.5", | ||
"@turf/invariant": "^5.1.5" | ||
}, | ||
@@ -57,0 +57,0 @@ "@std/esm": { |
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
7469
6
Updated@turf/helpers@^5.1.5
Updated@turf/invariant@^5.1.5