ipgeolocation
Advanced tools
Comparing version 1.1.3 to 1.1.4
42
index.js
@@ -1,22 +0,1 @@ | ||
exports.ipgeoByApikeyFieldsAndIp = function(apiKey="",fields="",ip="") { | ||
request("ipgeo", apiKey,fields,ip); | ||
} | ||
exports.ipgeoByApikeyAndIp = function(apiKey="",ip="") { | ||
request("ipgeo", apiKey,"",ip); | ||
} | ||
exports.ipgeoByApikeyAndFields = function(apiKey="",fields="") { | ||
request("ipgeo", apiKey, fields, ""); | ||
} | ||
exports.timezoneByApikeyAndIp = function(apiKey="",ip="") { | ||
request("timezone", apiKey,"",ip); | ||
} | ||
exports.timezoneByApikey = function(apiKey="") { | ||
request("timezone", apiKey,"",""); | ||
} | ||
exports.Ipgeo = function Ipgeo(apiKey){ | ||
@@ -26,12 +5,16 @@ | ||
this.ipgeoByFieldsAndIp = function(fields="" ,ip="") { | ||
request("ipgeo", this.apiKey, fields, ip) | ||
request("ipgeo", this.apiKey, fields, ip); | ||
}; | ||
this.ipgeoByFields = function(fields="") { | ||
request("ipgeo", this.apiKey, fields, "") | ||
request("ipgeo", this.apiKey, fields, ""); | ||
}; | ||
this.ipgeoByIp = function(ip="") { | ||
request("ipgeo", this.apiKey, "", ip) | ||
request("ipgeo", this.apiKey, "", ip); | ||
}; | ||
this.ipgeoByApikey = function(){ | ||
request("ipgeo", this.apiKey,"","") | ||
}; | ||
@@ -42,5 +25,16 @@ } | ||
exports.Timezone = function Timezone(){ | ||
this.apiKey = apiKey; | ||
this.timezoneByIp = function(ip="") { | ||
request("timezone", this.apiKey,"",ip); | ||
} | ||
this.timezoneByApikey = function() { | ||
request("timezone", this.apiKey,"",""); | ||
} | ||
} | ||
function request(subUrl=null, apiKey="",fields="",ip=""){ | ||
@@ -47,0 +41,0 @@ |
{ | ||
"name": "ipgeolocation", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "new pkg", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1585
50