airline-codes 1.1.0 → 1.1.1
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/.github/workflows/publish.yml +8 -1
- package/README.md +2 -0
- package/airlines.dat +6064 -6064
- package/normalize.js +5 -0
- package/package.json +2 -2
package/normalize.js
CHANGED
|
@@ -56,6 +56,11 @@ csv.parse(content, function(err, records) {
|
|
|
56
56
|
var id = row[0];
|
|
57
57
|
var original = row.slice();
|
|
58
58
|
|
|
59
|
+
// Strip leading spaces from callsign (upstream data corruption)
|
|
60
|
+
if (row[5] && row[5][0] === ' ') {
|
|
61
|
+
row[5] = row[5].trim();
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
// Apply country name corrections
|
|
60
65
|
var countryIdx = 6;
|
|
61
66
|
if (COUNTRY_CORRECTIONS[row[countryIdx]]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "airline-codes",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Airline codes (IATA) and information pulled from OpenFlights.org.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/npow/airline-codes/issues"
|
|
27
27
|
},
|
|
28
|
-
"homepage": "https://github.com/
|
|
28
|
+
"homepage": "https://github.com/npow/airline-codes",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"JSONStream": "^1.0.4",
|
|
31
31
|
"backbone": "^1.1.2",
|