@etsoo/appscript 1.6.38 → 1.6.39

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.
@@ -25,6 +25,8 @@ await ExtendUtils.sleep(50);
25
25
  // Then change the culture to the first one (here is 'zh-CN')
26
26
  await app.changeCulture(app.settings.cultures[0]);
27
27
 
28
+ await ExtendUtils.sleep(50);
29
+
28
30
  test("Test for domain substitution", () => {
29
31
  expect(app.settings.endpoint).toBe("http://admin.etsoo.com:9000/api/");
30
32
 
@@ -1236,6 +1236,8 @@ class CoreApp {
1236
1236
  if (typeof id !== "number")
1237
1237
  return;
1238
1238
  const key = shared_1.DataTypes.getEnumKey(em, id);
1239
+ if (key == null)
1240
+ return;
1239
1241
  const label = this.get(getKey(key)) ?? key;
1240
1242
  list.push({ id, label });
1241
1243
  });
@@ -1,6 +1,5 @@
1
1
  import { DataTypes, IdType, ListType } from "@etsoo/shared";
2
2
  import { CustomCultureData } from "../def/CustomCulture";
3
- import { QueryPagingData } from "../api/rq/QueryPagingData";
4
3
  import { QueryRQ } from "../api/rq/QueryRQ";
5
4
  /**
6
5
  * Business utils
@@ -24,7 +23,7 @@ export declare namespace BusinessUtils {
24
23
  ids?: T[] | undefined;
25
24
  excludedIds?: T[] | undefined;
26
25
  keyword?: string;
27
- queryPaging: QueryPagingData | undefined;
26
+ queryPaging: import("..").QueryPagingData | undefined;
28
27
  };
29
28
  /**
30
29
  * Get 12-month items
@@ -1233,6 +1233,8 @@ export class CoreApp {
1233
1233
  if (typeof id !== "number")
1234
1234
  return;
1235
1235
  const key = DataTypes.getEnumKey(em, id);
1236
+ if (key == null)
1237
+ return;
1236
1238
  const label = this.get(getKey(key)) ?? key;
1237
1239
  list.push({ id, label });
1238
1240
  });
@@ -1,6 +1,5 @@
1
1
  import { DataTypes, IdType, ListType } from "@etsoo/shared";
2
2
  import { CustomCultureData } from "../def/CustomCulture";
3
- import { QueryPagingData } from "../api/rq/QueryPagingData";
4
3
  import { QueryRQ } from "../api/rq/QueryRQ";
5
4
  /**
6
5
  * Business utils
@@ -24,7 +23,7 @@ export declare namespace BusinessUtils {
24
23
  ids?: T[] | undefined;
25
24
  excludedIds?: T[] | undefined;
26
25
  keyword?: string;
27
- queryPaging: QueryPagingData | undefined;
26
+ queryPaging: import("..").QueryPagingData | undefined;
28
27
  };
29
28
  /**
30
29
  * Get 12-month items
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.6.38",
3
+ "version": "1.6.39",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "homepage": "https://github.com/ETSOO/AppScript#readme",
37
37
  "dependencies": {
38
- "@etsoo/notificationbase": "^1.1.62",
39
- "@etsoo/restclient": "^1.1.29",
40
- "@etsoo/shared": "^1.2.74",
38
+ "@etsoo/notificationbase": "^1.1.63",
39
+ "@etsoo/restclient": "^1.1.30",
40
+ "@etsoo/shared": "^1.2.75",
41
41
  "crypto-js": "^4.2.0"
42
42
  },
43
43
  "devDependencies": {
@@ -47,9 +47,9 @@
47
47
  "@babel/preset-env": "^7.27.2",
48
48
  "@babel/runtime-corejs3": "^7.27.6",
49
49
  "@types/crypto-js": "^4.2.2",
50
- "@vitejs/plugin-react": "^4.5.1",
50
+ "@vitejs/plugin-react": "^4.5.2",
51
51
  "jsdom": "^26.1.0",
52
52
  "typescript": "^5.8.3",
53
- "vitest": "^3.2.2"
53
+ "vitest": "^3.2.3"
54
54
  }
55
55
  }
@@ -1748,6 +1748,7 @@ export abstract class CoreApp<
1748
1748
  filter.forEach((id) => {
1749
1749
  if (typeof id !== "number") return;
1750
1750
  const key = DataTypes.getEnumKey(em, id);
1751
+ if (key == null) return;
1751
1752
  const label = this.get<string>(getKey(key)) ?? key;
1752
1753
  list.push({ id, label });
1753
1754
  });
@@ -1,6 +1,5 @@
1
1
  import { DataTypes, IdType, ListType } from "@etsoo/shared";
2
2
  import { CustomCultureData } from "../def/CustomCulture";
3
- import { QueryPagingData } from "../api/rq/QueryPagingData";
4
3
  import { QueryRQ } from "../api/rq/QueryRQ";
5
4
 
6
5
  /**