@dra2020/baseclient 1.0.67 → 1.0.70

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/poly/poly.ts CHANGED
@@ -749,8 +749,8 @@ export function featureRewind(f: any, options?: RewindOptions): any
749
749
  if (!f) return null;
750
750
 
751
751
  // Has to be an unpacked feature
752
- if (f.type !== 'Feature') throw 'featureRewind: must be a valid GeoJSON feature';
753
- if (!f.geometry || f.geometry.packed) throw 'featureRewind: only valid on unpacked features';
752
+ if (f.type !== 'Feature') return f;
753
+ if (!f.geometry || f.geometry.packed) return f;
754
754
 
755
755
  // Non polygons are simpler
756
756
  if (f.geometry.type !== 'Polygon' && f.geometry.type !== 'MultiPolygon') return canonicalPoint(f, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.67",
3
+ "version": "1.0.70",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",