Socket
Book a DemoInstallSign in
Socket

ip-geolocation-api-sdk-typescript

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-geolocation-api-sdk-typescript - npm Package Compare versions

Comparing version

to
1.0.2

20

IPGeolocationAPI.ts

@@ -81,4 +81,9 @@ import {GeolocationParams} from './GeolocationParams';

if (this.readyState === 4) {
if(this.status == 0){
jsonData = {
"message": "Internet is not connected!"
};
}else{
jsonData = JSON.parse(this.responseText);
}
}

@@ -89,3 +94,2 @@ });

xhr.send(data);
return jsonData;

@@ -104,5 +108,11 @@

xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
jsonData = JSON.parse(this.responseText);
}
if (this.readyState === 4) {
if(this.status == 0){
jsonData = {
"message": "Internet is not connected!"
};
}else{
jsonData = JSON.parse(this.responseText);
}
}
});

@@ -109,0 +119,0 @@ xhr.open("POST", "https://api.ipgeolocation.io/"+subUrl+"?apiKey="+apiKey+"", false);

{
"name": "ip-geolocation-api-sdk-typescript",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -19,2 +19,14 @@ "main": "IPGeolocationAPI.ts",

"homepage": "https://gitlab.com/ahsanNawaz111/ipGeoLocation-TypeScript#README",
"keywords": [
"ip",
"ipgeo",
"ip geolocation",
"ip geolocation api",
"time zone",
"ip geolocation sdk",
"geolocation javascript",
"geoip lookup",
"geoip api",
"ip location api"
],
"dependencies": {

@@ -21,0 +33,0 @@ "xmlhttprequest": "^1.8.0"

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.