From 2cdd7dc172c464d40bb580e5c17c6ad94caf82fa Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 6 Jun 2022 14:24:48 +0200 Subject: [PATCH] ioredis@5; minor tweak; 5.0.1 --- lib/loyalty-cards.js | 5 ++--- package.json | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/loyalty-cards.js b/lib/loyalty-cards.js index ed55127..552566f 100644 --- a/lib/loyalty-cards.js +++ b/lib/loyalty-cards.js @@ -1,8 +1,7 @@ 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([ + // 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-2nd-25', {type: cards.BAHNCARD, discount: 25, class: 2}], ['bahncard-1st-50', {type: cards.BAHNCARD, discount: 50, class: 1}], @@ -23,7 +22,7 @@ const parseLoyaltyCard = (key, val) => { } const loyaltyCardParser = { - description: `Type of loyalty card in use. See ${DOCS_URL}.`, + description: `Type of loyalty card in use.`, type: 'string', enum: types, defaultStr: '*none*', diff --git a/package.json b/package.json index 1f8c8ec..c434dfa 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "name": "db-rest", "description": "A clean REST API wrapping around the Deutsche Bahn API.", - "version": "5.0.0", + "version": "5.0.1", "main": "index.js", "author": "Jannis R ", "homepage": "https://github.com/derhuerst/db-rest/tree/5", @@ -30,7 +30,7 @@ "etag": "^1.8.1", "hafas-client-health-check": "^2.1.1", "hafas-rest-api": "^3.8.0", - "ioredis": "^4.28.1", + "ioredis": "^5.0.6", "serve-buffer": "^2.0.0", "serve-static": "^1.14.1" },