Skip to content

Commit

Permalink
keycdn, stackpath, fastly
Browse files Browse the repository at this point in the history
  • Loading branch information
adaptive committed Mar 7, 2023
1 parent d4f1e91 commit 3ff747d
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 81 deletions.
1 change: 1 addition & 0 deletions data/providers/fastly.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const fastly = {
"MUC", // Munich (Germany)
"MXP", // Milan (Italy)
"NRT", // Tokyo (Japan)
"ORY", // Paris (France)
"OSL", // Oslo (Norway)
"PAO", // Palo Alto (US)
"PDK", // Atlanta (US)
Expand Down
1 change: 1 addition & 0 deletions data/providers/keycdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const keycdn = {
"KBP", // Kiev (Ukraine)
"LAX", // Los Angeles (US)
"LHR", // London (United Kingdom)
"LIM", // Lima (Peru)
"LIS", // Lisbon (Portugal)
"LOS", // Lagos (Nigeria)
"MAD", // Madrid (Spain)
Expand Down
3 changes: 3 additions & 0 deletions data/providers/stackpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ const stackpath = {
"DEN", // Denver (US)
"DFW", // Dallas (US)
"DTW", // Detroit (US)
"DXB", // Dubai (United Arab Emirates)
"EZE", // Buenos Aires (Argentina)
"FRA", // Frankfurt (Germany)
"GIG", // Rio de Janeiro (Brazil)
"GRU", // Sao Paulo (Brazil)
"HKG", // Hong Kong (China)
"ICN", // Seoul (South Korea)
"JFK", // New York (US)
"JNB", // Johannesburg (South Africa)
"KIX", // Osaka (Japan)
"LAX", // Los Angeles (US)
"LHR", // London (UK)
"LIM", // Lima (Peru)
"MAD", // Madrid (Spain)
"MEL", // Melbourne (Australia)
"MIA", // Miami (US)
"MRS", // Marseille (France)
"MXP", // Milan (Italy)
"NRT", // Tokyo (Japan)
"ORD", // Chicago (US)
Expand Down
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions notebooks/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ fastly,MSP,44.88,-93.21
fastly,MUC,48.35,11.79
fastly,MXP,45.63,8.71
fastly,NRT,35.77,140.39
fastly,ORY,48.73,2.36
fastly,OSL,60.19,11.1
fastly,PAO,37.46,-122.11
fastly,PDK,33.88,-84.3
Expand Down Expand Up @@ -1223,6 +1224,7 @@ keycdn,JNB,-26.13,28.23
keycdn,KBP,50.34,30.9
keycdn,LAX,33.94,-118.41
keycdn,LHR,51.47,-0.45
keycdn,LIM,-12.02,-77.11
keycdn,LIS,38.77,-9.13
keycdn,LOS,6.58,3.32
keycdn,MAD,40.47,-3.57
Expand Down Expand Up @@ -1407,20 +1409,23 @@ stackpath,DCA,38.85,-77.04
stackpath,DEN,39.85,-104.67
stackpath,DFW,32.9,-97.04
stackpath,DTW,42.21,-83.36
stackpath,DXB,25.25,55.35
stackpath,EZE,-34.81,-58.54
stackpath,FRA,50.05,8.57
stackpath,GIG,-22.81,-43.25
stackpath,GRU,-23.43,-46.48
stackpath,HKG,22.32,113.94
stackpath,ICN,37.45,126.45
stackpath,JFK,40.64,-73.79
stackpath,JNB,-26.13,28.23
stackpath,KIX,34.44,135.24
stackpath,LAX,33.94,-118.41
stackpath,LHR,51.47,-0.45
stackpath,LIM,-12.02,-77.11
stackpath,MAD,40.47,-3.57
stackpath,MEL,-37.67,144.85
stackpath,MIA,25.8,-80.28
stackpath,MRS,43.44,5.22
stackpath,MXP,45.63,8.71
stackpath,NRT,35.77,140.39
stackpath,ORD,41.98,-87.9
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"isomorphic-fetch": "3.0.0",
"lodash": "4.17.21",
"prettier": "2.8.4",
"puppeteer": "19.7.2",
"puppeteer": "19.7.3",
"rollup": "3.18.0",
"@rollup/plugin-terser": "0.4.0"
},
Expand Down
101 changes: 22 additions & 79 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions tools/spotters/fastly.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ const spotter = async () => {
else return x;
})
)
.then(a =>
a.map(x => {
// hardcoding PAR to ORY
if (x === "PAR") return "ORY";
else return x;
})
)
.then(extracted => {
if (_.isEqual(extracted.sort(), provider.pops)) {
console.log(
Expand Down

0 comments on commit 3ff747d

Please sign in to comment.