@travetto/config 5.0.0-rc.3 → 5.0.0-rc.4

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
@@ -206,7 +206,7 @@ $ trv main doc/dbconfig-run.ts
206
206
  at: '2029-03-14T04:00:00.618Z',
207
207
  details: {
208
208
  class: '@travetto/config:doc/dbconfig○DBConfig',
209
- file: './doc/dbconfig.ts',
209
+ import: '@travetto/config/doc/dbconfig',
210
210
  errors: [
211
211
  {
212
212
  kind: 'required',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/config",
3
- "version": "5.0.0-rc.3",
3
+ "version": "5.0.0-rc.4",
4
4
  "description": "Configuration support",
5
5
  "keywords": [
6
6
  "yaml",
@@ -26,8 +26,8 @@
26
26
  "directory": "module/config"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/di": "^5.0.0-rc.3",
30
- "@travetto/schema": "^5.0.0-rc.3",
29
+ "@travetto/di": "^5.0.0-rc.4",
30
+ "@travetto/schema": "^5.0.0-rc.4",
31
31
  "yaml": "^2.4.5"
32
32
  },
33
33
  "travetto": {
package/src/service.ts CHANGED
@@ -126,8 +126,8 @@ export class ConfigurationService {
126
126
  const ogMessage = err.message;
127
127
  err.message = `Failed to construct ${cls.Ⲑid} as validation errors have occurred`;
128
128
  err.stack = err.stack?.replace(ogMessage, err.message);
129
- const file = Runtime.getSource(cls);
130
- Object.defineProperty(err, 'details', { value: { class: cls.Ⲑid, file, ...(err.details ?? {}) } });
129
+ const imp = Runtime.getImport(cls);
130
+ Object.defineProperty(err, 'details', { value: { class: cls.Ⲑid, import: imp, ...(err.details ?? {}) } });
131
131
  }
132
132
  throw err;
133
133
  }