tfl-api-wrapper
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -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'); |
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170597
4
4379
- Removedquerystring@^0.2.1
- Removedquerystring@0.2.1(transitive)