mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-05-30 00:46:09 +03:00
yet another fix 🐛
This commit is contained in:
parent
ccd2dc0783
commit
94988d98c0
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
@ -12,7 +12,7 @@ const _request = require('./lib/request')
|
||||||
|
|
||||||
const isNonEmptyString = str => 'string' === typeof str && str.length > 0
|
const isNonEmptyString = str => 'string' === typeof str && str.length > 0
|
||||||
|
|
||||||
const createClient = (_profile, request = _request) => {
|
const createClient = (profile, request = _request) => {
|
||||||
profile = Object.assign({}, defaultProfile, profile)
|
profile = Object.assign({}, defaultProfile, profile)
|
||||||
if (!profile.parseProducts) {
|
if (!profile.parseProducts) {
|
||||||
profile.parseProducts = createParseBitmask(profile)
|
profile.parseProducts = createParseBitmask(profile)
|
||||||
|
@ -20,7 +20,6 @@ const createClient = (_profile, request = _request) => {
|
||||||
if (!profile.formatProductsFilter) {
|
if (!profile.formatProductsFilter) {
|
||||||
profile.formatProductsFilter = createFormatProductsFilter(profile)
|
profile.formatProductsFilter = createFormatProductsFilter(profile)
|
||||||
}
|
}
|
||||||
}, defaultProfile, profile)
|
|
||||||
validateProfile(profile)
|
validateProfile(profile)
|
||||||
|
|
||||||
const departures = (station, opt = {}) => {
|
const departures = (station, opt = {}) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue