gtfs 4.14.0 → 4.14.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.
@@ -765,11 +765,6 @@ var fareTransferRules = {
765
765
  min: -1,
766
766
  primary: true
767
767
  },
768
- {
769
- name: "transfer_id",
770
- type: "text",
771
- prefix: true
772
- },
773
768
  {
774
769
  name: "duration_limit",
775
770
  type: "integer",
@@ -3285,6 +3280,7 @@ function closeDb(db = null) {
3285
3280
  // src/lib/geojson-utils.ts
3286
3281
  import {
3287
3282
  cloneDeep,
3283
+ compact,
3288
3284
  filter,
3289
3285
  groupBy,
3290
3286
  last,
@@ -3530,12 +3526,12 @@ var updateRealtimeData = async (task) => {
3530
3526
  task.log(`Download successful`);
3531
3527
  let totalLineCount = 0;
3532
3528
  for (const entity of gtfsRealtimeData.entity) {
3533
- const fieldValues = tripUpdates.schema.map(
3529
+ const fieldValues = vehiclePositions.schema.map(
3534
3530
  (column) => prepareRealtimeValue(entity, column, task)
3535
3531
  );
3536
3532
  try {
3537
3533
  db.prepare(
3538
- `REPLACE INTO ${tripUpdates.filenameBase} (${tripUpdates.schema.map((column) => column.name).join(", ")}) VALUES (${fieldValues.join(", ")})`
3534
+ `REPLACE INTO ${vehiclePositions.filenameBase} (${vehiclePositions.schema.map((column) => column.name).join(", ")}) VALUES (${fieldValues.join(", ")})`
3539
3535
  ).run();
3540
3536
  } catch (error) {
3541
3537
  task.logWarning("Import error: " + error.message);
@@ -3903,7 +3899,7 @@ async function importGtfs(initialConfig) {
3903
3899
  }
3904
3900
 
3905
3901
  // src/lib/export.ts
3906
- import { without, compact } from "lodash-es";
3902
+ import { without, compact as compact2 } from "lodash-es";
3907
3903
  import pluralize2 from "pluralize";
3908
3904
  import { stringify } from "csv-stringify";
3909
3905
  import sqlString3 from "sqlstring-sqlite";
@@ -3917,7 +3913,7 @@ import sqlString4 from "sqlstring-sqlite";
3917
3913
  import { omit as omit3, pick } from "lodash-es";
3918
3914
 
3919
3915
  // src/lib/gtfs/shapes.ts
3920
- import { compact as compact2, omit as omit4, pick as pick2 } from "lodash-es";
3916
+ import { compact as compact3, omit as omit4, pick as pick2 } from "lodash-es";
3921
3917
  import { featureCollection as featureCollection2 } from "@turf/helpers";
3922
3918
 
3923
3919
  // src/lib/gtfs/stops.ts