gtfs 4.7.0 → 4.7.1
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/.github/workflows/nodejs.yml +8 -12
- package/CHANGELOG.md +6 -0
- package/lib/import.js +3 -1
- package/package.json +5 -4
|
@@ -5,21 +5,17 @@ on: [push, pull_request]
|
|
|
5
5
|
jobs:
|
|
6
6
|
build:
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
|
-
|
|
9
8
|
strategy:
|
|
10
9
|
matrix:
|
|
11
|
-
node
|
|
12
|
-
|
|
10
|
+
node: [ 18, 20 ]
|
|
11
|
+
name: Use Node.js ${{ matrix.node }}
|
|
13
12
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
15
|
-
- name:
|
|
16
|
-
uses: actions/setup-node@
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
- name: Setup node
|
|
15
|
+
uses: actions/setup-node@v4
|
|
17
16
|
with:
|
|
18
|
-
node-version: ${{ matrix.node
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
npm install -g npm@9
|
|
22
|
-
npm ci
|
|
23
|
-
npm test
|
|
17
|
+
node-version: ${{ matrix.node }}
|
|
18
|
+
- run: npm ci
|
|
19
|
+
- run: npm test
|
|
24
20
|
env:
|
|
25
21
|
CI: true
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [4.7.1] - 2024-02-18
|
|
9
|
+
|
|
10
|
+
### Updated
|
|
11
|
+
|
|
12
|
+
- Support null arrival and departure in StopTimeUpdate
|
|
13
|
+
|
|
8
14
|
## [4.7.0] - 2024-02-09
|
|
9
15
|
|
|
10
16
|
### Added
|
package/lib/import.js
CHANGED
|
@@ -78,7 +78,9 @@ function getDescendantProp(obj, desc, defaultvalue) {
|
|
|
78
78
|
const arr = desc.split('.');
|
|
79
79
|
while (arr.length) {
|
|
80
80
|
const nextKey = arr.shift();
|
|
81
|
-
if (
|
|
81
|
+
if (obj == null) {
|
|
82
|
+
return defaultvalue;
|
|
83
|
+
} else if (nextKey.includes('[')) {
|
|
82
84
|
const arrayKey = nextKey.match(/(\w*)\[(\d+)\]/);
|
|
83
85
|
if (obj[arrayKey[1]] === undefined) {
|
|
84
86
|
return defaultvalue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtfs",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.1",
|
|
4
4
|
"description": "Import GTFS transit data into SQLite and query routes, stops, times, fares and more",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"transit",
|
|
@@ -59,7 +59,8 @@
|
|
|
59
59
|
"Ali Zarghami <alizarghami@gmail.com>",
|
|
60
60
|
"David Abell",
|
|
61
61
|
"Matthias Feist <matze@matf.de>",
|
|
62
|
-
"Oliv4945"
|
|
62
|
+
"Oliv4945",
|
|
63
|
+
"Kyle Ramey"
|
|
63
64
|
],
|
|
64
65
|
"type": "module",
|
|
65
66
|
"main": "index.js",
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
},
|
|
75
76
|
"dependencies": {
|
|
76
77
|
"@turf/helpers": "^6.5.0",
|
|
77
|
-
"better-sqlite3": "^9.4.
|
|
78
|
+
"better-sqlite3": "^9.4.1",
|
|
78
79
|
"csv-parse": "^5.5.3",
|
|
79
80
|
"csv-stringify": "^6.4.5",
|
|
80
81
|
"gtfs-realtime-bindings": "^1.1.1",
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
"yoctocolors": "^1.0.0"
|
|
96
97
|
},
|
|
97
98
|
"devDependencies": {
|
|
98
|
-
"husky": "^9.0.
|
|
99
|
+
"husky": "^9.0.11",
|
|
99
100
|
"lint-staged": "^15.2.2",
|
|
100
101
|
"mocha": "^10.3.0",
|
|
101
102
|
"prettier": "^3.2.5",
|