@tak-ps/node-cot 14.1.1 → 14.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
@@ -12,6 +12,10 @@
12
12
 
13
13
  ### Pending Fixed
14
14
 
15
+ ### v14.2.1 - 2025-08-12
16
+
17
+ - :rocket: Include ACKRequested in FileRequest Builder
18
+
15
19
  ### v14.1.1 - 2025-08-07
16
20
 
17
21
  - :rocket: Support WebIcon style icon paths
@@ -1,4 +1,5 @@
1
1
  import Util from '../utils/util.js';
2
+ import { v4 as randomUUID } from 'uuid';
2
3
  import CoT from '../cot.js';
3
4
  export class FileShare extends CoT {
4
5
  constructor(fileshare) {
@@ -9,6 +10,13 @@ export class FileShare extends CoT {
9
10
  detail: {
10
11
  fileshare: {
11
12
  _attributes: fileshare
13
+ },
14
+ ackrequest: {
15
+ _attributes: {
16
+ uid: randomUUID(),
17
+ tag: 'transfer',
18
+ ackrequested: true
19
+ }
12
20
  }
13
21
  }
14
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fileshare.js","sourceRoot":"","sources":["../../../lib/builders/fileshare.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,kBAAkB,CAAA;AACnC,OAAO,GAAG,MAAM,WAAW,CAAC;AAK5B,MAAM,OAAO,SAAU,SAAQ,GAAG;IAC9B,YAAY,SAA6C;QACrD,MAAM,GAAG,GAA2B;YAChC,KAAK,EAAE;gBACH,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC;gBAClD,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE;gBACvB,MAAM,EAAE;oBACJ,SAAS,EAAE;wBACP,WAAW,EAAE,SAAS;qBACzB;iBACJ;aACJ;SACJ,CAAC;QAEF,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;CACJ"}
1
+ {"version":3,"file":"fileshare.js","sourceRoot":"","sources":["../../../lib/builders/fileshare.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,kBAAkB,CAAA;AACnC,OAAO,EAAE,EAAE,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,GAAG,MAAM,WAAW,CAAC;AAK5B,MAAM,OAAO,SAAU,SAAQ,GAAG;IAC9B,YAAY,SAA6C;QACrD,MAAM,GAAG,GAA2B;YAChC,KAAK,EAAE;gBACH,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC;gBAClD,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE;gBACvB,MAAM,EAAE;oBACJ,SAAS,EAAE;wBACP,WAAW,EAAE,SAAS;qBACzB;oBACD,UAAU,EAAE;wBACR,WAAW,EAAE;4BACT,GAAG,EAAE,UAAU,EAAE;4BACjB,GAAG,EAAE,UAAU;4BACf,YAAY,EAAE,IAAI;yBACrB;qBACJ;iBACJ;aACJ;SACJ,CAAC;QAEF,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;CACJ"}
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-cot",
3
3
  "type": "module",
4
- "version": "14.1.1",
4
+ "version": "14.2.0",
5
5
  "description": "Lightweight JavaScript library for parsing and manipulating TAK messages",
6
6
  "author": "Nick Ingalls <nick@ingalls.ca>",
7
7
  "types": "index.ts",
@@ -1,4 +1,5 @@
1
1
  import Util from '../utils/util.js'
2
+ import { v4 as randomUUID } from 'uuid';
2
3
  import CoT from '../cot.js';
3
4
  import type JSONCoT from '../types/types.js';
4
5
  import type { FileShareAttributes } from '../types/types.js';
@@ -13,6 +14,13 @@ export class FileShare extends CoT {
13
14
  detail: {
14
15
  fileshare: {
15
16
  _attributes: fileshare
17
+ },
18
+ ackrequest: {
19
+ _attributes: {
20
+ uid: randomUUID(),
21
+ tag: 'transfer',
22
+ ackrequested: true
23
+ }
16
24
  }
17
25
  }
18
26
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-cot",
3
3
  "type": "module",
4
- "version": "14.1.1",
4
+ "version": "14.2.0",
5
5
  "description": "Lightweight JavaScript library for parsing and manipulating TAK messages",
6
6
  "author": "Nick Ingalls <nick@ingalls.ca>",
7
7
  "types": "index.ts",