node-red-contrib-tak-registration 0.16.5 → 0.16.7

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "node-red-contrib-tak-registration",
3
- "version": "0.16.5",
3
+ "version": "0.16.7",
4
4
  "description": "A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK",
5
5
  "dependencies": {
6
6
  "@turf/helpers": "^7.3.3",
7
7
  "@turf/centroid": "^7.3.3",
8
8
  "adm-zip": "^0.5.16",
9
9
  "axios": "^1.13.4",
10
- "fast-xml-parser": "^5.3.3",
10
+ "fast-xml-parser": "^5.3.4",
11
11
  "form-data": "^4.0.5",
12
12
  "long": "^5.3.2",
13
13
  "protobufjs": "^8.0.0",
@@ -323,6 +323,7 @@ module.exports = function (RED) {
323
323
  var r = s.substr(4);
324
324
  s = s.substr(1,1).toLowerCase();
325
325
  type = 'a-' + s + '-' + t + '-' + r.split('').join('-');
326
+ if (type.endsWith('-')) { type = type.slice(0, -1); }
326
327
  // userIcon = '<__milsym id="'+msg.payload.SIDC+'"/>';
327
328
  }
328
329
  if (msg.payload.hasOwnProperty("icon")) {