mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
minor changes
This commit is contained in:
parent
1a4c09ab4e
commit
4f15cbd049
3 changed files with 3 additions and 1 deletions
|
@ -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?
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Add table
Reference in a new issue