@airframes/acars-decoder 1.6.19 → 1.7.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/README.md +13 -2
- package/package.json +10 -8
- package/dist/index.d.mts +0 -64
- package/dist/index.d.ts +0 -64
- package/dist/index.js +0 -5088
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -5050
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
|
+
# Node.js Support Policy
|
|
2
|
+
|
|
3
|
+
- Runtime support: Node.js >= 18
|
|
4
|
+
- Development and CI: validated on Node 18.x, 20.x, 22.x, and 24.x
|
|
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
|
+
- The published builds are compiled targeting Node 18 runtime via `tsup` so they remain compatible across supported Node versions.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# @airframes/acars-decoder
|
|
10
|
+
|
|
11
|
+
This is a no-op documentation tweak to verify repository access, build/lint, tests, and PR workflow. No functional code changes are included.
|
|
1
12
|
# acars-decoder-typescript
|
|
2
13
|
|
|
3
14
|
[](https://badge.fury.io/js/@airframes%2Facars-decoder)
|
|
4
15
|
[
|
|
5
16
|
](https://github.com/airframesio/acars-decoder-typescript/actions/workflows/yarn-test.yml)
|
|
6
|
-

|
|
17
|
+

|
|
7
18
|
[](https://github.com/airframesio/acars-decoder-typescript/graphs/contributors)
|
|
8
19
|
[](https://github.com/airframesio/acars-decoder-typescript/pulse)
|
|
9
|
-
[](https://discord.gg/
|
|
20
|
+
[](https://discord.gg/airframes)
|
|
10
21
|
|
|
11
22
|
ACARS is an aircraft communications messaging protocol that has been in use worldwide for a few decades. This library exists to specifically decode the text portion of the ACARS message payload.
|
|
12
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airframes/acars-decoder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "ACARS Message Decoder for TypeScript/JavaScript",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"build": "tsup",
|
|
17
17
|
"test": "jest"
|
|
18
18
|
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
19
22
|
"repository": {
|
|
20
23
|
"type": "git",
|
|
21
24
|
"url": "git+https://github.com/airframesio/acars-decoder-typescript.git"
|
|
@@ -27,7 +30,6 @@
|
|
|
27
30
|
"author": "Kevin Elliott <kevin@welikeinc.com>",
|
|
28
31
|
"license": "UNLICENSED",
|
|
29
32
|
"dependencies": {
|
|
30
|
-
"@types/node": "^22.13.10",
|
|
31
33
|
"base85": "^3.1.0",
|
|
32
34
|
"minizlib": "^3.0.1"
|
|
33
35
|
},
|
|
@@ -35,10 +37,10 @@
|
|
|
35
37
|
"@babel/core": "^7.26.9",
|
|
36
38
|
"@babel/preset-env": "^7.26.9",
|
|
37
39
|
"@babel/preset-typescript": "^7.26.0",
|
|
38
|
-
"@types/jest": "^
|
|
39
|
-
"@types/
|
|
40
|
-
"babel-jest": "^
|
|
41
|
-
"jest": "^
|
|
40
|
+
"@types/jest": "^30.0.0",
|
|
41
|
+
"@types/node": "^24.2.1",
|
|
42
|
+
"babel-jest": "^30.2.0",
|
|
43
|
+
"jest": "^30.2.0",
|
|
42
44
|
"ts-jest": "^29.2.6",
|
|
43
45
|
"ts-node": "^10.9.2",
|
|
44
46
|
"tsup": "^8.4.0",
|
|
@@ -47,5 +49,5 @@
|
|
|
47
49
|
"publishConfig": {
|
|
48
50
|
"access": "public"
|
|
49
51
|
},
|
|
50
|
-
"packageManager": "
|
|
51
|
-
}
|
|
52
|
+
"packageManager": "npm@10.9.3"
|
|
53
|
+
}
|
package/dist/index.d.mts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
declare class IcaoDecoder {
|
|
2
|
-
name: string;
|
|
3
|
-
icao: string;
|
|
4
|
-
constructor(icao: string);
|
|
5
|
-
isMilitary(): true | RegExpMatchArray | null;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Representation of a Message
|
|
10
|
-
*/
|
|
11
|
-
interface Message {
|
|
12
|
-
label?: string;
|
|
13
|
-
sublabel?: string;
|
|
14
|
-
text: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Decoder Options
|
|
18
|
-
*/
|
|
19
|
-
interface Options {
|
|
20
|
-
debug?: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Results from decoding a message
|
|
24
|
-
*/
|
|
25
|
-
interface DecodeResult {
|
|
26
|
-
decoded: boolean;
|
|
27
|
-
decoder: {
|
|
28
|
-
name: string;
|
|
29
|
-
type: 'pattern-match' | 'none';
|
|
30
|
-
decodeLevel: 'none' | 'partial' | 'full';
|
|
31
|
-
};
|
|
32
|
-
error?: string;
|
|
33
|
-
formatted: {
|
|
34
|
-
description: string;
|
|
35
|
-
items: {
|
|
36
|
-
type: string;
|
|
37
|
-
code: string;
|
|
38
|
-
label: string;
|
|
39
|
-
value: string;
|
|
40
|
-
}[];
|
|
41
|
-
};
|
|
42
|
-
message?: any;
|
|
43
|
-
raw: any;
|
|
44
|
-
remaining: {
|
|
45
|
-
text?: string;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
interface DecoderPluginInterface {
|
|
49
|
-
decode(message: Message): DecodeResult;
|
|
50
|
-
meetsStateRequirements(): boolean;
|
|
51
|
-
qualifiers(): any;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare class MessageDecoder {
|
|
55
|
-
name: string;
|
|
56
|
-
plugins: Array<DecoderPluginInterface>;
|
|
57
|
-
debug: boolean;
|
|
58
|
-
constructor();
|
|
59
|
-
registerPlugin(plugin: DecoderPluginInterface): boolean;
|
|
60
|
-
decode(message: Message, options?: Options): DecodeResult;
|
|
61
|
-
lookupAirportByIata(iata: string): any;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { IcaoDecoder, MessageDecoder };
|
package/dist/index.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
declare class IcaoDecoder {
|
|
2
|
-
name: string;
|
|
3
|
-
icao: string;
|
|
4
|
-
constructor(icao: string);
|
|
5
|
-
isMilitary(): true | RegExpMatchArray | null;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Representation of a Message
|
|
10
|
-
*/
|
|
11
|
-
interface Message {
|
|
12
|
-
label?: string;
|
|
13
|
-
sublabel?: string;
|
|
14
|
-
text: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Decoder Options
|
|
18
|
-
*/
|
|
19
|
-
interface Options {
|
|
20
|
-
debug?: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Results from decoding a message
|
|
24
|
-
*/
|
|
25
|
-
interface DecodeResult {
|
|
26
|
-
decoded: boolean;
|
|
27
|
-
decoder: {
|
|
28
|
-
name: string;
|
|
29
|
-
type: 'pattern-match' | 'none';
|
|
30
|
-
decodeLevel: 'none' | 'partial' | 'full';
|
|
31
|
-
};
|
|
32
|
-
error?: string;
|
|
33
|
-
formatted: {
|
|
34
|
-
description: string;
|
|
35
|
-
items: {
|
|
36
|
-
type: string;
|
|
37
|
-
code: string;
|
|
38
|
-
label: string;
|
|
39
|
-
value: string;
|
|
40
|
-
}[];
|
|
41
|
-
};
|
|
42
|
-
message?: any;
|
|
43
|
-
raw: any;
|
|
44
|
-
remaining: {
|
|
45
|
-
text?: string;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
interface DecoderPluginInterface {
|
|
49
|
-
decode(message: Message): DecodeResult;
|
|
50
|
-
meetsStateRequirements(): boolean;
|
|
51
|
-
qualifiers(): any;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare class MessageDecoder {
|
|
55
|
-
name: string;
|
|
56
|
-
plugins: Array<DecoderPluginInterface>;
|
|
57
|
-
debug: boolean;
|
|
58
|
-
constructor();
|
|
59
|
-
registerPlugin(plugin: DecoderPluginInterface): boolean;
|
|
60
|
-
decode(message: Message, options?: Options): DecodeResult;
|
|
61
|
-
lookupAirportByIata(iata: string): any;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { IcaoDecoder, MessageDecoder };
|