@airframes/acars-decoder 1.3.2 → 1.4.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 (39) hide show
  1. package/coverage/clover.xml +148 -71
  2. package/coverage/coverage-final.json +23 -22
  3. package/coverage/lcov-report/index.html +24 -24
  4. package/coverage/lcov.info +331 -230
  5. package/dist/DecoderPlugin.js +18 -15
  6. package/dist/IcaoDecoder.js +3 -0
  7. package/dist/MessageDecoder.js +5 -0
  8. package/dist/bin/acars-decoder-test.js +6 -0
  9. package/dist/plugins/Label_15.js +2 -4
  10. package/dist/plugins/Label_1M_Slash.d.ts +11 -0
  11. package/dist/plugins/Label_1M_Slash.js +63 -0
  12. package/dist/plugins/Label_1M_Slash.test.d.ts +1 -0
  13. package/dist/plugins/Label_1M_Slash.test.js +43 -0
  14. package/dist/plugins/Label_20_CFB.01.js +2 -4
  15. package/dist/plugins/Label_20_POS.js +2 -4
  16. package/dist/plugins/Label_44_ETA.js +2 -4
  17. package/dist/plugins/Label_44_IN.js +2 -4
  18. package/dist/plugins/Label_44_OFF.js +2 -4
  19. package/dist/plugins/Label_44_ON.js +2 -4
  20. package/dist/plugins/Label_44_POS.js +2 -4
  21. package/dist/plugins/Label_5Z.js +27 -29
  22. package/dist/plugins/Label_80.js +17 -19
  23. package/dist/plugins/Label_8E.js +2 -4
  24. package/dist/plugins/Label_8E.test.d.ts +1 -0
  25. package/dist/plugins/Label_8E.test.js +32 -0
  26. package/dist/plugins/Label_B6.js +2 -4
  27. package/dist/plugins/Label_ColonComma.js +2 -4
  28. package/dist/plugins/Label_H1.js +1 -0
  29. package/dist/plugins/Label_H1_M1BPOS.js +2 -4
  30. package/dist/plugins/Label_H1_M1BPRG.js +2 -4
  31. package/dist/plugins/Label_QP.js +2 -4
  32. package/dist/plugins/Label_QQ.js +2 -4
  33. package/dist/plugins/Label_QR.js +2 -4
  34. package/dist/plugins/Label_QS.js +2 -4
  35. package/dist/plugins/Label_SQ.js +2 -4
  36. package/dist/plugins/official.d.ts +1 -0
  37. package/dist/plugins/official.js +34 -22
  38. package/index.d.ts +17 -0
  39. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1661282934992" clover="3.2.0">
3
- <project timestamp="1661282934992" name="All files">
4
- <metrics statements="1644" coveredstatements="425" conditionals="159" coveredconditionals="118" methods="88" coveredmethods="42" elements="1891" coveredelements="585" complexity="0" loc="1644" ncloc="1644" packages="2" files="22" classes="22"/>
2
+ <coverage generated="1661296298616" clover="3.2.0">
3
+ <project timestamp="1661296298616" name="All files">
4
+ <metrics statements="1718" coveredstatements="496" conditionals="169" coveredconditionals="126" methods="92" coveredmethods="46" elements="1979" coveredelements="668" complexity="0" loc="1718" ncloc="1718" packages="2" files="23" classes="23"/>
5
5
  <package name="lib">
6
- <metrics statements="194" coveredstatements="98" conditionals="4" coveredconditionals="4" methods="12" coveredmethods="4"/>
6
+ <metrics statements="195" coveredstatements="99" conditionals="4" coveredconditionals="4" methods="12" coveredmethods="4"/>
7
7
  <file name="DecoderPlugin.ts" path="/Users/kevin/Cloud/Dropbox/work/airframes/acars-decoder-typescript/lib/DecoderPlugin.ts">
8
8
  <metrics statements="81" coveredstatements="50" conditionals="2" coveredconditionals="2" methods="8" coveredmethods="2"/>
9
9
  <line num="1" count="1" type="stmt"/>
@@ -12,8 +12,8 @@
12
12
  <line num="4" count="1" type="stmt"/>
13
13
  <line num="5" count="1" type="stmt"/>
14
14
  <line num="6" count="1" type="cond" truecount="1" falsecount="0"/>
15
- <line num="7" count="19" type="stmt"/>
16
- <line num="8" count="19" type="stmt"/>
15
+ <line num="7" count="40" type="stmt"/>
16
+ <line num="8" count="40" type="stmt"/>
17
17
  <line num="9" count="1" type="stmt"/>
18
18
  <line num="10" count="1" type="stmt"/>
19
19
  <line num="11" count="1" type="stmt"/>
@@ -31,9 +31,9 @@
31
31
  <line num="23" count="1" type="stmt"/>
32
32
  <line num="24" count="1" type="stmt"/>
33
33
  <line num="25" count="1" type="cond" truecount="1" falsecount="0"/>
34
- <line num="26" count="19" type="stmt"/>
35
- <line num="27" count="19" type="stmt"/>
36
- <line num="28" count="19" type="stmt"/>
34
+ <line num="26" count="40" type="stmt"/>
35
+ <line num="27" count="40" type="stmt"/>
36
+ <line num="28" count="40" type="stmt"/>
37
37
  <line num="29" count="1" type="stmt"/>
38
38
  <line num="30" count="1" type="stmt"/>
39
39
  <line num="31" count="0" type="stmt"/>
@@ -89,7 +89,7 @@
89
89
  <line num="81" count="1" type="stmt"/>
90
90
  </file>
91
91
  <file name="MessageDecoder.ts" path="/Users/kevin/Cloud/Dropbox/work/airframes/acars-decoder-typescript/lib/MessageDecoder.ts">
92
- <metrics statements="113" coveredstatements="48" conditionals="2" coveredconditionals="2" methods="4" coveredmethods="2"/>
92
+ <metrics statements="114" coveredstatements="49" conditionals="2" coveredconditionals="2" methods="4" coveredmethods="2"/>
93
93
  <line num="1" count="1" type="stmt"/>
94
94
  <line num="2" count="1" type="stmt"/>
95
95
  <line num="3" count="1" type="stmt"/>
@@ -100,39 +100,39 @@
100
100
  <line num="8" count="1" type="stmt"/>
101
101
  <line num="9" count="1" type="stmt"/>
102
102
  <line num="10" count="1" type="cond" truecount="1" falsecount="0"/>
