From 19cf762fc9cd5b104fc5b951657b54a45fd935f8 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 9 Jan 2018 00:06:26 +0100 Subject: [PATCH] hafas-client -> db-hafas --- index.js | 6 ++---- package.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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",