minimalistic-server 0.0.42 → 0.0.43

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.
Files changed (2) hide show
  1. package/index.mjs +4 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -823,6 +823,10 @@ export class Request {
823
823
  return this.#headers;
824
824
  }
825
825
 
826
+ getIp() {
827
+ return this.#request.socket.remoteAddress;
828
+ }
829
+
826
830
  getPort() {
827
831
  return this.#request.socket.address().port;
828
832
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimalistic-server",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "engines" : {
5
5
  "npm" : ">=8.6.0",
6
6
  "node" : ">=22.0.0"