103
- <line num="11" count="1" type="stmt"/>
104
- <line num="12" count="1" type="stmt"/>
105
- <line num="13" count="1" type="stmt"/>
106
- <line num="14" count="1" type="stmt"/>
107
- <line num="15" count="1" type="stmt"/>
108
- <line num="16" count="1" type="stmt"/>
109
- <line num="17" count="1" type="stmt"/>
110
- <line num="18" count="1" type="stmt"/>
111
- <line num="19" count="1" type="stmt"/>
112
- <line num="20" count="1" type="stmt"/>
113
- <line num="21" count="1" type="stmt"/>
114
- <line num="22" count="1" type="stmt"/>
115
- <line num="23" count="1" type="stmt"/>
116
- <line num="24" count="1" type="stmt"/>
117
- <line num="25" count="1" type="stmt"/>
118
- <line num="26" count="1" type="stmt"/>
119
- <line num="27" count="1" type="stmt"/>
120
- <line num="28" count="1" type="stmt"/>
121
- <line num="29" count="1" type="stmt"/>
122
- <line num="30" count="1" type="stmt"/>
123
- <line num="31" count="1" type="stmt"/>
124
- <line num="32" count="1" type="stmt"/>
125
- <line num="33" count="1" type="stmt"/>
126
- <line num="34" count="1" type="stmt"/>
127
- <line num="35" count="1" type="cond" truecount="1" falsecount="0"/>
128
- <line num="36" count="18" type="stmt"/>
129
- <line num="37" count="18" type="stmt"/>
130
- <line num="38" count="18" type="stmt"/>
131
- <line num="39" count="18" type="stmt"/>
132
- <line num="40" count="18" type="stmt"/>
133
- <line num="41" count="1" type="stmt"/>
103
+ <line num="11" count="2" type="stmt"/>
104
+ <line num="12" count="2" type="stmt"/>
105
+ <line num="13" count="2" type="stmt"/>
106
+ <line num="14" count="2" type="stmt"/>
107
+ <line num="15" count="2" type="stmt"/>
108
+ <line num="16" count="2" type="stmt"/>
109
+ <line num="17" count="2" type="stmt"/>
110
+ <line num="18" count="2" type="stmt"/>
111
+ <line num="19" count="2" type="stmt"/>
112
+ <line num="20" count="2" type="stmt"/>
113
+ <line num="21" count="2" type="stmt"/>
114
+ <line num="22" count="2" type="stmt"/>
115
+ <line num="23" count="2" type="stmt"/>
116
+ <line num="24" count="2" type="stmt"/>
117
+ <line num="25" count="2" type="stmt"/>
118
+ <line num="26" count="2" type="stmt"/>
119
+ <line num="27" count="2" type="stmt"/>
120
+ <line num="28" count="2" type="stmt"/>
121
+ <line num="29" count="2" type="stmt"/>
122
+ <line num="30" count="2" type="stmt"/>
123
+ <line num="31" count="2" type="stmt"/>
124
+ <line num="32" count="2" type="stmt"/>
125
+ <line num="33" count="2" type="stmt"/>
126
+ <line num="34" count="2" type="stmt"/>
127
+ <line num="35" count="1" type="stmt"/>
128
+ <line num="36" count="1" type="cond" truecount="1" falsecount="0"/>
129
+ <line num="37" count="38" type="stmt"/>
130
+ <line num="38" count="38" type="stmt"/>
131
+ <line num="39" count="38" type="stmt"/>
132
+ <line num="40" count="38" type="stmt"/>
133
+ <line num="41" count="38" type="stmt"/>
134
134
  <line num="42" count="1" type="stmt"/>
135
- <line num="43" count="0" type="stmt"/>
135
+ <line num="43" count="1" type="stmt"/>
136
136
  <line num="44" count="0" type="stmt"/>
137
137
  <line num="45" count="0" type="stmt"/>
138
138
  <line num="46" count="0" type="stmt"/>
@@ -191,22 +191,23 @@
191
191
  <line num="99" count="0" type="stmt"/>
192
192
  <line num="100" count="0" type="stmt"/>
193
193
  <line num="101" count="0" type="stmt"/>
194
- <line num="102" count="1" type="stmt"/>
194
+ <line num="102" count="0" type="stmt"/>
195
195
  <line num="103" count="1" type="stmt"/>
196
- <line num="104" count="0" type="stmt"/>
196
+ <line num="104" count="1" type="stmt"/>
197
197
  <line num="105" count="0" type="stmt"/>
198
198
  <line num="106" count="0" type="stmt"/>
199
199
  <line num="107" count="0" type="stmt"/>
200
200
  <line num="108" count="0" type="stmt"/>
201
201
  <line num="109" count="0" type="stmt"/>
202
- <line num="110" count="1" type="stmt"/>
202
+ <line num="110" count="0" type="stmt"/>
203
203
  <line num="111" count="1" type="stmt"/>
204
204
  <line num="112" count="1" type="stmt"/>
205
205
  <line num="113" count="1" type="stmt"/>
206
+ <line num="114" count="1" type="stmt"/>
206
207
  </file>
207
208
  </package>
208
209
  <package name="lib.plugins">
209
- <metrics statements="1450" coveredstatements="327" conditionals="155" coveredconditionals="114" methods="76" coveredmethods="38"/>
210
+ <metrics statements="1523" coveredstatements="397" conditionals="165" coveredconditionals="122" methods="80" coveredmethods="42"/>
210
211
  <file name="Label_15.ts" path="/Users/kevin/Cloud/Dropbox/work/airframes/acars-decoder-typescript/lib/plugins/Label_15.ts">
