@lmzhen/dsh-evolution-skill-health 0.33.0 → 0.34.0
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/lib/client.js +6 -7
- package/package.json +6 -6
package/lib/client.js
CHANGED
|
@@ -732,14 +732,15 @@ window.__ModuleLoader__.load({
|
|
|
732
732
|
const [scan, setScan] = (0, react.useState)(face.scan);
|
|
733
733
|
const [viewMode, setViewMode] = (0, react.useState)("skills");
|
|
734
734
|
const firstLoad = (0, react.useRef)(false);
|
|
735
|
+
const readTicket = (0, react.useRef)(0);
|
|
735
736
|
/** One read trigger for first paint and the refresh button; the latest answer wins. */
|
|
736
737
|
const load = () => {
|
|
737
738
|
const read = face.loadRows;
|
|
738
739
|
if (read === void 0) return () => {};
|
|
739
|
-
|
|
740
|
+
const ticket = ++readTicket.current;
|
|
740
741
|
setLoading(true);
|
|
741
742
|
read().then((outcome) => {
|
|
742
|
-
if (
|
|
743
|
+
if (ticket !== readTicket.current) return;
|
|
743
744
|
if (outcome.ok) {
|
|
744
745
|
const payload = outcome.payload;
|
|
745
746
|
setView({
|
|
@@ -755,16 +756,14 @@ window.__ModuleLoader__.load({
|
|
|
755
756
|
setFailed(void 0);
|
|
756
757
|
} else setFailed(outcome.failure);
|
|
757
758
|
}).catch(() => {
|
|
758
|
-
if (
|
|
759
|
+
if (ticket === readTicket.current) setFailed({
|
|
759
760
|
kind: "server",
|
|
760
761
|
status: 0
|
|
761
762
|
});
|
|
762
763
|
}).finally(() => {
|
|
763
|
-
if (
|
|
764
|
+
if (ticket === readTicket.current) setLoading(false);
|
|
764
765
|
});
|
|
765
|
-
return () => {
|
|
766
|
-
live = false;
|
|
767
|
-
};
|
|
766
|
+
return () => {};
|
|
768
767
|
};
|
|
769
768
|
(0, react.useEffect)(() => {
|
|
770
769
|
if (firstLoad.current || face.loadRows === void 0) return;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
]
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.34.0",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
44
44
|
"react": "^18.2.0",
|
|
45
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
46
|
-
"@lmzhen/dsh-evolution-curator": "^0.
|
|
45
|
+
"@lmzhen/dsh-evolution-core": "^0.34.0",
|
|
46
|
+
"@lmzhen/dsh-evolution-curator": "^0.34.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
50
50
|
"@types/react": "~18.3.1",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
53
|
-
"@lmzhen/dsh-evolution-curator": "^0.
|
|
52
|
+
"@lmzhen/dsh-evolution-core": "^0.34.0",
|
|
53
|
+
"@lmzhen/dsh-evolution-curator": "^0.34.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@lmzhen/dsh-evolution-client-kit": "^0.
|
|
56
|
+
"@lmzhen/dsh-evolution-client-kit": "^0.34.0"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"dsh": ">=0.2.1-rc.2 <0.2.2-0"
|