Comparing version 1.9.2 to 1.10.0
@@ -51,5 +51,7 @@ #!/usr/bin/env node | ||
} else { | ||
console.log('Loading upcoming talks (select other days using --manual)...') | ||
load(function (err, schedule) { | ||
if (err) throw err | ||
schedule.day.some(function (day, index) { | ||
// find upcoming talks | ||
var upcoming = schedule.day.some(function (day, index) { | ||
var end = new Date(day.$.end).getTime() | ||
@@ -61,2 +63,7 @@ if (end > Date.now()) { | ||
}) | ||
// if no upcoming talks were found, fall back to manual selection | ||
if (!upcoming) { | ||
console.log('No upcoming talks found! Falling back to manual selection...') | ||
chooseDay(schedule) | ||
} | ||
}) | ||
@@ -63,0 +70,0 @@ } |
{ | ||
"name": "33c3", | ||
"version": "1.9.2", | ||
"version": "1.10.0", | ||
"description": "Chaos Communication Congress 2016 Schedule on the Command Line", | ||
@@ -43,5 +43,5 @@ "bin": "index.js", | ||
"coordinates": [ | ||
53.561944855830454, | ||
9.985576515417506 | ||
55.664396, | ||
12.4446439 | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
421061
143
6