Socket
Socket
Sign inDemoInstall

@abstractapi/javascript-ip-geolocation

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 1.0.0

.github/workflows/npm-publish.yml

2

dist/javascript-ip-geolocation.js

@@ -1,1 +0,1 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,(function(){return(()=>{var e={819:(e,t,o)=>{e.exports=o(92)},92:(e,t)=>{"use strict";t.makeApiCall=void 0,t.makeApiCall=function(e,t,r){var n=o(e,t,r),a=new XMLHttpRequest;return new Promise((function(e,t){a.onreadystatechange=function(){4===a.readyState&&(a.status>=200&&a.status<300?e(JSON.parse(a.responseText)):t(a))},a.open("GET",n,!0),a.send()}))};var o=function(e,t,o){if(!t)throw new Error("No api key is set.");var r="";return"string"==typeof o?r="&".concat(o):Array.isArray(o)&&o.forEach((function(e){r+="&".concat(e)})),"https://".concat(e,".abstractapi.com/v1?api_key=").concat(t).concat(r,"&lang=js")}}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.r(r),o.d(r,{AbstractIpGeolocation:()=>n});var e=o(819);function t(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var n=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};t(n,"apiKey",void 0),t(n,"configure",(function(e){n.apiKey=e})),t(n,"look_up",(function(t){var o="";return t&&(o="ip_address=".concat(t)),e.makeApiCall("ipgeolocation",n.apiKey,o)}))})(),r})()}));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,(function(){return(()=>{var e={688:(e,t,o)=>{e.exports=o(749)},749:(e,t)=>{"use strict";t.makeApiCall=void 0,t.makeApiCall=function(e,t,r){var n=o(e,t,r),a=new XMLHttpRequest;return new Promise((function(e,t){a.onreadystatechange=function(){4===a.readyState&&(a.status>=200&&a.status<300?e(JSON.parse(a.responseText)):t(a))},a.open("GET",n,!0),a.send()}))};var o=function(e,t,o){if(!t)throw new Error("No api key is set.");var r="";return"string"==typeof o?r="&".concat(o):Array.isArray(o)&&o.forEach((function(e){r+="&".concat(e)})),"https://".concat(e,".abstractapi.com/v1?api_key=").concat(t).concat(r,"&lang=js")}}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";o.r(r),o.d(r,{AbstractIpGeolocation:()=>n});var e=o(688);function t(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var n=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};t(n,"apiKey",void 0),t(n,"configure",(function(e){n.apiKey=e})),t(n,"look_up",(function(t){var o="";return t&&(o="ip_address=".concat(t)),e.makeApiCall("ipgeolocation",n.apiKey,o)}))})(),r})()}));
{
"name": "@abstractapi/javascript-ip-geolocation",
"version": "0.1.0",
"version": "1.0.0",
"description": "AbstractAPI Javascript IP Geolocation Library - Wrapper to quickly start using the powerful AbstractAPI's IP Geolocation service in your projects.",

@@ -57,3 +57,4 @@ "main": "index.js",

"dependencies": {
"javascript-core": "git+https://github.com/abstractapi/javascript-core.git"
"@abstractapi/javascript-core": "1.x",
"fsevents": "^2.3.2"
},

@@ -63,3 +64,6 @@ "directories": {

"test": "test"
},
"optionalDependencies": {
"fsevents": "^2.3.2"
}
}

@@ -22,3 +22,3 @@ # AbstractAPI javascript-ip-geolocation library

```
npm install javascript-ip-geolocation --save
npm install @abstractapi/javascript-ip-geolocation --save
```

@@ -25,0 +25,0 @@

@@ -1,2 +0,2 @@

import * as core from 'javascript-core';
import * as core from '@abstractapi/javascript-core';

@@ -3,0 +3,0 @@ export class AbstractIpGeolocation {

Sorry, the diff of this file is not supported yet

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