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 +2 -1
- package/package.json +1 -1
- package/src/request.js +5 -1
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
|
[](https://nodejs.org)
|
|
12
|
-
[](https://npmjs.com/package/ultimate-express)
|
|
12
|
+
[](https://npmjs.com/package/ultimate-express)
|
|
13
|
+
[](https://patreon.com/dimdendev)
|
|
13
14
|
|
|
14
15
|
## Difference from similar projects
|
|
15
16
|
|
package/package.json
CHANGED
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:
|
|
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;
|