Comparing version 0.3.0 to 0.3.1
@@ -6,8 +6,2 @@ const axios = require('axios'); | ||
function getLaunchDetails(launchId, callback) { | ||
axios.get('https://launchlibrary.net/1.2/launch/' + launchId).then((response) => { | ||
callback(response.data.launches[0]); | ||
}); | ||
} | ||
exports.nextLaunch = function (argv) { | ||
@@ -32,8 +26,6 @@ axios.get('https://launchlibrary.net/1.2/launch/next/1').then((response) => { | ||
if (argv.details) { | ||
getLaunchDetails(next.id, function (nextDetails) { | ||
let broadcasts = chalk.cyan('Broadcasts:') + ' ' + nextDetails.vidURLs; | ||
let rocket = chalk.cyan('Rocket:') + ' ' + nextDetails.rocket.name; | ||
let broadcasts = chalk.cyan('Broadcasts:') + ' ' + next.vidURLs; | ||
let rocket = chalk.cyan('Rocket:') + ' ' + next.rocket.name; | ||
console.log(title + '\n' + schedule + '\n' + broadcasts + '\n' + rocket); | ||
}); | ||
console.log(title + '\n' + schedule + '\n' + broadcasts + '\n' + rocket); | ||
} else { | ||
@@ -40,0 +32,0 @@ console.log(title + '\n' + schedule); |
{ | ||
"name": "space-cli", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "CLI for space information", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4917
62