@travetto/web-http 7.0.0-rc.5 → 7.0.0-rc.7
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 +2 -4
- package/package.json +5 -4
- package/support/cli.web_http.ts +1 -1
- package/support/test/dispatcher.ts +0 -1
package/README.md
CHANGED
|
@@ -33,14 +33,13 @@ Initialized {
|
|
|
33
33
|
path: './doc-exec',
|
|
34
34
|
mono: false,
|
|
35
35
|
manager: 'npm',
|
|
36
|
-
type: 'commonjs',
|
|
37
36
|
defaultEnv: 'local'
|
|
38
37
|
}
|
|
39
38
|
},
|
|
40
39
|
runtime: {
|
|
41
40
|
env: 'local',
|
|
41
|
+
envType: 'development',
|
|
42
42
|
debug: false,
|
|
43
|
-
production: false,
|
|
44
43
|
resourcePaths: [
|
|
45
44
|
'./doc-exec/resources'
|
|
46
45
|
],
|
|
@@ -203,14 +202,13 @@ Initialized {
|
|
|
203
202
|
path: './doc-exec',
|
|
204
203
|
mono: false,
|
|
205
204
|
manager: 'npm',
|
|
206
|
-
type: 'commonjs',
|
|
207
205
|
defaultEnv: 'local'
|
|
208
206
|
}
|
|
209
207
|
},
|
|
210
208
|
runtime: {
|
|
211
209
|
env: 'prod',
|
|
210
|
+
envType: 'production',
|
|
212
211
|
debug: false,
|
|
213
|
-
production: true,
|
|
214
212
|
resourcePaths: [
|
|
215
213
|
'./doc-exec/resources'
|
|
216
214
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/web-http",
|
|
3
|
-
"version": "7.0.0-rc.
|
|
3
|
+
"version": "7.0.0-rc.7",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Web HTTP Server Support",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"web",
|
|
@@ -26,11 +27,11 @@
|
|
|
26
27
|
"directory": "module/web-http"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@travetto/web": "^7.0.0-rc.
|
|
30
|
+
"@travetto/web": "^7.0.0-rc.6"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
|
-
"@travetto/cli": "^7.0.0-rc.
|
|
33
|
-
"@travetto/test": "^7.0.0-rc.
|
|
33
|
+
"@travetto/cli": "^7.0.0-rc.5",
|
|
34
|
+
"@travetto/test": "^7.0.0-rc.5"
|
|
34
35
|
},
|
|
35
36
|
"peerDependenciesMeta": {
|
|
36
37
|
"@travetto/test": {
|
package/support/cli.web_http.ts
CHANGED
|
@@ -16,7 +16,7 @@ export class WebHttpCommand implements CliCommandShape {
|
|
|
16
16
|
port?: number;
|
|
17
17
|
|
|
18
18
|
/** Kill conflicting port owner */
|
|
19
|
-
killConflict?: boolean =
|
|
19
|
+
killConflict?: boolean = Runtime.envType === 'development';
|
|
20
20
|
|
|
21
21
|
preMain(): void {
|
|
22
22
|
if (this.port) {
|
|
@@ -5,7 +5,6 @@ import { Inject, Injectable } from '@travetto/di';
|
|
|
5
5
|
import { WebFilterContext, WebResponse, WebDispatcher, WebBodyUtil } from '@travetto/web';
|
|
6
6
|
import { castTo } from '@travetto/runtime';
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
import { WebTestDispatchUtil } from '@travetto/web/support/test/dispatch-util.ts';
|
|
10
9
|
|
|
11
10
|
import { WebHttpConfig } from '../../src/config.ts';
|