Comparing version 1.7.2 to 1.7.3
@@ -67,3 +67,7 @@ /** | ||
if(schema_driver.driver) { | ||
var driver = schema_driver.driver(db_config.config); | ||
var config = db_config.config; | ||
var driver = schema_driver.driver(typeof config === 'function' ? | ||
config.bind(db_config) : | ||
config | ||
); | ||
@@ -70,0 +74,0 @@ if(driver) { |
@@ -5,2 +5,6 @@ module.exports = { | ||
schema: 'custom-schema', | ||
correct_this_test: function correct_this_test() {}, | ||
config: function config() { | ||
return this.correct_this_test(); | ||
}, | ||
default: true | ||
@@ -7,0 +11,0 @@ }, |
@@ -5,3 +5,4 @@ var SCHEMA = require('./../../../../core/PLUGIN_TYPES').SCHEMA; | ||
CustomSchema.schema = 'custom-schema'; | ||
CustomSchema.driver = function driver() { | ||
CustomSchema.driver = function driver(config) { | ||
config(); | ||
return {}; | ||
@@ -8,0 +9,0 @@ }; |
{ | ||
"name": "ifnode", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "Node.js MVC Framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
146080
144
4332