geoip-country 4.2.55 → 4.2.57
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.
- package/data/geoip-country.dat +0 -0
- package/data/geoip-country6.dat +0 -0
- package/lib/geoip.js +3 -1
- package/package.json +1 -1
package/data/geoip-country.dat
CHANGED
|
Binary file
|
package/data/geoip-country6.dat
CHANGED
|
Binary file
|
package/lib/geoip.js
CHANGED
|
@@ -438,7 +438,9 @@ module.exports = {
|
|
|
438
438
|
if(typeof license_key === 'function'){
|
|
439
439
|
callback = license_key
|
|
440
440
|
} else {
|
|
441
|
-
options.env = {
|
|
441
|
+
options.env = Object.assign({},
|
|
442
|
+
process.env || {},
|
|
443
|
+
{GEOLITE2_LICENSE_KEY: license_key})
|
|
442
444
|
}
|
|
443
445
|
if(!callback){
|
|
444
446
|
callback = function(){}
|