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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-as",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "JSON encoder/decoder for AssemblyScript",
5
5
  "types": "assembly/index.ts",
6
6
  "author": "Jairus Tanaka",
@@ -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 = [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-as/transform",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "JSON encoder/decoder for AssemblyScript",
5
5
  "main": "./lib/index.js",
6
6
  "author": "Jairus Tanaka",
@@ -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