periodicjs.core.data
Advanced tools
Comparing version 0.8.6 to 0.8.7
@@ -7,2 +7,2 @@ 'use strict'; | ||
module.exports = { mongo, sql, loki }; | ||
module.exports = { mongo, sql, loki, }; |
@@ -607,2 +607,3 @@ 'use strict'; | ||
constructor(options = {}) { | ||
this.adapter_type = 'loki'; | ||
this.db_connection = options.db_connection || lowkie; | ||
@@ -609,0 +610,0 @@ this.docid = options.docid; //previously docnamelookup |
@@ -556,2 +556,3 @@ 'use strict'; | ||
constructor(options = {}) { | ||
this.adapter_type = 'mongo'; | ||
this.db_connection = options.db_connection || mongoose; | ||
@@ -558,0 +559,0 @@ this.docid = options.docid; //previously docnamelookup |
@@ -729,3 +729,4 @@ 'use strict'; | ||
// console.log("INITIAL typeof options.db_connection", typeof options.db_connection,{options}); | ||
this.adapter_type = 'sql'; | ||
if (options.db_connection && typeof options.db_connection === 'object') { | ||
@@ -732,0 +733,0 @@ if (options.db_connection.models && options.db_connection.config) this.db_connection = options.db_connection; |
@@ -97,4 +97,4 @@ { | ||
}, | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"license": "MIT" | ||
} |
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
1866066
5558