gtfs-to-html 2.3.3 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.4.0] - 2022-06-07
9
+
10
+ ### Updated
11
+
12
+ - Dependency updates
13
+ - Add route labels and stops to system map
14
+ - Turn off points of interest labels on all maps
15
+ - Better map data styles
16
+ - Improved system map route and stop highlighting
17
+ - Updated to tailwindcss 3
18
+
19
+ ## [2.3.5] - 2022-04-26
20
+
21
+ ### Updated
22
+
23
+ - Dependency updates
24
+
25
+ ## [2.3.4] - 2022-04-09
26
+
27
+ ### Updated
28
+
29
+ - Remove route info from map geojson
30
+ - Dependency updates
31
+
8
32
  ## [2.3.3] - 2022-01-21
9
33
 
10
34
  ### Updated
package/app/index.js CHANGED
@@ -87,6 +87,7 @@ router.get('/', async (request, response, next) => {
87
87
  const html = await generateOverviewHTML(timetablePages, config);
88
88
  response.send(html);
89
89
  } catch (error) {
90
+ console.error(error);
90
91
  next(error);
91
92
  }
92
93
  });
@@ -91,6 +91,11 @@ export async function getTimetableGeoJSON(timetable, config) {
91
91
  * Get the geoJSON for an agency (all routes and stops).
92
92
  */
93
93
  export async function getAgencyGeoJSON(config) {
94
- const geojson = await getShapesAsGeoJSON();
94
+ const [shapesGeojsons, stopsGeojsons] = await Promise.all([
95
+ getShapesAsGeoJSON(),
96
+ getStopsAsGeoJSON(),
97
+ ]);
98
+
99
+ const geojson = mergeGeojson(shapesGeojsons, stopsGeojsons);
95
100
  return simplifyGeoJSON(geojson, config);
96
101
  }
package/lib/log-utils.js CHANGED
@@ -205,12 +205,12 @@ export function progressBar(formatString, barTotal, config) {
205
205
  config.log(renderProgressString(), true);
206
206
 
207
207
  return {
208
- interrupt: (text) => {
208
+ interrupt(text) {
209
209
  // Log two lines to avoid overwrite by progress bar
210
210
  config.logWarning(text);
211
211
  config.logWarning('');
212
212
  },
213
- increment: () => {
213
+ increment() {
214
214
  barProgress += 1;
215
215
  config.log(renderProgressString(), true);
216
216
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtfs-to-html",
3
- "version": "2.3.3",
3
+ "version": "2.4.0",
4
4
  "private": false,
5
5
  "description": "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
6
6
  "keywords": [
@@ -37,33 +37,33 @@
37
37
  "dependencies": {
38
38
  "@turf/helpers": "^6.5.0",
39
39
  "@turf/simplify": "^6.5.0",
40
- "archiver": "^5.3.0",
41
- "chalk": "^5.0.0",
40
+ "archiver": "^5.3.1",
41
+ "chalk": "^5.0.1",
42
42
  "cli-table": "^0.3.11",
43
43
  "copy-dir": "^1.3.0",
44
- "csv-stringify": "^6.0.5",
45
- "express": "^4.17.2",
46
- "gtfs": "^3.2.4",
47
- "js-beautify": "^1.14.0",
44
+ "csv-stringify": "^6.1.0",
45
+ "express": "^4.18.1",
46
+ "gtfs": "^3.3.1",
47
+ "js-beautify": "^1.14.3",
48
48
  "lodash-es": "^4.17.21",
49
- "moment": "^2.29.1",
49
+ "moment": "^2.29.3",
50
50
  "morgan": "^1.10.0",
51
51
  "pretty-error": "^4.0.0",
52
52
  "pug": "^3.0.2",
53
- "puppeteer": "^13.1.1",
53
+ "puppeteer": "^14.2.1",
54
54
  "sanitize-filename": "^1.6.3",
55
- "sqlstring": "^2.3.2",
55
+ "sqlstring": "^2.3.3",
56
56
  "timer-machine": "^1.1.0",
57
57
  "toposort": "^2.0.2",
58
58
  "untildify": "^4.0.0",
59
- "yargs": "^17.3.1"
59
+ "yargs": "^17.5.1"
60
60
  },
61
61
  "devDependencies": {
62
- "eslint": "^8.7.0",
63
- "eslint-config-prettier": "^8.3.0",
64
- "eslint-config-xo": "^0.39.0",
65
- "husky": "^7.0.4",
66
- "prettier": "^2.5.1",
62
+ "eslint": "^8.17.0",
63
+ "eslint-config-prettier": "^8.5.0",
64
+ "eslint-config-xo": "^0.41.0",
65
+ "husky": "^8.0.1",
66
+ "prettier": "^2.6.2",
67
67
  "pretty-quick": "^3.1.3"
68
68
  },
69
69
  "engines": {
@@ -70,7 +70,7 @@ a:hover {
70
70
 
71
71
  .timetable .table-container {
72
72
  overflow-x: scroll;
73
- margin-bottom: 1rem;
73
+ margin: 20px 0;
74
74
  }
75
75
 
76
76
  .timetable .table-container .table {
@@ -93,11 +93,12 @@ a:hover {
93
93
  }
94
94
 
95
95
  .timetable thead tr {
96
- background: #72b1e6;
96
+ background: #aed9fb;
97
97
  }
98
98
 
99
+ .timetable thead tr,
99
100
  .timetable thead tr a {
100
- color: #333333;
101
+ color: #222222;
101
102
  }
102
103
 
103
104
  .timetable th {
@@ -257,16 +258,3 @@ a:hover {
257
258
  align-items: center;
258
259
  line-height: 1;
259
260
  }
260
-
261
- /* Overview page */
262
-
263
- .overview-menu-item {
264
- display: block;
265
- text-decoration: none;
266
- padding: 5px;
267
- }
268
-
269
- .overview-menu-item:hover {
270
- text-decoration: none;
271
- background: #bdd5fa;
272
- }