@roflsec/fail2scan 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/daemon.js +2 -1
  2. package/package.json +1 -1
package/bin/daemon.js CHANGED
@@ -8,7 +8,8 @@ const execFileP = promisify(execFile);
8
8
 
9
9
  let getGeo = async (ip) => null;
10
10
  if (process.env.IPGEO_API_KEY) {
11
- const { default: IPGeolocationAPI, GeolocationParams } = require("ip-geolocation-api-javascript-sdk");
11
+ const IPGeolocationAPI = require('ip-geolocation-api-javascript-sdk');
12
+ const { GeolocationParams } = require('ip-geolocation-api-javascript-sdk');
12
13
  const ipGeo = new IPGeolocationAPI(process.env.IPGEO_API_KEY, true);
13
14
  getGeo = (ip) => {
14
15
  return new Promise((resolve) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roflsec/fail2scan",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Fail2Scan daemon - watches fail2ban logs and scans banned IPs using nmap, dig and whois.",
5
5
  "bin": {
6
6
  "fail2scan-daemon": "./bin/daemon.js"