@travetto/runtime 8.0.0-alpha.22 → 8.0.0-alpha.24

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@travetto/runtime",
3
- "version": "8.0.0-alpha.22",
4
- "type": "module",
3
+ "version": "8.0.0-alpha.24",
4
+ "private": false,
5
5
  "description": "Runtime for travetto applications.",
6
6
  "keywords": [
7
7
  "console-manager",
@@ -12,26 +12,30 @@
12
12
  "homepage": "https://travetto.io",
13
13
  "license": "MIT",
14
14
  "author": {
15
- "email": "travetto.framework@gmail.com",
16
- "name": "Travetto Framework"
15
+ "name": "Travetto Framework",
16
+ "email": "travetto.framework@gmail.com"
17
+ },
18
+ "repository": {
19
+ "url": "git+https://github.com/travetto/travetto.git",
20
+ "directory": "module/runtime"
17
21
  },
18
22
  "files": [
19
23
  "__index__.ts",
20
24
  "src",
21
25
  "support"
22
26
  ],
27
+ "type": "module",
23
28
  "main": "__index__.ts",
24
- "repository": {
25
- "url": "git+https://github.com/travetto/travetto.git",
26
- "directory": "module/runtime"
29
+ "publishConfig": {
30
+ "access": "public"
27
31
  },
28
32
  "dependencies": {
29
- "@travetto/manifest": "^8.0.0-alpha.11",
33
+ "@travetto/manifest": "^8.0.0-alpha.13",
30
34
  "@types/debug": "^4.1.13",
31
35
  "debug": "^4.4.3"
32
36
  },
33
37
  "peerDependencies": {
34
- "@travetto/transformer": "^8.0.0-alpha.17",
38
+ "@travetto/transformer": "^8.0.0-alpha.19",
35
39
  "temporal-polyfill-lite": "^0.4.0"
36
40
  },
37
41
  "peerDependenciesMeta": {
@@ -44,9 +48,5 @@
44
48
  },
45
49
  "travetto": {
46
50
  "displayName": "Runtime"
47
- },
48
- "private": false,
49
- "publishConfig": {
50
- "access": "public"
51
51
  }
52
52
  }
package/src/global.d.ts CHANGED
@@ -16,28 +16,28 @@ declare global {
16
16
  /**
17
17
  * @concrete node:buffer#Blob
18
18
  */
19
- interface Blob { }
19
+ interface Blob {}
20
20
 
21
21
  /**
22
22
  * @concrete node:buffer#File
23
23
  */
24
- interface File { }
24
+ interface File {}
25
25
 
26
26
  /**
27
27
  * @concrete node:stream/web#ReadableStream
28
28
  */
29
- interface ReadableStream { }
29
+ interface ReadableStream {}
30
30
 
31
31
  /**
32
32
  * @concrete node:buffer#Buffer
33
33
  */
34
- interface Buffer { }
34
+ interface Buffer {}
35
35
 
36
36
  namespace NodeJS {
37
37
  /**
38
38
  * @concrete node:stream#Readable
39
39
  */
40
- interface ReadableStream { }
40
+ interface ReadableStream {}
41
41
  }
42
42
  }
43
43
 
@@ -45,38 +45,38 @@ declare module 'buffer' {
45
45
  /**
46
46
  * @concrete node:buffer#Blob
47
47
  */
48
- interface Blob { }
48
+ interface Blob {}
49
49
 
50
50
  /**
51
51
  * @concrete node:buffer#File
52
52
  */
53
- interface File { }
53
+ interface File {}
54
54
  }
55
55
 
56
56
  declare module 'node:buffer' {
57
57
  /**
58
58
  * @concrete node:buffer#Blob
59
59
  */
60
- interface Blob { }
60
+ interface Blob {}
61
61
 
62
62
  /**
63
63
  * @concrete node:buffer#File
64
64
  */
65
- interface File { }
65
+ interface File {}
66
66
  }
67
67
 
68
68
  declare module 'stream' {
69
69
  /**
70
70
  * @concrete node:stream#Readable
71
71
  */
72
- interface Readable { }
72
+ interface Readable {}
73
73
  }
74
74
 
75
75
  declare module 'stream/web' {
76
76
  /**
77
77
  * @concrete node:stream/web#ReadableStream
78
78
  */
79
- interface ReadableStream { }
79
+ interface ReadableStream {}
80
80
  }
81
81
 
82
82
  // Remove once node 26 types are released
@@ -84,4 +84,4 @@ declare module 'node:fs' {
84
84
  interface StatOptions {
85
85
  throwIfNoEntry?: boolean;
86
86
  }
87
- }
87
+ }
package/src/trv.d.ts CHANGED
@@ -1,38 +1,39 @@
1
1
  import { type ManifestModuleRole } from '@travetto/manifest';
2
+
2
3
  import { type TimeSpan } from './time.ts';
3
4
  type Role = Exclude<ManifestModuleRole, 'compile'>;
4
5
 
5
6
  declare module '@travetto/runtime' {
6
7
  interface EnvData {
7
- /**
8
+ /**
8
9
  * The node environment we are running in
9
10
  * @default development
10
11
  */
11
12
  NODE_ENV: 'development' | 'production';
12
- /**
13
+ /**
13
14
  * Outputs all console.debug messages, defaults to off
14
15
  */
15
16
  DEBUG: boolean | string;
16
- /**
17
+ /**
17
18
  * The role we are running as, allows access to additional files from the manifest during runtime.
18
19
  */
19
20
  TRV_ROLE: Role;
20
- /**
21
+ /**
21
22
  * The folders to use for resource lookup
22
23
  */
23
24
  TRV_RESOURCES: string[];
24
- /**
25
+ /**
25
26
  * Resource path overrides
26
27
  * @private
27
28
  */
28
29
  TRV_RESOURCE_OVERRIDES: Record<string, string>;
29
- /**
30
- * The max time to wait for shutdown to finish after initial SIGINT,
30
+ /**
31
+ * The max time to wait for shutdown to finish after initial SIGINT,
31
32
  * @default 2s
32
33
  */
33
34
  TRV_SHUTDOWN_WAIT: TimeSpan | number;
34
35
  /**
35
- * The desired runtime module
36
+ * The desired runtime module
36
37
  */
37
38
  TRV_MODULE: string;
38
39
  /**
@@ -50,4 +51,4 @@ declare module '@travetto/runtime' {
50
51
  */
51
52
  TRV_DEBUG_BREAK: boolean;
52
53
  }
53
- }
54
+ }