geoip-country 4.2.80 → 4.2.82

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.
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geoip-country",
3
- "version": "4.2.80",
3
+ "version": "4.2.82",
4
4
  "description": "Less memory usage version of geoip-lite, by supporting only country lookup.",
5
5
  "keywords": [
6
6
  "geo",
@@ -580,7 +580,7 @@ function processData(database, cb) {
580
580
  }
581
581
 
582
582
  if (!license_key || license_key === "true") {
583
- console.log('No GeoLite2 License Key Provided, Please Provide Argument: `--license_key=`'.yellow);
583
+ console.log('No GeoLite2 License Key Provided, Please Provide Argument: `--license_key=`');
584
584
  process.exit(1);
585
585
  }
586
586
 
@@ -599,7 +599,8 @@ async.eachSeries(databases, function(database, nextDatabase) {
599
599
  process.exit(1);
600
600
  } else {
601
601
  console.log('Successfully Updated Databases from MaxMind.');
602
- if (process.argv[2] == 'debug') console.log('Notice: temporary files are not deleted for debug purposes.'.bold.yellow);
603
- else setTimeout(function(){rimraf(tmpPath);}, 100);
602
+ if (process.argv.indexOf('debug') !== -1) console.log('Notice: temporary files are not deleted for debug purposes.');
603
+ else rimraf(tmpPath);
604
+ process.exit(0);
604
605
  }
605
606
  });