@turf/sector
Advanced tools
Comparing version 5.1.0 to 5.1.5
14
main.js
@@ -38,10 +38,10 @@ 'use strict'; | ||
options = options || {}; | ||
if (!helpers.isObject(options)) { throw new Error('options is invalid'); } | ||
if (!helpers.isObject(options)) throw new Error('options is invalid'); | ||
// validation | ||
if (!center) { throw new Error('center is required'); } | ||
if (bearing1 === undefined || bearing1 === null) { throw new Error('bearing1 is required'); } | ||
if (bearing2 === undefined || bearing2 === null) { throw new Error('bearing2 is required'); } | ||
if (!radius) { throw new Error('radius is required'); } | ||
if (typeof options !== 'object') { throw new Error('options must be an object'); } | ||
if (!center) throw new Error('center is required'); | ||
if (bearing1 === undefined || bearing1 === null) throw new Error('bearing1 is required'); | ||
if (bearing2 === undefined || bearing2 === null) throw new Error('bearing2 is required'); | ||
if (!radius) throw new Error('radius is required'); | ||
if (typeof options !== 'object') throw new Error('options must be an object'); | ||
@@ -72,3 +72,3 @@ if (convertAngleTo360(bearing1) === convertAngleTo360(bearing2)) { | ||
var beta = alfa % 360; | ||
if (beta < 0) { beta += 360; } | ||
if (beta < 0) beta += 360; | ||
return beta; | ||
@@ -75,0 +75,0 @@ } |
{ | ||
"name": "@turf/sector", | ||
"version": "5.1.0", | ||
"version": "5.1.5", | ||
"description": "turf sector 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", | ||
@@ -38,7 +39,6 @@ "docs": "node ../../scripts/generate-readmes" | ||
"@std/esm": "*", | ||
"@turf/truncate": "^5.1.0", | ||
"@turf/truncate": "^5.1.5", | ||
"benchmark": "*", | ||
"load-json-file": "*", | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*", | ||
@@ -48,7 +48,7 @@ "write-json-file": "*" | ||
"dependencies": { | ||
"@turf/circle": "^5.1.0", | ||
"@turf/helpers": "^5.1.0", | ||
"@turf/invariant": "^5.1.0", | ||
"@turf/line-arc": "^5.1.0", | ||
"@turf/meta": "^5.1.0" | ||
"@turf/circle": "^5.1.5", | ||
"@turf/helpers": "^5.1.5", | ||
"@turf/invariant": "^5.1.5", | ||
"@turf/line-arc": "^5.1.5", | ||
"@turf/meta": "^5.1.5" | ||
}, | ||
@@ -55,0 +55,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
12926
7
Updated@turf/circle@^5.1.5
Updated@turf/helpers@^5.1.5
Updated@turf/invariant@^5.1.5
Updated@turf/line-arc@^5.1.5
Updated@turf/meta@^5.1.5