@travetto/model 5.0.3 → 5.0.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "description": "Datastore abstraction for core operations.",
5
5
  "keywords": [
6
6
  "datastore",
@@ -26,14 +26,14 @@
26
26
  "directory": "module/model"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/config": "^5.0.3",
30
- "@travetto/di": "^5.0.3",
31
- "@travetto/registry": "^5.0.3",
32
- "@travetto/schema": "^5.0.3"
29
+ "@travetto/config": "^5.0.5",
30
+ "@travetto/di": "^5.0.5",
31
+ "@travetto/registry": "^5.0.5",
32
+ "@travetto/schema": "^5.0.5"
33
33
  },
34
34
  "peerDependencies": {
35
- "@travetto/cli": "^5.0.3",
36
- "@travetto/test": "^5.0.3"
35
+ "@travetto/cli": "^5.0.5",
36
+ "@travetto/test": "^5.0.5"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/cli": {
@@ -4,7 +4,7 @@ import { Class, AppError } from '@travetto/runtime';
4
4
  * Represents when a model of cls and id cannot be found
5
5
  */
6
6
  export class NotFoundError extends AppError {
7
- constructor(cls: Class | string, id: string) {
8
- super(`${typeof cls === 'string' ? cls : cls.name} with id ${id} not found`, 'notfound');
7
+ constructor(cls: Class | string, id: string, details?: unknown) {
8
+ super(`${typeof cls === 'string' ? cls : cls.name} with id ${id} not found`, 'notfound', details);
9
9
  }
10
10
  }