66 countriesFlags ,
77 countries ,
88 euCountries
9- } from "../config/utils"
9+ } from "../config/utils" ;
1010import Cache from "./cache/cache" ;
1111import LruCache from "./cache/lruCache" ;
1212import ApiLimitError from "./errors/apiLimitError" ;
@@ -26,7 +26,7 @@ import {
2626import VERSION from "./version" ;
2727
2828const clientUserAgent = `IPinfoClient/nodejs/${ VERSION } ` ;
29- const countryFlagURL = "https://cdn.ipinfo.io/static/images/countries-flags/"
29+ const countryFlagURL = "https://cdn.ipinfo.io/static/images/countries-flags/" ;
3030
3131export default class IPinfoWrapper {
3232 private token : string ;
@@ -120,8 +120,10 @@ export default class IPinfoWrapper {
120120 this . countries [ ipinfo . countryCode ] ;
121121 ipinfo . countryFlag =
122122 this . countriesFlags [ ipinfo . countryCode ] ;
123- ipinfo . countryFlagURL =
124- countryFlagURL + ipinfo . countryCode + ".svg"
123+ ipinfo . countryFlagURL =
124+ countryFlagURL +
125+ ipinfo . countryCode +
126+ ".svg" ;
125127 ipinfo . countryCurrency =
126128 this . countriesCurrencies [
127129 ipinfo . countryCode
@@ -415,7 +417,9 @@ export default class IPinfoWrapper {
415417 // filter out URLs already cached.
416418 const lookupUrls : string [ ] = [ ] ;
417419 for ( const url of urls ) {
418- const cachedUrl = await this . cache . get ( IPinfoWrapper . cacheKey ( url ) ) ;
420+ const cachedUrl = await this . cache . get (
421+ IPinfoWrapper . cacheKey ( url )
422+ ) ;
419423 if ( cachedUrl ) {
420424 result [ url ] = cachedUrl ;
421425 } else {
@@ -508,7 +512,7 @@ export default class IPinfoWrapper {
508512 }
509513
510514 private isBogon ( ip : string ) : boolean {
511- if ( ip != '' ) {
515+ if ( ip != "" ) {
512516 for ( var network of BOGON_NETWORKS ) {
513517 if ( isInSubnet ( ip , network ) ) {
514518 return true ;
0 commit comments