hk-bus-eta 1.7.6 → 1.8.0

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/Ctb.js CHANGED
@@ -9,7 +9,7 @@ module.exports = {
9
9
  response => response.json()
10
10
  ).then(({data}) => (
11
11
  data
12
- .filter(eta => eta.eta && eta.dir === bound)
12
+ .filter(eta => eta.eta && bound.includes(eta.dir))
13
13
  // filter the eta by the stop sequence information
14
14
  // as the route data may not 100% match
15
15
  // use the nearest seq
package/Nwfb.js CHANGED
@@ -9,7 +9,7 @@ module.exports = {
9
9
  response => response.json()
10
10
  ).then(({data}) => (
11
11
  data
12
- .filter(eta => eta.eta && eta.dir === bound)
12
+ .filter(eta => eta.eta && bound.includes(eta.dir))
13
13
  // filter the eta by the stop sequence information
14
14
  // as the route data may not 100% match
15
15
  // use the nearest seq
package/index.d.ts CHANGED
@@ -28,7 +28,7 @@ export type RouteListEntry = {
28
28
  [co in Company]: string[]
29
29
  },
30
30
  readonly bound: {
31
- [co in Company]: "O" | "I"
31
+ [co in Company]: "O" | "I" | "OI" | "IO"
32
32
  },
33
33
  readonly gtfsId: string,
34
34
  readonly nlbId: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hk-bus-eta",
3
- "version": "1.7.6",
3
+ "version": "1.8.0",
4
4
  "description": "Query the ETA (Estimated Time of Arrival) of HK Bus",
5
5
  "main": "index.js",
6
6
  "scripts": {