bugfix 🐛
This commit is contained in:
parent
7e9b998e0f
commit
ad72ee9a80
2 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,7 @@ const autocomplete = require('db-stations-autocomplete')
|
|||
const stations = require('db-stations')
|
||||
const parse = require('cli-native').to
|
||||
const createFilter = require('db-stations/create-filter')
|
||||
const filterStream = require('stream-filter')
|
||||
const ndjson = require('ndjson')
|
||||
|
||||
const err400 = (msg) => {
|
||||
|
@ -31,7 +32,7 @@ const filter = (req, res, next) => {
|
|||
|
||||
stations.full()
|
||||
.on('error', next)
|
||||
.pipe(filter)
|
||||
.pipe(filterStream.obj(filter))
|
||||
.on('error', next)
|
||||
.pipe(ndjson.stringify())
|
||||
.on('error', next)
|
||||
|
|
|
@ -33,7 +33,8 @@
|
|||
"hafas-client": "^2.0.0-alpha.3",
|
||||
"hafas-rest-api": "0.1.0-alpha.2",
|
||||
"hsts": "^2.1.0",
|
||||
"ndjson": "^1.5.0"
|
||||
"ndjson": "^1.5.0",
|
||||
"stream-filter": "^2.1.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node index.js"
|
||||
|
|
Loading…
Reference in a new issue