Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@streamr/cdn-location

Package Overview
Dependencies
Maintainers
12
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@streamr/cdn-location - npm Package Compare versions

Comparing version 100.2.0 to 100.2.1

data-generation/final-data/airportCodeToRegionNumber.ts

623

dist/src/airportCodeToRegionNumber.js

@@ -6,316 +6,316 @@ "use strict";

JFK: 100,
NYC: 200,
LGA: 300,
EWR: 400,
BUF: 500,
BFI: 600,
SEA: 700,
PDX: 800,
HIO: 900,
SMF: 1000,
SFO: 1100,
PAO: 1200,
SJC: 1300,
WVI: 1400,
BUR: 1500,
LAX: 1600,
SAN: 1700,
LAS: 1800,
PHX: 1900,
ABQ: 2000,
DEN: 2100,
SLC: 2200,
STP: 2300,
MSP: 2400,
FSD: 2500,
OMA: 2600,
MCI: 2700,
OKC: 2800,
ADS: 2900,
DFW: 3000,
IAH: 3100,
AUS: 3200,
SAT: 3300,
MFE: 3400,
HNL: 3500,
ANC: 3600,
BOS: 3700,
BGR: 3800,
YTO: 3900,
YYZ: 4000,
YOW: 4100,
YUL: 4200,
YHZ: 4300,
YVR: 4400,
YYC: 4500,
YXE: 4600,
YWG: 4700,
KEF: 4800,
DUB: 4900,
ORK: 5000,
MAN: 5100,
LGA: 200,
EWR: 300,
BUF: 400,
BFI: 500,
SEA: 600,
PDX: 700,
HIO: 800,
SMF: 900,
SFO: 1000,
PAO: 1100,
SJC: 1200,
WVI: 1300,
BUR: 1400,
LAX: 1500,
SAN: 1600,
LAS: 1700,
PHX: 1800,
ABQ: 1900,
DEN: 2000,
SLC: 2100,
STP: 2200,
MSP: 2300,
FSD: 2400,
OMA: 2500,
MCI: 2600,
OKC: 2700,
ADS: 2800,
DFW: 2900,
IAH: 3000,
AUS: 3100,
SAT: 3200,
MFE: 3300,
HNL: 3400,
ANC: 3500,
BOS: 3600,
BGR: 3700,
YTO: 3800,
YYZ: 3900,
YOW: 4000,
YUL: 4100,
YHZ: 4200,
YVR: 4300,
YYC: 4400,
YXE: 4500,
YWG: 4600,
KEF: 4700,
DUB: 4800,
ORK: 4900,
MAN: 5000,
LHR: 5100,
LON: 5200,
LHR: 5300,
LCY: 5400,
EDI: 5500,
BRU: 5600,
AMS: 5700,
DUS: 5800,
FRA: 5900,
WIE: 6000,
STR: 6100,
MUC: 6200,
TXL: 6300,
HAM: 6400,
LUX: 6500,
DLP: 6600,
LCY: 5300,
EDI: 5400,
BRU: 5500,
AMS: 5600,
DUS: 5700,
FRA: 5800,
WIE: 5900,
STR: 6000,
MUC: 6100,
TXL: 6200,
HAM: 6300,
LUX: 6400,
DLP: 6500,
CDG: 6600,
PAR: 6700,
CDG: 6800,
BOD: 6900,
MRS: 7000,
LYS: 7100,
GVA: 7200,
ZRH: 7300,
MXP: 7400,
LIN: 7500,
FCO: 7600,
PMO: 7700,
PRG: 7800,
CPH: 7900,
OSL: 8000,
ARN: 8100,
BMA: 8200,
GOT: 8300,
RIX: 8400,
TLL: 8500,
HEL: 8600,
LED: 8700,
KLD: 8800,
DME: 8900,
SVX: 9000,
KJA: 9100,
KHV: 9200,
MSQ: 9300,
VNO: 9400,
WAW: 9500,
KBP: 9600,
KIV: 9700,
OTP: 9800,
IST: 9900,
ADB: 10000,
ATH: 10100,
SKG: 10200,
SOF: 10300,
TIA: 10400,
BEG: 10500,
BUD: 10600,
BTS: 10700,
VIE: 10800,
ZAG: 10900,
TUN: 11000,
AAE: 11100,
ALG: 11200,
ORN: 11300,
MAD: 11400,
BCN: 11500,
LIS: 11600,
CMN: 11700,
DKR: 11800,
OUA: 11900,
ACC: 12000,
LOS: 12100,
FIH: 12200,
LAD: 12300,
CPT: 12400,
DUR: 12500,
JNB: 12600,
MPM: 12700,
GBE: 12800,
HRE: 12900,
TNR: 13000,
RUN: 13100,
MRU: 13200,
DAR: 13300,
MBA: 13400,
NBO: 13500,
KGL: 13600,
JIB: 13700,
CAI: 13800,
TLV: 13900,
HFA: 14000,
ZDM: 14100,
AMM: 14200,
BEY: 14300,
LCA: 14400,
EVN: 14500,
TBS: 14600,
GYD: 14700,
LLK: 14800,
EBL: 14900,
ISU: 15000,
BGW: 15100,
NJF: 15200,
XNH: 15300,
BSR: 15400,
KWI: 15500,
RUH: 15600,
DMM: 15700,
JED: 15800,
BAH: 15900,
DOH: 16000,
DXB: 16100,
FJR: 16200,
MCT: 16300,
MLE: 16400,
CMB: 16500,
MAA: 16600,
BLR: 16700,
HYD: 16800,
NAG: 16900,
BBI: 17000,
CCU: 17100,
AMD: 17200,
BOM: 17300,
PNQ: 17400,
CNN: 17500,
COK: 17600,
PAT: 17700,
KNU: 17800,
DEL: 17900,
IXC: 18000,
JSR: 18100,
CGP: 18200,
DAC: 18300,
PBH: 18400,
KTM: 18500,
LHE: 18600,
ISB: 18700,
KHI: 18800,
TAS: 18900,
ALA: 19000,
ULN: 19100,
ICN: 19200,
BOD: 6800,
MRS: 6900,
LYS: 7000,
GVA: 7100,
ZRH: 7200,
MXP: 7300,
LIN: 7400,
FCO: 7500,
PMO: 7600,
PRG: 7700,
CPH: 7800,
OSL: 7900,
ARN: 8000,
BMA: 8100,
GOT: 8200,
RIX: 8300,
TLL: 8400,
HEL: 8500,
LED: 8600,
KLD: 8700,
DME: 8800,
SVX: 8900,
KJA: 9000,
KHV: 9100,
MSQ: 9200,
VNO: 9300,
WAW: 9400,
KBP: 9500,
KIV: 9600,
OTP: 9700,
IST: 9800,
ADB: 9900,
ATH: 10000,
SKG: 10100,
SOF: 10200,
TIA: 10300,
BEG: 10400,
BUD: 10500,
BTS: 10600,
VIE: 10700,
ZAG: 10800,
TUN: 10900,
AAE: 11000,
ALG: 11100,
ORN: 11200,
MAD: 11300,
BCN: 11400,
LIS: 11500,
CMN: 11600,
DKR: 11700,
OUA: 11800,
ACC: 11900,
LOS: 12000,
FIH: 12100,
LAD: 12200,
CPT: 12300,
DUR: 12400,
JNB: 12500,
MPM: 12600,
GBE: 12700,
HRE: 12800,
TNR: 12900,
RUN: 13000,
MRU: 13100,
DAR: 13200,
MBA: 13300,
NBO: 13400,
KGL: 13500,
JIB: 13600,
CAI: 13700,
TLV: 13800,
HFA: 13900,
ZDM: 14000,
AMM: 14100,
BEY: 14200,
LCA: 14300,
EVN: 14400,
TBS: 14500,
GYD: 14600,
LLK: 14700,
EBL: 14800,
ISU: 14900,
BGW: 15000,
NJF: 15100,
XNH: 15200,
BSR: 15300,
KWI: 15400,
RUH: 15500,
DMM: 15600,
JED: 15700,
BAH: 15800,
DOH: 15900,
DXB: 16000,
FJR: 16100,
MCT: 16200,
MLE: 16300,
CMB: 16400,
MAA: 16500,
BLR: 16600,
HYD: 16700,
NAG: 16800,
BBI: 16900,
CCU: 17000,
AMD: 17100,
BOM: 17200,
PNQ: 17300,
CNN: 17400,
COK: 17500,
PAT: 17600,
KNU: 17700,
DEL: 17800,
IXC: 17900,
JSR: 18000,
CGP: 18100,
DAC: 18200,
PBH: 18300,
KTM: 18400,
LHE: 18500,
ISB: 18600,
KHI: 18700,
TAS: 18800,
ALA: 18900,
ULN: 19000,
ICN: 19100,
TYO: 19200,
NRT: 19300,
TYO: 19400,
HND: 19500,
ITM: 19600,
KIX: 19700,
FUK: 19800,
OKA: 19900,
GUM: 20000,
CGY: 20100,
CEB: 20200,
MNL: 20300,
BWN: 20400,
SGN: 20500,
HAN: 20600,
PNH: 20700,
VTE: 20800,
MFM: 20900,
HKG: 21000,
KHH: 21100,
TPE: 21200,
FOC: 21300,
HYN: 21400,
HGH: 21500,
SHA: 21600,
WUX: 21700,
CZX: 21800,
WHU: 21900,
KHN: 22000,
CGD: 22100,
KWE: 22200,
KMG: 22300,
LHW: 22400,
ZHY: 22500,
SJW: 22600,
PKX: 22700,
BJS: 22800,
TSN: 22900,
TNA: 23000,
TAO: 23100,
HAK: 23200,
FUO: 23300,
ZGN: 23400,
CAN: 23500,
SZX: 23600,
CGQ: 23700,
MDL: 23800,
RGN: 23900,
BKK: 24000,
URT: 24100,
KUL: 24200,
JHB: 24300,
QPG: 24400,
SIN: 24500,
CGK: 24600,
JOG: 24700,
DPS: 24800,
DEX: 24900,
PER: 25000,
ADL: 25100,
MEL: 25200,
HBA: 25300,
CBR: 25400,
SYD: 25500,
BNE: 25600,
CHC: 25700,
WLG: 25800,
AKL: 25900,
NOU: 26000,
SUV: 26100,
PPT: 26200,
GDL: 26300,
QRO: 26400,
MEX: 26500,
GUA: 26600,
TGU: 26700,
SJO: 26800,
PTY: 26900,
MDE: 27000,
BOG: 27100,
UIO: 27200,
GYE: 27300,
LIM: 27400,
ARI: 27500,
SCL: 27600,
COR: 27700,
NQN: 27800,
EZE: 27900,
ASU: 28000,
CGB: 28100,
GYN: 28200,
BSB: 28300,
UDI: 28400,
SJP: 28500,
RAO: 28600,
VCP: 28700,
SOD: 28800,
GRU: 28900,
QWJ: 29000,
SJK: 29100,
GIG: 29200,
CNF: 29300,
CAW: 29400,
VIX: 29500,
SSA: 29600,
REC: 29700,
JDO: 29800,
FOR: 29900,
BEL: 30000,
MAO: 30100,
POA: 30200,
FLN: 30300,
ITJ: 30400,
NVT: 30500,
BNU: 30600,
JOI: 30700,
CWB: 30800,
CFC: 30900,
XAP: 31000,
PBM: 31100,
GEO: 31200,
BGI: 31300,
CUR: 31400,
SDQ: 31500,
HND: 19400,
ITM: 19500,
KIX: 19600,
FUK: 19700,
OKA: 19800,
GUM: 19900,
CGY: 20000,
CEB: 20100,
MNL: 20200,
BWN: 20300,
SGN: 20400,
HAN: 20500,
PNH: 20600,
VTE: 20700,
MFM: 20800,
HKG: 20900,
KHH: 21000,
TPE: 21100,
FOC: 21200,
HYN: 21300,
HGH: 21400,
SHA: 21500,
CZX: 21600,
WHU: 21700,
KHN: 21800,
CGD: 21900,
KWE: 22000,
KMG: 22100,
LHW: 22200,
ZHY: 22300,
SJW: 22400,
PKX: 22500,
BJS: 22600,
TSN: 22700,
TNA: 22800,
TAO: 22900,
HAK: 23000,
FUO: 23100,
ZGN: 23200,
CAN: 23300,
SZX: 23400,
MDL: 23500,
RGN: 23600,
CNX: 23700,
BKK: 23800,
URT: 23900,
KUL: 24000,
JHB: 24100,
QPG: 24200,
SIN: 24300,
CGK: 24400,
JOG: 24500,
DPS: 24600,
DEX: 24700,
PER: 24800,
ADL: 24900,
MEL: 25000,
HBA: 25100,
CBR: 25200,
SYD: 25300,
BNE: 25400,
CHC: 25500,
WLG: 25600,
AKL: 25700,
NOU: 25800,
SUV: 25900,
PPT: 26000,
GDL: 26100,
QRO: 26200,
MEX: 26300,
GUA: 26400,
TGU: 26500,
SJO: 26600,
PTY: 26700,
MDE: 26800,
BOG: 26900,
UIO: 27000,
GYE: 27100,
LIM: 27200,
ARI: 27300,
SCL: 27400,
COR: 27500,
NQN: 27600,
EZE: 27700,
ASU: 27800,
CGB: 27900,
GYN: 28000,
BSB: 28100,
UDI: 28200,
SJP: 28300,
RAO: 28400,
VCP: 28500,
SOD: 28600,
GRU: 28700,
QWJ: 28800,
SJK: 28900,
GIG: 29000,
CNF: 29100,
CAW: 29200,
VIX: 29300,
SSA: 29400,
REC: 29500,
JDO: 29600,
FOR: 29700,
BEL: 29800,
MAO: 29900,
POA: 30000,
FLN: 30100,
ITJ: 30200,
NVT: 30300,
BNU: 30400,
JOI: 30500,
CWB: 30600,
CFC: 30700,
XAP: 30800,
PBM: 30900,
GEO: 31000,
BGI: 31100,
GND: 31200,
CUR: 31300,
SDQ: 31400,
STI: 31500,
KIN: 31600,

@@ -348,3 +348,4 @@ MIA: 31700,

PHL: 34200,
NYC: 34300,
};
//# sourceMappingURL=airportCodeToRegionNumber.js.map

@@ -9,3 +9,10 @@ "use strict";

const getLocalAirportCode = async () => {
return (0, fetchAirportCodeFromCdn_1.fetchAirportCodeFromCdn)();
let airportCode;
try {
airportCode = await (0, fetchAirportCodeFromCdn_1.fetchAirportCodeFromCdn)();
}
catch (error) {
return undefined;
}
return airportCode;
};

@@ -12,0 +19,0 @@ exports.getLocalAirportCode = getLocalAirportCode;

{
"name": "@streamr/cdn-location",
"version": "100.2.0",
"version": "100.2.1",
"description": "Library for getting own approximate location by querying CDN servers",

@@ -19,5 +19,6 @@ "repository": {

"eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'",
"test": "jest test/unit test/integration",
"test-unit": "jest test/unit",
"test-integration": "jest test/integration"
"test": "jest test/integration",
"test-integration": "jest test/integration",
"prepare-for-tsp-solver": "./data-generation/prepareForTSPSolver.sh",
"generate-data-from-tsp-solution": "./data-generation/generateDataFromTSPSolverResult.sh"
},

@@ -24,0 +25,0 @@ "dependencies": {},

export const airportCodeToRegionNumber: Record<string, number> = {
JFK: 100,
NYC: 200,
LGA: 300,
EWR: 400,
BUF: 500,
BFI: 600,
SEA: 700,
PDX: 800,
HIO: 900,
SMF: 1000,
SFO: 1100,
PAO: 1200,
SJC: 1300,
WVI: 1400,
BUR: 1500,
LAX: 1600,
SAN: 1700,
LAS: 1800,
PHX: 1900,
ABQ: 2000,
DEN: 2100,
SLC: 2200,
STP: 2300,
MSP: 2400,
FSD: 2500,
OMA: 2600,
MCI: 2700,
OKC: 2800,
ADS: 2900,
DFW: 3000,
IAH: 3100,
AUS: 3200,
SAT: 3300,
MFE: 3400,
HNL: 3500,
ANC: 3600,
BOS: 3700,
BGR: 3800,
YTO: 3900,
YYZ: 4000,
YOW: 4100,
YUL: 4200,
YHZ: 4300,
YVR: 4400,
YYC: 4500,
YXE: 4600,
YWG: 4700,
KEF: 4800,
DUB: 4900,
ORK: 5000,
MAN: 5100,
LGA: 200,
EWR: 300,
BUF: 400,
BFI: 500,
SEA: 600,
PDX: 700,
HIO: 800,
SMF: 900,
SFO: 1000,
PAO: 1100,
SJC: 1200,
WVI: 1300,
BUR: 1400,
LAX: 1500,
SAN: 1600,
LAS: 1700,
PHX: 1800,
ABQ: 1900,
DEN: 2000,
SLC: 2100,
STP: 2200,
MSP: 2300,
FSD: 2400,
OMA: 2500,
MCI: 2600,
OKC: 2700,
ADS: 2800,
DFW: 2900,
IAH: 3000,
AUS: 3100,
SAT: 3200,
MFE: 3300,
HNL: 3400,
ANC: 3500,
BOS: 3600,
BGR: 3700,
YTO: 3800,
YYZ: 3900,
YOW: 4000,
YUL: 4100,
YHZ: 4200,
YVR: 4300,
YYC: 4400,
YXE: 4500,
YWG: 4600,
KEF: 4700,
DUB: 4800,
ORK: 4900,
MAN: 5000,
LHR: 5100,
LON: 5200,
LHR: 5300,
LCY: 5400,
EDI: 5500,
BRU: 5600,
AMS: 5700,
DUS: 5800,
FRA: 5900,
WIE: 6000,
STR: 6100,
MUC: 6200,
TXL: 6300,
HAM: 6400,
LUX: 6500,
DLP: 6600,
LCY: 5300,
EDI: 5400,
BRU: 5500,
AMS: 5600,
DUS: 5700,
FRA: 5800,
WIE: 5900,
STR: 6000,
MUC: 6100,
TXL: 6200,
HAM: 6300,
LUX: 6400,
DLP: 6500,
CDG: 6600,
PAR: 6700,
CDG: 6800,
BOD: 6900,
MRS: 7000,
LYS: 7100,
GVA: 7200,
ZRH: 7300,
MXP: 7400,
LIN: 7500,
FCO: 7600,
PMO: 7700,
PRG: 7800,
CPH: 7900,
OSL: 8000,
ARN: 8100,
BMA: 8200,
GOT: 8300,
RIX: 8400,
TLL: 8500,
HEL: 8600,
LED: 8700,
KLD: 8800,
DME: 8900,
SVX: 9000,
KJA: 9100,
KHV: 9200,
MSQ: 9300,
VNO: 9400,
WAW: 9500,
KBP: 9600,
KIV: 9700,
OTP: 9800,
IST: 9900,
ADB: 10000,
ATH: 10100,
SKG: 10200,
SOF: 10300,
TIA: 10400,
BEG: 10500,
BUD: 10600,
BTS: 10700,
VIE: 10800,
ZAG: 10900,
TUN: 11000,
AAE: 11100,
ALG: 11200,
ORN: 11300,
MAD: 11400,
BCN: 11500,
LIS: 11600,
CMN: 11700,
DKR: 11800,
OUA: 11900,
ACC: 12000,
LOS: 12100,
FIH: 12200,
LAD: 12300,
CPT: 12400,
DUR: 12500,
JNB: 12600,
MPM: 12700,
GBE: 12800,
HRE: 12900,
TNR: 13000,
RUN: 13100,
MRU: 13200,
DAR: 13300,
MBA: 13400,
NBO: 13500,
KGL: 13600,
JIB: 13700,
CAI: 13800,
TLV: 13900,
HFA: 14000,
ZDM: 14100,
AMM: 14200,
BEY: 14300,
LCA: 14400,
EVN: 14500,
TBS: 14600,
GYD: 14700,
LLK: 14800,
EBL: 14900,
ISU: 15000,
BGW: 15100,
NJF: 15200,
XNH: 15300,
BSR: 15400,
KWI: 15500,
RUH: 15600,
DMM: 15700,
JED: 15800,
BAH: 15900,
DOH: 16000,
DXB: 16100,
FJR: 16200,
MCT: 16300,
MLE: 16400,
CMB: 16500,
MAA: 16600,
BLR: 16700,
HYD: 16800,
NAG: 16900,
BBI: 17000,
CCU: 17100,
AMD: 17200,
BOM: 17300,
PNQ: 17400,
CNN: 17500,
COK: 17600,
PAT: 17700,
KNU: 17800,
DEL: 17900,
IXC: 18000,
JSR: 18100,
CGP: 18200,
DAC: 18300,
PBH: 18400,
KTM: 18500,
LHE: 18600,
ISB: 18700,
KHI: 18800,
TAS: 18900,
ALA: 19000,
ULN: 19100,
ICN: 19200,
BOD: 6800,
MRS: 6900,
LYS: 7000,
GVA: 7100,
ZRH: 7200,
MXP: 7300,
LIN: 7400,
FCO: 7500,
PMO: 7600,
PRG: 7700,
CPH: 7800,
OSL: 7900,
ARN: 8000,
BMA: 8100,
GOT: 8200,
RIX: 8300,
TLL: 8400,
HEL: 8500,
LED: 8600,
KLD: 8700,
DME: 8800,
SVX: 8900,
KJA: 9000,
KHV: 9100,
MSQ: 9200,
VNO: 9300,
WAW: 9400,
KBP: 9500,
KIV: 9600,
OTP: 9700,
IST: 9800,
ADB: 9900,
ATH: 10000,
SKG: 10100,
SOF: 10200,
TIA: 10300,
BEG: 10400,
BUD: 10500,
BTS: 10600,
VIE: 10700,
ZAG: 10800,
TUN: 10900,
AAE: 11000,
ALG: 11100,
ORN: 11200,
MAD: 11300,
BCN: 11400,
LIS: 11500,
CMN: 11600,
DKR: 11700,
OUA: 11800,
ACC: 11900,
LOS: 12000,
FIH: 12100,
LAD: 12200,
CPT: 12300,
DUR: 12400,
JNB: 12500,
MPM: 12600,
GBE: 12700,
HRE: 12800,
TNR: 12900,
RUN: 13000,
MRU: 13100,
DAR: 13200,
MBA: 13300,
NBO: 13400,
KGL: 13500,
JIB: 13600,
CAI: 13700,
TLV: 13800,
HFA: 13900,
ZDM: 14000,
AMM: 14100,
BEY: 14200,
LCA: 14300,
EVN: 14400,
TBS: 14500,
GYD: 14600,
LLK: 14700,
EBL: 14800,
ISU: 14900,
BGW: 15000,
NJF: 15100,
XNH: 15200,
BSR: 15300,
KWI: 15400,
RUH: 15500,
DMM: 15600,
JED: 15700,
BAH: 15800,
DOH: 15900,
DXB: 16000,
FJR: 16100,
MCT: 16200,
MLE: 16300,
CMB: 16400,
MAA: 16500,
BLR: 16600,
HYD: 16700,
NAG: 16800,
BBI: 16900,
CCU: 17000,
AMD: 17100,
BOM: 17200,
PNQ: 17300,
CNN: 17400,
COK: 17500,
PAT: 17600,
KNU: 17700,
DEL: 17800,
IXC: 17900,
JSR: 18000,
CGP: 18100,
DAC: 18200,
PBH: 18300,
KTM: 18400,
LHE: 18500,
ISB: 18600,
KHI: 18700,
TAS: 18800,
ALA: 18900,
ULN: 19000,
ICN: 19100,
TYO: 19200,
NRT: 19300,
TYO: 19400,
HND: 19500,
ITM: 19600,
KIX: 19700,
FUK: 19800,
OKA: 19900,
GUM: 20000,
CGY: 20100,
CEB: 20200,
MNL: 20300,
BWN: 20400,
SGN: 20500,
HAN: 20600,
PNH: 20700,
VTE: 20800,
MFM: 20900,
HKG: 21000,
KHH: 21100,
TPE: 21200,
FOC: 21300,
HYN: 21400,
HGH: 21500,
SHA: 21600,
WUX: 21700,
CZX: 21800,
WHU: 21900,
KHN: 22000,
CGD: 22100,
KWE: 22200,
KMG: 22300,
LHW: 22400,
ZHY: 22500,
SJW: 22600,
PKX: 22700,
BJS: 22800,
TSN: 22900,
TNA: 23000,
TAO: 23100,
HAK: 23200,
FUO: 23300,
ZGN: 23400,
CAN: 23500,
SZX: 23600,
CGQ: 23700,
MDL: 23800,
RGN: 23900,
BKK: 24000,
URT: 24100,
KUL: 24200,
JHB: 24300,
QPG: 24400,
SIN: 24500,
CGK: 24600,
JOG: 24700,
DPS: 24800,
DEX: 24900,
PER: 25000,
ADL: 25100,
MEL: 25200,
HBA: 25300,
CBR: 25400,
SYD: 25500,
BNE: 25600,
CHC: 25700,
WLG: 25800,
AKL: 25900,
NOU: 26000,
SUV: 26100,
PPT: 26200,
GDL: 26300,
QRO: 26400,
MEX: 26500,
GUA: 26600,
TGU: 26700,
SJO: 26800,
PTY: 26900,
MDE: 27000,
BOG: 27100,
UIO: 27200,
GYE: 27300,
LIM: 27400,
ARI: 27500,
SCL: 27600,
COR: 27700,
NQN: 27800,
EZE: 27900,
ASU: 28000,
CGB: 28100,
GYN: 28200,
BSB: 28300,
UDI: 28400,
SJP: 28500,
RAO: 28600,
VCP: 28700,
SOD: 28800,
GRU: 28900,
QWJ: 29000,
SJK: 29100,
GIG: 29200,
CNF: 29300,
CAW: 29400,
VIX: 29500,
SSA: 29600,
REC: 29700,
JDO: 29800,
FOR: 29900,
BEL: 30000,
MAO: 30100,
POA: 30200,
FLN: 30300,
ITJ: 30400,
NVT: 30500,
BNU: 30600,
JOI: 30700,
CWB: 30800,
CFC: 30900,
XAP: 31000,
PBM: 31100,
GEO: 31200,
BGI: 31300,
CUR: 31400,
SDQ: 31500,
HND: 19400,
ITM: 19500,
KIX: 19600,
FUK: 19700,
OKA: 19800,
GUM: 19900,
CGY: 20000,
CEB: 20100,
MNL: 20200,
BWN: 20300,
SGN: 20400,
HAN: 20500,
PNH: 20600,
VTE: 20700,
MFM: 20800,
HKG: 20900,
KHH: 21000,
TPE: 21100,
FOC: 21200,
HYN: 21300,
HGH: 21400,
SHA: 21500,
CZX: 21600,
WHU: 21700,
KHN: 21800,
CGD: 21900,
KWE: 22000,
KMG: 22100,
LHW: 22200,
ZHY: 22300,
SJW: 22400,
PKX: 22500,
BJS: 22600,
TSN: 22700,
TNA: 22800,
TAO: 22900,
HAK: 23000,
FUO: 23100,
ZGN: 23200,
CAN: 23300,
SZX: 23400,
MDL: 23500,
RGN: 23600,
CNX: 23700,
BKK: 23800,
URT: 23900,
KUL: 24000,
JHB: 24100,
QPG: 24200,
SIN: 24300,
CGK: 24400,
JOG: 24500,
DPS: 24600,
DEX: 24700,
PER: 24800,
ADL: 24900,
MEL: 25000,
HBA: 25100,
CBR: 25200,
SYD: 25300,
BNE: 25400,
CHC: 25500,
WLG: 25600,
AKL: 25700,
NOU: 25800,
SUV: 25900,
PPT: 26000,
GDL: 26100,
QRO: 26200,
MEX: 26300,
GUA: 26400,
TGU: 26500,
SJO: 26600,
PTY: 26700,
MDE: 26800,
BOG: 26900,
UIO: 27000,
GYE: 27100,
LIM: 27200,
ARI: 27300,
SCL: 27400,
COR: 27500,
NQN: 27600,
EZE: 27700,
ASU: 27800,
CGB: 27900,
GYN: 28000,
BSB: 28100,
UDI: 28200,
SJP: 28300,
RAO: 28400,
VCP: 28500,
SOD: 28600,
GRU: 28700,
QWJ: 28800,
SJK: 28900,
GIG: 29000,
CNF: 29100,
CAW: 29200,
VIX: 29300,
SSA: 29400,
REC: 29500,
JDO: 29600,
FOR: 29700,
BEL: 29800,
MAO: 29900,
POA: 30000,
FLN: 30100,
ITJ: 30200,
NVT: 30300,
BNU: 30400,
JOI: 30500,
CWB: 30600,
CFC: 30700,
XAP: 30800,
PBM: 30900,
GEO: 31000,
BGI: 31100,
GND: 31200,
CUR: 31300,
SDQ: 31400,
STI: 31500,
KIN: 31600,

@@ -344,2 +344,3 @@ MIA: 31700,

PHL: 34200,
NYC: 34300,
}

@@ -8,3 +8,9 @@ import { airportCodeToRegionNumber } from './airportCodeToRegionNumber'

export const getLocalAirportCode: () => Promise<string | undefined> = async () => {
return fetchAirportCodeFromCdn()
let airportCode: string
try {
airportCode = await fetchAirportCodeFromCdn()
} catch (error) {
return undefined
}
return airportCode
}

@@ -11,0 +17,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc