@dataforsyningen/saul 5.0.1-alpha → 5.0.1-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -187,8 +187,8 @@ async function getZ(xcoor, ycoor, auth) {
187
187
  if (text_begin.test(dhm_text)) {
188
188
  const zsubstr = dhm_text.slice(text_begin.lastIndex)
189
189
  const z = parseFloat(zsubstr)
190
- if (z) return z
191
- throw new DHMParseError('Cannot parse float value in response text from DHM GetFeatureInfo after pattern.', { cause: { response: dhm_text, index: text_begin.lastIndex, slice: zsubstr, x: xcoor, y: ycoor, coords: coords } })
190
+ if (isNaN(z)) throw new DHMParseError('Cannot parse float value in response text from DHM GetFeatureInfo after pattern.', { cause: { response: dhm_text, index: text_begin.lastIndex, slice: zsubstr, x: xcoor, y: ycoor, coords: coords } })
191
+ return z
192
192
  }
193
193
  throw new DHMParseError('Cannot match response text from DHM GetFeatureInfo with pattern.', { cause: { response: dhm_text, pattern: text_begin, x: xcoor, y: ycoor, coords: coords } })
194
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataforsyningen/saul",
3
- "version": "5.0.1-alpha",
3
+ "version": "5.0.1-beta",
4
4
  "description": "This is a collection of stand-alone methods for photogrammetry calculations and API interactions for 'Danske Skråfotos'.",
5
5
  "main": "index.js",
6
6
  "type": "module",