ultimate-express 1.1.4 → 1.1.5

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
@@ -9,7 +9,8 @@ To make sure µExpress matches behavior of Express in all cases, we run all test
9
9
  `npm install ultimate-express` -> replace `express` with `ultimate-express` -> done[*](https://github.com/dimdenGD/ultimate-express?tab=readme-ov-file#differences-from-express)
10
10
 
11
11
  [![Node.js >= 16.0.0](https://img.shields.io/badge/Node.js-%3E=16.0.0-green)](https://nodejs.org)
12
- [![npm](https://img.shields.io/npm/v/ultimate-express)](https://npmjs.com/package/ultimate-express)
12
+ [![npm](https://img.shields.io/npm/v/ultimate-express?label=last+version)](https://npmjs.com/package/ultimate-express)
13
+ [![Patreon](https://img.shields.io/badge/donate-Patreon-orange)](https://patreon.com/dimdendev)
13
14
 
14
15
  ## Difference from similar projects
15
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-express",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "The Ultimate Express. Fastest http server with full Express compatibility, based on uWebSockets.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/request.js CHANGED
@@ -219,13 +219,17 @@ module.exports = class Request extends Readable {
219
219
 
220
220
  get connection() {
221
221
  return {
222
- remoteAddress: Buffer.from(this.res._res.getRemoteAddressAsText()).toString(),
222
+ remoteAddress: this.rawIp,
223
223
  localPort: this.app.port,
224
224
  remotePort: this.app.port,
225
225
  encrypted: this.app.ssl,
226
226
  };
227
227
  }
228
228
 
229
+ get socket() {
230
+ return this.connection;
231
+ }
232
+
229
233
  get fresh() {
230
234
  if(this.method !== 'HEAD' && this.method !== 'GET') {
231
235
  return false;