@tak-ps/node-cot 5.0.2 → 5.0.5

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,18 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v5.0.5
14
+
15
+ - :bug: Object Defs
16
+
17
+ ### v5.0.4
18
+
19
+ - :bug: Optional `_flow-tags_._attributes`
20
+
21
+ ### v5.0.3
22
+
23
+ - :bug: `remarks._text` is optional
24
+
13
25
  ### v5.0.2
14
26
 
15
27
  - :bug: `remarks._attributes` is optional
@@ -182,7 +182,24 @@
182
182
  },
183
183
  "FlowTags": {
184
184
  "additionalProperties": {
185
- "type": "string"
185
+ "anyOf": [
186
+ {
187
+ "additionalProperties": true,
188
+ "properties": {},
189
+ "type": "object"
190
+ },
191
+ {
192
+ "type": "string"
193
+ }
194
+ ]
195
+ },
196
+ "properties": {
197
+ "_attributes": {
198
+ "additionalProperties": {
199
+ "type": "string"
200
+ },
201
+ "type": "object"
202
+ }
186
203
  },
187
204
  "type": "object"
188
205
  },
@@ -327,9 +344,6 @@
327
344
  "type": "string"
328
345
  }
329
346
  },
330
- "required": [
331
- "_text"
332
- ],
333
347
  "type": "object"
334
348
  },
335
349
  "Status": {
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-cot",
3
3
  "type": "module",
4
- "version": "5.0.2",
4
+ "version": "5.0.5",
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",
package/lib/schema.json CHANGED
@@ -182,7 +182,24 @@
182
182
  },
183
183
  "FlowTags": {
184
184
  "additionalProperties": {
185
- "type": "string"
185
+ "anyOf": [
186
+ {
187
+ "additionalProperties": true,
188
+ "properties": {},
189
+ "type": "object"
190
+ },
191
+ {
192
+ "type": "string"
193
+ }
194
+ ]
195
+ },
196
+ "properties": {
197
+ "_attributes": {
198
+ "additionalProperties": {
199
+ "type": "string"
200
+ },
201
+ "type": "object"
202
+ }
186
203
  },
187
204
  "type": "object"
188
205
  },
@@ -327,9 +344,6 @@
327
344
  "type": "string"
328
345
  }
329
346
  },
330
- "required": [
331
- "_text"
332
- ],
333
347
  "type": "object"
334
348
  },
335
349
  "Status": {
package/lib/types.ts CHANGED
@@ -51,7 +51,10 @@ export interface TakVersion {
51
51
  }
52
52
 
53
53
  export interface FlowTags {
54
- [k: string]: string;
54
+ _attributes?: {
55
+ [k: string]: string
56
+ }
57
+ [k: string]: string | undefined | object;
55
58
  }
56
59
 
57
60
  export interface Group {
@@ -92,7 +95,7 @@ export interface Remarks {
92
95
  time?: string;
93
96
  [k: string]: string | undefined;
94
97
  }
95
- _text: string;
98
+ _text?: string;
96
99
  }
97
100
 
98
101
  export interface PrecisionLocation {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-cot",
3
3
  "type": "module",
4
- "version": "5.0.2",
4
+ "version": "5.0.5",
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",