Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tfl-api-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tfl-api-wrapper - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

4

dist/lib/stopPoint.d.ts

@@ -20,5 +20,5 @@ import TfLAPI from './tfl';

* @param ids A list of stop point ids (station naptan code e.g. 940GZZLUASL).
* @param includeCrowding Include the crowding data (static). To Filter further use: /StopPoint/{ids}/Crowding/{line}
* @param includeCrowdingData Include the crowding data (static). To Filter further use: /StopPoint/{ids}/Crowding/{line}
*/
getByIDs(ids: Array<string>, includeCrowding: boolean): Promise<any>;
getByIDs(ids: Array<string>, includeCrowdingData: boolean): Promise<any>;
/**

@@ -25,0 +25,0 @@ * Gets all stop points of a given type

@@ -53,6 +53,6 @@ 'use strict';

* @param ids A list of stop point ids (station naptan code e.g. 940GZZLUASL).
* @param includeCrowding Include the crowding data (static). To Filter further use: /StopPoint/{ids}/Crowding/{line}
* @param includeCrowdingData Include the crowding data (static). To Filter further use: /StopPoint/{ids}/Crowding/{line}
*/
StopPoint.prototype.getByIDs = function (ids, includeCrowding) {
return this.sendRequest('/StopPoint/' + this.arrayToCSV(ids), { includeCrowding: includeCrowding }, 'GET');
StopPoint.prototype.getByIDs = function (ids, includeCrowdingData) {
return this.sendRequest('/StopPoint/' + this.arrayToCSV(ids), { includeCrowdingData: includeCrowdingData }, 'GET');
};

@@ -59,0 +59,0 @@ /**

@@ -10,3 +10,3 @@ import TfLAPI from './tfl';

/**
* This service will return detailed train prediction information for a nominated station on a nominated line within 100 minute range.
* Get detailed train prediction information for a nominated station on a nominated line within 100 minute range.
* @param {TrackerNetLines} line

@@ -18,3 +18,3 @@ * @param {TrackerNetStations} stationCode

/**
* This service will return the status of all lines on the network indicating any delays, disruptions or suspensions on the lines.
* Get the status of all lines on the network indicating any delays, disruptions or suspensions on the lines.
* @param incidentsOnly An indication of whether only lines that have incidents should be returned

@@ -24,6 +24,6 @@ */

/**
* Gets station status information for all stations.
* @param {boolean} incidentsOnly Gets station status information for stations with incidents only.
* station status information for all stations.
* @param {boolean} incidentsOnly Get station status information for stations with incidents only.
*/
getAllStationStatus(incidentsOnly?: boolean): Promise<getAllStationStatus>;
}

@@ -197,3 +197,3 @@ 'use strict';

/**
* This service will return detailed train prediction information for a nominated station on a nominated line within 100 minute range.
* Get detailed train prediction information for a nominated station on a nominated line within 100 minute range.
* @param {TrackerNetLines} line

@@ -260,3 +260,3 @@ * @param {TrackerNetStations} stationCode

/**
* This service will return the status of all lines on the network indicating any delays, disruptions or suspensions on the lines.
* Get the status of all lines on the network indicating any delays, disruptions or suspensions on the lines.
* @param incidentsOnly An indication of whether only lines that have incidents should be returned

@@ -297,4 +297,4 @@ */

/**
* Gets station status information for all stations.
* @param {boolean} incidentsOnly Gets station status information for stations with incidents only.
* station status information for all stations.
* @param {boolean} incidentsOnly Get station status information for stations with incidents only.
*/

@@ -301,0 +301,0 @@ TrackerNet.prototype.getAllStationStatus = function (incidentsOnly) {

{
"name": "tfl-api-wrapper",
"version": "1.3.1",
"version": "1.3.2",
"description": "A Node JS wrapper for the Transport for London API",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc