Skip to content

Commit 96b78c3

Browse files
committed
Update to node-gtfs
1 parent a799d1d commit 96b78c3

File tree

5 files changed

+81
-69
lines changed

5 files changed

+81
-69
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Install `gtfs-to-html` directly from [npm](https://npmjs.org):
3232
const config = require('config.json');
3333

3434
mongoose.Promise = global.Promise;
35-
mongoose.connect(config.mongoUrl);
35+
mongoose.connect(config.mongoUrl, {useMongoClient: true});
3636

3737
gtfsToHTML(config)
3838
.then(() => {

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const configPath = path.join(process.cwd(), argv.configPath);
2121
const config = require(configPath);
2222

2323
mongoose.Promise = global.Promise;
24-
mongoose.connect(config.mongoUrl);
24+
mongoose.connect(config.mongoUrl, {useMongoClient: true});
2525

2626
const app = express();
2727

bin/gtfs-to-html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fs.readFile(resolve(argv.configPath), 'utf8')
4444
})
4545
.then(config => {
4646
mongoose.Promise = global.Promise;
47-
mongoose.connect(config.mongoUrl);
47+
mongoose.connect(config.mongoUrl, {useMongoClient: true});
4848

4949
return gtfsToHtml(config);
5050
})

package-lock.json

Lines changed: 76 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
"cli-table": "0.3.1",
3232
"express": "4.15.3",
3333
"fs-extra": "^3.0.1",
34-
"gtfs": "0.10.0",
34+
"gtfs": "0.11.0",
3535
"js-beautify": "1.6.14",
3636
"lodash": "4.17.4",
3737
"moment": "2.18.1",
38+
"mongoose": "^4.11.1",
3839
"morgan": "1.8.2",
3940
"pug": "2.0.0-rc.2",
4041
"sanitize-filename": "1.6.1",

0 commit comments

Comments
 (0)