@travetto/schema 4.0.2 → 4.0.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/package.json +3 -3
- package/src/service/registry.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/schema",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Data type registry for runtime validation, reflection and binding.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"schema",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"directory": "module/schema"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@travetto/registry": "^4.0.
|
|
30
|
+
"@travetto/registry": "^4.0.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@travetto/transformer": "^4.0.
|
|
33
|
+
"@travetto/transformer": "^4.0.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependenciesMeta": {
|
|
36
36
|
"@travetto/transformer": {
|
package/src/service/registry.ts
CHANGED
|
@@ -106,7 +106,7 @@ class $SchemaRegistry extends MetadataRegistry<ClassConfig, FieldConfig> {
|
|
|
106
106
|
* @param o Actual instance
|
|
107
107
|
*/
|
|
108
108
|
resolveInstanceType<T>(cls: Class<T>, o: T): Class {
|
|
109
|
-
cls =
|
|
109
|
+
cls = this.get(cls.Ⲑid).class; // Resolve by id to handle any stale references
|
|
110
110
|
|
|
111
111
|
const base = this.getBaseSchema(cls);
|
|
112
112
|
const clsSchema = this.get(cls);
|