@tak-ps/node-cot 5.0.3 → 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,14 @@
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
+
13
21
  ### v5.0.3
14
22
 
15
23
  - :bug: `remarks._text` 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
  },
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.3",
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
  },
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 {
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.3",
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",