gtfs-to-html 2.5.0 → 2.5.2
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 +13 -0
- package/lib/utils.js +5 -4
- package/package.json +11 -10
- package/www/docs/configuration.md +1 -1
- package/www/package.json +2 -2
- package/www/yarn.lock +1188 -1125
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ 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.2] - 2023-05-04
|
|
9
|
+
|
|
10
|
+
### Updated
|
|
11
|
+
|
|
12
|
+
- Dependency updates
|
|
13
|
+
|
|
14
|
+
## [2.5.1] - 2023-03-06
|
|
15
|
+
|
|
16
|
+
### Updated
|
|
17
|
+
|
|
18
|
+
- Dependency updates
|
|
19
|
+
- Optimize duplicateStopsForDifferentArrivalDeparture
|
|
20
|
+
|
|
8
21
|
## [2.5.0] - 2022-12-31
|
|
9
22
|
|
|
10
23
|
### 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.
|
|
3
|
+
"version": "2.5.2",
|
|
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.
|
|
44
|
+
"csv-stringify": "^6.3.4",
|
|
44
45
|
"express": "^4.18.2",
|
|
45
|
-
"gtfs": "^4.0
|
|
46
|
+
"gtfs": "^4.3.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": "^
|
|
53
|
+
"puppeteer": "^20.1.0",
|
|
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.
|
|
59
|
+
"yargs": "^17.7.2",
|
|
59
60
|
"yoctocolors": "^1.0.0"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"eslint": "^8.
|
|
63
|
-
"eslint-config-prettier": "^8.
|
|
63
|
+
"eslint": "^8.39.0",
|
|
64
|
+
"eslint-config-prettier": "^8.8.0",
|
|
64
65
|
"eslint-config-xo": "^0.43.1",
|
|
65
|
-
"husky": "^8.0.
|
|
66
|
-
"prettier": "^2.8.
|
|
66
|
+
"husky": "^8.0.3",
|
|
67
|
+
"prettier": "^2.8.8",
|
|
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
|
|
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.
|
|
13
|
-
"@docusaurus/preset-classic": "^2.
|
|
12
|
+
"@docusaurus/core": "^2.4.0",
|
|
13
|
+
"@docusaurus/preset-classic": "^2.4.0",
|
|
14
14
|
"clsx": "^1.2.1",
|
|
15
15
|
"react": "^18.2.0",
|
|
16
16
|
"react-dom": "^18.2.0"
|