gtfs 3.2.0 → 3.2.4

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/CHANGELOG.md CHANGED
@@ -5,6 +5,35 @@ 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
+ ## [3.2.4] - 2022-01-21
9
+
10
+ ### Updated
11
+
12
+ - Dependency Updates
13
+
14
+ ## [3.2.3] - 2022-01-16
15
+
16
+ ### Added
17
+
18
+ - Implemented case-insensitive columns on import
19
+
20
+ ### Updated
21
+
22
+ - Dependency Updates
23
+
24
+ ## [3.2.2] - 2021-12-28
25
+
26
+ ### Updated
27
+
28
+ - Dependency Updates
29
+
30
+ ## [3.2.1] - 2021-11-26
31
+
32
+ ### Updated
33
+
34
+ - Updated sqlite3 dependency to use @vscode/sqlite3 for npm audit warning
35
+ - Downgraded dtslint to 3.4.2 for npm audit warning
36
+
8
37
  ## [3.2.0] - 2021-11-21
9
38
 
10
39
  ### Added
package/lib/db.js CHANGED
@@ -1,4 +1,4 @@
1
- import sqlite3 from 'sqlite3';
1
+ import sqlite3 from '@vscode/sqlite3';
2
2
  import { open } from 'sqlite';
3
3
  import { setDefaultConfig } from './utils.js';
4
4
  const dbs = {};
package/lib/import.js CHANGED
@@ -134,7 +134,8 @@ const createTables = (db) =>
134
134
  const primary = column.primary ? 'PRIMARY KEY' : '';
135
135
  const required = column.required ? 'NOT NULL' : '';
136
136
  const columnDefault = column.default ? 'DEFAULT ' + column.default : '';
137
- return `${column.name} ${column.type} ${check} ${primary} ${required} ${columnDefault}`;
137
+ const columnCollation = column.nocase ? 'COLLATE NOCASE' : ''
138
+ return `${column.name} ${column.type} ${check} ${primary} ${required} ${columnDefault} ${columnCollation}`;
138
139
  });
139
140
 
