@nestjs/platform-express
Advanced tools
Comparing version 10.2.5 to 10.2.6
@@ -55,4 +55,5 @@ "use strict"; | ||
} | ||
if (response.getHeader('Content-Type') !== undefined && | ||
!response.getHeader('Content-Type').startsWith('application/json') && | ||
const responseContentType = response.getHeader('Content-Type'); | ||
if (typeof responseContentType === 'string' && | ||
!responseContentType.startsWith('application/json') && | ||
body?.statusCode >= common_1.HttpStatus.BAD_REQUEST) { | ||
@@ -59,0 +60,0 @@ this.logger.warn("Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses"); |
@@ -13,3 +13,3 @@ "use strict"; | ||
*/ | ||
let MulterModule = exports.MulterModule = MulterModule_1 = class MulterModule { | ||
let MulterModule = MulterModule_1 = class MulterModule { | ||
static register(options = {}) { | ||
@@ -69,4 +69,5 @@ return { | ||
}; | ||
exports.MulterModule = MulterModule; | ||
exports.MulterModule = MulterModule = MulterModule_1 = tslib_1.__decorate([ | ||
(0, common_1.Module)({}) | ||
], MulterModule); |
{ | ||
"name": "@nestjs/platform-express", | ||
"version": "10.2.5", | ||
"version": "10.2.6", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@platform-express)", | ||
@@ -28,4 +28,4 @@ "author": "Kamil Mysliwiec", | ||
"devDependencies": { | ||
"@nestjs/common": "10.2.5", | ||
"@nestjs/core": "10.2.5" | ||
"@nestjs/common": "10.2.6", | ||
"@nestjs/core": "10.2.6" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
@@ -92,3 +92,5 @@ <p align="center"> | ||
<td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td> | ||
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td></tr> | ||
<td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td> | ||
<td><a href="https://immediateedgeapp.org/" target="_blank"><img src="https://nestjs.com/img/immediate-edge-logo.png" width="120" valign="middle" /></td> | ||
</tr> | ||
</table> | ||
@@ -120,2 +122,3 @@ | ||
<td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/tripoffice-logo.png" width="140" valign="middle" /></a></td> | ||
<td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td> | ||
</tr></table> | ||
@@ -129,5 +132,5 @@ | ||
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec) | ||
- Author - [Kamil Myśliwiec](https://x.com/kammysliwiec) | ||
- Website - [https://nestjs.com](https://nestjs.com/) | ||
- Twitter - [@nestframework](https://twitter.com/nestframework) | ||
- X - [@nestframework](https://x.com/nestframework) | ||
@@ -134,0 +137,0 @@ ## License |
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
61699
1185
137