From 323a5dccf9d39f2738647b67975fa2e9c637fc2f Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 25 Feb 2021 18:50:45 +0100 Subject: [PATCH] =?UTF-8?q?minor=20tweaks;=20readme:=20update=20badges=20?= =?UTF-8?q?=F0=9F=93=9D;=204.3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- find-leg.js | 1 + find-stop.js | 2 +- package.json | 2 +- readme.md | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/find-leg.js b/find-leg.js index c0b81d4..eed8b1e 100644 --- a/find-leg.js +++ b/find-leg.js @@ -89,6 +89,7 @@ const createFindLeg = (A, B) => { } const findStop = createFindStop(A, B) + // todo: customisable concurrency? or even across all `findLegInAnotherHafas` calls? const [firstStopB, lastStopB] = await Promise.all([ findStop(firstStopA), findStop(lastStopA) diff --git a/find-stop.js b/find-stop.js index c78c4d7..ffe2b88 100644 --- a/find-stop.js +++ b/find-stop.js @@ -46,7 +46,7 @@ const createFindStop = (A, B) => { } const findStopById = async (stopA) => { - debug('findStopById', stopA.id, stopA.ids, stopA.name) + debug('findStopById', stopA.id, stopA.ids || {}, stopA.name) const idsA = stopA.ids || {} const idA = ( idsA[endpNameB] || diff --git a/package.json b/package.json index 8a0e31e..a232c16 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "find-hafas-data-in-another-hafas", "description": "Find data from one HAFAS endpoint in another one.", - "version": "4.2.0", + "version": "4.3.0", "main": "index.js", "files": [ "index.js", diff --git a/readme.md b/readme.md index dc54075..3a8bf84 100644 --- a/readme.md +++ b/readme.md @@ -5,8 +5,8 @@ [![npm version](https://img.shields.io/npm/v/find-hafas-data-in-another-hafas.svg)](https://www.npmjs.com/package/find-hafas-data-in-another-hafas) [![build status](https://api.travis-ci.org/derhuerst/find-hafas-data-in-another-hafas.svg?branch=master)](https://travis-ci.org/derhuerst/find-hafas-data-in-another-hafas) ![ISC-licensed](https://img.shields.io/github/license/derhuerst/find-hafas-data-in-another-hafas.svg) -[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst) -[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst) +[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst) +[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst) Public transport providers in Europe often have data about vehicles run by other companies, but almost always it is outdated or imprecise. Consider these examples: