bus-mj 1.2.0 → 1.2.2

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 (3) hide show
  1. package/data/bus.js +12 -12
  2. package/index.d.ts +2 -2
  3. package/package.json +1 -1
package/data/bus.js CHANGED
@@ -1,17 +1,17 @@
1
1
  module.exports = {
2
2
  "BUS": {
3
- "L3": { "label": "ligne 3", "color": "yellow", "band": ["blue"] },
4
- "L5": { "label": "ligne 5", "color": "white", "band": ["red"] },
5
- "L6": { "label": "ligne 6", "color": "white", "band": ["green"] },
6
- "L70": { "label": "ligne 7", "color": "yellow", "band": ["blue", "red"] },
7
- "L71": { "label": "ligne 7", "color": "yellow", "band": ["blue", "red"] },
8
- "L8": { "label": "ligne 9", "color": "white", "band": ["red"] },
9
- "L9": { "label": "ligne 9", "color": "blue", "band": ["yellow"] },
10
- "L11": { "label": "ligne 11", "color": "white", "band": ["green"] },
11
- "L12": { "label": "ligne 12", "color": "white", "band": ["yellow"] },
12
- "L15": { "label": "ligne 15", "color": "yellow", "band": ["green"] },
13
- "L180": { "label": "ligne 18", "color": "yellow", "band": ["red"] },
14
- "L181": { "label": "ligne 18", "color": "yellow", "band": ["red"] }
3
+ "L3": { "label": "ligne 3", "color": "yellow", "band": ["blue"], "board": null },
4
+ "L5": { "label": "ligne 5", "color": "white", "band": ["red"], "board": null },
5
+ "L6": { "label": "ligne 6", "color": "white", "band": ["green"], "board": null },
6
+ "L70": { "label": "ligne 7", "color": "yellow", "band": ["blue", "red"], "board": "red" },
7
+ "L71": { "label": "ligne 7", "color": "yellow", "band": ["blue", "red"], "board": "blue" },
8
+ "L8": { "label": "ligne 9", "color": "white", "band": ["red"], "board": null },
9
+ "L9": { "label": "ligne 9", "color": "blue", "band": ["yellow"], "board": null },
10
+ "L11": { "label": "ligne 11", "color": "white", "band": ["green"], "board": null },
11
+ "L12": { "label": "ligne 12", "color": "white", "band": ["yellow"], "board": null },
12
+ "L15": { "label": "ligne 15", "color": "yellow", "band": ["green"], "board": null },
13
+ "L180": { "label": "ligne 18", "color": "yellow", "band": ["red"], "board": "red" },
14
+ "L181": { "label": "ligne 18", "color": "yellow", "band": ["red"], "board": "green" }
15
15
  },
16
16
  "STOPS": {
17
17
  "S1": "airtel",
package/index.d.ts CHANGED
@@ -8,8 +8,8 @@ declare module 'bus-mj' {
8
8
  color: string,
9
9
  band: string[]
10
10
  }];
11
- export function busAt(busId: string): {label: string,color: string,band: string[]};
11
+ export function busAt(busId: string): {label: string,color: string,band: string[], board: string | null};
12
12
  export function getAllStop(): { key: string, value: string }[];
13
13
  export function getStop(busId: string): string[];
14
- export function getStopLabel(stopId: string): string[];
14
+ export function getStopLabel(stopId: string): string;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bus-mj",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "package for BUS station in Mahajanga",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",