gtfs-to-html 2.6.6 → 2.6.7

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,14 @@ 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.6.7] - 2024-05-28
9
+
10
+ ### Fixed
11
+ - Handle config with no agency_key
12
+
13
+ ### Updated
14
+ - Dependency updates
15
+
8
16
  ## [2.6.6] - 2024-05-14
9
17
 
10
18
  ### Updated
@@ -68,7 +68,7 @@ const gtfsToHtml = async (initialConfig) => {
68
68
  }
69
69
 
70
70
  const agencyKey = config.agencies
71
- .map((agency) => agency.agency_key)
71
+ .map((agency) => agency.agency_key ?? 'unknown')
72
72
  .join('-');
73
73
  const exportPath = path.join(process.cwd(), 'html', sanitize(agencyKey));
74
74
  const outputStats = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtfs-to-html",
3
- "version": "2.6.6",
3
+ "version": "2.6.7",
4
4
  "private": false,
5
5
  "description": "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
6
6
  "keywords": [
@@ -50,8 +50,8 @@
50
50
  "moment": "^2.30.1",
51
51
  "morgan": "^1.10.0",
52
52
  "pretty-error": "^4.0.0",
53
- "pug": "^3.0.2",
54
- "puppeteer": "^22.8.1",
53
+ "pug": "^3.0.3",
54
+ "puppeteer": "^22.10.0",
55
55
  "sanitize-filename": "^1.6.3",
56
56
  "sqlstring": "^2.3.3",
57
57
  "timer-machine": "^1.1.0",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "husky": "^9.0.11",
65
- "lint-staged": "^15.2.2",
65
+ "lint-staged": "^15.2.5",
66
66
  "prettier": "^3.2.5"
67
67
  },
68
68
  "engines": {
@@ -81,7 +81,7 @@ API along with your API token.
81
81
  "agencies": [
82
82
  {
83
83
  "agency_key": "county-connection",
84
- "url": "http://cccta.org/GTFS/google_transit.zip"
84
+ "url": "https://countyconnection.com/GTFS/google_transit.zip"
85
85
  }
86
86
  ]
87
87
  }
@@ -278,7 +278,7 @@ const config = {
278
278
  agencies: [
279
279
  {
280
280
  agency_key: 'county-connection',
281
- url: 'http://countyconnection.com/GTFS/google_transit.zip',
281
+ url: 'https://countyconnection.com/GTFS/google_transit.zip',
282
282
  exclude: ['shapes'],
283
283
  },
284
284
  ],