express-orm-mvc
Advanced tools
Comparing version 1.0.1 to 1.0.2
var path = require('path'); | ||
var helper = require('./_helper'); | ||
var database = null; | ||
module.exports = function(app, opt, callback) { | ||
if(database) return callback(null, database); | ||
var orm = opt.orm; | ||
@@ -35,6 +32,3 @@ | ||
//cache | ||
database = db; | ||
callback(null, database); | ||
callback(null, db); | ||
}); | ||
@@ -41,0 +35,0 @@ }); |
{ | ||
"name": "express-orm-mvc", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Express + ORM MVC", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "clear && mocha", | ||
"start": "clear && node index" | ||
"test": "mocha" | ||
}, | ||
@@ -37,4 +36,6 @@ "repository": { | ||
"request": "^2.34.0", | ||
"orm-2.1.3": "^2.1.3" | ||
"orm-2.1.3": "^2.1.3", | ||
"coveralls": "^2.8.0", | ||
"istanbul": "^0.2.6" | ||
} | ||
} |
@@ -1,6 +0,10 @@ | ||
Express + ORM MVC | ||
express-orm-mvc | ||
=============== | ||
[![NPM version](https://badge.fury.io/js/express-orm-mvc.png)](http://badge.fury.io/js/express-orm-mvc) | ||
[![Dependency Status](https://gemnasium.com/ddo/express-orm-mvc.png)](https://gemnasium.com/ddo/express-orm-mvc) | ||
[![Coverage Status](https://coveralls.io/repos/ddo/express-orm-mvc/badge.png?branch=master)](https://coveralls.io/r/ddo/express-orm-mvc?branch=master) | ||
[![Code Climate](https://codeclimate.com/github/ddo/express-orm-mvc.png)](https://codeclimate.com/github/ddo/express-orm-mvc) | ||
![codeship](https://www.codeship.io/projects/db0d6920-87f7-0131-c865-5eebdd5ccdbf/status) | ||
@@ -31,5 +35,2 @@ | ||
[![Dependency Status](https://david-dm.org/ddo/express-orm-mvc.png?theme=shields.io)](https://david-dm.org/ddo/express-orm-mvc) | ||
By default: | ||
@@ -36,0 +37,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
338
14346
7
11
153
2