@travetto/config 4.0.0-rc.5 → 4.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 +14 -12
- package/package.json +4 -4
- package/src/service.ts +1 -1
package/README.md
CHANGED
|
@@ -199,18 +199,20 @@ $ trv main doc/dbconfig-run.ts
|
|
|
199
199
|
category: 'data',
|
|
200
200
|
type: 'ValidationResultError',
|
|
201
201
|
at: 2029-03-14T04:00:00.618Z,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
202
|
+
details: {
|
|
203
|
+
class: '@travetto/config:doc/dbconfig○DBConfig',
|
|
204
|
+
file: './doc/dbconfig.ts',
|
|
205
|
+
errors: [
|
|
206
|
+
{
|
|
207
|
+
kind: 'required',
|
|
208
|
+
active: true,
|
|
209
|
+
value: undefined,
|
|
210
|
+
message: 'port is required',
|
|
211
|
+
path: 'port',
|
|
212
|
+
type: undefined
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
}
|
|
214
216
|
}
|
|
215
217
|
```
|
|
216
218
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/config",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.7",
|
|
4
4
|
"description": "Configuration support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yaml",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"directory": "module/config"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@travetto/di": "^4.0.0-rc.
|
|
30
|
-
"@travetto/schema": "^4.0.0-rc.
|
|
31
|
-
"@travetto/yaml": "^4.0.0-rc.
|
|
29
|
+
"@travetto/di": "^4.0.0-rc.7",
|
|
30
|
+
"@travetto/schema": "^4.0.0-rc.7",
|
|
31
|
+
"@travetto/yaml": "^4.0.0-rc.7"
|
|
32
32
|
},
|
|
33
33
|
"travetto": {
|
|
34
34
|
"displayName": "Configuration"
|
package/src/service.ts
CHANGED
|
@@ -128,7 +128,7 @@ export class ConfigurationService {
|
|
|
128
128
|
err.message = `Failed to construct ${cls.Ⲑid} as validation errors have occurred`;
|
|
129
129
|
err.stack = err.stack?.replace(ogMessage, err.message);
|
|
130
130
|
const file = RuntimeIndex.getFunctionMetadata(cls)!.source;
|
|
131
|
-
err.
|
|
131
|
+
err.details = { class: cls.Ⲑid, file, ...(err.details ?? {}) };
|
|
132
132
|
}
|
|
133
133
|
throw err;
|
|
134
134
|
}
|