@fboes/aerofly-data 1.8.2 → 1.8.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fboes/aerofly-data",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "This project contains data sets for airports and aircraft present in Aerofly FS 4.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -91,14 +91,16 @@ export const getAeroflyAircraft = (directory) => {
91
91
  requirements: parseRequirements(tmdFileContent),
92
92
  };
93
93
 
94
- const liveryIcaoCode = getLiveryIcaoCode(livery.name);
95
- if (liveryIcaoCode !== "") {
96
- livery.icaoCode = liveryIcaoCode;
97
- }
98
-
99
94
  return livery;
100
95
  }),
101
- ];
96
+ ].map((livery) => {
97
+ const liveryIcaoCode = getLiveryIcaoCode(livery.name);
98
+ if (liveryIcaoCode !== "") {
99
+ livery.icaoCode = liveryIcaoCode;
100
+ }
101
+
102
+ return livery;
103
+ });
102
104
 
103
105
  return {
104
106
  aeroflyCode: dirent.name,
@@ -116,11 +118,15 @@ export const getAeroflyAircraft = (directory) => {
116
118
  const getLiveryIcaoCode = (airlineName) => {
117
119
  const name = airlineName.toLowerCase();
118
120
  switch (name) {
121
+ case "all nippon airlines":
122
+ return "ANA";
119
123
  case "american airlines":
120
124
  case "american":
121
125
  return "AAL";
122
126
  case "all nippon airways":
123
127
  return "ANA";
128
+ case "china eastern":
129
+ return "CES";
124
130
  case "lufthansa":
125
131
  return "DLH";
126
132
  case "united airlines":
@@ -129,6 +135,12 @@ const getLiveryIcaoCode = (airlineName) => {
129
135
  case "delta air lines":
130
136
  case "delta":
131
137
  return "DAL";
138
+ case "emirates":
139
+ return "UAE";
140
+ case "singapore airlines":
141
+ return "SIA";
142
+ case "ethiopian":
143
+ return "ETH";
132
144
  case "air france":
133
145
  return "AFR";
134
146
  case "british airways":