framework-do-dede 3.0.17 → 3.0.18

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.
@@ -59,7 +59,7 @@ export class Entity {
59
59
  }
60
60
  return result;
61
61
  }
62
- async toAsyncData({ serialize = false } = {}) {
62
+ async toAsyncData({ serialize = true } = {}) {
63
63
  // @ts-ignore
64
64
  const propertiesConfigs = this.constructor.propertiesConfigs;
65
65
  // @ts-ignore
@@ -97,7 +97,7 @@ export class Entity {
97
97
  continue;
98
98
  }
99
99
  // @ts-ignore
100
- const prefixName = this.constructor.propertiesConfigs[property]?.prefix || (typeof this[property] === 'boolean' ? 'is' : 'get');
100
+ const prefixName = this.constructor?.propertiesConfigs[property]?.prefix || (typeof this[property] === 'boolean' ? 'is' : 'get');
101
101
  const getterName = `${prefixName}${property[0].toUpperCase()}${property.slice(1)}`;
102
102
  if (this[getterName])
103
103
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework-do-dede",
3
- "version": "3.0.17",
3
+ "version": "3.0.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",