geoip-lite
Advanced tools
Comparing version 1.3.7 to 1.3.8
{ | ||
"name" : "geoip-lite", | ||
"version" : "1.3.7", | ||
"version" : "1.3.8", | ||
"description" : "A light weight native JavaScript implementation of GeoIP API from MaxMind", | ||
@@ -5,0 +5,0 @@ "keywords" : ["geo", "geoip", "ip", "ipv4", "ipv6", "geolookup", "maxmind", "geolite"], |
@@ -66,3 +66,3 @@ var geoip = require('../lib/geoip'); | ||
test.strictEqual(actual.city, 'Badhoevedorp', "should match city"); | ||
test.strictEqual(actual.city, 'Amsterdam', "should match city"); | ||
@@ -73,3 +73,3 @@ test.ok(actual.ll, 'should contain coordinates'); | ||
test.strictEqual(actual.area, 10, "should match area"); | ||
test.strictEqual(actual.area, 5, "should match area"); | ||
@@ -83,3 +83,3 @@ test.done(); | ||
var ip = "2.139.175.1"; | ||
var expected = "Logroño"; | ||
var expected = "Pamplona"; | ||
var actual = geoip.lookup(ip); | ||
@@ -98,3 +98,3 @@ | ||
test.equal(actual.city, "Nuevo");//keeps changing with each update from one city to other (close to each other geographically) | ||
test.equal(actual.city, "Riverside"); //keeps changing with each update from one city to other (close to each other geographically) | ||
test.equal(actual.metro, 803); | ||
@@ -108,6 +108,6 @@ | ||
var actual = geoip.lookup("::ffff:173.185.182.82"); | ||
var actual = geoip.lookup("195.16.170.74"); | ||
test.equal(actual.city, "Granbury"); | ||
test.equal(actual.metro, 623); | ||
test.equal(actual.city, ""); | ||
test.equal(actual.metro, 0); | ||
@@ -114,0 +114,0 @@ test.done(); |
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
115395509