node-red-contrib-tak-registration 0.15.0 → 0.16.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.
Files changed (59) hide show
  1. package/node_modules/axios/CHANGELOG.md +41 -0
  2. package/node_modules/axios/README.md +19 -19
  3. package/node_modules/axios/dist/axios.js +43 -6
  4. package/node_modules/axios/dist/axios.js.map +1 -1
  5. package/node_modules/axios/dist/axios.min.js +2 -2
  6. package/node_modules/axios/dist/axios.min.js.map +1 -1
  7. package/node_modules/axios/dist/browser/axios.cjs +51 -10
  8. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  9. package/node_modules/axios/dist/esm/axios.js +51 -10
  10. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  11. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  12. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  13. package/node_modules/axios/dist/node/axios.cjs +51 -10
  14. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  15. package/node_modules/axios/index.d.cts +14 -3
  16. package/node_modules/axios/index.d.ts +1 -1
  17. package/node_modules/axios/lib/adapters/fetch.js +1 -1
  18. package/node_modules/axios/lib/core/Axios.js +2 -2
  19. package/node_modules/axios/lib/core/mergeConfig.js +1 -1
  20. package/node_modules/axios/lib/env/data.js +1 -1
  21. package/node_modules/axios/lib/helpers/throttle.js +1 -1
  22. package/node_modules/axios/lib/helpers/toFormData.js +4 -0
  23. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
  24. package/node_modules/axios/lib/utils.js +36 -0
  25. package/node_modules/axios/package.json +14 -5
  26. package/node_modules/fast-xml-parser/CHANGELOG.md +7 -0
  27. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  28. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  29. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  30. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  31. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  32. package/node_modules/fast-xml-parser/package.json +1 -2
  33. package/node_modules/fast-xml-parser/src/cli/cli.js +4 -0
  34. package/node_modules/fast-xml-parser/src/fxp.d.ts +5 -5
  35. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +3 -3
  36. package/node_modules/form-data/CHANGELOG.md +601 -0
  37. package/node_modules/form-data/{Readme.md → README.md} +34 -37
  38. package/node_modules/form-data/lib/browser.js +3 -1
  39. package/node_modules/form-data/lib/form_data.js +126 -135
  40. package/node_modules/form-data/lib/populate.js +5 -5
  41. package/node_modules/form-data/package.json +24 -16
  42. package/node_modules/protobufjs/dist/light/protobuf.js +8 -7
  43. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  44. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  45. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  46. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  47. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  48. package/node_modules/protobufjs/dist/protobuf.js +8 -7
  49. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  50. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  51. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  52. package/node_modules/protobufjs/ext/descriptor/index.js +179 -69
  53. package/node_modules/protobufjs/google/protobuf/descriptor.json +659 -16
  54. package/node_modules/protobufjs/google/protobuf/descriptor.proto +254 -6
  55. package/node_modules/protobufjs/package.json +1 -1
  56. package/node_modules/protobufjs/src/namespace.js +3 -1
  57. package/node_modules/protobufjs/src/root.js +3 -4
  58. package/package.json +5 -5
  59. package/tak-registration.js +6 -4
@@ -2,9 +2,35 @@ syntax = "proto2";
2
2
 
3
3
  package google.protobuf;
4
4
 
5
+ option go_package = "google.golang.org/protobuf/types/descriptorpb";
6
+ option java_package = "com.google.protobuf";
7
+ option java_outer_classname = "DescriptorProtos";
8
+ option csharp_namespace = "Google.Protobuf.Reflection";
9
+ option objc_class_prefix = "GPB";
10
+ option cc_enable_arenas = true;
11
+ option optimize_for = "SPEED";
12
+
5
13
  message FileDescriptorSet {
6
14
 
7
15
  repeated FileDescriptorProto file = 1;
16
+
17
+ extensions 536000000;
18
+ }
19
+
20
+ enum Edition {
21
+
22
+ EDITION_UNKNOWN = 0;
23
+ EDITION_LEGACY = 900;
24
+ EDITION_PROTO2 = 998;
25
+ EDITION_PROTO3 = 999;
26
+ EDITION_2023 = 1000;
27
+ EDITION_2024 = 1001;
28
+ EDITION_1_TEST_ONLY = 1;
29
+ EDITION_2_TEST_ONLY = 2;
30
+ EDITION_99997_TEST_ONLY = 99997;
31
+ EDITION_99998_TEST_ONLY = 99998;
32
+ EDITION_99999_TEST_ONLY = 99999;
33
+ EDITION_MAX = 2147483647;
8
34
  }
