mapshaper 0.7.9 → 0.7.10

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/bin/mapshaper-gui CHANGED
@@ -109,6 +109,7 @@ function startServer(port) {
109
109
  serveFile(getAssetFilePath(uri), response);
110
110
  }
111
111
  }).listen(port, 'localhost', function() {
112
+ if (process.env.MAPSHAPER_GUI_NO_OPEN) return;
112
113
  // `open` is ESM-only since v9, so import it dynamically from this CJS bin
113
114
  // script. Failure to launch a browser is non-fatal: the user can still
114
115
  // visit the URL printed (or implied) by the running server.