2022-05-07 16:17:37 +02:00
|
|
|
// todo: use import assertions once they're supported by Node.js & ESLint
|
|
|
|
// https://github.com/tc39/proposal-import-assertions
|
|
|
|
import {createRequire} from 'module'
|
|
|
|
const require = createRequire(import.meta.url)
|
2019-05-08 10:57:37 +02:00
|
|
|
|
2021-04-18 19:02:54 +02:00
|
|
|
const baseProfile = require('./base.json')
|
2022-05-07 16:17:37 +02:00
|
|
|
import {products} from './products.js'
|
2019-05-08 10:57:37 +02:00
|
|
|
|
2022-05-07 16:17:37 +02:00
|
|
|
const profile = {
|
2021-04-18 19:02:54 +02:00
|
|
|
...baseProfile,
|
2019-05-08 10:57:37 +02:00
|
|
|
locale: 'de-DE',
|
|
|
|
timezone: 'Europe/Berlin',
|
2021-04-18 19:02:54 +02:00
|
|
|
// baseProfile.salt is interpreted as hex by hafas-client
|
|
|
|
salt: Buffer.from('pqjM3iKEGOAhYbX76k9R5zutv', 'utf8'),
|
2019-05-08 10:57:37 +02:00
|
|
|
addMicMac: true,
|
|
|
|
|
|
|
|
products,
|
|
|
|
|
2021-12-29 18:06:46 +01:00
|
|
|
departuresGetPasslist: true,
|
|
|
|
departuresStbFltrEquiv: true,
|
2019-05-08 10:57:37 +02:00
|
|
|
trip: true,
|
|
|
|
radar: true,
|
|
|
|
refreshJourney: true,
|
2020-09-16 17:21:59 +02:00
|
|
|
reachableFrom: true,
|
2021-04-18 22:31:41 +02:00
|
|
|
remarksGetPolyline: false,
|
2020-11-28 11:40:46 +01:00
|
|
|
lines: false, // fails with `FAIL` "HCI Service: request failed"
|
2019-05-08 10:57:37 +02:00
|
|
|
}
|
|
|
|
|
2022-05-07 16:17:37 +02:00
|
|
|
export {
|
|
|
|
profile,
|
|
|
|
}
|