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.
- package/dist/bin/gtfs-export.js +4 -8
- package/dist/bin/gtfs-export.js.map +1 -1
- package/dist/bin/gtfs-import.js +5 -9
- package/dist/bin/gtfs-import.js.map +1 -1
- package/dist/bin/gtfsrealtime-update.js +142 -4
- package/dist/bin/gtfsrealtime-update.js.map +1 -1
- package/dist/index.d.ts +307 -36
- package/dist/index.js +30 -29
- package/dist/index.js.map +1 -1
- package/dist/models/models.d.ts +0 -8
- package/dist/models/models.js +0 -5
- package/dist/models/models.js.map +1 -1
- package/package.json +6 -3
package/dist/bin/gtfs-export.js
CHANGED
|
@@ -754,11 +754,6 @@ var fareTransferRules = {
|
|
|
754
754
|
min: -1,
|
|
755
755
|
primary: true
|
|
756
756
|
},
|
|
757
|
-
{
|
|
758
|
-
name: "transfer_id",
|
|
759
|
-
type: "text",
|
|
760
|
-
prefix: true
|
|
761
|
-
},
|
|
762
757
|
{
|
|
763
758
|
name: "duration_limit",
|
|
764
759
|
type: "integer",
|
|
@@ -3257,6 +3252,7 @@ function openDb(config = null) {
|
|
|
3257
3252
|
// src/lib/geojson-utils.ts
|
|
3258
3253
|
import {
|
|
3259
3254
|
cloneDeep,
|
|
3255
|
+
compact,
|
|
3260
3256
|
filter,
|
|
3261
3257
|
groupBy,
|
|
3262
3258
|
last,
|
|
@@ -3284,7 +3280,7 @@ function setDefaultConfig(initialConfig) {
|
|
|
3284
3280
|
// src/lib/export.ts
|
|
3285
3281
|
import path2 from "node:path";
|
|
3286
3282
|
import { writeFile } from "node:fs/promises";
|
|
3287
|
-
import { without, compact } from "lodash-es";
|
|
3283
|
+
import { without, compact as compact2 } from "lodash-es";
|
|
3288
3284
|
import pluralize2 from "pluralize";
|
|
3289
3285
|
import { stringify } from "csv-stringify";
|
|
3290
3286
|
import sqlString3 from "sqlstring-sqlite";
|
|
@@ -3391,7 +3387,7 @@ var exportGtfs = async (initialConfig) => {
|
|
|
3391
3387
|
return `${model.filenameBase}.${model.filenameExtension}`;
|
|
3392
3388
|
}
|
|
3393
3389
|
);
|
|
3394
|
-
if (
|
|
3390
|
+
if (compact2(exportedFiles).length === 0) {
|
|
3395
3391
|
log2("No GTFS data exported. Be sure to first import data into SQLite.");
|
|
3396
3392
|
return;
|
|
3397
3393
|
}
|
|
@@ -3407,7 +3403,7 @@ import sqlString4 from "sqlstring-sqlite";
|
|
|
3407
3403
|
import { omit as omit3, pick } from "lodash-es";
|
|
3408
3404
|
|
|
3409
3405
|
// src/lib/gtfs/shapes.ts
|
|
3410
|
-
import { compact as
|
|
3406
|
+
import { compact as compact3, omit as omit4, pick as pick2 } from "lodash-es";
|
|
3411
3407
|
import { featureCollection as featureCollection2 } from "@turf/helpers";
|
|
3412
3408
|
|
|
3413
3409
|
// src/lib/gtfs/stops.ts
|