gtfs-to-chart 2.0.2 → 2.0.3
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 +3 -0
- package/lib/file-utils.js +1 -0
- package/lib/gtfs-to-chart.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
package/lib/file-utils.js
CHANGED
|
@@ -27,6 +27,7 @@ export async function prepDirectory(exportPath) {
|
|
|
27
27
|
const staticAssetPath = path.join(fileURLToPath(import.meta.url), '../../public');
|
|
28
28
|
await rm(exportPath, { recursive: true, force: true });
|
|
29
29
|
await mkdir(exportPath, { recursive: true });
|
|
30
|
+
await mkdir(path.join(exportPath, 'charts'), { recursive: true });
|
|
30
31
|
await copy(path.join(staticAssetPath, 'css'), path.join(exportPath, 'css'));
|
|
31
32
|
await copy(path.join(staticAssetPath, 'js'), path.join(exportPath, 'js'));
|
|
32
33
|
}
|
package/lib/gtfs-to-chart.js
CHANGED
|
@@ -58,7 +58,7 @@ const gtfsToChart = async initialConfig => {
|
|
|
58
58
|
|
|
59
59
|
try {
|
|
60
60
|
const html = await generateChartHTML(config, route.route_id);
|
|
61
|
-
const htmlPath = path.join(exportPath, sanitize(`${formatRouteName(route)}.html`));
|
|
61
|
+
const htmlPath = path.join(exportPath, 'charts', sanitize(`${formatRouteName(route)}.html`));
|
|
62
62
|
await writeFile(htmlPath, html);
|
|
63
63
|
} catch (error) {
|
|
64
64
|
config.logWarning(error.message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtfs-to-chart",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Generate stringline charts of a transit routes from GTFS",
|
|
6
6
|
"keywords": [
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"better-copy": "^1.0.4",
|
|
47
|
-
"chalk": "^5.
|
|
47
|
+
"chalk": "^5.1.2",
|
|
48
48
|
"connect-slashes": "^1.4.0",
|
|
49
|
-
"express": "^4.18.
|
|
50
|
-
"gtfs": "^3.
|
|
51
|
-
"js-beautify": "^1.14.
|
|
49
|
+
"express": "^4.18.2",
|
|
50
|
+
"gtfs": "^3.6.0",
|
|
51
|
+
"js-beautify": "^1.14.7",
|
|
52
52
|
"lodash-es": "^4.17.21",
|
|
53
|
-
"moment": "^2.29.
|
|
53
|
+
"moment": "^2.29.4",
|
|
54
54
|
"morgan": "^1.10.0",
|
|
55
55
|
"progress": "^2.0.3",
|
|
56
56
|
"pug": "^3.0.2",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"sqlstring": "^2.3.3",
|
|
60
60
|
"timer-machine": "^1.1.0",
|
|
61
61
|
"untildify": "^4.0.0",
|
|
62
|
-
"yargs": "^17.
|
|
62
|
+
"yargs": "^17.6.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"xo": "^0.
|
|
65
|
+
"xo": "^0.52.4"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">= 14.x"
|