@turf/rhumb-distance
Advanced tools
Comparing version 5.1.0 to 5.1.5
@@ -32,8 +32,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 units = options.units; | ||
// validation | ||
if (!from) { throw new Error('from point is required'); } | ||
if (!to) { throw new Error('to point is required'); } | ||
if (!from) throw new Error('from point is required'); | ||
if (!to) throw new Error('to point is required'); | ||
@@ -83,3 +83,3 @@ var origin = invariant.getCoord(from); | ||
// if dLon over 180° take shorter rhumb line across the anti-meridian: | ||
if (DeltaLambda > Math.PI) { DeltaLambda -= 2 * Math.PI; } | ||
if (DeltaLambda > Math.PI) DeltaLambda -= 2 * Math.PI; | ||
@@ -86,0 +86,0 @@ // on Mercator projection, longitude distances shrink by latitude; q is the 'stretch factor' |
{ | ||
"name": "@turf/rhumb-distance", | ||
"version": "5.1.0", | ||
"version": "5.1.5", | ||
"description": "turf rhumb-distance 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", | ||
@@ -48,7 +49,6 @@ "docs": "node ../../scripts/generate-readmes" | ||
"@std/esm": "*", | ||
"@turf/distance": "^5.1.0", | ||
"@turf/distance": "^5.1.5", | ||
"benchmark": "*", | ||
"load-json-file": "*", | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*", | ||
@@ -58,4 +58,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" | ||
}, | ||
@@ -62,0 +62,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
15820
7
Updated@turf/helpers@^5.1.5
Updated@turf/invariant@^5.1.5