@turf/length
Advanced tools
Comparing version 5.1.0 to 5.1.5
@@ -28,6 +28,6 @@ 'use strict'; | ||
options = options || {}; | ||
if (!helpers.isObject(options)) { throw new Error('options is invalid'); } | ||
if (!helpers.isObject(options)) throw new Error('options is invalid'); | ||
// Input Validation | ||
if (!geojson) { throw new Error('geojson is required'); } | ||
if (!geojson) throw new Error('geojson is required'); | ||
@@ -34,0 +34,0 @@ // Calculate distance from 2-vertex line segements |
{ | ||
"name": "@turf/length", | ||
"version": "5.1.0", | ||
"version": "5.1.5", | ||
"description": "turf length 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,3 +50,2 @@ "docs": "node ../../scripts/generate-readmes" | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*", | ||
@@ -55,5 +55,5 @@ "write-json-file": "*" | ||
"dependencies": { | ||
"@turf/distance": "^5.1.0", | ||
"@turf/helpers": "^5.1.0", | ||
"@turf/meta": "^5.1.0" | ||
"@turf/distance": "^5.1.5", | ||
"@turf/helpers": "^5.1.5", | ||
"@turf/meta": "^5.1.5" | ||
}, | ||
@@ -60,0 +60,0 @@ "@std/esm": { |
8354
6
Updated@turf/distance@^5.1.5
Updated@turf/helpers@^5.1.5
Updated@turf/meta@^5.1.5