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.7.2 to 1.7.3

1

dist/index.d.ts

@@ -17,1 +17,2 @@ import AirQuality from './lib/airQuality';

export { AirQuality, AccidentStats, BikePoint, Crowding, Disruptions, Journey, Line, Mode, Occupancy, Road, StopPoint, TrackerNet, TrackerNetLines, TrackerNetStations, Modes };
import './lib/stopPoint';

@@ -28,1 +28,2 @@ "use strict";

exports.TrackerNet = trackerNet_1.default;
require("./lib/stopPoint");

@@ -80,3 +80,5 @@ "use strict";

StopPoint.prototype.getStationArrivals = function (id) {
return this.sendRequest("/StopPoint/".concat(id, "/Arrivals"), {});
var x = 'test';
var y = 'test';
return this.sendRequest("/StopPoint/".concat(id, "/Arrivals"), { x: x, y: y });
};

@@ -181,1 +183,3 @@ /**

exports.default = StopPoint;
var x = new StopPoint('');
x.getStationArrivals('940GZZLUKSX');

6

dist/lib/tfl.js

@@ -40,3 +40,3 @@ "use strict";

var axios_1 = require("axios");
var qs = require("querystring");
var url_1 = require("url");
var xmlparser = require("fast-xml-parser");

@@ -68,4 +68,6 @@ var trackerNetRetag_1 = require("./utilities/trackerNetRetag");

// If Parameters are passed then stringify them and update the request URL
console.log(params);
console.log(new url_1.URLSearchParams(params).toString());
if (params)
FullURL = "".concat(FullURL, "&").concat(qs.stringify(params));
FullURL = "".concat(FullURL, "&").concat(new url_1.URLSearchParams(params).toString());
return [4 /*yield*/, axios_1.default.get(FullURL, { headers: { Accept: 'application/json', 'cache-control': 'no-cache' } })];

@@ -72,0 +74,0 @@ case 1:

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

@@ -29,3 +29,2 @@ "main": "dist/index.js",

"humps": "^2.0.1",
"querystring": "^0.2.1",
"trackernet-xml-retag": "^1.0.7"

@@ -32,0 +31,0 @@ },

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