@dra2020/baseclient 1.0.78 → 1.0.79

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.
@@ -208,6 +208,9 @@ export function polyPack(coords: any, prepack?: PolyPack): PolyPack
208
208
  // Null feature?
209
209
  if (coords == null || (coords.length !== undefined && coords.length == 0)) return null;
210
210
 
211
+ // Null geometry?
212
+ if (coords && coords.type === 'Feature' && coords.geometry == null) return null;
213
+
211
214
  // Actually already a PolyPack?
212
215
  if (coords.offset !== undefined) return coords as PolyPack;
213
216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",