211
212
  <metrics statements="45" coveredstatements="12" conditionals="1" coveredconditionals="1" methods="3" coveredmethods="1"/>
212
213
  <line num="1" count="1" type="stmt"/>
@@ -255,6 +256,81 @@
255
256
  <line num="44" count="1" type="stmt"/>
256
257
  <line num="45" count="1" type="stmt"/>
257
258
  </file>
259
+ <file name="Label_1M_Slash.ts" path="/Users/kevin/Cloud/Dropbox/work/airframes/acars-decoder-typescript/lib/plugins/Label_1M_Slash.ts">
260
+ <metrics statements="72" coveredstatements="69" conditionals="4" coveredconditionals="3" methods="3" coveredmethods="3"/>
261
+ <line num="1" count="1" type="stmt"/>
262
+ <line num="2" count="1" type="stmt"/>
263
+ <line num="3" count="1" type="stmt"/>
264
+ <line num="4" count="1" type="cond" truecount="1" falsecount="0"/>
265
+ <line num="5" count="1" type="stmt"/>
266
+ <line num="6" count="1" type="cond" truecount="1" falsecount="0"/>
267
+ <line num="7" count="1" type="stmt"/>
268
+ <line num="8" count="1" type="stmt"/>
269
+ <line num="9" count="1" type="stmt"/>
270
+ <line num="10" count="1" type="stmt"/>
271
+ <line num="11" count="1" type="stmt"/>
272
+ <line num="12" count="1" type="stmt"/>
273
+ <line num="13" count="1" type="cond" truecount="1" falsecount="0"/>
274
+ <line num="14" count="1" type="stmt"/>
275
+ <line num="15" count="1" type="stmt"/>
276
+ <line num="16" count="1" type="stmt"/>
277
+ <line num="17" count="1" type="stmt"/>
278
+ <line num="18" count="1" type="stmt"/>
279
+ <line num="19" count="1" type="stmt"/>
280
+ <line num="20" count="1" type="stmt"/>
281
+ <line num="21" count="1" type="stmt"/>
282
+ <line num="22" count="1" type="stmt"/>
283
+ <line num="23" count="1" type="cond" truecount="0" falsecount="1"/>
284
+ <line num="24" count="0" type="stmt"/>
285
+ <line num="25" count="0" type="stmt"/>
286
+ <line num="26" count="0" type="stmt"/>
287
+ <line num="27" count="1" type="stmt"/>
288
+ <line num="28" count="1" type="stmt"/>
289
+ <line num="29" count="1" type="stmt"/>
290
+ <line num="30" count="1" type="stmt"/>
291
+ <line num="31" count="1" type="stmt"/>
292
+ <line num="32" count="1" type="stmt"/>
293
+ <line num="33" count="1" type="stmt"/>
294
+ <line num="34" count="1" type="stmt"/>
295
+ <line num="35" count="1" type="stmt"/>
296
+ <line num="36" count="1" type="stmt"/>
297
+ <line num="37" count="1" type="stmt"/>
298
+ <line num="38" count="1" type="stmt"/>
299
+ <line num="39" count="1" type="stmt"/>
300
+ <line num="40" count="1" type="stmt"/>
301
+ <line num="41" count="1" type="stmt"/>
302
+ <line num="42" count="1" type="stmt"/>
303
+ <line num="43" count="1" type="stmt"/>
304
+ <line num="44" count="1" type="stmt"/>
305
+ <line num="45" count="1" type="stmt"/>
306
+ <line num="46" count="1" type="stmt"/>
307
+ <line num="47" count="1" type="stmt"/>
308
+ <line num="48" count="1" type="stmt"/>
309
+ <line num="49" count="1" type="stmt"/>
310
+ <line num="50" count="1" type="stmt"/>
311
+ <line num="51" count="1" type="stmt"/>
312
+ <line num="52" count="1" type="stmt"/>
313
+ <line num="53" count="1" type="stmt"/>
314
+ <line num="54" count="1" type="stmt"/>
315
+ <line num="55" count="1" type="stmt"/>
316
+ <line num="56" count="1" type="stmt"/>
317
+ <line num="57" count="1" type="stmt"/>
318
+ <line num="58" count="1" type="stmt"/>
319
+ <line num="59" count="1" type="stmt"/>
320
+ <line num="60" count="1" type="stmt"/>
321
+ <line num="61" count="1" type="stmt"/>
322
+ <line num="62" count="1" type="stmt"/>
323
+ <line num="63" count="1" type="stmt"/>
324
+ <line num="64" count="1" type="stmt"/>
325
+ <line num="65" count="1" type="stmt"/>
326
+ <line num="66" count="1" type="stmt"/>
327
+ <line num="67" count="1" type="stmt"/>
328
+ <line num="68" count="1" type="stmt"/>
329
+ <line num="69" count="1" type="stmt"/>
330
+ <line num="70" count="1" type="stmt"/>
331
+ <line num="71" count="1" type="stmt"/>
332
+ <line num="72" count="1" type="stmt"/>
333
+ </file>
258
334
  <file name="Label_20_POS.ts" path="/Users/kevin/Cloud/Dropbox/work/airframes/acars-decoder-typescript/lib/plugins/Label_20_POS.ts">
