@travetto/config 4.0.7 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 ArcSine Technologies
3
+ Copyright (c) 2020 ArcSine Technologies
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/config",
3
- "version": "4.0.7",
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.0.7",
30
- "@travetto/schema": "^4.0.7",
31
- "@travetto/yaml": "^4.0.6"
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.details = { class: cls.Ⲑid, file, ...(err.details ?? {}) };
131
+ Object.defineProperty(err, 'details', { value: { class: cls.Ⲑid, file, ...(err.details ?? {}) } });
132
132
  }
133
133
  throw err;
134
134
  }