jsft-mongodb
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.Document = exports.Collection = undefined; | ||
exports.Document = exports.Collection = exports.Link = undefined; | ||
exports.dbConfig = dbConfig; | ||
@@ -24,2 +24,3 @@ | ||
exports.Link = _Link2.default; | ||
exports.Collection = _Collection2.default; | ||
@@ -26,0 +27,0 @@ exports.Document = _Document2.default; |
@@ -15,3 +15,2 @@ 'use strict'; | ||
var collections = {}; | ||
var db = void 0; | ||
@@ -38,3 +37,3 @@ var Link = {}; | ||
db = db || (0, _monk2.default)(dbUrl, {}, function (err) { | ||
Link._db = Link._db || (0, _monk2.default)(dbUrl, {}, function (err) { | ||
if (err) { | ||
@@ -45,3 +44,3 @@ throw err; | ||
collections[name] = collections[name] || db.get(name); | ||
collections[name] = collections[name] || Link._db.get(name); | ||
@@ -48,0 +47,0 @@ return collections[name]; |
{ | ||
"name": "jsft-mongodb", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"description": "Functional abstraction layer for mongodb-storage of objects with structures defined with json-schema", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
64446