diff options
author | przemyslawpluta <przemekpluta@hotmail.com> | 2015-08-07 12:17:40 +0100 |
---|---|---|
committer | przemyslawpluta <przemekpluta@hotmail.com> | 2015-08-07 12:17:40 +0100 |
commit | fd4a50826c7ca3c33339699084bb0e8e968770e1 (patch) | |
tree | 12797824769389129f3a726e97498d79d55f33c4 | |
parent | 1b6e618607df3f3774f957cc3fc95fae3778e337 (diff) | |
download | mongo-edu-fd4a50826c7ca3c33339699084bb0e8e968770e1.zip |
version bump
-rw-r--r-- | lib/initialize.js | 8 | ||||
-rw-r--r-- | package.json | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/initialize.js b/lib/initialize.js index 127b0c6..451c734 100644 --- a/lib/initialize.js +++ b/lib/initialize.js @@ -21,7 +21,7 @@ function checkName(profile) { 'use strict'; var greetings = 'Hi '; - return ((profile.firstName !== '') ? greetings + profile.firstName : greetings + profile.userName) + ((!isWin) ? ' ' + emoji.smile : ''); + return ((profile.firstName !== '') ? greetings + profile.firstName : greetings + profile.userName) + ((!isWin) ? ' ' + emoji.smile + ' ' : '.'); } module.exports = function run(profile, argv) { @@ -60,11 +60,11 @@ module.exports = function run(profile, argv) { function processList(data, profile) { if (!data.length) { - if (profile.noCourses) { return console.log('i'.red + ' ' + checkName(profile) + ' ' + profile.noCourses); } - return console.log('i'.red + ' ' + checkName(profile) + ' ' + 'Could not locate any courses in your profile. Have you registered already?\n'); + if (profile.noCourses) { return console.log('i'.red + ' ' + checkName(profile) + ' ' + profile.noCourses); } + return console.log('i'.red + ' ' + checkName(profile) + ' ' + 'Could not locate any courses in your profile. Have you registered already?\n'); } - classes[0].message = checkName(profile) + ' . Found ' + data.length + ' Course'+ ((data.length > 1)? 's' : '') + '. Select:'; + classes[0].message = checkName(profile) + ' Found ' + data.length + ' Course'+ ((data.length > 1)? 's' : '') + '. Select:'; classes[0].choices = data; currentList(); diff --git a/package.json b/package.json index 9f8c660..a0580a8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mongo-edu", "preferGlobal": true, - "version": "0.2.17", + "version": "0.2.18", "author": "Przemyslaw Pluta <przemyslawplutadev@gmail.com> (http://przemyslawpluta.com)", "description": "Select and download videos and handouts from university.mongodb.com courses", "main": "./mongo-edu", @@ -47,7 +47,7 @@ "rimraf": "~2.4.2", "unzip": "~0.1.11", "which": "~1.1.1", - "yargs": "~3.17.1", + "yargs": "~3.18.0", "youtube-dl": "~1.10.5" }, "engines": { |