@transportme/vline-nsp-reader 1.0.6 → 1.0.7

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.
@@ -32,7 +32,8 @@ export default class PassPDFReader {
32
32
  let currentRun = {
33
33
  type: '',
34
34
  stops: [],
35
- operationDay
35
+ operationDay,
36
+ flags: ''
36
37
  }
37
38
 
38
39
  let lastStation
@@ -43,7 +44,10 @@ export default class PassPDFReader {
43
44
  currentRun.type = stopData[0] + stopData.slice(1).toLowerCase()
44
45
  continue
45
46
  }
46
- if (stationName === 'Service Information') continue
47
+ if (stationName === 'Service Information') {
48
+ currentRun.flags = stopData || ''
49
+ continue
50
+ }
47
51
  if (!stopData || stopData.length === 1) continue
48
52
  if (stationName === 'Change Service' && !currentRun.stops.length) continue
49
53
  if (stationName === 'Change Service' && stopData.length) {
@@ -53,7 +57,8 @@ export default class PassPDFReader {
53
57
  currentRun = {
54
58
  type: stopData[0] + stopData.slice(1).toLowerCase(),
55
59
  stops: [],
56
- operationDay
60
+ operationDay,
61
+ flags: ''
57
62
  }
58
63
 
59
64
  continue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transportme/vline-nsp-reader",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "lib.mjs",
5
5
  "scripts": {
6
6
  "test": "mocha './{,!(node_modules)/**}/*.test.mjs'"