Socket
Socket
Sign inDemoInstall

ipgeolocation

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc