diff --git a/src/__tests__/__snapshots__/rss2.spec.ts.snap b/src/__tests__/__snapshots__/rss2.spec.ts.snap index 6cb59bc..f1c7d04 100644 --- a/src/__tests__/__snapshots__/rss2.spec.ts.snap +++ b/src/__tests__/__snapshots__/rss2.spec.ts.snap @@ -29,6 +29,7 @@ exports[`rss 2.0 should generate a valid feed 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -66,6 +67,7 @@ exports[`rss 2.0 should generate a valid feed with audio 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -79,6 +81,7 @@ exports[`rss 2.0 should generate a valid feed with audio 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -92,6 +95,7 @@ exports[`rss 2.0 should generate a valid feed with audio 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -105,6 +109,7 @@ exports[`rss 2.0 should generate a valid feed with audio 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -142,6 +147,7 @@ exports[`rss 2.0 should generate a valid feed with enclosure 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -155,6 +161,7 @@ exports[`rss 2.0 should generate a valid feed with enclosure 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -168,6 +175,7 @@ exports[`rss 2.0 should generate a valid feed with enclosure 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -205,6 +213,7 @@ exports[`rss 2.0 should generate a valid feed with image properties 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -218,6 +227,7 @@ exports[`rss 2.0 should generate a valid feed with image properties 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT @@ -254,6 +264,7 @@ exports[`rss 2.0 should generate a valid feed with video 1`] = ` janedoe@example.com (Jane Doe) joesmith@example.com (Joe Smith) + Grateful Dead MSFT diff --git a/src/rss2.ts b/src/rss2.ts index cd940a1..e866aaa 100644 --- a/src/rss2.ts +++ b/src/rss2.ts @@ -157,6 +157,7 @@ export default (ins: Feed) => { if (Array.isArray(entry.author)) { item.author = []; entry.author.map((author: Author) => { + item["dc:creator"] = { _cdata: author.name }; if (author.email && author.name) { item.author.push({ _text: author.email + " (" + author.name + ")" }); }