@etsoo/appscript 1.6.57 → 1.6.58
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
CHANGED
|
@@ -25,7 +25,7 @@ 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(
|
|
28
|
+
await ExtendUtils.sleep(100);
|
|
29
29
|
|
|
30
30
|
test("Test for domain substitution", () => {
|
|
31
31
|
expect(app.settings.endpoint).toBe("http://admin.etsoo.com:9000/api/");
|
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -567,7 +567,7 @@ class CoreApp {
|
|
|
567
567
|
* @returns true means device is invalid
|
|
568
568
|
*/
|
|
569
569
|
checkDeviceResult(result) {
|
|
570
|
-
if (result.type === "DataProcessingFailed" ||
|
|
570
|
+
if ((result.type === "DataProcessingFailed" && result.field !== "Token") ||
|
|
571
571
|
(result.type === "NoValidData" && result.field === "Device"))
|
|
572
572
|
return true;
|
|
573
573
|
return false;
|
package/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -564,7 +564,7 @@ export class CoreApp {
|
|
|
564
564
|
* @returns true means device is invalid
|
|
565
565
|
*/
|
|
566
566
|
checkDeviceResult(result) {
|
|
567
|
-
if (result.type === "DataProcessingFailed" ||
|
|
567
|
+
if ((result.type === "DataProcessingFailed" && result.field !== "Token") ||
|
|
568
568
|
(result.type === "NoValidData" && result.field === "Device"))
|
|
569
569
|
return true;
|
|
570
570
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.58",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@babel/cli": "^7.28.6",
|
|
45
45
|
"@babel/core": "^7.29.0",
|
|
46
46
|
"@babel/plugin-transform-runtime": "^7.29.0",
|
|
47
|
-
"@babel/preset-env": "^7.29.
|
|
48
|
-
"@babel/runtime-corejs3": "^7.29.
|
|
47
|
+
"@babel/preset-env": "^7.29.2",
|
|
48
|
+
"@babel/runtime-corejs3": "^7.29.2",
|
|
49
49
|
"@types/crypto-js": "^4.2.2",
|
|
50
50
|
"@vitejs/plugin-react": "^6.0.1",
|
|
51
|
-
"jsdom": "^
|
|
51
|
+
"jsdom": "^29.0.1",
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
53
|
"vitest": "^4.1.0"
|
|
54
54
|
}
|
package/src/app/CoreApp.ts
CHANGED
|
@@ -883,7 +883,7 @@ export abstract class CoreApp<
|
|
|
883
883
|
*/
|
|
884
884
|
checkDeviceResult(result: IActionResult): boolean {
|
|
885
885
|
if (
|
|
886
|
-
result.type === "DataProcessingFailed" ||
|
|
886
|
+
(result.type === "DataProcessingFailed" && result.field !== "Token") ||
|
|
887
887
|
(result.type === "NoValidData" && result.field === "Device")
|
|
888
888
|
)
|
|
889
889
|
return true;
|