Socket
Socket
Sign inDemoInstall

ip-geolocation-api-javascript-sdk

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

8

package.json
{
"_from": "ip-geolocation-api-javascript-sdk",
"_id": "ip-geolocation-api-javascript-sdk@1.0.5",
"_id": "ip-geolocation-api-javascript-sdk@1.0.6",
"_inBundle": false,

@@ -22,6 +22,6 @@ "_integrity": "sha512-hzaB5USO7B3XltJTckXK9FtC+OpSiGx4h8/nV3eskFhmmTBC1YVTd9WnlJTUQm3sb9e+V3pzu8coNbXC3ZrRPg==",

],
"_resolved": "https://registry.npmjs.org/ip-geolocation-api-javascript-sdk/-/ip-geolocation-api-javascript-sdk-1.0.5.tgz",
"_resolved": "https://registry.npmjs.org/ip-geolocation-api-javascript-sdk/-/ip-geolocation-api-javascript-sdk-1.0.6.tgz",
"_shasum": "0273f7c043749ce91a586388edf35319d2c52818",
"_spec": "ip-geolocation-api-javascript-sdk",
"_where": "/home/developer/jvs/new-npm",
"_where": "/home/developer/jvs/latest-npm",
"author": {

@@ -54,3 +54,3 @@ "name": "ipgeolocation"

},
"version": "1.0.5"
"version": "1.0.6"
}

@@ -26,3 +26,6 @@ # IPGeolocation API Javascript SDK

console.log(api.getGeolocation(geolocationParams));
api.getGeolocation(geolocationParams, geoResponse);
function geoResponse(json) {
console.log(json);
}

@@ -39,3 +42,3 @@ // Query geolocation for IP address (1.1.1.1) and all fields

// Query geolocation for the calling machine's IP address for all fields
api.getGeolocation(geoResponse);
api.getGeolocation(null, geoResponse);
function geoResponse(json) {

@@ -50,5 +53,5 @@ console.log(json);

var geolocationParams = new GeolocationParams();
geolocationParams.setIps(['1.1.1.1','2.2.22.2','34.1.1.3']);
geolocationParams.setIPList(['1.1.1.1','2.2.22.2','34.1.1.3']);
api.getGeolocation(geolocationParams);
api.getGeolocation(geolocationParams, geoResponse);
function geoResponse(json) {

@@ -65,4 +68,4 @@ console.log(json);

tzParams.setIp("1.1.1.1");
obj.getTimezone(geoResponse);
function geoResponse(json) {
obj.getTimezone(null, timeZoneResponse);
function timeZoneResponse(json) {
console.log(json);

@@ -69,0 +72,0 @@ }

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