@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.
- package/__tests__/app/CoreApp.ts +2 -0
- package/lib/cjs/app/CoreApp.js +2 -0
- package/lib/cjs/business/BusinessUtils.d.ts +1 -2
- package/lib/mjs/app/CoreApp.js +2 -0
- package/lib/mjs/business/BusinessUtils.d.ts +1 -2
- package/package.json +6 -6
- package/src/app/CoreApp.ts +1 -0
- package/src/business/BusinessUtils.ts +0 -1
package/__tests__/app/CoreApp.ts
CHANGED
|
@@ -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
|
|
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -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/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -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.
|
|
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.
|
|
39
|
-
"@etsoo/restclient": "^1.1.
|
|
40
|
-
"@etsoo/shared": "^1.2.
|
|
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.
|
|
50
|
+
"@vitejs/plugin-react": "^4.5.2",
|
|
51
51
|
"jsdom": "^26.1.0",
|
|
52
52
|
"typescript": "^5.8.3",
|
|
53
|
-
"vitest": "^3.2.
|
|
53
|
+
"vitest": "^3.2.3"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/src/app/CoreApp.ts
CHANGED
|
@@ -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
|
});
|