zeanium-node
Advanced tools
Comparing version 0.6.18 to 0.6.19
{ | ||
"name": "zeanium-node", | ||
"version": "0.6.18", | ||
"version": "0.6.19", | ||
"description": "Zeanium for Node.js, simple http server and custome your business.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,7 +32,8 @@ /** | ||
_parentPath = (_pidModel?_pidModel.parentPath:'') + (_pid === 0 ? '' : _pid) + ','; | ||
if(typeof model == 'string'){ | ||
model = JSON.parse(model); | ||
} | ||
model.parentPath = _parentPath; | ||
model.treeOrder = _treeOrder; | ||
model.depth = _depth; | ||
return zn.sql.insert({ | ||
@@ -39,0 +40,0 @@ table: table, |
@@ -23,2 +23,8 @@ /** | ||
}, | ||
table: { | ||
readonly: true, | ||
get: function (){ | ||
return this._table; | ||
} | ||
}, | ||
Model: { | ||
@@ -36,2 +42,3 @@ readonly: true, | ||
this._store = store; | ||
this._table = Model.getMeta('table'); | ||
this._Model = Model; | ||
@@ -38,0 +45,0 @@ } |
@@ -66,12 +66,13 @@ /** | ||
case 'query': | ||
_task = _self.__parseQueryTask(task[1], task[2], task[3]); | ||
_task = this.__parseQueryTask(task[1], task[2], task[3]); | ||
break; | ||
case 'insert': | ||
_task = _self.__parseInsertTask(task[1], task[2], task[3]); | ||
_task = this.__parseInsertTask(task[1], task[2], task[3]); | ||
break; | ||
} | ||
_tasks.push(_task); | ||
}); | ||
this._queue.inserts(_tasks, this, 0); | ||
//_tasks.push(_task); | ||
this._queue.push(_task); | ||
}, this); | ||
//this._queue.inserts(_tasks, this, 0); | ||
} | ||
@@ -78,0 +79,0 @@ |
@@ -23,2 +23,10 @@ /** | ||
return this; | ||
}, | ||
reverseEach: function (handler, context){ | ||
var _len = this._tasks.length; | ||
for(var i = _len - 1; i > -1; i--){ | ||
handler && handler.call(context, this._tasks[i], i); | ||
} | ||
return this; | ||
} | ||
@@ -25,0 +33,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
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
254830
5992