mapshaper 0.6.56 → 0.6.57
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 +15 -10
- package/package.json +2 -1
- package/www/mapshaper.js +15 -10
package/mapshaper.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
(function () {
|
|
2
2
|
|
|
3
|
-
var VERSION = "0.6.56";
|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
var utils = /*#__PURE__*/Object.freeze({
|
|
7
4
|
__proto__: null,
|
|
8
5
|
get default () { return utils; },
|
|
@@ -42097,13 +42094,19 @@ ${svg}
|
|
|
42097
42094
|
});
|
|
42098
42095
|
|
|
42099
42096
|
function getIOProxy(job) {
|
|
42100
|
-
|
|
42101
|
-
|
|
42102
|
-
|
|
42103
|
-
|
|
42104
|
-
|
|
42097
|
+
async function addInputFile(filename, content) {
|
|
42098
|
+
if (utils.isPromise(content)) {
|
|
42099
|
+
content = await content;
|
|
42100
|
+
}
|
|
42101
|
+
io._cache[filename] = content;
|
|
42102
|
+
return filename; // return filename to support -run '-i {io.ifile()}'
|
|
42103
|
+
}
|
|
42104
|
+
var io = {
|
|
42105
|
+
_cache: {},
|
|
42106
|
+
addInputFile,
|
|
42107
|
+
ifile: addInputFile // ifile() is an alias for addInputFile
|
|
42105
42108
|
};
|
|
42106
|
-
return
|
|
42109
|
+
return io;
|
|
42107
42110
|
}
|
|
42108
42111
|
|
|
42109
42112
|
function commandTakesFileInput(name) {
|
|
@@ -44790,6 +44793,8 @@ ${svg}
|
|
|
44790
44793
|
});
|
|
44791
44794
|
}
|
|
44792
44795
|
|
|
44796
|
+
var version = "0.6.57";
|
|
44797
|
+
|
|
44793
44798
|
// Parse command line args into commands and run them
|
|
44794
44799
|
// Function takes an optional Node-style callback. A Promise is returned if no callback is given.
|
|
44795
44800
|
// function(argv[, input], callback)
|
|
@@ -45093,7 +45098,7 @@ ${svg}
|
|
|
45093
45098
|
function runAndRemoveInfoCommands(commands) {
|
|
45094
45099
|
return commands.filter(function(cmd) {
|
|
45095
45100
|
if (cmd.name == 'version') {
|
|
45096
|
-
print(
|
|
45101
|
+
print(version);
|
|
45097
45102
|
} else if (cmd.name == 'encodings') {
|
|
45098
45103
|
printEncodings();
|
|
45099
45104
|
} else if (cmd.name == 'colors') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapshaper",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.57",
|
|
4
4
|
"description": "A tool for editing vector datasets for mapping and GIS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shapefile",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"tinyqueue": "^2.0.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
+
"@rollup/plugin-json": "^6.0.1",
|
|
67
68
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
68
69
|
"browserify": "^17.0.0",
|
|
69
70
|
"csv-spectrum": "^1.0.0",
|
package/www/mapshaper.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
(function () {
|
|
2
2
|
|
|
3
|
-
var VERSION = "0.6.56";
|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
var utils = /*#__PURE__*/Object.freeze({
|
|
7
4
|
__proto__: null,
|
|
8
5
|
get default () { return utils; },
|
|
@@ -42097,13 +42094,19 @@ ${svg}
|
|
|
42097
42094
|
});
|
|
42098
42095
|
|
|
42099
42096
|
function getIOProxy(job) {
|
|
42100
|
-
|
|
42101
|
-
|
|
42102
|
-
|
|
42103
|
-
|
|
42104
|
-
|
|
42097
|
+
async function addInputFile(filename, content) {
|
|
42098
|
+
if (utils.isPromise(content)) {
|
|
42099
|
+
content = await content;
|
|
42100
|
+
}
|
|
42101
|
+
io._cache[filename] = content;
|
|
42102
|
+
return filename; // return filename to support -run '-i {io.ifile()}'
|
|
42103
|
+
}
|
|
42104
|
+
var io = {
|
|
42105
|
+
_cache: {},
|
|
42106
|
+
addInputFile,
|
|
42107
|
+
ifile: addInputFile // ifile() is an alias for addInputFile
|
|
42105
42108
|
};
|
|
42106
|
-
return
|
|
42109
|
+
return io;
|
|
42107
42110
|
}
|
|
42108
42111
|
|
|
42109
42112
|
function commandTakesFileInput(name) {
|
|
@@ -44790,6 +44793,8 @@ ${svg}
|
|
|
44790
44793
|
});
|
|
44791
44794
|
}
|
|
44792
44795
|
|
|
44796
|
+
var version = "0.6.57";
|
|
44797
|
+
|
|
44793
44798
|
// Parse command line args into commands and run them
|
|
44794
44799
|
// Function takes an optional Node-style callback. A Promise is returned if no callback is given.
|
|
44795
44800
|
// function(argv[, input], callback)
|
|
@@ -45093,7 +45098,7 @@ ${svg}
|
|
|
45093
45098
|
function runAndRemoveInfoCommands(commands) {
|
|
45094
45099
|
return commands.filter(function(cmd) {
|
|
45095
45100
|
if (cmd.name == 'version') {
|
|
45096
|
-
print(
|
|
45101
|
+
print(version);
|
|
45097
45102
|
} else if (cmd.name == 'encodings') {
|
|
45098
45103
|
printEncodings();
|
|
45099
45104
|
} else if (cmd.name == 'colors') {
|