db-vendo-client/p/vbn/index.js
Jannis R 339d64e901
convert to ESM 💥📝
2022-11-18 19:20:03 +01:00

28 lines
736 B
JavaScript

// 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)
const baseProfile = require('./base.json')
import {products} from './products.js'
const profile = {
...baseProfile,
locale: 'de-DE',
timezone: 'Europe/Berlin',
// https://runkit.com/derhuerst/hafas-decrypt-encrypted-mac-salt
// https://gist.github.com/derhuerst/fd2f81a597bde66cb1f689006d574d7f#file-config-txt-L22-L23
salt: Buffer.from('SP31mBufSyCLmNxp', 'utf-8'),
addMicMac: true,
products: products,
trip: true,
radar: true,
reachableFrom: true,
refreshJourneyUseOutReconL: true,
}
export {
profile,
}