Comparing version 0.3.3 to 0.3.4
@@ -195,3 +195,3 @@ var path = require('path') | ||
that.tasks[task.name] = that.jobs.process(task.name,function(job,done){ | ||
that.runTask(task,new that.Request(job),done) | ||
that.runTask(task,new that.Request(job.data),done) | ||
}) | ||
@@ -198,0 +198,0 @@ next() |
@@ -11,2 +11,3 @@ var ObjectManage = require('object-manage') | ||
this.obj = new ObjectManage(data) | ||
this.data = this.obj.data | ||
} | ||
@@ -21,2 +22,8 @@ | ||
/** | ||
* Reference to managed data object | ||
* @type {{}} | ||
*/ | ||
Request.prototype.data = {} | ||
/** | ||
* Load extra data and merge it into the data object | ||
@@ -23,0 +30,0 @@ * @param data |
@@ -14,2 +14,3 @@ var ObjectManage = require('object-manage') | ||
that.obj = new ObjectManage() | ||
that.data = that.obj.data | ||
that.body = '' | ||
@@ -16,0 +17,0 @@ that.rendered = '' |
{ | ||
"name": "apx", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "A scalable, extensible, modular API Server", | ||
@@ -46,3 +46,3 @@ "homepage": "https://github.com/snailjs/apx", | ||
"redis": "~0.9.1", | ||
"object-manage": "~0.3.0", | ||
"object-manage": "~0.4.0", | ||
"async": "~0.2.9" | ||
@@ -49,0 +49,0 @@ }, |
@@ -257,2 +257,7 @@ # [SnailJS](//github.com/snailjs/).[APX](//github.com/snailjs/apx/) | ||
### 0.3.4 | ||
* Updated to **object-manage** 0.4.0 | ||
* Restored `Request.data` and `Response.data` as references to the managed objects. | ||
* Fixed issue with tasks being passed the entire `job` object instead of `job.data` | ||
### 0.3.3 | ||
@@ -259,0 +264,0 @@ * Updated to **object-manage** 0.3.0 |
64246
723
286
+ Addedmerge-recursive@0.0.3(transitive)
+ Addedobject-manage@0.4.0(transitive)
- Removedclone-function@1.0.6(transitive)
- Removedobject-foreach@0.1.2(transitive)
- Removedobject-manage@0.3.0(transitive)
- Removedobject-merge@2.2.3(transitive)
Updatedobject-manage@~0.4.0