mdk-skills 2.4.13 → 2.4.14
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/package.json +1 -1
- package/scripts/web-ui/server.js +2 -1
package/package.json
CHANGED
package/scripts/web-ui/server.js
CHANGED
|
@@ -937,7 +937,8 @@ async function handleApi(req, res) {
|
|
|
937
937
|
});
|
|
938
938
|
return sendJSON(res, { results: parseSkillsFindOutput(stdout) });
|
|
939
939
|
} catch (e) {
|
|
940
|
-
|
|
940
|
+
// 被新搜索取消的旧进程:返回 200 而非 499,避免浏览器标红
|
|
941
|
+
if (e.killed) return sendJSON(res, { results: [], cancelled: true });
|
|
941
942
|
return sendJSON(res, { results: [] });
|
|
942
943
|
}
|
|
943
944
|
}
|