inversify-express-utils
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -196,3 +196,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
.then(function (value) { | ||
if (value && !res.headersSent) { | ||
if (value instanceof Function) { | ||
value(); | ||
} | ||
else if (!res.headersSent) { | ||
if (value === undefined) { | ||
res.status(204); | ||
} | ||
res.send(value); | ||
@@ -199,0 +205,0 @@ } |
@@ -198,3 +198,9 @@ "use strict"; | ||
.then(function (value) { | ||
if (value && !res.headersSent) { | ||
if (value instanceof Function) { | ||
value(); | ||
} | ||
else if (!res.headersSent) { | ||
if (value === undefined) { | ||
res.status(204); | ||
} | ||
res.send(value); | ||
@@ -201,0 +207,0 @@ } |
{ | ||
"name": "inversify-express-utils", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "Some utilities for the development of express applications with Inversify", | ||
@@ -28,10 +28,10 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@types/bluebird": "3.5.18", | ||
"@types/bluebird": "3.5.20", | ||
"@types/body-parser": "1.16.8", | ||
"@types/chai": "4.0.9", | ||
"@types/chai": "4.1.2", | ||
"@types/cookie-parser": "1.4.1", | ||
"@types/express": "4.0.39", | ||
"@types/mocha": "2.2.44", | ||
"@types/express": "4.11.0", | ||
"@types/mocha": "2.2.47", | ||
"@types/prettyjson": "0.0.28", | ||
"@types/sinon": "4.1.2", | ||
"@types/sinon": "4.1.3", | ||
"@types/supertest": "2.0.4", | ||
@@ -43,16 +43,17 @@ "bluebird": "3.5.1", | ||
"gulp": "3.9.1", | ||
"gulp-istanbul": "1.1.2", | ||
"gulp-mocha": "3.0.1", | ||
"gulp-istanbul": "1.1.3", | ||
"gulp-mocha": "5.0.0", | ||
"gulp-tslint": "8.1.2", | ||
"gulp-typescript": "3.2.3", | ||
"inversify": "4.7.0", | ||
"mocha": "4.0.1", | ||
"gulp-sourcemaps": "^2.6.2", | ||
"gulp-typescript": "4.0.0-alpha.2", | ||
"inversify": "4.9.0", | ||
"mocha": "5.0.0", | ||
"prettyjson": "1.2.1", | ||
"publish-please": "2.3.1", | ||
"reflect-metadata": "0.1.10", | ||
"run-sequence": "2.2.0", | ||
"sinon": "4.1.3", | ||
"source-map-support": "0.5.0", | ||
"reflect-metadata": "0.1.12", | ||
"run-sequence": "2.2.1", | ||
"source-map-support": "0.5.1", | ||
"sinon": "4.2.1", | ||
"supertest": "3.0.0", | ||
"tslint": "5.8.0", | ||
"tslint": "5.9.1", | ||
"typescript": "2.6.2" | ||
@@ -59,0 +60,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
94372
1509
30