@turf/truncate
Advanced tools
Comparing version 3.13.0 to 4.0.0
@@ -26,6 +26,6 @@ /** | ||
module.exports = function (layer, precision, coordinates) { | ||
precision = precision || 6; | ||
coordinates = coordinates || 2; | ||
precision = (precision !== undefined) ? precision : 6; | ||
coordinates = (coordinates !== undefined) ? coordinates : 2; | ||
if (layer === undefined) { throw new Error('layer is required'); } | ||
if (layer === undefined) throw new Error('layer is required'); | ||
@@ -32,0 +32,0 @@ switch (layer.type) { |
{ | ||
"name": "@turf/truncate", | ||
"version": "3.13.0", | ||
"version": "4.0.0", | ||
"description": "turf truncate module", | ||
@@ -32,2 +32,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@turf/helpers": "^4.0.0", | ||
"benchmark": "^1.0.0", | ||
@@ -34,0 +35,0 @@ "load-json-file": "^2.0.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
6629
5