@nestjs/platform-express 10.2.4 → 10.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Readme.md CHANGED
@@ -89,7 +89,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
89
89
 
90
90
  <table style="text-align:center;"><tr>
91
91
  <td><a href="https://n.inc" target="_blank"><img src="https://nestjs.com/img/n-inc-logo.svg" width="120" valign="middle" /></td>
92
- <td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td></tr>
92
+ <td><a href="https://twistag.com/" target="_blank"><img src="https://nestjs.com/img/twistag-logo.png" width="120" valign="middle" /></td>
93
+ <td><a href="https://immediateedgeapp.org/" target="_blank"><img src="https://nestjs.com/img/immediate-edge-logo.png" width="120" valign="middle" /></td>
94
+ </tr>
93
95
  </table>
94
96
 
95
97
  #### Sponsors
@@ -116,6 +118,7 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
116
118
  <td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
117
119
  <td align="center" valign="middle"><a href="https://julienferand.dev/" target="_blank"><img src="https://nestjs.com/img/julienferand-logo.jpeg" width="65" valign="middle" /></a></td>
118
120
  <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>
121
+ <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>
119
122
  </tr></table>
120
123
 
121
124
  ## Backers
@@ -124,9 +127,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
124
127
 
125
128
  ## Stay in touch
126
129
 
127
- - Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
130
+ - Author - [Kamil Myśliwiec](https://x.com/kammysliwiec)
128
131
  - Website - [https://nestjs.com](https://nestjs.com/)
129
- - Twitter - [@nestframework](https://twitter.com/nestframework)
132
+ - X - [@nestframework](https://x.com/nestframework)
130
133
 
131
134
  ## License
132
135
 
@@ -52,8 +52,9 @@ class ExpressAdapter extends http_adapter_1.AbstractHttpAdapter {
52
52
  }
53
53
  });
54
54
  }
55
- if (response.getHeader('Content-Type') !== undefined &&
56
- !response.getHeader('Content-Type').startsWith('application/json') &&
55
+ const responseContentType = response.getHeader('Content-Type');
56
+ if (typeof responseContentType === 'string' &&
57
+ !responseContentType.startsWith('application/json') &&
57
58
  body?.statusCode >= common_1.HttpStatus.BAD_REQUEST) {
58
59
  this.logger.warn("Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses");
59
60
  response.setHeader('Content-Type', 'application/json');
@@ -10,7 +10,7 @@ const multer_constants_1 = require("./multer.constants");
10
10
  /**
11
11
  * @publicApi
12
12
  */
13
- let MulterModule = exports.MulterModule = MulterModule_1 = class MulterModule {
13
+ let MulterModule = MulterModule_1 = class MulterModule {
14
14
  static register(options = {}) {
15
15
  return {
16
16
  module: MulterModule_1,
@@ -65,6 +65,7 @@ let MulterModule = exports.MulterModule = MulterModule_1 = class MulterModule {
65
65
  };
66
66
  }
67
67
  };
68
+ exports.MulterModule = MulterModule;
68
69
  exports.MulterModule = MulterModule = MulterModule_1 = tslib_1.__decorate([
69
70
  (0, common_1.Module)({})
70
71
  ], MulterModule);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/platform-express",
3
- "version": "10.2.4",
3
+ "version": "10.2.6",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@platform-express)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
@@ -25,8 +25,8 @@
25
25
  "tslib": "2.6.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@nestjs/common": "10.2.4",
29
- "@nestjs/core": "10.2.4"
28
+ "@nestjs/common": "10.2.6",
29
+ "@nestjs/core": "10.2.6"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@nestjs/common": "^10.0.0",