259
335
  <metrics statements="68" coveredstatements="12" conditionals="1" coveredconditionals="1" methods="3" coveredmethods="1"/>
260
336
  <line num="1" count="1" type="stmt"/>
@@ -774,8 +850,8 @@
774
850
  <line num="2" count="1" type="stmt"/>
775
851
  <line num="3" count="1" type="stmt"/>
776
852
  <line num="4" count="1" type="cond" truecount="1" falsecount="0"/>
777
- <line num="5" count="1" type="stmt"/>
778
- <line num="6" count="1" type="stmt"/>
853
+ <line num="5" count="2" type="stmt"/>
854
+ <line num="6" count="2" type="stmt"/>
779
855
  <line num="7" count="1" type="stmt"/>
780
856
  <line num="8" count="1" type="stmt"/>
781
857
  <line num="9" count="1" type="stmt"/>
@@ -904,8 +980,8 @@
904
980
  <line num="4" count="1" type="stmt"/>
905
981
  <line num="5" count="1" type="stmt"/>
906
982
  <line num="6" count="1" type="cond" truecount="1" falsecount="0"/>
907
- <line num="7" count="1" type="stmt"/>
908
- <line num="8" count="1" type="stmt"/>
983
+ <line num="7" count="2" type="stmt"/>
984
+ <line num="8" count="2" type="stmt"/>
909
985
  <line num="9" count="1" type="stmt"/>
910
986
  <line num="10" count="1" type="stmt"/>
911
987
  <line num="11" count="1" type="stmt"/>
@@ -1311,11 +1387,11 @@
1311
1387
  <line num="60" count="1" type="stmt"/>
1312
1388
  </file>
1313
1389
  <file name="Label_H1_M1BPRG.ts" path="/Users/kevin/Cloud/Dropbox/work/airframes/acars-decoder-typescript/lib/plugins/Label_H1_M1BPRG.ts">
1314
- <metrics statements="40" coveredstatements="11" conditionals="1" coveredconditionals="0" methods="3" coveredmethods="0"/>
1390
+ <metrics statements="40" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="0"/>
1315
1391
  <line num="1" count="1" type="stmt"/>
1316
1392
  <line num="2" count="1" type="stmt"/>
1317
1393
  <line num="3" count="1" type="stmt"/>
1318
- <line num="4" count="1" type="cond" truecount="0" falsecount="1"/>
1394
+ <line num="4" count="1" type="stmt"/>
1319
1395
  <line num="5" count="1" type="stmt"/>
1320
1396
  <line num="6" count="1" type="stmt"/>
1321
1397
  <line num="7" count="0" type="stmt"/>
@@ -1696,26 +1772,27 @@
1696
1772
  <line num="111" count="1" type="stmt"/>
