mapshaper 0.6.83 → 0.6.84

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/mapshaper.js CHANGED
@@ -45536,7 +45536,7 @@ ${svg}
45536
45536
  });
45537
45537
  }
45538
45538
 
45539
- var version = "0.6.83";
45539
+ var version = "0.6.84";
45540
45540
 
45541
45541
  // Parse command line args into commands and run them
45542
45542
  // Function takes an optional Node-style callback. A Promise is returned if no callback is given.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapshaper",
3
- "version": "0.6.83",
3
+ "version": "0.6.84",
4
4
  "description": "A tool for editing vector datasets for mapping and GIS.",
5
5
  "keywords": [
6
6
  "shapefile",
@@ -10779,11 +10779,16 @@
10779
10779
  // finish the path if a vertex is selected (but not an interpolated point)
10780
10780
  var finish = hoverVertexInfo?.type == 'vertex';
10781
10781
  if (getLastArcLength(target) < 2) {
10782
- error$1('Defective path');
10782
+ stop$1('Defective path');
10783
10783
  }
10784
10784
  if (finish && polygonMode()) {
10785
10785
  shapes1 = target.shapes.slice(initialShapeCount);
10786
- shapes2 = convertClosedPaths(shapes1);
10786
+ try {
10787
+ shapes2 = convertClosedPaths(shapes1);
10788
+ } catch(e) {
10789
+ console.error(e);
10790
+ stop$1('Invalid path');
10791
+ }
10787
10792
  }
10788
10793
  if (shapes2) {
10789
10794
  replaceDrawnShapes(shapes2);
package/www/mapshaper.js CHANGED
@@ -45536,7 +45536,7 @@ ${svg}
45536
45536
  });
45537
45537
  }
45538
45538
 
45539
- var version = "0.6.83";
45539
+ var version = "0.6.84";
45540
45540
 
45541
45541
  // Parse command line args into commands and run them
45542
45542
  // Function takes an optional Node-style callback. A Promise is returned if no callback is given.