@bigtest/effection-express
Advanced tools
Comparing version 0.1.1-4b87af3 to 0.1.1-513b637
@@ -5,2 +5,3 @@ "use strict"; | ||
const actualExpress = require("express"); | ||
const events_1 = require("@effection/events"); | ||
const effection_2 = require("@bigtest/effection"); | ||
@@ -17,7 +18,7 @@ class Express { | ||
let res = yield effection_1.resource(server, function* () { | ||
yield effection_2.monitorErrors(server); | ||
yield events_1.throwOnErrorEvent(server); | ||
yield effection_2.ensure(() => server.close()); | ||
yield; | ||
}); | ||
yield effection_2.once(server, "listening"); | ||
yield events_1.once(server, "listening"); | ||
return res; | ||
@@ -27,3 +28,3 @@ } | ||
if (this.server) { | ||
yield effection_2.once(this.server, 'close'); | ||
yield events_1.once(this.server, 'close'); | ||
} | ||
@@ -30,0 +31,0 @@ } |
{ | ||
"name": "@bigtest/effection-express", | ||
"version": "0.1.1-4b87af3", | ||
"version": "0.1.1-513b637", | ||
"description": "Makes it easy to use Express from Effection", | ||
@@ -23,3 +23,4 @@ "main": "dist/index.js", | ||
"@types/mocha": "^7.0.1", | ||
"@types/node": "^12.7.11", | ||
"@types/node": "^13.13.4", | ||
"effection": "^0.6.2", | ||
"expect": "^24.9.0", | ||
@@ -29,5 +30,8 @@ "mocha": "^6.2.2", | ||
}, | ||
"peerDependencies": { | ||
"effection": "^0.6.2" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^12.7.11", | ||
"effection": "^0.6.0", | ||
"@effection/events": "^0.6.1", | ||
"@types/node": "^13.13.4", | ||
"express": "^4.17.1" | ||
@@ -34,0 +38,0 @@ }, |
Sorry, the diff of this file is not supported yet
3609
47
4
7
+ Added@effection/events@^0.6.1
+ Added@effection/events@0.6.1(transitive)
+ Added@types/node@13.13.52(transitive)
- Removedeffection@^0.6.0
- Removed@types/node@12.20.55(transitive)
Updated@types/node@^13.13.4