140
141
  await db.run(
@@ -14,6 +14,7 @@ const model = {
14
14
  name: 'agency_name',
15
15
  type: 'varchar(255)',
16
16
  required: true,
17
+ nocase: true,
17
18
  },
18
19
  {
19
20
  name: 'agency_url',
@@ -28,10 +29,12 @@ const model = {
28
29
  {
29
30
  name: 'agency_lang',
30
31
  type: 'varchar(255)',
32
+ nocase: true,
31
33
  },
32
34
  {
33
35
  name: 'agency_phone',
34
36
  type: 'varchar(64)',
37
+ nocase: true,
35
38
  },
36
39
  {
37
40
  name: 'agency_fare_url',
@@ -40,6 +43,7 @@ const model = {
40
43
  {
41
44
  name: 'agency_email',
42
45
  type: 'varchar(255)',
46
+ nocase: true,
43
47
  },
44
48
  ],
45
49
  };
@@ -26,6 +26,7 @@ const model = {
26
26
  name: 'organization_name',
27
27
  type: 'varchar(255)',
28
28
  required: true,
29
+ nocase: true,
29
30
  },
30
31
  {
31
32
  name: 'is_producer',
@@ -52,10 +53,12 @@ const model = {
52
53
  {
53
54
  name: 'attribution_email',
54
55
  type: 'varchar(255)',
56
+ nocase: true,
55
57
  },
56
58
  {
57
59
  name: 'attribution_phone',
58
60
  type: 'varchar(255)',
61
+ nocase: true,
59
62
  },
60
63
  ],
61
64
  };
@@ -29,6 +29,7 @@ const model = {
29
29
  {
30
30
  name: 'holiday_name',
31
31
  type: 'varchar(255)',
32
+ nocase: true,
32
33
  },
33
34
  ],
34
35
  };
@@ -10,6 +10,7 @@ const model = {
10
10
  name: 'feed_publisher_name',
11
11
  type: 'varchar(255)',
12
12
  required: true,
13
+ nocase: true,
13
14
  },
14
15
  {
15
16
  name: 'feed_publisher_url',
@@ -24,6 +25,7 @@ const model = {
24
25
  {
25
26
  name: 'default_lang',
26
27
  type: 'varchar(255)',
28
+ nocase: true,
27
29
  },
28
30
  {
29
31
  name: 'feed_start_date',
@@ -40,6 +42,7 @@ const model = {
40
42
  {
41
43
  name: 'feed_contact_email',
42
44
  type: 'varchar(255)',
45
+ nocase: true,
43
46
  },
44
47
  {
45
48
  name: 'feed_contact_url',
@@ -14,6 +14,7 @@ const model = {
14
14
  {
15
15
  name: 'level_name',
16
16
  type: 'varchar(255)',
17
+ nocase: true,
17
18
  },
18
19
  ],
19
20
  };
@@ -55,10 +55,12 @@ const model = {
55
55
  {
56
56
  name: 'signposted_as',
57
57
  type: 'varchar(255)',
58
+ nocase: true,
58
59
  },
59
60
  {
60
61
  name: 'reversed_signposted_as',
61
62
  type: 'varchar(255)',
63
+ nocase: true,
62
64
  },
63
65
  ],
64
66
  };
@@ -13,14 +13,17 @@ const model = {
13
13
  {
14
14
  name: 'route_short_name',
15
15
  type: 'varchar(255)',
16
+ nocase: true,
16
17
  },
17
18
  {
18
19
  name: 'route_long_name',
19
20
  type: 'varchar(255)',
21
+ nocase: true,
20
22
  },
21
23
  {
22
24
  name: 'route_desc',
23
25
  type: 'varchar(255)',
26
+ nocase: true,
24
27
  },
25
28
  {
26
29
  name: 'route_type',
@@ -37,10 +40,12 @@ const model = {
37
40
  {
38
41
  name: 'route_color',
39
42
  type: 'varchar(255)',
43
+ nocase: true,
40
44
  },
41
45
  {
42
46
  name: 'route_text_color',
43
47
  type: 'varchar(255)',
48
+ nocase: true,
44
49
  },
45
50
  {
46
51
  name: 'route_sort_order',
@@ -45,6 +45,7 @@ const model = {
45
45
  {
46
46
  name: 'stop_headsign',
47
47
  type: 'varchar(255)',
48
+ nocase: true,
48
49
  },
49
50
  {
50
51
  name: 'pickup_type',
@@ -13,14 +13,17 @@ const model = {
13
13
  {
14
14
  name: 'stop_name',
15
15
  type: 'varchar(255)',
16
+ nocase: true,
16
17
  },
17
18
  {
18
19
  name: 'tts_stop_name',
19
20
  type: 'varchar(255)',
21
+ nocase: true,
20
22
  },
21
23
  {
22
24
  name: 'stop_desc',
23
25
  type: 'varchar(255)',
26
+ nocase: true,
24
27
  },
25
28
  {
26
29
  name: 'stop_lat',
@@ -21,10 +21,12 @@ const model = {
21
21
  {
22
22
  name: 'trip_headsign',
23
23
  type: 'varchar(255)',
24
+ nocase: true,
24
25
  },
25
26
  {
26
27
  name: 'trip_short_name',
27
28
  type: 'varchar(255)',
29
+ nocase: true,
28
30
  },
29
31
  {
30
32
  name: 'direction_id',
@@ -16,6 +16,7 @@ const model = {
16
16
  {
17
17
  name: 'stop_city',
18
18
  type: 'varchar(255)',
19
+ nocase: true,
19
20
  },
20
21
  ],
21
22
  };
@@ -14,6 +14,7 @@ const model = {
14
14
  {
15
15
  name: 'note',
16
16
  type: 'varchar(2047)',
17
+ nocase: true,
17
18
  },
18
19
  ],
19
20
  };
@@ -14,6 +14,7 @@ const model = {
14
14
  {
15
15
  name: 'filename',
16
16
  type: 'varchar(255)',
17
+ nocase: true,
17
18
  },
18
19
  ],
19
20
  };
@@ -97,10 +97,12 @@ const model = {
97
97
  {
98
98
  name: 'timetable_label',
99
99
  type: 'varchar(255)',
100
+ nocase: true,
100
101
  },
101
102
  {
102
103
  name: 'service_notes',
103
104
  type: 'varchar(255)',
105
+ nocase: true,
104
106
  },
105
107
  {
106
108
  name: 'orientation',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtfs",
3
- "version": "3.2.0",
3
+ "version": "3.2.4",
4
4
  "description": "Import GTFS transit data into SQLite and query routes, stops, times, fares and more",
5
5
  "keywords": [
6
6
  "transit",
@@ -53,7 +53,8 @@
53
53
  "Devin Packer",
54
54
  "Darius MARTIN",
55
55
  "Mike Brocks",
56
- "Matt Moran"
56
+ "Matt Moran",
57
+ "Daniel Sörlöv"
57
58
  ],
58
59
  "type": "module",
59
60
  "main": "index.js",
@@ -70,34 +71,34 @@
70
71
  },
71
72
  "dependencies": {
72
73
  "@turf/helpers": "^6.5.0",
73
- "chalk": "^4.1.2",
74
- "csv-parse": "^5.0.3",
75
- "csv-stringify": "^6.0.4",
74
+ "@vscode/sqlite3": "^5.0.7",
75
+ "chalk": "^5.0.0",
76
+ "csv-parse": "^5.0.4",
77
+ "csv-stringify": "^6.0.5",
76
78
  "lodash-es": "^4.17.21",
77
- "node-fetch": "^3.1.0",
79
+ "node-fetch": "^3.2.0",
78
80
  "pluralize": "^8.0.0",
79
81
  "pretty-error": "^4.0.0",
80
82
  "promise-map-series": "^0.3.0",
81
83
  "recursive-copy": "^2.0.13",
82
84
  "sanitize-filename": "^1.6.3",
83
85
  "sqlite": "^4.0.23",
84
- "sqlite3": "^5.0.2",
85
86
  "sqlstring-sqlite": "^0.1.1",
86
87
  "strip-bom-stream": "^5.0.0",
87
88
  "tmp-promise": "^3.0.3",
88
89
  "untildify": "^4.0.0",
89
90
  "unzipper": "^0.10.11",
90
- "yargs": "^17.2.1"
91
+ "yargs": "^17.3.1"
91
92
  },
92
93
  "devDependencies": {
93
- "dtslint": "^4.2.0",
94
- "eslint": "^8.2.0",
94
+ "dtslint": "^3.4.2",
95
+ "eslint": "^8.7.0",
95
96
  "eslint-config-prettier": "^8.3.0",
96
97
  "eslint-config-xo": "^0.39.0",
97
98
  "husky": "^7.0.4",
98
- "mocha": "^9.1.3",
99
- "prettier": "^2.4.1",
100
- "pretty-quick": "^3.1.2",
99
+ "mocha": "^8.1.3",
100
+ "prettier": "^2.5.1",
101
+ "pretty-quick": "^3.1.3",
101
102
  "should": "^13.2.3"
102
103
  },
103
104
  "engines": {