@airpower/transformer 0.1.11 → 0.1.12
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/dist/main.js +4 -5
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -223,19 +223,18 @@ class DecoratorUtil {
|
|
|
223
223
|
*/
|
|
224
224
|
static getClassConfig(Class, classConfigKey, isObject = false) {
|
|
225
225
|
let classConfig = Reflect.get(new Class(), classConfigKey);
|
|
226
|
+
const SuperClass = Reflect.getPrototypeOf(Class);
|
|
226
227
|
if (!isObject) {
|
|
227
228
|
if (classConfig) {
|
|
228
229
|
return classConfig;
|
|
229
230
|
}
|
|
230
|
-
|
|
231
|
-
if (!SuperClass2 || SuperClass2.prototype.constructor.name === Transformer.name) {
|
|
231
|
+
if (!SuperClass || SuperClass.prototype.constructor.name === Transformer.name) {
|
|
232
232
|
return void 0;
|
|
233
233
|
}
|
|
234
|
-
return this.getClassConfig(
|
|
234
|
+
return this.getClassConfig(SuperClass, classConfigKey);
|
|
235
235
|
}
|
|
236
236
|
classConfig = classConfig || {};
|
|
237
|
-
|
|
238
|
-
if (!SuperClass || SuperClass.constructor.name === Transformer.name) {
|
|
237
|
+
if (!SuperClass || SuperClass.prototype.constructor.name === Transformer.name) {
|
|
239
238
|
return classConfig;
|
|
240
239
|
}
|
|
241
240
|
return {
|