@transportme/load-ptv-gtfs 1.4.36 → 1.4.37
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.
|
@@ -121,7 +121,7 @@ export default class RouteLoader {
|
|
|
121
121
|
let route = await this.#routesReader.getNextEntity()
|
|
122
122
|
await this.loadRoute(route, processRoute)
|
|
123
123
|
} catch (e) {
|
|
124
|
-
console.error('Failed to load
|
|
124
|
+
console.error('Failed to load route', e)
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -154,7 +154,7 @@ export default class StopsLoader {
|
|
|
154
154
|
* @param {function} options.getMergeName Used to get a stop's merge name. Return null to use the default merge name.
|
|
155
155
|
*/
|
|
156
156
|
async loadStop(stop, { processStop, getMergeName } = {}) {
|
|
157
|
-
let processedData = processStop ? processStop(stop) : stop
|
|
157
|
+
let processedData = processStop ? await processStop(stop) : stop
|
|
158
158
|
if (!processedData) return
|
|
159
159
|
|
|
160
160
|
if (processedData.parentStopGTFSID) {
|