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/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", "update.install.exec", {
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",
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"