Comparing version 1.0.11 to 1.0.13
@@ -1,22 +0,1 @@ | ||
{ | ||
"name": "hey-jin", | ||
"version": "1.0.11", | ||
"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.13","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"}} |
@@ -30,2 +30,4 @@ #!/usr/bin/env node | ||
// Continue | ||
@@ -48,3 +50,8 @@ doTheRest(parsed.version); | ||
} else { | ||
console.log("\nThanks for your message! Nick will read it soon! "); | ||
if(res.body.update && res.body.update == "no") { | ||
console.log("\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"); | ||
} | ||
} | ||
@@ -51,0 +58,0 @@ process.exit(); |
2622
61