feat(rss/new-items-in-feed): incorporate attributes

This commit is contained in:
Ali BARIN
2023-05-27 18:28:03 +00:00
parent 5066995f72
commit 078b8efb56

View File

@@ -18,7 +18,9 @@ const hashItem = async (value: string) => {
const newItemsInFeed = async ($: IGlobalVariable) => {
const { data } = await $.http.get($.step.parameters.feedUrl as string);
const parser = new XMLParser();
const parser = new XMLParser({
ignoreAttributes: false,
});
const parsedData = parser.parse(data);
// naive implementation to cover atom and rss feeds