fix(lint): clean manifest registry installed checks · openclaw/openclaw@fd648ed
steipete
·
2026-05-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -86,10 +86,10 @@ function createIndexWithFileSignatures(rootDir: string): InstalledPluginIndex {
|
86 | 86 | const index = createIndex(rootDir); |
87 | 87 | return { |
88 | 88 | ...index, |
89 | | -plugins: index.plugins.map((record) => ({ |
90 | | -...record, |
91 | | -manifestFile: fileSignature(record.manifestPath), |
92 | | -})), |
| 89 | +plugins: index.plugins.map((record) => { |
| 90 | +record.manifestFile = fileSignature(record.manifestPath); |
| 91 | +return record; |
| 92 | +}), |
93 | 93 | }; |
94 | 94 | } |
95 | 95 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,7 +32,7 @@ function isDeepFrozenJsonLike(value: unknown, seen = new WeakSet<object>()): boo
|
32 | 32 | if (!value || typeof value !== "object") { |
33 | 33 | return true; |
34 | 34 | } |
35 | | -const object = value as object; |
| 35 | +const object = value; |
36 | 36 | if (seen.has(object)) { |
37 | 37 | return true; |
38 | 38 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。