airport-data-js 3.0.0 → 3.0.2
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/dist/airport-data.min.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +16 -9
- package/CHANGELOG.md +0 -104
- package/SECURITY.md +0 -23
- package/webpack.browser.cjs +0 -40
- package/webpack.node.cjs +0 -27
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "airport-data-js",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "A comprehensive library providing easy retrieval of airport data based on IATA, ICAO, city codes, country codes, and continents.",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"browser": "dist/airport-data.min.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib/",
|
|
10
|
+
"dist/",
|
|
11
|
+
"LICENSE",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
7
14
|
"scripts": {
|
|
8
15
|
"test": "jest --config jest.config.cjs",
|
|
9
16
|
"build:lib": "webpack --config webpack.node.cjs",
|
|
@@ -45,11 +52,11 @@
|
|
|
45
52
|
"bugs": {
|
|
46
53
|
"url": "https://github.com/aashishvanand/airport-data-js/issues"
|
|
47
54
|
},
|
|
48
|
-
"homepage": "https://
|
|
55
|
+
"homepage": "https://airportdata.dev/",
|
|
49
56
|
"devDependencies": {
|
|
50
|
-
"@babel/core": "^7.28.
|
|
51
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
52
|
-
"@babel/preset-env": "^7.28.
|
|
57
|
+
"@babel/core": "^7.28.6",
|
|
58
|
+
"@babel/plugin-transform-modules-commonjs": "^7.28.6",
|
|
59
|
+
"@babel/preset-env": "^7.28.6",
|
|
53
60
|
"arraybuffer-loader": "^1.0.8",
|
|
54
61
|
"babel-jest": "^30.2.0",
|
|
55
62
|
"babel-loader": "^10.0.0",
|
|
@@ -57,12 +64,12 @@
|
|
|
57
64
|
"countries-list": "^3.2.2",
|
|
58
65
|
"csv-parse": "^6.1.0",
|
|
59
66
|
"csv-stringify": "^6.6.0",
|
|
60
|
-
"fs-extra": "^11.3.
|
|
61
|
-
"geo-tz": "^8.1.
|
|
67
|
+
"fs-extra": "^11.3.3",
|
|
68
|
+
"geo-tz": "^8.1.5",
|
|
62
69
|
"jest": "^30.2.0",
|
|
63
70
|
"path-browserify": "^1.0.1",
|
|
64
71
|
"raw-loader": "^4.0.2",
|
|
65
|
-
"webpack": "^5.
|
|
72
|
+
"webpack": "^5.104.1",
|
|
66
73
|
"webpack-cli": "^6.0.1"
|
|
67
74
|
}
|
|
68
75
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
### [3.0.0] - 2025-12-05
|
|
11
|
-
|
|
12
|
-
#### 🆕 New Features
|
|
13
|
-
|
|
14
|
-
- **`getAirportStatsByCountry(countryCode)`** - Get comprehensive statistics for airports in a country
|
|
15
|
-
- **`getAirportStatsByContinent(continentCode)`** - Get comprehensive statistics for airports on a continent
|
|
16
|
-
- **`getLargestAirportsByContinent(continentCode, limit, sortBy)`** - Get largest airports by runway or elevation
|
|
17
|
-
- **`getMultipleAirports(codes)`** - Bulk fetch multiple airports in one call
|
|
18
|
-
- **`calculateDistanceMatrix(codes)`** - Calculate distances between all pairs of airports
|
|
19
|
-
- **`findNearestAirport(lat, lon, filters)`** - Find single nearest airport with optional filters
|
|
20
|
-
- **`validateIataCode(code)`** - Validate IATA code existence
|
|
21
|
-
- **`validateIcaoCode(code)`** - Validate ICAO code existence
|
|
22
|
-
- **`getAirportCount(filters)`** - Get count of airports matching filters
|
|
23
|
-
- **`isAirportOperational(code)`** - Check if airport has scheduled service
|
|
24
|
-
|
|
25
|
-
#### 🔄 Improvements
|
|
26
|
-
|
|
27
|
-
- Enhanced bulk operations for better performance
|
|
28
|
-
- Added comprehensive statistical analysis capabilities
|
|
29
|
-
- Improved validation utilities for code checking
|
|
30
|
-
- Better support for route planning and analysis
|
|
31
|
-
- Professional build pipeline with duplicate checking
|
|
32
|
-
- Automated release notes from changelog
|
|
33
|
-
|
|
34
|
-
## [2.0.0] - 2024-07-24
|
|
35
|
-
|
|
36
|
-
### 🆕 New Features
|
|
37
|
-
|
|
38
|
-
- **`getAirportsByTimezone(timezone)`** - Find airports by timezone
|
|
39
|
-
- **`getAirportLinks(code)`** - Get external links for airports
|
|
40
|
-
- **`findAirports(filters)`** - Advanced multi-criteria filtering
|
|
41
|
-
- **`getAutocompleteSuggestions(query)`** - Autocomplete functionality
|
|
42
|
-
- **Enhanced `getAirportsByType(type)`** - Now supports convenience search for "airport" type
|
|
43
|
-
- **External links support** - Wikipedia, websites, and flight tracking URLs
|
|
44
|
-
- **Timezone information** - Complete timezone data for all airports
|
|
45
|
-
- **Runway length data** - Airport runway information included
|
|
46
|
-
- **Scheduled service indicator** - Whether airports have commercial scheduled service
|
|
47
|
-
|
|
48
|
-
### 🔄 Improvements
|
|
49
|
-
|
|
50
|
-
- Better error handling and validation
|
|
51
|
-
- More comprehensive airport data structure
|
|
52
|
-
- Improved type filtering with partial matching
|
|
53
|
-
- Enhanced geographic calculations
|
|
54
|
-
- Case-insensitive search improvements
|
|
55
|
-
|
|
56
|
-
### ❌ Breaking Changes
|
|
57
|
-
|
|
58
|
-
- Legacy data format no longer supported
|
|
59
|
-
- Simplified airport objects expanded to include more fields
|
|
60
|
-
- Basic filtering replaced with advanced `findAirports` function
|
|
61
|
-
|
|
62
|
-
## [1.0.6] - 2022-11-24
|
|
63
|
-
|
|
64
|
-
### 🔄 Improvements
|
|
65
|
-
|
|
66
|
-
- Data updates
|
|
67
|
-
|
|
68
|
-
## [1.0.5] - 2022-11-20
|
|
69
|
-
|
|
70
|
-
### 🔄 Improvements
|
|
71
|
-
|
|
72
|
-
- Data updates
|
|
73
|
-
|
|
74
|
-
## [1.0.4] - 2022-11-18
|
|
75
|
-
|
|
76
|
-
### 🔄 Improvements
|
|
77
|
-
|
|
78
|
-
- Data updates
|
|
79
|
-
|
|
80
|
-
## [1.0.3] - 2022-11-15
|
|
81
|
-
|
|
82
|
-
### 🔄 Improvements
|
|
83
|
-
|
|
84
|
-
- Data updates
|
|
85
|
-
|
|
86
|
-
## [1.0.2] - 2022-11-12
|
|
87
|
-
|
|
88
|
-
### 🔄 Improvements
|
|
89
|
-
|
|
90
|
-
- Data updates
|
|
91
|
-
|
|
92
|
-
## [1.0.1] - 2022-11-10
|
|
93
|
-
|
|
94
|
-
### 🐛 Bug Fixes
|
|
95
|
-
|
|
96
|
-
- Fixed initial release issues
|
|
97
|
-
- Improved error handling
|
|
98
|
-
|
|
99
|
-
## [1.0.0] - 2022-11-08
|
|
100
|
-
|
|
101
|
-
### 🆕 Initial Release
|
|
102
|
-
|
|
103
|
-
- Basic airport lookup by IATA and ICAO codes
|
|
104
|
-
- Search by country and continent
|
package/SECURITY.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
|
|
5
|
-
Currently, only the latest major version of `airport-data-js` (or whatever you name your package) is being actively supported with security updates.
|
|
6
|
-
|
|
7
|
-
## Reporting a Vulnerability
|
|
8
|
-
|
|
9
|
-
Your security is of utmost importance. If you believe you've found a security issue in `airport-data-js`, please notify me. I appreciate your efforts in responsibly disclosing your findings and will make every effort to acknowledge and address them as soon as possible.
|
|
10
|
-
|
|
11
|
-
### Disclosure Policy
|
|
12
|
-
|
|
13
|
-
- Please give me a detailed overview of the potential issue, avoiding too much technical jargon if possible.
|
|
14
|
-
- Let me know as soon as possible upon discovery of a potential security issue.
|
|
15
|
-
- Provide me with a reasonable amount of time to address the issue before any disclosure to the public or a third-party.
|
|
16
|
-
- Make a good faith effort to avoid privacy violations, destruction of data, and interruption or degradation of the service.
|
|
17
|
-
|
|
18
|
-
### Process
|
|
19
|
-
|
|
20
|
-
1. Email the details of your findings to [aashishvanand@gmail.com](mailto:aashishvanand@gmail.com). Please use a descriptive subject line.
|
|
21
|
-
2. You'll receive a response from me within 48 hours acknowledging your email.
|
|
22
|
-
3. I will investigate the issue and strive to keep you informed about my progress towards a fix.
|
|
23
|
-
4. Once the issue is resolved, I may ask you to validate the solution.
|
package/webpack.browser.cjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
target: 'web',
|
|
5
|
-
entry: './src/index.js',
|
|
6
|
-
mode: 'production',
|
|
7
|
-
output: {
|
|
8
|
-
filename: 'airport-data.min.js',
|
|
9
|
-
path: path.resolve(__dirname, 'dist'),
|
|
10
|
-
library: 'AirportData',
|
|
11
|
-
libraryTarget: 'umd',
|
|
12
|
-
umdNamedDefine: true,
|
|
13
|
-
globalObject: 'this'
|
|
14
|
-
},
|
|
15
|
-
module: {
|
|
16
|
-
rules: [
|
|
17
|
-
{
|
|
18
|
-
test: /\.js$/,
|
|
19
|
-
exclude: /node_modules/,
|
|
20
|
-
use: {
|
|
21
|
-
loader: 'babel-loader',
|
|
22
|
-
options: {
|
|
23
|
-
presets: ['@babel/preset-env']
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
test: /\.compressed$/,
|
|
29
|
-
use: 'raw-loader',
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
resolve: {
|
|
34
|
-
fallback: {
|
|
35
|
-
"fs": false,
|
|
36
|
-
"path": require.resolve("path-browserify")
|
|
37
|
-
},
|
|
38
|
-
extensions: ['.js', '.json']
|
|
39
|
-
}
|
|
40
|
-
};
|
package/webpack.node.cjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
entry: './src/index.js',
|
|
5
|
-
target: 'node',
|
|
6
|
-
mode: 'production',
|
|
7
|
-
output: {
|
|
8
|
-
filename: 'index.js',
|
|
9
|
-
path: path.resolve(__dirname, 'lib'),
|
|
10
|
-
libraryTarget: 'commonjs2'
|
|
11
|
-
},
|
|
12
|
-
module: {
|
|
13
|
-
rules: [
|
|
14
|
-
{
|
|
15
|
-
test: /\.js$/,
|
|
16
|
-
exclude: /node_modules/,
|
|
17
|
-
use: {
|
|
18
|
-
loader: 'babel-loader',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
test: /\.compressed$/,
|
|
23
|
-
use: 'raw-loader',
|
|
24
|
-
},
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
};
|