@kingteza/crud-component 1.27.1 → 1.27.2

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.
@@ -1 +1 @@
1
- "use strict";class s{static getRealName(t,e="name"){return typeof t=="object"?t[e]:t}}module.exports=s;
1
+ "use strict";class s{static getRealName(r,t="name"){return Array.isArray(r)?r:typeof r=="object"?r[t]:r}}module.exports=s;
@@ -1,5 +1,5 @@
1
1
  import { InitialCrudField, SelectCrudField } from 'src/crud';
2
2
  declare class CrudUtil {
3
- static getRealName<T>(name: InitialCrudField<T>["name"] | SelectCrudField<T>["name"], extract?: "name" | "upsertFieldName"): any;
3
+ static getRealName<T>(name: InitialCrudField<T>["name"] | SelectCrudField<T>["name"], extract?: "name" | "upsertFieldName"): (string | number)[] | keyof T;
4
4
  }
5
5
  export default CrudUtil;
@@ -1,8 +1,8 @@
1
- class l {
2
- static getRealName(t, e = "name") {
3
- return typeof t == "object" ? t[e] : t;
1
+ class a {
2
+ static getRealName(r, t = "name") {
3
+ return Array.isArray(r) ? r : typeof r == "object" ? r[t] : r;
4
4
  }
5
5
  }
6
6
  export {
7
- l as default
7
+ a as default
8
8
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kingteza/crud-component",
3
3
  "private": false,
4
- "version": "1.27.1",
4
+ "version": "1.27.2",
5
5
  "description": "React CRUD component library with Ant Design",
6
6
  "keywords": [
7
7
  "react",