Comparing version 0.1.15 to 0.1.16
@@ -16,2 +16,3 @@ "use strict"; | ||
Promise = di.load('promise'), | ||
EventEmitter = di.load('events'), | ||
Request; | ||
@@ -74,2 +75,3 @@ | ||
body: Type.ARRAY, | ||
eventHander: Type.OBJECT, | ||
id: Type.STRING | ||
@@ -93,3 +95,5 @@ }, { | ||
this.isCompressed = false; | ||
this.eventHander = new EventEmitter(); | ||
this.eventHander.setMaxListeners(1000); | ||
this.request.once('destroy', this.eventHander.emit.bind(this.eventHander, 'destroy')); | ||
if (!this.id) { | ||
@@ -108,3 +112,3 @@ this.id = this._uuid(); | ||
onEnd: function Request_onEnd(callback) { | ||
this.request.once('destory', callback); | ||
this.eventHander.once('destory', callback); | ||
}, | ||
@@ -489,2 +493,3 @@ /** | ||
this.request.emit('destory'); | ||
this.eventHander.removeAllListeners(); | ||
this.destroy(); | ||
@@ -491,0 +496,0 @@ }, |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "mongoose": "4.1.x", |
Sorry, the diff of this file is not supported yet
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
159340
5112