@node-red/runtime 3.1.0-beta.2 → 3.1.0-beta.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/lib/index.js CHANGED
@@ -89,6 +89,15 @@ function init(userSettings,httpServer,_adminApi) {
89
89
 
90
90
  nodeApp = express();
91
91
  adminApp = express();
92
+ const defaultServerSettings = {
93
+ "x-powered-by": false
94
+ }
95
+ const serverSettings = Object.assign({},defaultServerSettings,userSettings.httpServerOptions||{});
96
+ for (let eOption in serverSettings) {
97
+ nodeApp.set(eOption, serverSettings[eOption]);
98
+ adminApp.set(eOption, serverSettings[eOption]);
99
+ }
100
+
92
101
 
93
102
  if (_adminApi) {
94
103
  adminApi = _adminApi;
@@ -205,7 +205,6 @@ module.exports = {
205
205
  getNode: flows.get,
206
206
  eachNode: flows.eachNode,
207
207
  getContext: context.get,
208
- getGlobalConfig: flows.getGlobalConfig,
209
208
 
210
209
  clearContext: context.clear,
211
210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/runtime",
3
- "version": "3.1.0-beta.2",
3
+ "version": "3.1.0-beta.4",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./lib/index.js",
6
6
  "repository": {
@@ -16,12 +16,12 @@
16
16
  }
17
17
  ],
18
18
  "dependencies": {
19
- "@node-red/registry": "3.1.0-beta.2",
20
- "@node-red/util": "3.1.0-beta.2",
19
+ "@node-red/registry": "3.1.0-beta.4",
20
+ "@node-red/util": "3.1.0-beta.4",
21
21
  "async-mutex": "0.4.0",
22
22
  "clone": "2.1.2",
23
23
  "express": "4.18.2",
24
- "fs-extra": "10.1.0",
24
+ "fs-extra": "11.1.1",
25
25
  "json-stringify-safe": "5.0.1"
26
26
  }
27
27
  }