@tak-ps/node-cot 10.4.0 → 10.6.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/lib/feature.ts CHANGED
@@ -55,7 +55,7 @@ export const FeaturePropertyMission = Type.Object({
55
55
 
56
56
  export const InputProperties = Type.Object({
57
57
  callsign: Type.Optional(Type.String({ default: 'UNKNOWN' })),
58
- type: Type.Optional(Type.String({ default: 'a-f-g' })),
58
+ type: Type.Optional(Type.String({ default: 'a-f-G' })),
59
59
  how: Type.Optional(Type.String()),
60
60
  time: Type.Optional(Type.Union([Type.String()])),
61
61
  start: Type.Optional(Type.Union([Type.String()])),
@@ -112,7 +112,7 @@ export const InputProperties = Type.Object({
112
112
 
113
113
  export const Properties = Type.Object({
114
114
  callsign: Type.String({ default: 'UNKNOWN' }),
115
- type: Type.String({ default: 'a-f-g' }),
115
+ type: Type.String({ default: 'a-f-G' }),
116
116
  how: Type.String(),
117
117
  time: Type.String(),
118
118
  start: Type.String(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-cot",
3
3
  "type": "module",
4
- "version": "10.4.0",
4
+ "version": "10.6.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",
@@ -10,7 +10,7 @@
10
10
  "test": "ts-node-test test/",
11
11
  "lint": "eslint *.ts lib/ test/",
12
12
  "doc": "typedoc index.ts",
13
- "build": "tsc --build && cp package.json dist/ && mkdir -p ./dist/lib/proto/ && cp lib/proto/* ./dist/lib/proto/",
13
+ "build": "tsc --build && cp package.json dist/ && cp ./lib/*.xml ./dist/lib/ && mkdir -p ./dist/lib/proto/ && cp lib/proto/* ./dist/lib/proto/",
14
14
  "pretest": "npm run lint"
15
15
  },
16
16
  "dependencies": {
@@ -0,0 +1,8 @@
1
+ import { CoTTypes } from '../index.js'
2
+ import test from 'tape';
3
+
4
+ test(`CoTTypes Parsing`, async (t) => {
5
+ await CoTTypes.CoTTypes.load();
6
+
7
+ t.end();
8
+ });