@koopjs/geoservice-utils
Advanced tools
Comparing version 2.1.3 to 2.2.0
@@ -61,3 +61,8 @@ "use strict"; | ||
function parseString(param) { | ||
return param.split(',').map((item) => Number(item.trim())); | ||
try { | ||
return JSON.parse(param); | ||
} | ||
catch (error) { | ||
return param.split(',').map((item) => Number(item.trim())); | ||
} | ||
} | ||
@@ -64,0 +69,0 @@ function extractGeometryFilterSpatialReference(filter) { |
{ | ||
"name": "@koopjs/geoservice-utils", | ||
"version": "2.1.3", | ||
"version": "2.2.0", | ||
"description": "A set of utilities for working with Geoservice requests and parameters.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
29441
405