@spinajs/http
Advanced tools
Comparing version 2.0.310 to 2.0.311
@@ -267,2 +267,5 @@ "use strict"; | ||
async prepareResponse() { | ||
if (Array.isArray(this.responseData)) { | ||
return Promise.all(this.responseData); | ||
} | ||
return (0, di_1.isPromise)(this.responseData) ? await this.responseData : this.responseData; | ||
@@ -269,0 +272,0 @@ } |
@@ -260,2 +260,5 @@ import { AsyncService, isPromise } from '@spinajs/di'; | ||
async prepareResponse() { | ||
if (Array.isArray(this.responseData)) { | ||
return Promise.all(this.responseData); | ||
} | ||
return isPromise(this.responseData) ? await this.responseData : this.responseData; | ||
@@ -262,0 +265,0 @@ } |
{ | ||
"name": "@spinajs/http", | ||
"version": "2.0.310", | ||
"version": "2.0.311", | ||
"description": "framework HTTP module base on express.js", | ||
@@ -64,12 +64,12 @@ "main": "lib/cjs/index.js", | ||
"dependencies": { | ||
"@spinajs/configuration": "^2.0.310", | ||
"@spinajs/di": "^2.0.310", | ||
"@spinajs/exceptions": "^2.0.310", | ||
"@spinajs/fs": "^2.0.310", | ||
"@spinajs/log": "^2.0.310", | ||
"@spinajs/reflection": "^2.0.310", | ||
"@spinajs/templates": "^2.0.310", | ||
"@spinajs/validation": "^2.0.310", | ||
"@spinajs/templates-pug": "^2.0.310", | ||
"@spinajs/util": "^2.0.310", | ||
"@spinajs/configuration": "^2.0.311", | ||
"@spinajs/di": "^2.0.311", | ||
"@spinajs/exceptions": "^2.0.311", | ||
"@spinajs/fs": "^2.0.311", | ||
"@spinajs/log": "^2.0.311", | ||
"@spinajs/reflection": "^2.0.311", | ||
"@spinajs/templates": "^2.0.311", | ||
"@spinajs/validation": "^2.0.311", | ||
"@spinajs/templates-pug": "^2.0.311", | ||
"@spinajs/util": "^2.0.311", | ||
"compression": "^1.7.4", | ||
@@ -76,0 +76,0 @@ "cookie-parser": "^1.4.6", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
843829
10082
Updated@spinajs/di@^2.0.311
Updated@spinajs/exceptions@^2.0.311
Updated@spinajs/fs@^2.0.311
Updated@spinajs/log@^2.0.311
Updated@spinajs/reflection@^2.0.311
Updated@spinajs/templates@^2.0.311
Updated@spinajs/util@^2.0.311
Updated@spinajs/validation@^2.0.311