chore: Upgrade nodelinter to 1.16.3 (#11286)

This commit is contained in:
Iván Ovejero
2024-10-18 09:22:24 +02:00
committed by GitHub
parent a042d5c8e6
commit 8e5292cf6c
11 changed files with 12 additions and 18 deletions

View File

@@ -37,7 +37,7 @@ export function mapItemsNotDefinedErrorIfNeededForRunForAll(code: string, error:
// anticipate user expecting `items` to pre-exist as in Function Item node
if (error.message === 'items is not defined' && !/(let|const|var) +items +=/.test(code)) {
const quoted = error.message.replace('items', '`items`');
error.message = (quoted as string) + '. Did you mean `$input.all()`?';
error.message = quoted + '. Did you mean `$input.all()`?';
}
}
@@ -49,6 +49,6 @@ export function mapItemNotDefinedErrorIfNeededForRunForEach(code: string, error:
// anticipate user expecting `items` to pre-exist as in Function Item node
if (error.message === 'item is not defined' && !/(let|const|var) +item +=/.test(code)) {
const quoted = error.message.replace('item', '`item`');
error.message = (quoted as string) + '. Did you mean `$input.item.json`?';
error.message = quoted + '. Did you mean `$input.item.json`?';
}
}