json-as 0.6.4 → 0.6.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
package/transform/lib/index.js
CHANGED
|
@@ -58,11 +58,6 @@ class AsJSONTransform extends BaseVisitor {
|
|
|
58
58
|
parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.encodeStmts.push((parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.encodeStmts.pop()) + ",");
|
|
59
59
|
this.currentClass.encodeStmts.push(...parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.encodeStmts);
|
|
60
60
|
}
|
|
61
|
-
else {
|
|
62
|
-
console.error("Class extends " +
|
|
63
|
-
this.currentClass.parent +
|
|
64
|
-
", but parent class not found. Maybe add the @json decorator over parent class?");
|
|
65
|
-
}
|
|
66
61
|
}
|
|
67
62
|
const parentSchema = this.schemasList.find((v) => v.name == this.currentClass.parent);
|
|
68
63
|
const members = [
|
package/transform/package.json
CHANGED
package/transform/src/index.ts
CHANGED
|
@@ -65,12 +65,6 @@ class AsJSONTransform extends BaseVisitor {
|
|
|
65
65
|
if (parentSchema?.encodeStmts) {
|
|
66
66
|
parentSchema?.encodeStmts.push(parentSchema?.encodeStmts.pop() + ",");
|
|
67
67
|
this.currentClass.encodeStmts.push(...parentSchema?.encodeStmts);
|
|
68
|
-
} else {
|
|
69
|
-
console.error(
|
|
70
|
-
"Class extends " +
|
|
71
|
-
this.currentClass.parent +
|
|
72
|
-
", but parent class not found. Maybe add the @json decorator over parent class?"
|
|
73
|
-
);
|
|
74
68
|
}
|
|
75
69
|
}
|
|
76
70
|
|