@dra2020/baseclient 1.0.149 → 1.0.150

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.
package/lib/geo/geo.ts CHANGED
@@ -58,6 +58,7 @@ export function isValidId(col: GeoFeatureCollection): boolean
58
58
  for (let i = 0; i < col.features.length; i++)
59
59
  {
60
60
  let f = col.features[i];
61
+ if (typeof f.properties.id === 'number') f.properties.id = String(f.properties.id); // Fix old 2016_BG collections
61
62
  if (typeof f.properties.id !== 'string') return false; // id must be string
62
63
  if (set.has(f.properties.id)) return false; // id must be unique
63
64
  set.add(f.properties.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.149",
3
+ "version": "1.0.150",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",