mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
fix(clawsweeper): address review for automerge-openclaw-openclaw-80731 (validation-1)
This commit is contained in:
@@ -191,9 +191,8 @@ export function collectPluginNpmPublishedRuntimeErrors(params) {
|
||||
export function resolveNpmPackFilename(output) {
|
||||
const filename = output
|
||||
.split(/\r?\n/u)
|
||||
.map((line) => line.trim())
|
||||
.filter(Boolean)
|
||||
.at(-1);
|
||||
.findLast((line) => line.trim().length > 0)
|
||||
?.trim();
|
||||
if (typeof filename !== "string" || !filename.endsWith(".tgz")) {
|
||||
throw new Error(`npm pack did not report a tarball filename`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user