hafas-client -> db-hafas

This commit is contained in:
Jannis R 2018-01-09 00:06:26 +01:00
parent ad72ee9a80
commit 19cf762fc9
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,6 @@
'use strict'
const hafas = require('hafas-client')
const dbProfile = require('hafas-client/p/db')
const hafas = require('db-hafas')
const createApi = require('hafas-rest-api')
const createLogging = require('hafas-rest-api/logging')
const hsts = require('hsts')
@ -17,8 +16,7 @@ const config = {
homepage: pkg.homepage
}
const client = hafas(dbProfile)
const api = createApi(client, config)
const api = createApi(hafas, config)
api.use(createLogging())

View file

@ -28,9 +28,9 @@
},
"dependencies": {
"cli-native": "^1.0.0",
"db-hafas": "^2.0.0-alpha.2",
"db-stations": "^1.24.0",
"db-stations-autocomplete": "^1.0.0",
"hafas-client": "^2.0.0-alpha.3",
"hafas-rest-api": "0.1.0-alpha.2",
"hsts": "^2.1.0",
"ndjson": "^1.5.0",