未验证 提交 c3c51b0e 编写于 作者: G GitSquared

👽 (mod_globe): Fix #664 Replace geolite2 with geolite2-redist

上级 80c5fbfd
......@@ -45,9 +45,11 @@ class Netstat {
this.geoLookup = {
get: () => null
};
let geolite2 = require("geolite2");
let geolite2 = require("geolite2-redist");
let maxmind = require("maxmind");
maxmind.open(geolite2.paths.city).catch(e => {throw e}).then(lookup => {
geolite2.open('GeoLite2-City', path => {
return maxmind.open(path);
}).catch(e => {throw e}).then(lookup => {
this.geoLookup = lookup;
this.lastconn.finished = true;
});
......
......@@ -173,17 +173,17 @@
}
},
"fs-minipass": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.0.0.tgz",
"integrity": "sha512-40Qz+LFXmd9tzYVnnBmZvFfvAADfUA14TXPK1s7IfElJTIZ97rA8w4Kin7Wt5JBrC3ShnnFJO/5vPjPEeJIq9A==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
"integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
"requires": {
"minipass": "^3.0.0"
}
},
"geolite2": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/geolite2/-/geolite2-2.0.2.tgz",
"integrity": "sha512-2tdUAprkv0eHaNeDwPmH55zPHniq4QJnUcBBZvb2sqfyJ3Izr+axy9s46Q3Y/7lQqf4GV4JOVwggRB3UXvJCCg==",
"geolite2-redist": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/geolite2-redist/-/geolite2-redist-1.0.1.tgz",
"integrity": "sha512-wvHW1P1hWp0CD0kMg8rOWJy1u9hkHOjI/QWid2abfCc7Algp+geVg+GKeLgUeMs/2hs6Xrwki4czwnflUPBWOw==",
"requires": {
"tar": "^5.0.5"
}
......
......@@ -25,7 +25,7 @@
"dependencies": {
"augmented-ui": "1.1.0",
"color": "3.1.2",
"geolite2": "2.0.2",
"geolite2-redist": "^1.0.1",
"howler": "2.1.2",
"maxmind": "4.0.0",
"nanoid": "2.1.8",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册