ioredis@5; minor tweak; 5.0.1

This commit is contained in:
Jannis R 2022-06-06 14:24:48 +02:00
parent 8ad4336689
commit 2cdd7dc172
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 4 additions and 5 deletions

View file

@ -1,8 +1,7 @@
const {data: cards} = require('hafas-client/p/db/loyalty-cards') const {data: cards} = require('hafas-client/p/db/loyalty-cards')
const DOCS_URL = 'https://github.com/public-transport/hafas-client/blob/68ecd7c5e976dd2f51c5c64a81600e7e181a8996/p/db/loyalty-cards.js#L6-L11'
const typesByName = new Map([ const typesByName = new Map([
// https://github.com/public-transport/hafas-client/blob/68ecd7c5e976dd2f51c5c64a81600e7e181a8996/p/db/loyalty-cards.js#L6-L11
['bahncard-1st-25', {type: cards.BAHNCARD, discount: 25, class: 1}], ['bahncard-1st-25', {type: cards.BAHNCARD, discount: 25, class: 1}],
['bahncard-2nd-25', {type: cards.BAHNCARD, discount: 25, class: 2}], ['bahncard-2nd-25', {type: cards.BAHNCARD, discount: 25, class: 2}],
['bahncard-1st-50', {type: cards.BAHNCARD, discount: 50, class: 1}], ['bahncard-1st-50', {type: cards.BAHNCARD, discount: 50, class: 1}],
@ -23,7 +22,7 @@ const parseLoyaltyCard = (key, val) => {
} }
const loyaltyCardParser = { const loyaltyCardParser = {
description: `Type of loyalty card in use. See ${DOCS_URL}.`, description: `Type of loyalty card in use.`,
type: 'string', type: 'string',
enum: types, enum: types,
defaultStr: '*none*', defaultStr: '*none*',

View file

@ -2,7 +2,7 @@
"private": true, "private": true,
"name": "db-rest", "name": "db-rest",
"description": "A clean REST API wrapping around the Deutsche Bahn API.", "description": "A clean REST API wrapping around the Deutsche Bahn API.",
"version": "5.0.0", "version": "5.0.1",
"main": "index.js", "main": "index.js",
"author": "Jannis R <mail@jannisr.de>", "author": "Jannis R <mail@jannisr.de>",
"homepage": "https://github.com/derhuerst/db-rest/tree/5", "homepage": "https://github.com/derhuerst/db-rest/tree/5",
@ -30,7 +30,7 @@
"etag": "^1.8.1", "etag": "^1.8.1",
"hafas-client-health-check": "^2.1.1", "hafas-client-health-check": "^2.1.1",
"hafas-rest-api": "^3.8.0", "hafas-rest-api": "^3.8.0",
"ioredis": "^4.28.1", "ioredis": "^5.0.6",
"serve-buffer": "^2.0.0", "serve-buffer": "^2.0.0",
"serve-static": "^1.14.1" "serve-static": "^1.14.1"
}, },