gtfs 3.2.3 → 3.3.0

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,28 @@ 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.3.0] - 2022-04-26
9
+
10
+ ### Changed
11
+
12
+ - Switched back to sqlite3 module
13
+
14
+ ### Updated
15
+
16
+ - Dependency Updates
17
+
18
+ ## [3.2.5] - 2022-04-09
19
+
20
+ ### Updated
21
+
22
+ - Dependency Updates
23
+
24
+ ## [3.2.4] - 2022-01-21
25
+
26
+ ### Updated
27
+
28
+ - Dependency Updates
29
+
8
30
  ## [3.2.3] - 2022-01-16
9
31
 
10
32
  ### Added
package/lib/db.js CHANGED
@@ -1,4 +1,4 @@
1
- import sqlite3 from '@vscode/sqlite3';
1
+ import sqlite3 from '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,7 @@ 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
- const columnCollation = column.nocase ? 'COLLATE NOCASE' : ''
137
+ const columnCollation = column.nocase ? 'COLLATE NOCASE' : '';
138
138
  return `${column.name} ${column.type} ${check} ${primary} ${required} ${columnDefault} ${columnCollation}`;
139
139
  });
140
140
 
@@ -389,13 +389,13 @@ const importGtfs = async (initialConfig) => {
389
389
  path: agency.path,
390
390
  csvOptions: config.csvOptions || {},
391
391
  db,
392
- log: (message, overwrite) => {
392
+ log(message, overwrite) {
393
393
  log(message, overwrite);
394
394
  },
395
- warn: (message) => {
395
+ warn(message) {
396
396
  logWarning(message);
397
397
  },
398
- error: (message) => {
398
+ error(message) {
399
399
  logError(message);
400
400
  },
401
401
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtfs",
3
- "version": "3.2.3",
3
+ "version": "3.3.0",
4
4
  "description": "Import GTFS transit data into SQLite and query routes, stops, times, fares and more",
5
5
  "keywords": [
6
6
  "transit",
@@ -71,33 +71,33 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@turf/helpers": "^6.5.0",
74
- "@vscode/sqlite3": "^5.0.7",
75
- "chalk": "^5.0.0",
74
+ "chalk": "^5.0.1",
76
75
  "csv-parse": "^5.0.4",
77
76
  "csv-stringify": "^6.0.5",
78
77
  "lodash-es": "^4.17.21",
79
- "node-fetch": "^3.1.1",
78
+ "node-fetch": "^3.2.3",
80
79
  "pluralize": "^8.0.0",
81
80
  "pretty-error": "^4.0.0",
82
81
  "promise-map-series": "^0.3.0",
83
- "recursive-copy": "^2.0.13",
82
+ "recursive-copy": "^2.0.14",
84
83
  "sanitize-filename": "^1.6.3",
85
- "sqlite": "^4.0.23",
84
+ "sqlite": "^4.1.1",
85
+ "sqlite3": "^5.0.5",
86
86
  "sqlstring-sqlite": "^0.1.1",
87
87
  "strip-bom-stream": "^5.0.0",
88
88
  "tmp-promise": "^3.0.3",
89
89
  "untildify": "^4.0.0",
90
90
  "unzipper": "^0.10.11",
91
- "yargs": "^17.3.1"
91
+ "yargs": "^17.4.1"
92
92
  },
93
93
  "devDependencies": {
94
94
  "dtslint": "^3.4.2",
95
- "eslint": "^8.7.0",
96
- "eslint-config-prettier": "^8.3.0",
97
- "eslint-config-xo": "^0.39.0",
95
+ "eslint": "^8.14.0",
96
+ "eslint-config-prettier": "^8.5.0",
97
+ "eslint-config-xo": "^0.40.0",
98
98
  "husky": "^7.0.4",
99
- "mocha": "^9.1.4",
100
- "prettier": "^2.5.1",
99
+ "mocha": "^9.2.2",
100
+ "prettier": "^2.6.2",
101
101
  "pretty-quick": "^3.1.3",
102
102
  "should": "^13.2.3"
103
103
  },