mapshaper 0.6.57 → 0.6.59

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
@@ -42008,17 +42008,14 @@ ${svg}
42008
42008
  } else {
42009
42009
  moduleName = opts.module;
42010
42010
  }
42011
- if (moduleFile && !require$1('path').isAbsolute(moduleFile)) {
42012
- moduleFile = require$1('path').join(process.cwd(), moduleFile);
42013
- }
42014
42011
  try {
42015
42012
  // import CJS and ES modules
42016
- mod = await import(moduleFile || moduleName);
42013
+ mod = await import(moduleFile ? require$1('url').pathToFileURL(moduleFile) : moduleName);
42017
42014
  if (mod.default) {
42018
42015
  mod = mod.default;
42019
42016
  }
42020
42017
  if (typeof mod == 'function') {
42021
- // assuming that functions are mapshpaper command generators...
42018
+ // assuming that functions are mapshaper command generators...
42022
42019
  // this MUST be changed asap.
42023
42020
  var retn = mod(api);
42024
42021
  if (retn && isValidExternalCommand(retn)) {
@@ -44793,7 +44790,7 @@ ${svg}
44793
44790
  });
44794
44791
  }
44795
44792
 
44796
- var version = "0.6.57";
44793
+ var version = "0.6.59";
44797
44794
 
44798
44795
  // Parse command line args into commands and run them
44799
44796
  // 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.57",
3
+ "version": "0.6.59",
4
4
  "description": "A tool for editing vector datasets for mapping and GIS.",
5
5
  "keywords": [
6
6
  "shapefile",
package/www/mapshaper.js CHANGED
@@ -42008,17 +42008,14 @@ ${svg}
42008
42008
  } else {
42009
42009
  moduleName = opts.module;
42010
42010
  }
42011
- if (moduleFile && !require$1('path').isAbsolute(moduleFile)) {
42012
- moduleFile = require$1('path').join(process.cwd(), moduleFile);
42013
- }
42014
42011
  try {
42015
42012
  // import CJS and ES modules
42016
- mod = await import(moduleFile || moduleName);
42013
+ mod = await import(moduleFile ? require$1('url').pathToFileURL(moduleFile) : moduleName);
42017
42014
  if (mod.default) {
42018
42015
  mod = mod.default;
42019
42016
  }
42020
42017
  if (typeof mod == 'function') {
42021
- // assuming that functions are mapshpaper command generators...
42018
+ // assuming that functions are mapshaper command generators...
42022
42019
  // this MUST be changed asap.
42023
42020
  var retn = mod(api);
42024
42021
  if (retn && isValidExternalCommand(retn)) {
@@ -44793,7 +44790,7 @@ ${svg}
44793
44790
  });
44794
44791
  }
44795
44792
 
44796
- var version = "0.6.57";
44793
+ var version = "0.6.59";
44797
44794
 
44798
44795
  // Parse command line args into commands and run them
44799
44796
  // Function takes an optional Node-style callback. A Promise is returned if no callback is given.