@devmoods/express-extras 0.66.0 → 0.66.1

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/dist/listen.js +3 -2
  2. package/package.json +2 -2
package/dist/listen.js CHANGED
@@ -105,8 +105,9 @@ export const impress = (options = {}) => {
105
105
  export function createExpressServer(app, options = {}) {
106
106
  const server = http.createServer(app);
107
107
  const ctl = stoppable(server, options.gracePeriodMs ?? config.GRACE_PERIOD_MS);
108
- if (options.trustProxy ?? true) {
109
- app.set('trust proxy', options.trustProxy);
108
+ const trustProxy = options.trustProxy ?? true;
109
+ if (trustProxy) {
110
+ app.set('trust proxy', trustProxy);
110
111
  }
111
112
  let stopping = false;
112
113
  async function onSignal(signal) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devmoods/express-extras",
3
- "version": "0.66.0",
3
+ "version": "0.66.1",
4
4
  "description": "Kubernetes-ready utilities for rapid Node.js application development",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -112,5 +112,5 @@
112
112
  "engines": {
113
113
  "node": ">=20 <25"
114
114
  },
115
- "gitHead": "b5f134aecebb1937c1aba9403d0e35c9504aeaa3"
115
+ "gitHead": "cc2eac4d3a68e9d2530ccffddaff0eee190381d0"
116
116
  }