Skip to content

Commit

Permalink
remove default method params and bump to v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliankoe committed Aug 25, 2016
1 parent 4e124e5 commit fd27bfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ moment.locale('de')

const notificationOffset = 10

function monitor(stop, timeOffset = 0, numResults = 6) {
function monitor(stop, timeOffset, numResults) {
timeOffset = typeof timeOffset !== 'undefined' ? timeOffset : 0
numResults = typeof numResults !== 'undefined' ? numResults : 6
return dvb.monitor(stop, timeOffset, numResults)
.then(data => {
if (data.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alfred_dvb",
"version": "0.4.0",
"version": "0.4.1",
"description": "Monitor public transport in the VVO/DVB network from Alfred",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit fd27bfe

Please sign in to comment.