@ui5/server 4.0.9 → 4.0.11
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/CHANGELOG.md +12 -1
- package/lib/server.js +7 -6
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,16 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
4
4
|
|
|
5
|
-
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v4.0.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v4.0.11...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v4.0.11"></a>
|
|
8
|
+
## [v4.0.11] - 2025-12-08
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
- Explicitly bind to IPv4 loopback [`9d3c252`](https://github.com/SAP/ui5-server/commit/9d3c2522667eea923aca571070bf65a514e9dd34)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<a name="v4.0.10"></a>
|
|
14
|
+
## [v4.0.10] - 2025-12-02
|
|
6
15
|
|
|
7
16
|
<a name="v4.0.9"></a>
|
|
8
17
|
## [v4.0.9] - 2025-11-27
|
|
@@ -411,6 +420,8 @@ Only Node.js v10 or higher is supported.
|
|
|
411
420
|
|
|
412
421
|
<a name="v0.0.1"></a>
|
|
413
422
|
## v0.0.1 - 2018-06-06
|
|
423
|
+
[v4.0.11]: https://github.com/SAP/ui5-server/compare/v4.0.10...v4.0.11
|
|
424
|
+
[v4.0.10]: https://github.com/SAP/ui5-server/compare/v4.0.9...v4.0.10
|
|
414
425
|
[v4.0.9]: https://github.com/SAP/ui5-server/compare/v4.0.8...v4.0.9
|
|
415
426
|
[v4.0.8]: https://github.com/SAP/ui5-server/compare/v4.0.7...v4.0.8
|
|
416
427
|
[v4.0.7]: https://github.com/SAP/ui5-server/compare/v4.0.6...v4.0.7
|
package/lib/server.js
CHANGED
|
@@ -26,10 +26,11 @@ function _listen(app, port, changePortIfInUse, acceptRemoteConnections) {
|
|
|
26
26
|
const options = {};
|
|
27
27
|
|
|
28
28
|
if (!acceptRemoteConnections) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
// Unless remote connections are allowed, bind to the IPv4 loopback address
|
|
30
|
+
options.host = "127.0.0.1";
|
|
31
|
+
} // If remote connections are allowed, do not set host so the server listens on all supported interfaces
|
|
31
32
|
|
|
32
|
-
const
|
|
33
|
+
const portScanHost = options.host || "127.0.0.1";
|
|
33
34
|
let portMax;
|
|
34
35
|
if (changePortIfInUse) {
|
|
35
36
|
portMax = port + 30;
|
|
@@ -37,7 +38,7 @@ function _listen(app, port, changePortIfInUse, acceptRemoteConnections) {
|
|
|
37
38
|
portMax = port;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
portscanner.findAPortNotInUse(port, portMax,
|
|
41
|
+
portscanner.findAPortNotInUse(port, portMax, portScanHost, function(error, foundPort) {
|
|
41
42
|
if (error) {
|
|
42
43
|
reject(error);
|
|
43
44
|
return;
|
|
@@ -49,7 +50,7 @@ function _listen(app, port, changePortIfInUse, acceptRemoteConnections) {
|
|
|
49
50
|
`EADDRINUSE: Could not find available ports between ${port} and ${portMax}.`);
|
|
50
51
|
error.code = "EADDRINUSE";
|
|
51
52
|
error.errno = "EADDRINUSE";
|
|
52
|
-
error.address =
|
|
53
|
+
error.address = portScanHost;
|
|
53
54
|
error.port = portMax;
|
|
54
55
|
reject(error);
|
|
55
56
|
return;
|
|
@@ -57,7 +58,7 @@ function _listen(app, port, changePortIfInUse, acceptRemoteConnections) {
|
|
|
57
58
|
const error = new Error(`EADDRINUSE: Port ${port} is already in use.`);
|
|
58
59
|
error.code = "EADDRINUSE";
|
|
59
60
|
error.errno = "EADDRINUSE";
|
|
60
|
-
error.address =
|
|
61
|
+
error.address = portScanHost;
|
|
61
62
|
error.port = portMax;
|
|
62
63
|
reject(error);
|
|
63
64
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/server",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"description": "UI5 CLI - Server",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -118,15 +118,15 @@
|
|
|
118
118
|
},
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"@ui5/builder": "^4.1.3",
|
|
121
|
-
"@ui5/fs": "^4.0.
|
|
121
|
+
"@ui5/fs": "^4.0.4",
|
|
122
122
|
"@ui5/logger": "^4.0.2",
|
|
123
|
-
"body-parser": "^1.20.
|
|
123
|
+
"body-parser": "^1.20.4",
|
|
124
124
|
"compression": "^1.8.1",
|
|
125
|
-
"cors": "^2.8.
|
|
125
|
+
"cors": "^2.8.6",
|
|
126
126
|
"devcert-sanscache": "^0.5.1",
|
|
127
127
|
"escape-html": "^1.0.3",
|
|
128
128
|
"etag": "^1.8.1",
|
|
129
|
-
"express": "^4.
|
|
129
|
+
"express": "^4.22.1",
|
|
130
130
|
"fresh": "^0.5.2",
|
|
131
131
|
"graceful-fs": "^4.2.11",
|
|
132
132
|
"mime-types": "^2.1.35",
|
|
@@ -146,18 +146,18 @@
|
|
|
146
146
|
"cross-env": "^7.0.3",
|
|
147
147
|
"depcheck": "^1.4.7",
|
|
148
148
|
"docdash": "^2.0.2",
|
|
149
|
-
"eslint": "^9.39.
|
|
149
|
+
"eslint": "^9.39.2",
|
|
150
150
|
"eslint-config-google": "^0.14.0",
|
|
151
151
|
"eslint-plugin-ava": "^15.1.0",
|
|
152
|
-
"eslint-plugin-jsdoc": "
|
|
152
|
+
"eslint-plugin-jsdoc": "61.5.0",
|
|
153
153
|
"esmock": "^2.7.3",
|
|
154
154
|
"globals": "^16.5.0",
|
|
155
155
|
"jsdoc": "^4.0.5",
|
|
156
156
|
"nyc": "^17.1.0",
|
|
157
157
|
"open-cli": "^8.0.0",
|
|
158
158
|
"rimraf": "^6.1.2",
|
|
159
|
-
"sinon": "^21.0.
|
|
160
|
-
"supertest": "^7.
|
|
159
|
+
"sinon": "^21.0.1",
|
|
160
|
+
"supertest": "^7.2.2",
|
|
161
161
|
"tap-xunit": "^2.4.1"
|
|
162
162
|
}
|
|
163
163
|
}
|