framework-do-dede 3.0.16 → 3.0.17

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.
@@ -96,22 +96,12 @@ export class Entity {
96
96
  this[`get${property[0].toUpperCase()}${property.slice(1)}`] = () => this[property];
97
97
  continue;
98
98
  }
99
- if (!this[property]) {
100
- // @ts-ignore
101
- const prefixName = this.constructor.propertiesConfigs[property].prefix;
102
- const getterName = `${prefixName}${property[0].toUpperCase()}${property.slice(1)}`;
103
- if (this[getterName])
104
- continue;
105
- this[getterName] = () => this[property];
106
- }
107
- else {
108
- // @ts-ignore
109
- const prefixName = this.constructor.propertiesConfigs[property]?.prefix || (typeof this[property] === 'boolean' ? 'is' : 'get');
110
- const getterName = `${prefixName}${property[0].toUpperCase()}${property.slice(1)}`;
111
- if (this[getterName])
112
- continue;
113
- this[getterName] = () => this[property];
114
- }
99
+ // @ts-ignore
100
+ const prefixName = this.constructor.propertiesConfigs[property]?.prefix || (typeof this[property] === 'boolean' ? 'is' : 'get');
101
+ const getterName = `${prefixName}${property[0].toUpperCase()}${property.slice(1)}`;
102
+ if (this[getterName])
103
+ continue;
104
+ this[getterName] = () => this[property];
115
105
  }
116
106
  }
117
107
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework-do-dede",
3
- "version": "3.0.16",
3
+ "version": "3.0.17",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",