@tak-ps/node-cot 4.1.2 → 4.2.0

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/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v4.2.0
14
+
15
+ - :bug: Fix the polygon type from a Rectangle CoT type to a Polygon
16
+
13
17
  ### v4.1.2
14
18
 
15
19
  - :pencil2: Update Git Repo Location
package/dist/lib/cot.js CHANGED
@@ -102,7 +102,7 @@ export default class CoT {
102
102
  }
103
103
  }
104
104
  else if (feature.geometry.type === 'Polygon') {
105
- cot.event._attributes.type = 'u-d-r';
105
+ cot.event._attributes.type = 'u-d-f';
106
106
  // Inner rings are not yet supported
107
107
  cot.event.detail.link = [];
108
108
  feature.geometry.coordinates[0].pop(); // Dont' Close Loop in COT
package/lib/cot.ts CHANGED
@@ -175,7 +175,7 @@ export default class CoT {
175
175
  });
176
176
  }
177
177
  } else if (feature.geometry.type === 'Polygon') {
178
- cot.event._attributes.type = 'u-d-r';
178
+ cot.event._attributes.type = 'u-d-f';
179
179
 
180
180
  // Inner rings are not yet supported
181
181
  cot.event.detail.link = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-cot",
3
3
  "type": "module",
4
- "version": "4.1.2",
4
+ "version": "4.2.0",
5
5
  "description": "Lightweight JavaScript library for parsing and manipulating TAK messages",
6
6
  "author": "Nick Ingalls <nick@ingalls.ca>",
7
7
  "main": "dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "@turf/point-on-feature": "^6.5.0",
19
19
  "@types/color": "^3.0.3",
20
20
  "@types/geojson": "^7946.0.10",
21
- "ajv": "^8.11.2",
21
+ "ajv": "^8.12.0",
22
22
  "color": "^4.2.3",
23
23
  "protobufjs": "^7.1.2",
24
24
  "xml-js": "^1.6.11"