@svadmin/core 0.23.5 → 0.23.6

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": "@svadmin/core",
3
- "version": "0.23.5",
3
+ "version": "0.23.6",
4
4
  "author": "zuohuadong",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,11 +30,11 @@ function extendQuery<Q extends object, E extends Record<string, unknown>>(
30
30
  if (typeof prop === 'string' && prop in extensions) {
31
31
  return extensions[prop as keyof E];
32
32
  }
33
- return Reflect.get(target, prop);
33
+ return target[prop as keyof Q];
34
34
  },
35
35
  has(target, prop) {
36
36
  if (typeof prop === 'string' && prop in extensions) return true;
37
- return Reflect.has(target, prop);
37
+ return prop in target;
38
38
  },
39
39
  }) as Q & E;
40
40
  }