@travetto/web-http 7.0.6 → 7.1.0

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 CHANGED
@@ -32,13 +32,12 @@ Initialized {
32
32
  name: '@travetto-doc/web-http',
33
33
  path: './doc-exec',
34
34
  mono: false,
35
- manager: 'npm',
36
- defaultEnv: 'local'
35
+ manager: 'npm'
37
36
  }
38
37
  },
39
38
  runtime: {
40
- env: 'local',
41
- envType: 'development',
39
+ production: false,
40
+ role: 'doc',
42
41
  debug: false,
43
42
  resourcePaths: [
44
43
  './doc-exec/resources'
@@ -166,7 +165,6 @@ import './config-override.ts';
166
165
  export class SampleApp {
167
166
 
168
167
  preMain(): void {
169
- Env.TRV_ENV.set('prod');
170
168
  Env.NODE_ENV.set('production');
171
169
  }
172
170
 
@@ -201,13 +199,12 @@ Initialized {
201
199
  name: '@travetto-doc/web-http',
202
200
  path: './doc-exec',
203
201
  mono: false,
204
- manager: 'npm',
205
- defaultEnv: 'local'
202
+ manager: 'npm'
206
203
  }
207
204
  },
208
205
  runtime: {
209
- env: 'prod',
210
- envType: 'production',
206
+ production: true,
207
+ role: 'std',
211
208
  debug: false,
212
209
  resourcePaths: [
213
210
  './doc-exec/resources'
@@ -331,7 +328,7 @@ we can see the structure for integrating the server behavior with the [Web API](
331
328
  Additionally the framework supports TLS out of the box, by allowing you to specify your public and private keys for the cert. In dev mode, the framework will also automatically generate a self-signed cert if:
332
329
  * TLS support is configured
333
330
  * [node-forge](https://www.npmjs.com/package/node-forge) is installed
334
- * Not running in prod
331
+ * Not running in production
335
332
  * No keys provided
336
333
 
337
334
  This is useful for local development where you implicitly trust the cert.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/web-http",
3
- "version": "7.0.6",
3
+ "version": "7.1.0",
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.0.6"
30
+ "@travetto/web": "^7.1.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@travetto/cli": "^7.0.7",
34
- "@travetto/test": "^7.0.6"
33
+ "@travetto/cli": "^7.1.0",
34
+ "@travetto/test": "^7.1.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/test": {
@@ -9,14 +9,14 @@ import type { WebHttpServer } from '../src/types.ts';
9
9
  /**
10
10
  * Run a web server
11
11
  */
12
- @CliCommand({ runTarget: true, with: { debugIpc: 'optional', restartOnChange: true, module: true, env: true } })
12
+ @CliCommand({ runTarget: true, with: { debugIpc: 'optional', restartOnChange: true, module: true, profiles: true } })
13
13
  export class WebHttpCommand implements CliCommandShape {
14
14
 
15
15
  /** Port to run on */
16
16
  port?: number;
17
17
 
18
18
  /** Kill conflicting port owner */
19
- killConflict?: boolean = Runtime.envType === 'development';
19
+ killConflict?: boolean = Runtime.localDevelopment;
20
20
 
21
21
  preMain(): void {
22
22
  if (this.port) {