Comparing version 0.4.0 to 0.4.2
@@ -11,7 +11,4 @@ var path = require('path'); | ||
var larkMVC = function(options, lark){ | ||
if (!options || !options.path) { | ||
var path = 'models' | ||
}else{ | ||
var path = options.path | ||
} | ||
var path = (!options || !options.path) ? 'models': options.path | ||
rd.eachFileFilterSync(path, /\.js$/, function (file) { | ||
@@ -18,0 +15,0 @@ var func = require(file) |
@@ -34,6 +34,17 @@ /** | ||
var pageServices = {} | ||
var dataServices = {} | ||
var daoServices = {} | ||
if (typeof(global.pageServices) === 'undefined') { | ||
global.pageServices = {} | ||
} | ||
var pageServices = global.pageServices | ||
if (typeof(global.dataServices) === 'undefined') { | ||
global.dataServices = {} | ||
} | ||
var dataServices = global.dataServices | ||
if (typeof(global.daoServices) === 'undefined') { | ||
global.daoServices = {} | ||
} | ||
var daoServices = global.daoServices | ||
/* | ||
@@ -40,0 +51,0 @@ * Base layer class which enable emitting events. |
{ | ||
"name": "lark-mvc", | ||
"version": "0.4.0", | ||
"version": "0.4.2", | ||
"description": "MVC for building web server with lark.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14274
15
258
0