geoip-lite2
Advanced tools
Comparing version 2.1.19 to 2.1.20
declare module 'geoip-lite2' { | ||
export const cmp: number | any | null | ||
export const cmp: number | any | null; | ||
export type GeoData = { | ||
interface GeoIp2Location { | ||
range: [number, number]; | ||
country: string; | ||
region: string; | ||
eu: string; | ||
eu: '0' | '1'; | ||
timezone: string; | ||
@@ -14,11 +14,18 @@ city: string; | ||
area: number; | ||
}; | ||
} | ||
export function lookup(ip: string): GeoData | null; | ||
function lookup(ip: string): GeoIp2Location | null; | ||
function pretty(ip: string | number): string; | ||
export const pretty: (n: string | number | number[]) => string; | ||
export const startWatchingDataUpdate: (callback: () => void) => void; | ||
export const reloadDataSync: () => void; | ||
export const reloadData: (callback: () => void) => void; | ||
export const version: string; | ||
function reloadDataSync(): void; | ||
function reloadData(callback: () => void): void; | ||
function startWatchingDataUpdate(): void; | ||
export { | ||
lookup, | ||
pretty, | ||
reloadDataSync, | ||
reloadData, | ||
startWatchingDataUpdate, | ||
}; | ||
} |
{ | ||
"name": "geoip-lite2", | ||
"version": "2.1.19", | ||
"version": "2.1.20", | ||
"description": "A light weight native JavaScript implementation of GeoIP API from MaxMind. Improved and faster version by Sefinek.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
<div align="center"> | ||
<a href="https://cdn.sefinek.net/images/npm/geoip-lite2/banner.jpg" target="_blank" title="Full screen"> | ||
<img src="https://cdn.sefinek.net/images/npm/geoip-lite2/banner.jpg" alt="GeoIP-Lite2 v2.1 🗺️ Now even faster!"> | ||
<img src="https://cdn.sefinek.net/images/npm/geoip-lite2/banner.jpg" alt="GeoIP-Lite 2.1 🗺️ Now even faster!"> | ||
</a> | ||
@@ -5,0 +5,0 @@ <br> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
174749293
25