@travetto/config 4.1.0 → 4.1.1
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/LICENSE +1 -1
- package/package.json +4 -4
- package/src/service.ts +1 -1
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/config",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
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.1.
|
|
30
|
-
"@travetto/schema": "^4.1.
|
|
31
|
-
"@travetto/yaml": "^4.1.
|
|
29
|
+
"@travetto/di": "^4.1.1",
|
|
30
|
+
"@travetto/schema": "^4.1.1",
|
|
31
|
+
"@travetto/yaml": "^4.1.1"
|
|
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
|
+
Object.defineProperty(err, 'details', { value: { class: cls.Ⲑid, file, ...(err.details ?? {}) } });
|
|
132
132
|
}
|
|
133
133
|
throw err;
|
|
134
134
|
}
|