Skip to content

Commit ec0548c

Browse files
authored
Merge pull request #10 from polarityio/develop
Added default color, and fixed issue where apple and google ip were not returning correctly.
2 parents bd438bf + 18e59cb commit ec0548c

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

config/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module.exports = {
5555
* @type Object
5656
* @optional
5757
*/
58+
defaultColor: 'light-gray',
5859
block: {
5960
component: {
6061
file: './components/maxmind-block.js'

database/GeoLite2-ASN.mmdb

734 KB
Binary file not shown.

database/GeoLite2-City.mmdb

1.8 MB
Binary file not shown.

integration.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use strict';
22

3-
let async = require('async');
4-
let config = require('./config/config');
5-
let path = require('path');
6-
let maxmind = require('maxmind');
7-
let ipaddr = require('ipaddr.js');
3+
const async = require('async');
4+
const config = require('./config/config');
5+
const maxmind = require('maxmind');
6+
const ipaddr = require('ipaddr.js');
7+
const cloneDeep = require('lodash.clonedeep');
88

99
let Logger;
1010
let cityLookup = null;
@@ -65,7 +65,7 @@ function doLookup(entities, options, cb) {
6565
}
6666

6767
if (result) {
68-
lookupResults.push(result);
68+
lookupResults.push(cloneDeep(result));
6969
}
7070

7171
next(null);

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"main": "./integration.js",
33
"name": "MaxMind",
44
"description": "Polarity MaxMind Integration",
5-
"version": "3.2.3-beta",
5+
"version": "3.2.4-beta",
66
"private": true,
77
"dependencies": {
88
"async": "^3.2.0",
99
"maxmind": "polarityio/node-maxmind.git#master",
1010
"ipaddr.js": "^1.9.1",
11-
"papaparse": "^5.1.1"
11+
"papaparse": "^5.1.1",
12+
"lodash.clonedeep": "^4.5.0"
1213
}
1314
}

0 commit comments

Comments
 (0)