Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gtfs-sequelize

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtfs-sequelize - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

14

index.js

@@ -7,6 +7,12 @@ var path = require('path'),

module.exports = function(config) {
return {
return {
config: config,
connectToDatabase: function() {
return Database(this.config.database, this.config.sequelizeOptions ? this.config.sequelizeOptions : {});
connectToDatabase: function(rawModels) {
var db = Database(this.config.database, this.config.sequelizeOptions ? this.config.sequelizeOptions : {});
if(config.isPostGIS) {
db.stop = db.sequelize.import('models/postgis/stop.js');
db.shape_gis = db.sequelize.import('models/postgis/shape_gis.js');
db.trip = db.sequelize.import('models/postgis/trip.js');
}
return db;
},

@@ -20,3 +26,3 @@ downloadGtfs: function(callback) {

this.config.gtfsFilename,
this.connectToDatabase(),
this.connectToDatabase(true),
config.isPostGIS,

@@ -23,0 +29,0 @@ callback);

{
"name": "gtfs-sequelize",
"version": "0.2.1",
"version": "0.2.2",
"description": "A model for the static GTFS using sequelize.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc