Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bluesmoon committed Nov 16, 2023
1 parent 8c673bd commit d0672b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"files" : ["lib/", "data/", "test/","scripts/"],
"main" : "lib/geoip.js",
"repository" : { "type": "git", "url": "git://github.com/geoip-lite/node-geoip.git" },
"engines" : { "node": ">=18.18.0" },
"engines" : { "node": ">=10.3.0" },
"scripts": {
"pretest": "eslint .",
"test": "nodeunit --reporter=minimal test/tests.js",
Expand Down
9 changes: 6 additions & 3 deletions scripts/updatedb.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ async function processCountryData(src, dest) {
await processLine(line);
}
datFile.close();
console.log(' DONE'.green);
console.log(chalk.green(' DONE'));
}

async function processCityData(src, dest) {
Expand Down Expand Up @@ -671,8 +671,11 @@ async.eachSeries(databases, function(database, nextDatabase) {
process.exit(1);
} else {
console.log(chalk.green('Successfully Updated Databases from MaxMind.'));
if (args.indexOf("debug") !== -1) console.log(chalk.yellow.bold('Notice: temporary files are not deleted for debug purposes.'));
else rimraf(tmpPath);
if (args.indexOf("debug") !== -1) {
console.log(chalk.yellow.bold('Notice: temporary files are not deleted for debug purposes.'));
} else {
rimraf(tmpPath);
}
process.exit(0);
}
});

0 comments on commit d0672b6

Please sign in to comment.