hk-bus-eta 1.7.4 → 1.7.5

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.
Files changed (2) hide show
  1. package/LightRail.js +1 -1
  2. package/package.json +1 -1
package/LightRail.js CHANGED
@@ -12,7 +12,7 @@ module.exports = {
12
12
  .reduce((acc, {route_list, platform_id}) => [
13
13
  ...acc,
14
14
  ...route_list
15
- .filter(({route_no, dest_ch, stop}) => route === route_no && dest_ch === dest.zh && stop === 0)
15
+ .filter(({route_no, dest_ch, stop}) => route === route_no && dest_ch.startsWith(dest.zh) && stop === 0)
16
16
  .map( ({time_en}) => {
17
17
  let waitTime = 0
18
18
  switch ( time_en.toLowerCase() ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hk-bus-eta",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "Query the ETA (Estimated Time of Arrival) of HK Bus",
5
5
  "main": "index.js",
6
6
  "scripts": {