airport-data-js 1.0.2 → 1.0.4
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 +1 -1
- package/dist/airport-data.min.js +2 -0
- package/lib/index.js +1 -0
- package/package.json +10 -6
- package/webpack.browser.cjs +40 -0
- package/webpack.node.cjs +27 -0
- package/INSTRUCTIONS_REACT.md +0 -2
- package/data/airports.json +0 -1
- package/dist/219.airports.bundle.js +0 -1
- package/dist/23.airports.bundle.js +0 -1
- package/dist/284.airports.bundle.js +0 -1
- package/dist/30.airports.bundle.js +0 -1
- package/dist/346.airports.bundle.js +0 -1
- package/dist/372.airports.bundle.js +0 -1
- package/dist/402.airports.bundle.js +0 -1
- package/dist/418.airports.bundle.js +0 -1
- package/dist/503.airports.bundle.js +0 -1
- package/dist/528.airports.bundle.js +0 -1
- package/dist/530.airports.bundle.js +0 -1
- package/dist/602.airports.bundle.js +0 -1
- package/dist/64.airports.bundle.js +0 -1
- package/dist/66.airports.bundle.js +0 -1
- package/dist/693.airports.bundle.js +0 -1
- package/dist/697.airports.bundle.js +0 -1
- package/dist/893.airports.bundle.js +0 -1
- package/dist/934.airports.bundle.js +0 -1
- package/dist/airports.bundle.js +0 -2
- package/dist/airports_chunk_0.bin +0 -0
- package/dist/airports_chunk_1.bin +0 -0
- package/dist/airports_chunk_10.bin +0 -0
- package/dist/airports_chunk_11.bin +0 -0
- package/dist/airports_chunk_12.bin +0 -0
- package/dist/airports_chunk_13.bin +0 -0
- package/dist/airports_chunk_14.bin +0 -0
- package/dist/airports_chunk_15.bin +0 -0
- package/dist/airports_chunk_16.bin +0 -0
- package/dist/airports_chunk_17.bin +0 -0
- package/dist/airports_chunk_2.bin +0 -0
- package/dist/airports_chunk_3.bin +0 -0
- package/dist/airports_chunk_4.bin +0 -0
- package/dist/airports_chunk_5.bin +0 -0
- package/dist/airports_chunk_6.bin +0 -0
- package/dist/airports_chunk_7.bin +0 -0
- package/dist/airports_chunk_8.bin +0 -0
- package/dist/airports_chunk_9.bin +0 -0
- /package/dist/{airports.bundle.js.LICENSE.txt → airport-data.min.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "airport-data-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
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": "dist/
|
|
6
|
+
"main": "dist/airport-data.min.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "jest --config jest.config.cjs",
|
|
9
|
-
"build": "webpack --config webpack.
|
|
9
|
+
"build:lib": "webpack --config webpack.node.cjs",
|
|
10
|
+
"build:dist": "webpack --config webpack.browser.cjs",
|
|
11
|
+
"build": "npm run build:lib && npm run build:dist"
|
|
10
12
|
},
|
|
11
13
|
"dependencies": {
|
|
12
|
-
"
|
|
14
|
+
"jsonpack": "^1.1.5"
|
|
13
15
|
},
|
|
14
16
|
"repository": {
|
|
15
17
|
"type": "git",
|
|
@@ -38,15 +40,17 @@
|
|
|
38
40
|
"bugs": {
|
|
39
41
|
"url": "https://github.com/aashishvanand/airport-data-js/issues"
|
|
40
42
|
},
|
|
41
|
-
"homepage": "https://
|
|
43
|
+
"homepage": "https://aashishvanand.me/airport-data-js/",
|
|
42
44
|
"devDependencies": {
|
|
43
45
|
"@babel/core": "^7.23.0",
|
|
46
|
+
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
|
|
44
47
|
"@babel/preset-env": "^7.22.20",
|
|
45
48
|
"arraybuffer-loader": "^1.0.8",
|
|
49
|
+
"babel-jest": "^29.7.0",
|
|
46
50
|
"babel-loader": "^9.1.3",
|
|
47
|
-
"copy-webpack-plugin": "^11.0.0",
|
|
48
51
|
"jest": "^27.5.1",
|
|
49
52
|
"path-browserify": "^1.0.1",
|
|
53
|
+
"raw-loader": "^4.0.2",
|
|
50
54
|
"webpack": "^5.88.2",
|
|
51
55
|
"webpack-cli": "^5.1.4"
|
|
52
56
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
};
|
package/INSTRUCTIONS_REACT.md
DELETED