Skip to content

Commit

Permalink
⚡ Updating first/last bus timing format
Browse files Browse the repository at this point in the history
🛠️ bump TS and Zod version
  • Loading branch information
TechSupportz committed Jul 20, 2024
1 parent e5c0ad3 commit 78ae007
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lodash": "^4.17.21",
"luxon": "^3.4.0",
"minisearch": "^6.1.0",
"zod": "^3.21.4"
"zod": "^3.23.8"
},
"devDependencies": {
"@types/koa": "^2.13.6",
Expand All @@ -45,6 +45,6 @@
"@types/node": "^20.3.1",
"nodemon": "^2.0.22",
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
"typescript": "^5.5.3"
}
}
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/routes/generateJSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ async function transformBusServices(
sequence: route.StopSequence,
distance: route.Distance,
firstBus: {
weekdays: route.WD_FirstBus,
saturday: route.SAT_FirstBus,
sunday: route.SUN_FirstBus,
weekdays: route.WD_FirstBus.split("").toSpliced(2, 0, ":").join(""),
saturday: route.SAT_FirstBus.split("").toSpliced(2, 0, ":").join(""),
sunday: route.SUN_FirstBus.split("").toSpliced(2, 0, ":").join(""),
},
lastBus: {
weekdays: route.WD_LastBus,
saturday: route.SAT_LastBus,
sunday: route.SUN_LastBus,
weekdays: route.WD_LastBus.split("").toSpliced(2, 0, ":").join(""),
saturday: route.SAT_LastBus.split("").toSpliced(2, 0, ":").join(""),
sunday: route.SUN_LastBus.split("").toSpliced(2, 0, ":").join(""),
},
} satisfies BusRouteStop
} else {
Expand Down

0 comments on commit 78ae007

Please sign in to comment.