gtfs-to-html 2.5.0 → 2.5.1

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,13 @@ 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.5.1] - 2023-03-06
9
+
10
+ ### Updated
11
+
12
+ - Dependency updates
13
+ - Optimize duplicateStopsForDifferentArrivalDeparture
14
+
8
15
  ## [2.5.0] - 2022-12-31
9
16
 
10
17
  ### Updated
package/lib/utils.js CHANGED
@@ -602,6 +602,10 @@ const duplicateStopsForDifferentArrivalDeparture = (
602
602
  timetable,
603
603
  config
604
604
  ) => {
605
+ if (config.showArrivalOnDifference === null) {
606
+ return stopIds;
607
+ }
608
+
605
609
  for (const trip of timetable.orderedTrips) {
606
610
  for (const stoptime of trip.stoptimes) {
607
611
  const timepointDifference = fromGTFSTime(stoptime.departure_time).diff(
@@ -609,10 +613,7 @@ const duplicateStopsForDifferentArrivalDeparture = (
609
613
  'minutes'
610
614
  );
611
615
 
612
- if (
613
- config.showArrivalOnDifference === null ||
614
- timepointDifference < config.showArrivalOnDifference
615
- ) {
616
+ if (timepointDifference < config.showArrivalOnDifference) {
616
617
  continue;
617
618
  }
618
619
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtfs-to-html",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "private": false,
5
5
  "description": "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
6
6
  "keywords": [
@@ -23,7 +23,8 @@
23
23
  "Thomas Craig <thomas@trilliumtransit.com>",
24
24
  "Holly Kvalheim",
25
25
  "Pawajoro",
26
- "Andrea Mignone"
26
+ "Andrea Mignone",
27
+ "Evo Stamatov"
27
28
  ],
28
29
  "type": "module",
29
30
  "main": "index.js",
@@ -40,30 +41,30 @@
40
41
  "archiver": "^5.3.1",
41
42
  "cli-table": "^0.3.11",
42
43
  "copy-dir": "^1.3.0",
43
- "csv-stringify": "^6.2.3",
44
+ "csv-stringify": "^6.3.0",
44
45
  "express": "^4.18.2",
45
- "gtfs": "^4.0.1",
46
+ "gtfs": "^4.1.0",
46
47
  "js-beautify": "^1.14.7",
47
48
  "lodash-es": "^4.17.21",
48
49
  "moment": "^2.29.4",
49
50
  "morgan": "^1.10.0",
50
51
  "pretty-error": "^4.0.0",
51
52
  "pug": "^3.0.2",
52
- "puppeteer": "^19.4.1",
53
+ "puppeteer": "^19.7.3",
53
54
  "sanitize-filename": "^1.6.3",
54
55
  "sqlstring": "^2.3.3",
55
56
  "timer-machine": "^1.1.0",
56
57
  "toposort": "^2.0.2",
57
58
  "untildify": "^4.0.0",
58
- "yargs": "^17.6.2",
59
+ "yargs": "^17.7.1",
59
60
  "yoctocolors": "^1.0.0"
60
61
  },
61
62
  "devDependencies": {
62
- "eslint": "^8.31.0",
63
- "eslint-config-prettier": "^8.5.0",
63
+ "eslint": "^8.35.0",
64
+ "eslint-config-prettier": "^8.7.0",
64
65
  "eslint-config-xo": "^0.43.1",
65
- "husky": "^8.0.2",
66
- "prettier": "^2.8.1",
66
+ "husky": "^8.0.3",
67
+ "prettier": "^2.8.4",
67
68
  "pretty-quick": "^3.1.3"
68
69
  },
69
70
  "engines": {
@@ -408,7 +408,7 @@ gtfsToHtml(config);
408
408
 
409
409
  ### showArrivalOnDifference
410
410
 
411
- {Float} Whether or not to show an arrival column/row in the timetable. It means, that if on at least one stop difference (stay on that stop) is **equal or greater** than specified here, the arrival time will be shown. Use `0` to show on each stop or `null` to supress for showing arrival at all.
411
+ {Float} Whether or not to show an arrival column/row in the timetable. It means, that if on at least one stop difference (stay on that stop) is **equal or greater** than specified here, the arrival time will be shown. Use `0` to show on each stop or `null` to skip showing an additional column for arrival.
412
412
 
413
413
  ```
414
414
  "showArrivalOnDifference": 0.2
package/www/package.json CHANGED
@@ -9,8 +9,8 @@
9
9
  "deploy": "docusaurus deploy"
10
10
  },
11
11
  "dependencies": {
12
- "@docusaurus/core": "^2.2.0",
13
- "@docusaurus/preset-classic": "^2.2.0",
12
+ "@docusaurus/core": "^2.3.1",
13
+ "@docusaurus/preset-classic": "^2.3.1",
14
14
  "clsx": "^1.2.1",
15
15
  "react": "^18.2.0",
16
16
  "react-dom": "^18.2.0"