minor changes

This commit is contained in:
Jannis R 2018-10-15 17:34:25 +02:00
parent 1a4c09ab4e
commit 4f15cbd049
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
3 changed files with 3 additions and 1 deletions

View file

@ -8,6 +8,7 @@ With `opt`, you can override the default options, which look like this:
```js ```js
{ {
results: 8, // maximum number of results
distance: null, // maximum walking distance in meters distance: null, // maximum walking distance in meters
poi: false, // return points of interest? poi: false, // return points of interest?
stations: true, // return stations? stations: true, // return stations?

View file

@ -1,6 +1,6 @@
{ {
"name": "hafas-client", "name": "hafas-client",
"description": "JavaScript client for HAFAS public transport APIs.", "description": "Client for HAFAS public transport APIs.",
"version": "3.4.2", "version": "3.4.2",
"main": "index.js", "main": "index.js",
"files": [ "files": [

View file

@ -241,6 +241,7 @@ const validateJourney = (val, j, name = 'journey') => {
id: 'foo' // todo: let hafas-client parse a journey ID id: 'foo' // todo: let hafas-client parse a journey ID
}, j) }, j)
defaultValidators.journey(val, withFakeId, name) defaultValidators.journey(val, withFakeId, name)
// todo: j.refreshToken
if ('tickets' in j) { if ('tickets' in j) {
a.ok(Array.isArray(j.tickets), name + '.tickets must be an array') a.ok(Array.isArray(j.tickets), name + '.tickets must be an array')