feat: Upgrade nodes-base package to use modern tsconfig.json (no-changelog) (#16884)

This commit is contained in:
Alex Grozav
2025-07-04 14:55:39 +03:00
committed by GitHub
parent 5733999de5
commit d754ce922d
37 changed files with 165 additions and 143 deletions

View File

@@ -184,10 +184,10 @@ export const parseMessage = async (
};
} else {
let content: IDataObject | string = message.content.toString();
if (options.jsonParseBody) {
if ('jsonParseBody' in options && options.jsonParseBody) {
content = jsonParse(content);
}
if (options.onlyContent) {
if ('onlyContent' in options && options.onlyContent) {
return { json: content as IDataObject };
} else {
message.content = content as unknown as Buffer;