1697
1773
  </file>
1698
1774
  <file name="official.ts" path="/Users/kevin/Cloud/Dropbox/work/airframes/acars-decoder-typescript/lib/plugins/official.ts">
1699
- <metrics statements="19" coveredstatements="18" conditionals="132" coveredconditionals="94" methods="19" coveredmethods="18"/>
1700
- <line num="1" count="1" type="cond" truecount="5" falsecount="2"/>
1701
- <line num="2" count="1" type="cond" truecount="5" falsecount="2"/>
1702
- <line num="3" count="1" type="cond" truecount="5" falsecount="2"/>
1703
- <line num="4" count="1" type="cond" truecount="5" falsecount="2"/>
1704
- <line num="5" count="1" type="cond" truecount="5" falsecount="2"/>
1705
- <line num="6" count="1" type="cond" truecount="5" falsecount="2"/>
1706
- <line num="7" count="1" type="cond" truecount="5" falsecount="2"/>
1707
- <line num="8" count="1" type="cond" truecount="5" falsecount="2"/>
1708
- <line num="9" count="1" type="cond" truecount="5" falsecount="2"/>
1709
- <line num="10" count="1" type="cond" truecount="5" falsecount="2"/>
1710
- <line num="11" count="1" type="cond" truecount="5" falsecount="2"/>
1711
- <line num="12" count="1" type="cond" truecount="5" falsecount="2"/>
1712
- <line num="13" count="1" type="cond" truecount="5" falsecount="2"/>
1775
+ <metrics statements="20" coveredstatements="19" conditionals="139" coveredconditionals="99" methods="20" coveredmethods="19"/>
1776
+ <line num="1" count="2" type="cond" truecount="5" falsecount="2"/>
1777
+ <line num="2" count="2" type="cond" truecount="5" falsecount="2"/>
1778
+ <line num="3" count="2" type="cond" truecount="5" falsecount="2"/>
1779
+ <line num="4" count="2" type="cond" truecount="5" falsecount="2"/>
1780
+ <line num="5" count="2" type="cond" truecount="5" falsecount="2"/>
1781
+ <line num="6" count="2" type="cond" truecount="5" falsecount="2"/>
1782
+ <line num="7" count="2" type="cond" truecount="5" falsecount="2"/>
1783
+ <line num="8" count="2" type="cond" truecount="5" falsecount="2"/>
1784
+ <line num="9" count="2" type="cond" truecount="5" falsecount="2"/>
1785
+ <line num="10" count="2" type="cond" truecount="5" falsecount="2"/>
1786
+ <line num="11" count="2" type="cond" truecount="5" falsecount="2"/>
1787
+ <line num="12" count="2" type="cond" truecount="5" falsecount="2"/>
1788
+ <line num="13" count="2" type="cond" truecount="5" falsecount="2"/>
1713
1789
  <line num="14" count="0" type="cond" truecount="4" falsecount="2"/>
1714
- <line num="15" count="1" type="cond" truecount="5" falsecount="2"/>
1715
- <line num="16" count="1" type="cond" truecount="5" falsecount="2"/>
1716
- <line num="17" count="1" type="cond" truecount="5" falsecount="2"/>
1717
- <line num="18" count="1" type="cond" truecount="5" falsecount="2"/>
1718
- <line num="19" count="1" type="cond" truecount="5" falsecount="2"/>
1790
+ <line num="15" count="2" type="cond" truecount="5" falsecount="2"/>
1791
+ <line num="16" count="2" type="cond" truecount="5" falsecount="2"/>
1792
+ <line num="17" count="2" type="cond" truecount="5" falsecount="2"/>
1793
+ <line num="18" count="2" type="cond" truecount="5" falsecount="2"/>
1794
+ <line num="19" count="2" type="cond" truecount="5" falsecount="2"/>
1795
+ <line num="20" count="2" type="cond" truecount="5" falsecount="2"/>
1719
1796
  </file>
1720
1797
  </package>
1721
1798
  </project>