@airframes/acars-decoder 1.8.6 → 1.8.8

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/README.md CHANGED
@@ -5,10 +5,10 @@
5
5
  - TypeScript development uses the latest stable Node types (currently v24) without forcing consumers to use a specific Node types version, since `@types/node` is a devDependency.
6
6
  - The published builds are compiled targeting Node 18 runtime via `tsup` so they remain compatible across supported Node versions.
7
7
 
8
-
9
8
  # @airframes/acars-decoder
10
9
 
11
10
  This is a no-op documentation tweak to verify repository access, build/lint, tests, and PR workflow. No functional code changes are included.
11
+
12
12
  # acars-decoder-typescript
13
13
 
14
14
  [![NPM Version](https://badge.fury.io/js/@airframes%2Facars-decoder.svg)](https://badge.fury.io/js/@airframes%2Facars-decoder)
@@ -32,11 +32,13 @@ You are welcome to contribute (please see https://github.com/airframesio/acars-m
32
32
  Add the `@airframes/acars-decoder` library to your JavaScript or TypeScript project.
33
33
 
34
34
  With `yarn`:
35
+
35
36
  ```
36
37
  yarn add @airframes/acars-decoder
37
38
  ```
38
39
 
39
40
  With `npm`:
41
+
40
42
  ```
41
43
  npm install @airframes/acars-decoder
42
44
  ```
@@ -51,8 +53,8 @@ Contributions are welcome! Please follow the [ACARS Message Documentation](https
51
53
 
52
54
  # Contributors
53
55
 
54
- | Contributor | Description |
55
- | ----------- | ----------- |
56
- | [Kevin Elliott](https://github.com/kevinelliott) | Primary Airframes contributor |
57
- | [Michael Johnson](https://github.com/johnsom) | Decoder plugins, testing framework |
58
- | [Mark Bumiller](https://github.com/makrsmark) | Decoder plugins, tests, utilities |
56
+ | Contributor | Description |
57
+ | ------------------------------------------------ | ---------------------------------- |
58
+ | [Kevin Elliott](https://github.com/kevinelliott) | Primary Airframes contributor |
59
+ | [Michael Johnson](https://github.com/johnsom) | Decoder plugins, testing framework |
60
+ | [Mark Bumiller](https://github.com/makrsmark) | Decoder plugins, tests, utilities |
package/dist/index.d.mts CHANGED
@@ -1,15 +1,16 @@
1
1
  declare class IcaoDecoder {
2
2
  name: string;
3
3
  icao: string;
4
+ private static readonly MILITARY_RANGES;
4
5
  constructor(icao: string);
5
- isMilitary(): true | RegExpMatchArray | null;
6
+ isMilitary(): boolean;
6
7
  }
7
8
 
8
9
  /**
9
10
  * Representation of a Message
10
11
  */
11
12
  interface Message {
12
- label?: string;
13
+ label: string;
13
14
  sublabel?: string;
14
15
  text: string;
15
16
  }
@@ -45,10 +46,14 @@ interface DecodeResult {
45
46
  text?: string;
46
47
  };
47
48
  }
49
+ interface Qualifiers {
50
+ labels: string[];
51
+ preambles?: string[];
52
+ }
48
53
  interface DecoderPluginInterface {
49
54
  decode(message: Message): DecodeResult;
50
55
  meetsStateRequirements(): boolean;
51
- qualifiers(): any;
56
+ qualifiers(): Qualifiers;
52
57
  }
53
58
 
54
59
  declare class MessageDecoder {
package/dist/index.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  declare class IcaoDecoder {
2
2
  name: string;
3
3
  icao: string;
4
+ private static readonly MILITARY_RANGES;
4
5
  constructor(icao: string);
5
- isMilitary(): true | RegExpMatchArray | null;
6
+ isMilitary(): boolean;
6
7
  }
7
8
 
8
9
  /**
9
10
  * Representation of a Message
10
11
  */
11
12
  interface Message {
12
- label?: string;
13
+ label: string;
13
14
  sublabel?: string;
14
15
  text: string;
15
16
  }
@@ -45,10 +46,14 @@ interface DecodeResult {
45
46
  text?: string;
46
47
  };
47
48
  }
49
+ interface Qualifiers {
50
+ labels: string[];
51
+ preambles?: string[];
52
+ }
48
53
  interface DecoderPluginInterface {
49
54
  decode(message: Message): DecodeResult;
50
55
  meetsStateRequirements(): boolean;
51
- qualifiers(): any;
56
+ qualifiers(): Qualifiers;
52
57
  }
53
58
 
54
59
  declare class MessageDecoder {