dsh-plugin-update 0.5.3 → 0.5.5
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/CHANGELOG.md +15 -0
- package/README.md +23 -1
- package/dist/bilingual.d.ts +39 -0
- package/dist/bilingual.js +58 -0
- package/dist/entry-batch.d.ts +92 -0
- package/dist/entry-batch.js +355 -0
- package/dist/entry.d.ts +12 -0
- package/dist/entry.js +50 -13
- package/dist/host.js +5 -4
- package/dist/log-events.d.ts +10 -0
- package/dist/log-events.js +9 -0
- package/dist/panel-batch.d.ts +5 -0
- package/dist/panel-batch.js +29 -18
- package/dist/panel.d.ts +20 -4
- package/dist/panel.js +364 -130
- package/dist/store.js +2 -1
- package/package.json +5 -1
package/dist/store.js
CHANGED
|
@@ -8,6 +8,7 @@ import { emptyBatchSession, normalizeBatchSession } from "./batch.js";
|
|
|
8
8
|
import { normalizeQueueState } from "./queue.js";
|
|
9
9
|
import { validReleaseVersion } from "./service.js";
|
|
10
10
|
import { sanitizeDetail } from "./redaction.js";
|
|
11
|
+
import { LOG_EVENT_INSTALL_EXEC } from "./log-events.js";
|
|
11
12
|
const LEGACY_SEGMENT = "updates";
|
|
12
13
|
const LEGACY_DIR_PLUGIN = LEGACY_PLUGIN_ID;
|
|
13
14
|
const JOB_STATES = ["installing", "verifying", "restart-required", "completed", "failed", "interrupted"];
|
|
@@ -496,7 +497,7 @@ function emitInstall(parts, recipe, ok, exitCode, durationMs) {
|
|
|
496
497
|
if (typeof log !== "function") return;
|
|
497
498
|
try {
|
|
498
499
|
const pluginId = part(parts.pluginId ?? null);
|
|
499
|
-
log("info",
|
|
500
|
+
log("info", LOG_EVENT_INSTALL_EXEC, {
|
|
500
501
|
route: recipe ? recipe.route : "none",
|
|
501
502
|
ok: ok === true,
|
|
502
503
|
exitCode: typeof exitCode === "number" ? exitCode : null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-update",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "可复用的更新系统装成的 npm 包:任何 DSH 插件照文档能集成检查更新等功能(地图 #579)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "王辰浩",
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
"types": "./dist/entry.d.ts",
|
|
39
39
|
"default": "./dist/entry.js"
|
|
40
40
|
},
|
|
41
|
+
"./entry-batch": {
|
|
42
|
+
"types": "./dist/entry-batch.d.ts",
|
|
43
|
+
"default": "./dist/entry-batch.js"
|
|
44
|
+
},
|
|
41
45
|
"./http": {
|
|
42
46
|
"types": "./dist/http.d.ts",
|
|
43
47
|
"default": "./dist/http.js"
|