@travetto/web-http 7.1.0 → 7.1.2
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/package.json +4 -4
- package/src/http.ts +1 -1
- package/support/cli.web_http.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/web-http",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Web HTTP Server Support",
|
|
6
6
|
"keywords": [
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"directory": "module/web-http"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@travetto/web": "^7.1.
|
|
30
|
+
"@travetto/web": "^7.1.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@travetto/cli": "^7.1.
|
|
34
|
-
"@travetto/test": "^7.1.
|
|
33
|
+
"@travetto/cli": "^7.1.2",
|
|
34
|
+
"@travetto/test": "^7.1.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/test": {
|
package/src/http.ts
CHANGED
|
@@ -94,7 +94,7 @@ export class WebHttpUtil {
|
|
|
94
94
|
return complete;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
ShutdownManager.
|
|
97
|
+
ShutdownManager.signal.addEventListener('abort', () => stop(false));
|
|
98
98
|
config.signal?.addEventListener('abort', () => stop(true));
|
|
99
99
|
|
|
100
100
|
return { target, complete, stop };
|
package/support/cli.web_http.ts
CHANGED
|
@@ -35,7 +35,8 @@ export class WebHttpCommand implements CliCommandShape {
|
|
|
35
35
|
const result = this.killConflict ? await NetUtil.freePortOnConflict(err) : undefined;
|
|
36
36
|
if (result?.processId) {
|
|
37
37
|
console.warn('Killed process owning port', result);
|
|
38
|
-
process.
|
|
38
|
+
process.exitCode = 1; // Indicate error, restart will use if in that mode
|
|
39
|
+
return;
|
|
39
40
|
}
|
|
40
41
|
throw err;
|
|
41
42
|
}
|