@airpower/web 0.2.46 → 0.2.47

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.
Files changed (2) hide show
  1. package/dist/main.js +4 -5
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -982,19 +982,18 @@ class DecoratorUtil {
982
982
  */
983
983
  static getClassConfig(Class, classConfigKey, isObject = false) {
984
984
  let classConfig = Reflect.get(new Class(), classConfigKey);
985
+ const SuperClass = Reflect.getPrototypeOf(Class);
985
986
  if (!isObject) {
986
987
  if (classConfig) {
987
988
  return classConfig;
988
989
  }
989
- const SuperClass2 = Reflect.getPrototypeOf(Class);
990
- if (!SuperClass2 || SuperClass2.prototype.constructor.name === Transformer.name) {
990
+ if (!SuperClass || SuperClass.prototype.constructor.name === Transformer.name) {
991
991
  return void 0;
992
992
  }
993
- return this.getClassConfig(SuperClass2, classConfigKey);
993
+ return this.getClassConfig(SuperClass, classConfigKey);
994
994
  }
995
995
  classConfig = classConfig || {};
996
- const SuperClass = Reflect.getPrototypeOf(Class);
997
- if (!SuperClass || SuperClass.constructor.name === Transformer.name) {
996
+ if (!SuperClass || SuperClass.prototype.constructor.name === Transformer.name) {
998
997
  return classConfig;
999
998
  }
1000
999
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "0.2.46",
4
+ "version": "0.2.47",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@airpower/enum": "^0.0.10",
43
43
  "@airpower/i18n": "^0.0.4",
44
- "@airpower/transformer": "^0.1.11",
44
+ "@airpower/transformer": "^0.1.13",
45
45
  "@airpower/util": "^0.1.3",
46
46
  "@element-plus/icons-vue": "^2.3.1",
47
47
  "axios": "^1.8.4",