diff --git a/index.js b/index.js index be32e8d..6fda9d3 100644 --- a/index.js +++ b/index.js @@ -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()) diff --git a/package.json b/package.json index 2c3e0e4..cd71537 100644 --- a/package.json +++ b/package.json @@ -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",