9
35
 
10
36
  message FileDescriptorProto {
@@ -14,6 +40,7 @@ message FileDescriptorProto {
14
40
  repeated string dependency = 3;
15
41
  repeated int32 public_dependency = 10;
16
42
  repeated int32 weak_dependency = 11;
43
+ repeated string option_dependency = 15;
17
44
  repeated DescriptorProto message_type = 4;
18
45
  repeated EnumDescriptorProto enum_type = 5;
19
46
  repeated ServiceDescriptorProto service = 6;
@@ -21,6 +48,7 @@ message FileDescriptorProto {
21
48
  optional FileOptions options = 8;
22
49
  optional SourceCodeInfo source_code_info = 9;
23
50
  optional string syntax = 12;
51
+ optional Edition edition = 14;
24
52
  }
25
53
 
26
54
  message DescriptorProto {
@@ -35,11 +63,13 @@ message DescriptorProto {
35
63
  optional MessageOptions options = 7;
36
64
  repeated ReservedRange reserved_range = 9;
37
65
  repeated string reserved_name = 10;
66
+ optional SymbolVisibility visibility = 11;
38
67
 
39
68
  message ExtensionRange {
40
69
 
41
70
  optional int32 start = 1;
42
71
  optional int32 end = 2;
72
+ optional ExtensionRangeOptions options = 3;
43
73
  }
44
74
 
45
75
  message ReservedRange {
@@ -49,6 +79,33 @@ message DescriptorProto {
49
79
  }
50
80
  }
51
81
 
82
+ message ExtensionRangeOptions {
83
+
84
+ repeated UninterpretedOption uninterpreted_option = 999;
85
+ repeated Declaration declaration = 2 [retention="RETENTION_SOURCE"];
86
+ optional FeatureSet features = 50;
87
+ optional VerificationState verification = 3 [default=UNVERIFIED, retention="RETENTION_SOURCE"];
88
+
89
+ message Declaration {
90
+
91
+ optional int32 number = 1;
92
+ optional string full_name = 2;
93
+ optional string type = 3;
94
+ optional bool reserved = 5;
95
+ optional bool repeated = 6;
96
+
97
+ reserved 4;
98
+ }
99
+
100
+ enum VerificationState {
101
+
102
+ DECLARATION = 0;
103
+ UNVERIFIED = 1;
104
+ }
105
+
106
+ extensions 1000 to max;
107
+ }
108
+
52
109
  message FieldDescriptorProto {
53
110
 
54
111
  optional string name = 1;
@@ -61,6 +118,7 @@ message FieldDescriptorProto {
61
118
  optional int32 oneof_index = 9;
62
119
  optional string json_name = 10;
63
120
  optional FieldOptions options = 8;
121
+ optional bool proto3_optional = 17;
64
122
 
65
123
  enum Type {
66
124
 
@@ -87,8 +145,8 @@ message FieldDescriptorProto {
87
145
  enum Label {
88
146
 
89
147
  LABEL_OPTIONAL = 1;
90
- LABEL_REQUIRED = 2;
91
148
  LABEL_REPEATED = 3;
149
+ LABEL_REQUIRED = 2;
92
150
  }
93
151
  }
94
152
 
@@ -103,6 +161,15 @@ message EnumDescriptorProto {
103
161
  optional string name = 1;
104
162
  repeated EnumValueDescriptorProto value = 2;
105
163
  optional EnumOptions options = 3;
164
+ repeated EnumReservedRange reserved_range = 4;
165
+ repeated string reserved_name = 5;
166
+ optional SymbolVisibility visibility = 6;
167
+
168
+ message EnumReservedRange {
169
+
170
+ optional int32 start = 1;
171
+ optional int32 end = 2;
172
+ }
106
173
  }
107
174
 
108
175
  message EnumValueDescriptorProto {
@@ -142,9 +209,15 @@ message FileOptions {
142
209
  optional bool java_generic_services = 17;
143
210
  optional bool py_generic_services = 18;
144
211
  optional bool deprecated = 23;
145
- optional bool cc_enable_arenas = 31;
212
+ optional bool cc_enable_arenas = 31 [default=true];
146
213
  optional string objc_class_prefix = 36;
147
214
  optional string csharp_namespace = 37;
215
+ optional string swift_prefix = 39;
216
+ optional string php_class_prefix = 40;
217
+ optional string php_namespace = 41;
218
+ optional string php_metadata_namespace = 44;
219
+ optional string ruby_package = 45;
220
+ optional FeatureSet features = 50;
148
221
  repeated UninterpretedOption uninterpreted_option = 999;
149
222
 
150
223
  enum OptimizeMode {
@@ -156,7 +229,7 @@ message FileOptions {
156
229
 
157
230
  extensions 1000 to max;
158
231
 
159
- reserved 38;
232
+ reserved 42, "php_generic_services", 38;
160
233
  }
161
234
 
162
235
  message MessageOptions {
@@ -165,11 +238,13 @@ message MessageOptions {
165
238
  optional bool no_standard_descriptor_accessor = 2;
166
239
  optional bool deprecated = 3;
167
240
  optional bool map_entry = 7;
241
+ optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated=true];
242
+ optional FeatureSet features = 12;
168
243
  repeated UninterpretedOption uninterpreted_option = 999;
169
244
 
170
245
  extensions 1000 to max;
171
246
 
172
- reserved 8;
247
+ reserved 4, 5, 6, 8, 9;
173
248
  }
174
249
 
175
250
  message FieldOptions {
@@ -178,8 +253,15 @@ message FieldOptions {
178
253
  optional bool packed = 2;
179
254
  optional JSType jstype = 6 [default=JS_NORMAL];
180
255
  optional bool lazy = 5;
256
+ optional bool unverified_lazy = 15;
181
257
  optional bool deprecated = 3;
182
- optional bool weak = 10;
258
+ optional bool weak = 10 [deprecated=true];
259
+ optional bool debug_redact = 16;
260
+ optional OptionRetention retention = 17;
261
+ repeated OptionTargetType targets = 19;
262
+ repeated EditionDefault edition_defaults = 20;
263
+ optional FeatureSet features = 21;
264
+ optional FeatureSupport feature_support = 22;
183
265
  repeated UninterpretedOption uninterpreted_option = 999;
184
266
 
185
267
  enum CType {
@@ -196,13 +278,49 @@ message FieldOptions {
196
278
  JS_NUMBER = 2;
197
279
  }
198
280
 
281
+ enum OptionRetention {
282
+
283
+ RETENTION_UNKNOWN = 0;
284
+ RETENTION_RUNTIME = 1;
285
+ RETENTION_SOURCE = 2;
286
+ }
287
+
288
+ enum OptionTargetType {
289
+
290
+ TARGET_TYPE_UNKNOWN = 0;
291
+ TARGET_TYPE_FILE = 1;
292
+ TARGET_TYPE_EXTENSION_RANGE = 2;
293
+ TARGET_TYPE_MESSAGE = 3;
294
+ TARGET_TYPE_FIELD = 4;
295
+ TARGET_TYPE_ONEOF = 5;
296
+ TARGET_TYPE_ENUM = 6;
297
+ TARGET_TYPE_ENUM_ENTRY = 7;
298
+ TARGET_TYPE_SERVICE = 8;
299
+ TARGET_TYPE_METHOD = 9;
300
+ }
301
+
302
+ message EditionDefault {
303
+
304
+ optional Edition edition = 3;
305
+ optional string value = 2;
306
+ }
307
+
308
+ message FeatureSupport {
309
+
310
+ optional Edition edition_introduced = 1;
311
+ optional Edition edition_deprecated = 2;
312
+ optional string deprecation_warning = 3;
313
+ optional Edition edition_removed = 4;
314
+ }
315
+
199
316
  extensions 1000 to max;
200
317
 
201
- reserved 4;
318
+ reserved 4, 18;
202
319
  }
203
320
 
204
321
  message OneofOptions {
205
322
 
323
+ optional FeatureSet features = 1;
206
324
  repeated UninterpretedOption uninterpreted_option = 999;
207
325
 
208
326
  extensions 1000 to max;
@@ -212,14 +330,21 @@ message EnumOptions {
212
330
 
213
331
  optional bool allow_alias = 2;
214
332
  optional bool deprecated = 3;
333
+ optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated=true];
334
+ optional FeatureSet features = 7;
215
335
  repeated UninterpretedOption uninterpreted_option = 999;
216
336
 
217
337
  extensions 1000 to max;
338
+
339
+ reserved 5;
218
340
  }
219
341
 
220
342
  message EnumValueOptions {
221
343
 
222
344
  optional bool deprecated = 1;
345
+ optional FeatureSet features = 2;
346
+ optional bool debug_redact = 3;
347
+ optional FieldOptions.FeatureSupport feature_support = 4;
223
348
  repeated UninterpretedOption uninterpreted_option = 999;
224
349
 
225
350
  extensions 1000 to max;
@@ -227,6 +352,7 @@ message EnumValueOptions {
227
352
 
228
353
  message ServiceOptions {
229
354
 
355
+ optional FeatureSet features = 34;
230
356
  optional bool deprecated = 33;
231
357
  repeated UninterpretedOption uninterpreted_option = 999;
232
358
 
@@ -236,8 +362,17 @@ message ServiceOptions {
236
362
  message MethodOptions {
237
363
 
238
364
  optional bool deprecated = 33;
365
+ optional IdempotencyLevel idempotency_level = 34 [default=IDEMPOTENCY_UNKNOWN];
366
+ optional FeatureSet features = 35;
239
367
  repeated UninterpretedOption uninterpreted_option = 999;
240
368
 
369
+ enum IdempotencyLevel {
370
+
371
+ IDEMPOTENCY_UNKNOWN = 0;
372
+ NO_SIDE_EFFECTS = 1;
373
+ IDEMPOTENT = 2;
374
+ }
375
+
241
376
  extensions 1000 to max;
242
377
  }
243
378
 
@@ -258,6 +393,102 @@ message UninterpretedOption {
258
393
  }
259
394
  }
260
395
 
396
+ message FeatureSet {
397
+
398
+ optional FieldPresence field_presence = 1 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_2023", edition_defaults.value="EXPLICIT"];
399
+ optional EnumType enum_type = 2 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="OPEN"];
400
+ optional RepeatedFieldEncoding repeated_field_encoding = 3 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="PACKED"];
401
+ optional Utf8Validation utf8_validation = 4 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="VERIFY"];
402
+ optional MessageEncoding message_encoding = 5 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_LEGACY", edition_defaults.value="LENGTH_PREFIXED"];
403
+ optional JsonFormat json_format = 6 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="ALLOW"];
404
+ optional EnforceNamingStyle enforce_naming_style = 7 [retention="RETENTION_SOURCE", targets="TARGET_TYPE_METHOD", feature_support.edition_introduced="EDITION_2024", edition_defaults.edition="EDITION_2024", edition_defaults.value="STYLE2024"];
405
+ optional VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention="RETENTION_SOURCE", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2024", edition_defaults.edition="EDITION_2024", edition_defaults.value="EXPORT_TOP_LEVEL"];
406
+
407
+ enum FieldPresence {
408
+
409
+ FIELD_PRESENCE_UNKNOWN = 0;
410
+ EXPLICIT = 1;
411
+ IMPLICIT = 2;
412
+ LEGACY_REQUIRED = 3;
413
+ }
414
+
415
+ enum EnumType {
416
+
417
+ ENUM_TYPE_UNKNOWN = 0;
418
+ OPEN = 1;
419
+ CLOSED = 2;
420
+ }
421
+
422
+ enum RepeatedFieldEncoding {
423
+
424
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0;
425
+ PACKED = 1;
426
+ EXPANDED = 2;
427
+ }
428
+
429
+ enum Utf8Validation {
430
+
431
+ UTF8_VALIDATION_UNKNOWN = 0;
432
+ VERIFY = 2;
433
+ NONE = 3;
434
+ }
435
+
436
+ enum MessageEncoding {
437
+
438
+ MESSAGE_ENCODING_UNKNOWN = 0;
439
+ LENGTH_PREFIXED = 1;
440
+ DELIMITED = 2;
441
+ }
442
+
443
+ enum JsonFormat {
444
+
445
+ JSON_FORMAT_UNKNOWN = 0;
446
+ ALLOW = 1;
447
+ LEGACY_BEST_EFFORT = 2;
448
+ }
449
+
450
+ enum EnforceNamingStyle {
451
+
452
+ ENFORCE_NAMING_STYLE_UNKNOWN = 0;
453
+ STYLE2024 = 1;
454
+ STYLE_LEGACY = 2;
455
+ }
456
+
457
+ message VisibilityFeature {
458
+
459
+ enum DefaultSymbolVisibility {
460
+
461
+ DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
462
+ EXPORT_ALL = 1;
463
+ EXPORT_TOP_LEVEL = 2;
464
+ LOCAL_ALL = 3;
465
+ STRICT = 4;
466
+ }
467
+
468
+ reserved 1 to max;
469
+ }
470
+
471
+ extensions 1000 to 9994, 9995 to 9999, 10000;
472
+
473
+ reserved 999;
474
+ }
475
+
476
+ message FeatureSetDefaults {
477
+
478
+ repeated FeatureSetEditionDefault defaults = 1;
479
+ optional Edition minimum_edition = 4;
480
+ optional Edition maximum_edition = 5;
481
+
482
+ message FeatureSetEditionDefault {
483
+
484
+ optional Edition edition = 3;
485
+ optional FeatureSet overridable_features = 4;
486
+ optional FeatureSet fixed_features = 5;
487
+
488
+ reserved 1, 2, "features";
489
+ }
490
+ }
491
+
261
492
  message SourceCodeInfo {
262
493
 
263
494
  repeated Location location = 1;
@@ -270,6 +501,8 @@ message SourceCodeInfo {
270
501
  optional string trailing_comments = 4;
271
502
  repeated string leading_detached_comments = 6;
272
503
  }
504
+
505
+ extensions 536000000;
273
506
  }
274
507
 
275
508
  message GeneratedCodeInfo {
@@ -282,5 +515,20 @@ message GeneratedCodeInfo {
282
515
  optional string source_file = 2;
283
516
  optional int32 begin = 3;
284
517
  optional int32 end = 4;
518
+ optional Semantic semantic = 5;
519
+
520
+ enum Semantic {
521
+
522
+ NONE = 0;
523
+ SET = 1;
524
+ ALIAS = 2;
525
+ }
285
526
  }
286
527
  }
528
+
529
+ enum SymbolVisibility {
530
+
531
+ VISIBILITY_UNSET = 0;
532
+ VISIBILITY_LOCAL = 1;
533
+ VISIBILITY_EXPORT = 2;
534
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobufjs",
3
- "version": "7.5.2",
3
+ "version": "7.5.3",
4
4
  "versionScheme": "~",
5
5
  "description": "Protocol Buffers for JavaScript (& TypeScript).",
6
6
  "author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
@@ -352,6 +352,8 @@ Namespace.prototype.define = function define(path, json) {
352
352
  Namespace.prototype.resolveAll = function resolveAll() {
353
353
  if (!this._needsRecursiveResolve) return this;
354
354
 
355
+ this._resolveFeaturesRecursive(this._edition);
356
+
355
357
  var nested = this.nestedArray, i = 0;
356
358
  this.resolve();
357
359
  while (i < nested.length)
@@ -408,7 +410,7 @@ Namespace.prototype.lookup = function lookup(path, filterTypes, parentAlreadyChe
408
410
  return this.root.lookup(path.slice(1), filterTypes);
409
411
 
410
412
  // Early bailout for objects with matching absolute paths
411
- var found = this.root._fullyQualifiedObjects["." + flatPath];
413
+ var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath];
412
414
  if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
413
415
  return found;
414
416
  }
@@ -110,9 +110,6 @@ Root.prototype.load = function load(filename, options, callback) {
110
110
 
111
111
  // Finishes loading by calling the callback (exactly once)
112
112
  function finish(err, root) {
113
- if (root) {
114
- root.resolveAll();
115
- }
116
113
  /* istanbul ignore if */
117
114
  if (!callback) {
118
115
  return;
@@ -120,6 +117,9 @@ Root.prototype.load = function load(filename, options, callback) {
120
117
  if (sync) {
121
118
  throw err;
122
119
  }
120
+ if (root) {
121
+ root.resolveAll();
122
+ }
123
123
  var cb = callback;
124
124
  callback = null;
125
125
  cb(err, root);
@@ -285,7 +285,6 @@ Root.prototype.resolveAll = function resolveAll() {
285
285
  throw Error("unresolvable extensions: " + this.deferred.map(function(field) {
286
286
  return "'extend " + field.extend + "' in " + field.parent.fullName;
287
287
  }).join(", "));
288
- this._resolveFeaturesRecursive(this._edition);
289
288
  return Namespace.prototype.resolveAll.call(this);
290
289
  };
291
290
 
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "node-red-contrib-tak-registration",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK",
5
5
  "dependencies": {
6
6
  "@turf/turf": "7.2.0",
7
7
  "adm-zip": "0.5.16",
8
- "axios": "1.9.0",
9
- "fast-xml-parser": "5.2.3",
10
- "form-data": "4.0.2",
8
+ "axios": "1.11.0",
9
+ "fast-xml-parser": "5.2.5",
10
+ "form-data": "4.0.4",
11
11
  "long": "5.3.2",
12
- "protobufjs": "7.5.2",
12
+ "protobufjs": "7.5.3",
13
13
  "uuid": "11.1.0"
14
14
  },
15
15
  "bundledDependencies": [
@@ -314,10 +314,12 @@ module.exports = function (RED) {
314
314
  msg.payload.SIDC = ais2sidc(msg.payload.aistype);
315
315
  }
316
316
  if (!msg.payload.cottype && msg.payload.SIDC) {
317
- var s = msg.payload.SIDC.split('-')[0].toLowerCase();
318
- if (s.startsWith('s')) {
319
- type = s.split('').join('-').replace('s-', 'a-').replace('-p-', '-');
320
- }
317
+ var s = msg.payload.SIDC.split('-')[0].toUpperCase();
318
+ var t = s.substr(2,1);
319
+ var r = s.substr(4);
320
+ s = s.substr(1,1).toLowerCase();
321
+ type = 'a-' + s + '-' + t + '-' + r.split('').join('-');
322
+ userIcon = '<__milsym id="'+msg.payload.SIDC+'"/>';
321
323
  }
322
324
  if (msg.payload.hasOwnProperty("icon")) {
323
325
  if (msg.payload.icon === 'fa-circle fa-fw') {