wili
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -46,3 +46,3 @@ "use strict"; | ||
*/ | ||
monitor(rbl, options) { | ||
monitor(rbl, options = {}) { | ||
this.reqUrl = `${this.baseUrl}/monitor?sender=${this.API_KEY}`; | ||
@@ -60,3 +60,3 @@ this.reqUrl += buildUrl('rbl', rbl); | ||
*/ | ||
newsList(options) { | ||
newsList(options = {}) { | ||
this.reqUrl = `${this.baseUrl}/newsList?sender=${this.API_KEY}`; | ||
@@ -79,3 +79,3 @@ if (typeof options.relatedLine !== 'undefined') { | ||
*/ | ||
trafficInfoList(options) { | ||
trafficInfoList(options = {}) { | ||
this.reqUrl = `${this.baseUrl}/trafficInfoList?sender=${this.API_KEY}`; | ||
@@ -82,0 +82,0 @@ if (typeof options.relatedLine !== 'undefined') { |
{ | ||
"name": "wili", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A Node client for the Wiener Linien public transport API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -56,3 +56,3 @@ import * as fetch from 'isomorphic-fetch'; | ||
*/ | ||
monitor(rbl: number|string|number[]|string[], options: ActiveTrafficInfo) { | ||
monitor(rbl: number|string|number[]|string[], options: ActiveTrafficInfo = {}) { | ||
this.reqUrl = `${this.baseUrl}/monitor?sender=${this.API_KEY}`; | ||
@@ -73,3 +73,3 @@ this.reqUrl += buildUrl('rbl', rbl); | ||
*/ | ||
newsList(options: NewsList) { | ||
newsList(options: NewsList = {}) { | ||
this.reqUrl = `${this.baseUrl}/newsList?sender=${this.API_KEY}`; | ||
@@ -97,3 +97,3 @@ | ||
*/ | ||
trafficInfoList(options: TrafficInfo) { | ||
trafficInfoList(options: TrafficInfo = {}) { | ||
this.reqUrl = `${this.baseUrl}/trafficInfoList?sender=${this.API_KEY}`; | ||
@@ -100,0 +100,0 @@ |
11183950