From c6e0edbf0b2fcebece1ab9ac27b81c49a062e753 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Fri, 25 Nov 2022 21:17:27 +0100 Subject: [PATCH] =?UTF-8?q?rebuild=20with=202022-11-25=20data;=20minor=20t?= =?UTF-8?q?weaks=20=F0=9F=92=9A;=208.3.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 2 +- build/convert.js | 1 + build/download.sh | 1 + package.json | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b40a59..12faec9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: ['16'] + node-version: ['16', '18'] steps: - name: checkout diff --git a/build/convert.js b/build/convert.js index 82e396c..49f7d18 100644 --- a/build/convert.js +++ b/build/convert.js @@ -98,6 +98,7 @@ const fetchWeightsOfLines = async () => { const parsed = parse(line.route_short_name) if (parsed.type === 'bus' && (parsed.express || parsed.express)) weight += .05 + // todo: RE vs RB const id = line.route_id if (!data[id + '']) data[id + ''] = 0 diff --git a/build/download.sh b/build/download.sh index 8909606..515681b 100755 --- a/build/download.sh +++ b/build/download.sh @@ -5,6 +5,7 @@ set -e cd $(dirname $0) base_url='https://vbb-gtfs.jannisr.de/latest/' +# todo: use https://gist.github.com/derhuerst/745cf09fe5f3ea2569948dd215bbfe1a ? download () { curl -L --compressed --etag-compare "$1.etag" --etag-save "$1.etag" "$base_url$1" -o "$1" } diff --git a/package.json b/package.json index 6b03d6e..2c955ba 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vbb-stations", "description": "A list of VBB stations.", - "version": "8.2.0", + "version": "8.3.1", "main": "index.js", "files": [ "index.js",