smart-stick-loadbalancer 1.1.2 → 1.1.4

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
@@ -102,8 +102,6 @@ npm install smart-stick-loadbalancer
102
102
  - Node.js **18 or later**
103
103
  - npm
104
104
 
105
- The package relies on modern Node.js features such as the built-in `fetch()` API.
106
-
107
105
  ---
108
106
 
109
107
  ## Project Structure
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-stick-loadbalancer",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "A lightweight sticky-session load balancer for Node.js with health checks and optional email alerts.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -17,11 +17,11 @@
17
17
  "author": "Swayam Gupta",
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "axios": "^1.10.0",
20
+ "axios": "^1.18.1",
21
21
  "cookie-parser": "^1.4.7",
22
22
  "express": "^5.1.0",
23
23
  "http-proxy-middleware": "^3.0.5",
24
- "nodemailer": "^7.0.5",
24
+ "nodemailer": "^9.0.3",
25
25
  "socket.io": "^4.8.3"
26
26
  },
27
27
  "repository": {
@@ -29,7 +29,7 @@ async function checkHealth(server, globalConfig = {}) {
29
29
  method: cfg.method,
30
30
  url,
31
31
  timeout: cfg.timeout,
32
- headers: cfg.headers,
32
+ headers: { ...cfg.headers, Connection: "close" },
33
33
  // Never throw on status — we inspect it ourselves
34
34
  validateStatus: () => true,
35
35
  });