New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

gtfs-to-html

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtfs-to-html - npm Package Compare versions

Comparing version

to
2.4.4

@@ -8,2 +8,10 @@ # Changelog

## [2.4.4] - 2022-12-22
### Updated
- Use adjacent duplicate stoptimes as arrival/depart if different times
- Updates to gtfstohtml.com documentation website dependencies
- Dependency updates
## [2.4.3] - 2022-11-10

@@ -10,0 +18,0 @@

@@ -987,11 +987,20 @@ import { readFileSync } from 'node:fs';

// Remove adjacent stoptimes with the same stop_id
// Combine adjacent stoptimes with the same `stop_id`
for (const trip of filteredTrips) {
trip.stoptimes = trip.stoptimes.filter((stoptime, index) => {
if (index === 0) {
return true;
const combinedStoptimes = [];
for (const [index, stoptime] of trip.stoptimes.entries()) {
if (
index === 0 ||
stoptime.stop_id !== trip.stoptimes[index - 1].stop_id
) {
combinedStoptimes.push(stoptime);
} else {
// The `stoptime` is the same as previous, use `arrival_time` from previous and `departure_time` from this stoptime
combinedStoptimes[combinedStoptimes.length - 1].departure_time =
stoptime.departure_time;
}
}
return stoptime.stop_id !== trip.stoptimes[index - 1].stop_id;
});
trip.stoptimes = combinedStoptimes;
}

@@ -998,0 +1007,0 @@

{
"name": "gtfs-to-html",
"version": "2.4.3",
"version": "2.4.4",
"private": false,

@@ -43,5 +43,5 @@ "description": "Build human readable transit timetables as HTML, PDF or CSV from GTFS",

"copy-dir": "^1.3.0",
"csv-stringify": "^6.2.1",
"csv-stringify": "^6.2.3",
"express": "^4.18.2",
"gtfs": "^3.6.1",
"gtfs": "^3.8.0",
"js-beautify": "^1.14.7",

@@ -53,3 +53,3 @@ "lodash-es": "^4.17.21",

"pug": "^3.0.2",
"puppeteer": "^19.2.2",
"puppeteer": "^19.4.1",
"sanitize-filename": "^1.6.3",

@@ -64,7 +64,7 @@ "sqlstring": "^2.3.3",

"devDependencies": {
"eslint": "^8.27.0",
"eslint": "^8.30.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-xo": "^0.43.1",
"husky": "^8.0.2",
"prettier": "^2.7.1",
"prettier": "^2.8.1",
"pretty-quick": "^3.1.3"

@@ -71,0 +71,0 @@ },

@@ -12,4 +12,4 @@ {

"dependencies": {
"@docusaurus/core": "^2.0.0-rc.1",
"@docusaurus/preset-classic": "^2.0.0-rc.1",
"@docusaurus/core": "^2.2.0",
"@docusaurus/preset-classic": "^2.2.0",
"clsx": "^1.2.1",

@@ -16,0 +16,0 @@ "react": "^18.2.0",

@@ -51,3 +51,3 @@ /* eslint-disable no-unused-vars */

<div className="text--center">
<img className={styles.featureImage} src={imgUrl} alt="" />
<img className={styles['feature-image']} src={imgUrl} alt="" />
</div>

@@ -69,3 +69,3 @@ )}

>
<header className={clsx('hero hero--dark', styles.heroBanner)}>
<header className={clsx('hero hero--dark', styles['hero-banner'])}>
<div className="container">

@@ -93,3 +93,3 @@ <div className="row">

'button button--outline button--secondary button--lg',
styles.heroButton
styles['hero-button']
)}

@@ -118,6 +118,3 @@ to={useBaseUrl('docs/')}

<section
style={{ backgroundColor: 'hsl(0, 0%, 85%)' }}
className="padding--lg"
>
<section className={clsx('padding--lg', styles['gray-section'])}>
<div className="container">

@@ -124,0 +121,0 @@ <div className="row">

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet