routing-controllers
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -276,7 +276,15 @@ "use strict"; | ||
else if (result === undefined) { | ||
var notFoundError = new index_1.NotFoundError(); | ||
if (action.undefinedResultCode) { | ||
notFoundError.httpCode = action.undefinedResultCode; | ||
options.response.httpCode = action.undefinedResultCode; | ||
if (action.isJsonTyped) { | ||
options.response.json(); | ||
} | ||
else { | ||
options.response.send(); | ||
} | ||
options.next(); | ||
} | ||
throw notFoundError; | ||
else { | ||
throw new index_1.NotFoundError(); | ||
} | ||
} | ||
@@ -283,0 +291,0 @@ else if (result === null) { |
@@ -277,7 +277,15 @@ "use strict"; | ||
else if (result === undefined) { | ||
var notFoundError = new index_1.NotFoundError(); | ||
if (action.undefinedResultCode) { | ||
notFoundError.httpCode = action.undefinedResultCode; | ||
options.response.httpCode = action.undefinedResultCode; | ||
if (action.isJsonTyped) { | ||
options.response.json(); | ||
} | ||
else { | ||
options.response.send(); | ||
} | ||
options.next(); | ||
} | ||
throw notFoundError; | ||
else { | ||
throw new index_1.NotFoundError(); | ||
} | ||
} | ||
@@ -284,0 +292,0 @@ else if (result === null) { |
{ | ||
"name": "routing-controllers", | ||
"private": false, | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
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
525809
5634