node-red-contrib-web-worldmap 4.5.0 → 4.5.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/worldmap.js +1 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
5
5
  "dependencies": {
6
6
  "@turf/bezier-spline": "~6.5.0",
package/worldmap.js CHANGED
@@ -126,10 +126,8 @@ module.exports = function(RED) {
126
126
  if (err) {
127
127
  if (err.code !== "EEXIST") { console.log(err); }
128
128
  }
129
- else {
130
- client.write(JSON.stringify({command: {map: {name:pmtiles[p].split('.')[0], pmtiles:pmtiles[p] }}}));
131
- }
132
129
  })
130
+ client.write(JSON.stringify({command: {map: {name:pmtiles[p].split('.')[0], pmtiles:pmtiles[p] }}}));
133
131
  }
134
132
  var o = Object.values(allPoints);
135
133
  o.map(v => delete v.tout);