Comparing version 1.0.22 to 1.0.23
@@ -1,1 +0,1 @@ | ||
{"name":"hey-jin","version":"1.0.22","description":"a package that says hi to jin","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"me","license":"Apache-2.0","bin":{"hey":"./index.js","hs":"./hs.js","talk":"./talk.js"},"dependencies":{"body-parser":"^1.18.2","co":"^4.6.0","co-prompt":"^1.0.0","superagent":"^3.8.1"}} | ||
{"name":"hey-jin","version":"1.0.23","description":"a package that says hi to jin","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"me","license":"Apache-2.0","bin":{"hey":"./index.js","hs":"./hs.js","talk":"./talk.js"},"dependencies":{"body-parser":"^1.18.2","co":"^4.6.0","co-prompt":"^1.0.0","superagent":"^3.8.1"}} |
@@ -6,2 +6,3 @@ #!/usr/bin/env node | ||
var fs = require('fs'); | ||
var chalk = require('chalk'); | ||
@@ -51,6 +52,6 @@ | ||
if(res.body.update && res.body.update == "no") { | ||
console.log("\nThanks for your message! Nick will read it soon! "); | ||
console.log(chalk.hex('#DEADED').bold("\nThanks for your message! Nick will read it soon! ")); | ||
} else { | ||
console.log("\nLooks like your hey-jin application is outdated!\n"); | ||
console.log("Please run 'npm update -g hey-jin' to get the latest version.\n"); | ||
console.log(chalk.hex('#DEADED').bold("\nLooks like your hey-jin application is outdated!\n")); | ||
console.log(chalk.hex('#BF0DED').bold("Please run 'npm update -g hey-jin' to get the latest version.\n")); | ||
} | ||
@@ -57,0 +58,0 @@ } |
2734
62