Socket
Socket
Sign inDemoInstall

wili

Package Overview
Dependencies
7
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

6

lib/index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc