@newskit-render/feed 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,7 @@
1
1
  import { TiteAttributes } from '../types';
2
2
  export declare const domainMock = "https://demo.com";
3
+ export declare const lastBuildDateMock: string;
4
+ export declare const updatedDateTimeMock = "Tue, 12 Apr 2022 11:17:09 GMT";
3
5
  export declare const titeAttributesMock: TiteAttributes;
4
6
  export declare const titeAttributesdefaultMock: TiteAttributes;
5
7
  export declare const articleListMock: ({
@@ -12,6 +14,7 @@ export declare const articleListMock: ({
12
14
  summary: null;
13
15
  publisher: string;
14
16
  publishedDateTime: string;
17
+ updatedDateTime: string;
15
18
  headline: string;
16
19
  id: string;
17
20
  } | {
@@ -28,6 +31,7 @@ export declare const articleListMock: ({
28
31
  };
29
32
  publisher: string;
30
33
  publishedDateTime: string;
34
+ updatedDateTime: string;
31
35
  headline: string;
32
36
  id: string;
33
37
  } | {
@@ -42,6 +46,7 @@ export declare const articleListMock: ({
42
46
  };
43
47
  publisher: string;
44
48
  publishedDateTime: string;
49
+ updatedDateTime: string;
45
50
  headline: string;
46
51
  id: string;
47
52
  })[];
@@ -56,6 +61,7 @@ export declare const articleListWithBodyMock: {
56
61
  summary: null;
57
62
  publisher: string;
58
63
  publishedDateTime: string;
64
+ updatedDateTime: string;
59
65
  headline: string;
60
66
  id: string;
61
67
  body: ({
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.rssWithBodyMock = exports.articleListWithBodyMock = exports.rssMock = exports.articleListMock = exports.titeAttributesdefaultMock = exports.titeAttributesMock = exports.domainMock = void 0;
3
+ exports.rssWithBodyMock = exports.articleListWithBodyMock = exports.rssMock = exports.articleListMock = exports.titeAttributesdefaultMock = exports.titeAttributesMock = exports.updatedDateTimeMock = exports.lastBuildDateMock = exports.domainMock = void 0;
4
4
  exports.domainMock = 'https://demo.com';
5
+ exports.lastBuildDateMock = new Date().toUTCString();
6
+ exports.updatedDateTimeMock = 'Tue, 12 Apr 2022 11:17:09 GMT';
5
7
  exports.titeAttributesMock = {
6
8
  title: 'Demo Site',
7
9
  link: '/feed',
8
10
  description: 'demo test feed',
9
- lastBuildDate: 'Fri, 01 Apr 2022 13:00:30 GMT',
10
11
  language: 'en-US',
11
12
  updatePeriod: 'hourly',
12
13
  updateFrequency: 1,
@@ -16,7 +17,6 @@ exports.titeAttributesdefaultMock = {
16
17
  title: 'Demo Site',
17
18
  link: '/feed',
18
19
  description: 'demo test feed',
19
- lastBuildDate: 'Fri, 01 Apr 2022 13:00:30 GMT',
20
20
  logoUrl: '/demo-icon;w=32',
21
21
  };
22
22
  exports.articleListMock = [
@@ -26,6 +26,7 @@ exports.articleListMock = [
26
26
  summary: null,
27
27
  publisher: 'VIRGIN',
28
28
  publishedDateTime: '2022-04-04T08:50:29.000Z',
29
+ updatedDateTime: '2022-04-12T11:17:09.000Z',
29
30
  headline: 'It has survived not only five centuries',
30
31
  id: '32596',
31
32
  },
@@ -40,6 +41,7 @@ exports.articleListMock = [
40
41
  ],
41
42
  },
42
43
  publisher: 'VIRGIN',
44
+ updatedDateTime: '2022-01-12T01:17:09.000Z',
43
45
  publishedDateTime: '2022-04-04T08:31:44.000Z',
44
46
  headline: 'Testing Image Credits',
45
47
  id: '32594',
@@ -56,6 +58,7 @@ exports.articleListMock = [
56
58
  },
57
59
  publisher: 'VIRGIN',
58
60
  publishedDateTime: '2022-03-25T23:59:00.000Z',
61
+ updatedDateTime: '2022-03-30T10:25:09.000Z',
59
62
  headline: 'test publish article after fix deployed',
60
63
  id: '32579',
61
64
  },
@@ -71,11 +74,12 @@ exports.articleListMock = [
71
74
  },
72
75
  publisher: 'VIRGIN',
73
76
  publishedDateTime: '2022-03-25T22:59:00.000Z',
77
+ updatedDateTime: '2022-03-28T12:15:09.000Z',
74
78
  headline: 'Another Test Article',
75
79
  id: '32591',
76
80
  },
77
81
  ];
78
- exports.rssMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + exports.titeAttributesMock.title + "</title>\n <atom:link href=\"" + exports.domainMock + exports.titeAttributesMock.link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + exports.domainMock + exports.titeAttributesMock.link + "</link>\n <description>" + exports.titeAttributesMock.description + "</description>\n <lastBuildDate>" + exports.titeAttributesMock.lastBuildDate + "</lastBuildDate>\n <language>" + exports.titeAttributesMock.language + "</language>\n <sy:updatePeriod>" + exports.titeAttributesMock.updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + exports.titeAttributesMock.updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + exports.domainMock + exports.titeAttributesMock.logoUrl + "</url>\n <title>" + exports.titeAttributesMock.title + "</title>\n <link>" + exports.domainMock + exports.titeAttributesMock.link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>It has survived not only five centuries</title>\n <link>https://demo.com/entertainment/32596/it-has-survived-not-only-five-centuries</link>\n <pubDate>Mon, 04 Apr 2022 08:50:29 GMT</pubDate>\n <dc:creator><![CDATA[Jim Morrison]]></dc:creator>\n <category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32596 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Image Credits</title>\n <link>https://demo.com/uncategorized/32594/testing-image-credits</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description]]></description>\n <guid isPermaLink=\"false\">Post 32594 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[Some test description 2]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Another Test Article</title>\n <link>https://demo.com/uncategorized/32591/another-test-article</link>\n <pubDate>Fri, 25 Mar 2022 22:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description 3]]></description>\n <guid isPermaLink=\"false\">Post 32591 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n";
82
+ exports.rssMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + exports.titeAttributesMock.title + "</title>\n <atom:link href=\"" + exports.domainMock + exports.titeAttributesMock.link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + exports.domainMock + exports.titeAttributesMock.link + "</link>\n <description>" + exports.titeAttributesMock.description + "</description>\n <lastBuildDate>" + exports.lastBuildDateMock + "</lastBuildDate>\n <pubDate>" + exports.updatedDateTimeMock + "</pubDate>\n <language>" + exports.titeAttributesMock.language + "</language>\n <sy:updatePeriod>" + exports.titeAttributesMock.updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + exports.titeAttributesMock.updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + exports.domainMock + exports.titeAttributesMock.logoUrl + "</url>\n <title>" + exports.titeAttributesMock.title + "</title>\n <link>" + exports.domainMock + exports.titeAttributesMock.link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>It has survived not only five centuries</title>\n <link>https://demo.com/entertainment/32596/it-has-survived-not-only-five-centuries</link>\n <pubDate>Mon, 04 Apr 2022 08:50:29 GMT</pubDate>\n <dc:creator><![CDATA[Jim Morrison]]></dc:creator>\n <category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32596 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Image Credits</title>\n <link>https://demo.com/uncategorized/32594/testing-image-credits</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description]]></description>\n <guid isPermaLink=\"false\">Post 32594 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[Some test description 2]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Another Test Article</title>\n <link>https://demo.com/uncategorized/32591/another-test-article</link>\n <pubDate>Fri, 25 Mar 2022 22:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description 3]]></description>\n <guid isPermaLink=\"false\">Post 32591 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n";
79
83
  exports.articleListWithBodyMock = [
80
84
  {
81
85
  categories: [{ slug: 'tv-film' }, { slug: 'entertainment' }],
@@ -83,6 +87,7 @@ exports.articleListWithBodyMock = [
83
87
  summary: null,
84
88
  publisher: 'VIRGIN',
85
89
  publishedDateTime: '2022-03-25T23:59:00.000Z',
90
+ updatedDateTime: '2022-04-12T11:17:09.000Z',
86
91
  headline: 'test publish article after fix deployed',
87
92
  id: '32579',
88
93
  body: [
@@ -171,5 +176,5 @@ exports.articleListWithBodyMock = [
171
176
  ],
172
177
  },
173
178
  ];
174
- exports.rssWithBodyMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + exports.titeAttributesMock.title + "</title>\n <atom:link href=\"" + exports.domainMock + exports.titeAttributesMock.link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + exports.domainMock + exports.titeAttributesMock.link + "</link>\n <description>" + exports.titeAttributesMock.description + "</description>\n <lastBuildDate>" + exports.titeAttributesMock.lastBuildDate + "</lastBuildDate>\n <language>" + exports.titeAttributesMock.language + "</language>\n <sy:updatePeriod>" + exports.titeAttributesMock.updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + exports.titeAttributesMock.updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + exports.domainMock + exports.titeAttributesMock.logoUrl + "</url>\n <title>" + exports.titeAttributesMock.title + "</title>\n <link>" + exports.domainMock + exports.titeAttributesMock.link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>\n\n<p>Something was said <a href=\"htttps://somelink\">find ourt what here </a>and then something else</p>\n\n<figure><picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img alt='alt test' src='https://some/image/url' width='500' height='300' /><picture><figcaption>A caption</figcaption><figcredit>A credit</figcredit></figure>\n\n<picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img src='https://some/image/url' width='500' height='300' /><picture>]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n";
179
+ exports.rssWithBodyMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + exports.titeAttributesMock.title + "</title>\n <atom:link href=\"" + exports.domainMock + exports.titeAttributesMock.link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + exports.domainMock + exports.titeAttributesMock.link + "</link>\n <description>" + exports.titeAttributesMock.description + "</description>\n <lastBuildDate>" + exports.lastBuildDateMock + "</lastBuildDate>\n <pubDate>" + exports.updatedDateTimeMock + "</pubDate>\n <language>" + exports.titeAttributesMock.language + "</language>\n <sy:updatePeriod>" + exports.titeAttributesMock.updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + exports.titeAttributesMock.updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + exports.domainMock + exports.titeAttributesMock.logoUrl + "</url>\n <title>" + exports.titeAttributesMock.title + "</title>\n <link>" + exports.domainMock + exports.titeAttributesMock.link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>\n\n<p>Something was said <a href=\"htttps://somelink\">find ourt what here </a>and then something else</p>\n\n<figure><picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img alt='alt test' src='https://some/image/url' width='500' height='300' /><picture><figcaption>A caption</figcaption><figcredit>A credit</figcredit></figure>\n\n<picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img src='https://some/image/url' width='500' height='300' /><picture>]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n";
175
180
  //# sourceMappingURL=mocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mocks.js","sourceRoot":"","sources":["../../../../src/rss/__tests__/mocks.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,kBAAkB,CAAA;AAE/B,QAAA,kBAAkB,GAAmB;IAChD,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,gBAAgB;IAC7B,aAAa,EAAE,+BAA+B;IAC9C,QAAQ,EAAE,OAAO;IACjB,YAAY,EAAE,QAAQ;IACtB,eAAe,EAAE,CAAC;IAClB,OAAO,EAAE,iBAAiB;CAC3B,CAAA;AAEY,QAAA,yBAAyB,GAAmB;IACvD,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,gBAAgB;IAC7B,aAAa,EAAE,+BAA+B;IAC9C,OAAO,EAAE,iBAAiB;CAC3B,CAAA;AAEY,QAAA,eAAe,GAAG;IAC7B;QACE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;QACnC,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,QAAQ;QACnB,iBAAiB,EAA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,MAAM,EAAE,KAAK;wBACb,SAAS,EAAE,KAAK;wBAChB,IAAI,EAAE,yBAAyB;wBAC/B,IAAI,EAAE,MAAM;qBACb;iBACF;aACF;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,GAAG,EAAE,UAAU;gBACf,OAAO,EAAE,WAAW;gBACpB,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,KAAK;gBACZ,GAAG,EAAE,wBAAwB;aAC9B;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,GAAG,EAAE,IAAI;gBACT,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,KAAK;gBACZ,GAAG,EAAE,wBAAwB;aAC9B;SACF;KACF;CACF,CAAA;AAEY,QAAA,eAAe,GAAG,uiBAYlB,0BAAkB,CAAC,KAAK,wCACd,kBAAU,GAAG,0BAAkB,CAAC,IAAI,mEAC/C,kBAAU,GAAG,0BAAkB,CAAC,IAAI,kCAC7B,0BAAkB,CAAC,WAAW,2CAC5B,yBAAiB,uCACvB,2BAAmB,kCAClB,0BAAkB,CAAC,QAAQ,0CACpB,0BAAkB,CAAC,YAAY,oDAC5B,0BAAkB,CAAC,eAAe,oGAG7C,kBAAU,GAAG,0BAAkB,CAAC,OAAO,+BACrC,0BAAkB,CAAC,KAAK,gCACzB,kBAAU,GAAG,0BAAkB,CAAC,IAAI,w7EAuBnD,CAAA"}
@@ -1,2 +1,2 @@
1
1
  import { TiteAttributes, ArticleList } from '../types';
2
- export declare const createRSSFeed: (domain: string, { title, link, description, lastBuildDate, language, updatePeriod, updateFrequency, logoUrl, imageSourceSizes, }: TiteAttributes, articleList: ArticleList) => string;
2
+ export declare const createRSSFeed: (domain: string, { title, link, description, language, updatePeriod, updateFrequency, logoUrl, imageSourceSizes, }: TiteAttributes, articleList: ArticleList) => string;
@@ -2,9 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createRSSFeed = void 0;
4
4
  var createItems_1 = require("./createItems");
5
+ var helpers_1 = require("../helpers");
5
6
  var createRSSFeed = function (domain, _a, articleList) {
6
- var title = _a.title, link = _a.link, description = _a.description, lastBuildDate = _a.lastBuildDate, _b = _a.language, language = _b === void 0 ? 'en-US' : _b, _c = _a.updatePeriod, updatePeriod = _c === void 0 ? 'hourly' : _c, _d = _a.updateFrequency, updateFrequency = _d === void 0 ? 1 : _d, logoUrl = _a.logoUrl, imageSourceSizes = _a.imageSourceSizes;
7
- return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + title + "</title>\n <atom:link href=\"" + domain + link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + domain + link + "</link>\n <description>" + description + "</description>\n <lastBuildDate>" + lastBuildDate + "</lastBuildDate>\n <language>" + language + "</language>\n <sy:updatePeriod>" + updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + domain + logoUrl + "</url>\n <title>" + title + "</title>\n <link>" + domain + link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n " + (0, createItems_1.createRssItems)(articleList, domain, title, imageSourceSizes) + "\n</channel>\n</rss>\n";
7
+ var title = _a.title, link = _a.link, description = _a.description, _b = _a.language, language = _b === void 0 ? 'en-US' : _b, _c = _a.updatePeriod, updatePeriod = _c === void 0 ? 'hourly' : _c, _d = _a.updateFrequency, updateFrequency = _d === void 0 ? 1 : _d, logoUrl = _a.logoUrl, imageSourceSizes = _a.imageSourceSizes;
8
+ return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + title + "</title>\n <atom:link href=\"" + domain + link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + domain + link + "</link>\n <description>" + description + "</description>\n <lastBuildDate>" + (0, helpers_1.getLastBuildDate)() + "</lastBuildDate>\n <pubDate>" + (0, helpers_1.getLastUpdated)(articleList) + "</pubDate>\n <language>" + language + "</language>\n <sy:updatePeriod>" + updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + domain + logoUrl + "</url>\n <title>" + title + "</title>\n <link>" + domain + link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n " + (0, createItems_1.createRssItems)(articleList, domain, title, imageSourceSizes) + "\n</channel>\n</rss>\n";
8
9
  };
9
10
  exports.createRSSFeed = createRSSFeed;
10
11
  //# sourceMappingURL=createRSSFeed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createRSSFeed.js","sourceRoot":"","sources":["../../../../src/rss/contentEncodedUtils/createRSSFeed.ts"],"names":[],"mappings":";;;AACA,6CAA8C;AAEvC,IAAM,aAAa,GAAG,UAC3B,MAAc,EACd,EAUiB,EACjB,WAAwB;QAVtB,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,gBAAkB,EAAlB,QAAQ,mBAAG,OAAO,KAAA,EAClB,oBAAuB,EAAvB,YAAY,mBAAG,QAAQ,KAAA,EACvB,uBAAmB,EAAnB,eAAe,mBAAG,CAAC,KAAA,EACnB,OAAO,aAAA,EACP,gBAAgB,sBAAA;IAGP,OAAA,uiBAYA,KAAK,wCACK,MAAM,GAAG,IAAI,mEACxB,MAAM,GAAG,IAAI,kCACN,WAAW,2CACT,aAAa,wCAClB,QAAQ,0CACD,YAAY,oDACT,eAAe,oGAG1B,MAAM,GAAG,OAAO,+BACd,KAAK,gCACN,MAAM,GAAG,IAAI,2FAIvB,IAAA,4BAAc,EAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,2BAGjE;AA/BY,CA+BZ,CAAA;AA7CY,QAAA,aAAa,iBA6CzB"}
1
+ {"version":3,"file":"createRSSFeed.js","sourceRoot":"","sources":["../../../../src/rss/contentEncodedUtils/createRSSFeed.ts"],"names":[],"mappings":";;;AACA,6CAA8C;AAC9C,sCAA6D;AAEtD,IAAM,aAAa,GAAG,UAC3B,MAAc,EACd,EASiB,EACjB,WAAwB;QATtB,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,WAAW,iBAAA,EACX,gBAAkB,EAAlB,QAAQ,mBAAG,OAAO,KAAA,EAClB,oBAAuB,EAAvB,YAAY,mBAAG,QAAQ,KAAA,EACvB,uBAAmB,EAAnB,eAAe,mBAAG,CAAC,KAAA,EACnB,OAAO,aAAA,EACP,gBAAgB,sBAAA;IAGP,OAAA,uiBAYA,KAAK,wCACK,MAAM,GAAG,IAAI,mEACxB,MAAM,GAAG,IAAI,kCACN,WAAW,2CACT,IAAA,0BAAgB,GAAE,uCACxB,IAAA,wBAAc,EAAC,WAAW,CAAC,kCAC1B,QAAQ,0CACD,YAAY,oDACT,eAAe,oGAG1B,MAAM,GAAG,OAAO,+BACd,KAAK,gCACN,MAAM,GAAG,IAAI,2FAIvB,IAAA,4BAAc,EAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,2BAGjE;AAhCY,CAgCZ,CAAA;AA7CY,QAAA,aAAa,iBA6CzB"}
@@ -3,3 +3,5 @@ export declare const createArticleLink: (id: string | number, headline: string,
3
3
  slug: string;
4
4
  }[]) => string;
5
5
  export declare const getFromDate: (num: number) => string;
6
+ export declare const getLastUpdated: (articleList: any) => string;
7
+ export declare const getLastBuildDate: () => string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFromDate = exports.createArticleLink = exports.buildArticleCategories = void 0;
3
+ exports.getLastBuildDate = exports.getLastUpdated = exports.getFromDate = exports.createArticleLink = exports.buildArticleCategories = void 0;
4
4
  var generateArticleSlug = function (title) {
5
5
  return title
6
6
  .replace(/[^a-zA-Z0-9 ]/g, '')
@@ -40,4 +40,13 @@ var getFromDate = function (num) {
40
40
  return year + "-" + month + "-" + day;
41
41
  };
42
42
  exports.getFromDate = getFromDate;
43
+ var getLastUpdated = function (articleList) {
44
+ return new Date(Math.max.apply(Math, articleList.map(function (_a) {
45
+ var updatedDateTime = _a.updatedDateTime;
46
+ return new Date(updatedDateTime);
47
+ }))).toUTCString();
48
+ };
49
+ exports.getLastUpdated = getLastUpdated;
50
+ var getLastBuildDate = function () { return new Date().toUTCString(); };
51
+ exports.getLastBuildDate = getLastBuildDate;
43
52
  //# sourceMappingURL=articleHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"articleHelper.js","sourceRoot":"","sources":["../../../../src/rss/helpers/articleHelper.ts"],"names":[],"mappings":";;;AAAA,IAAM,mBAAmB,GAAG,UAAC,KAAa;IACxC,OAAA,KAAK;SACF,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;SAC7B,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;SACtB,WAAW,EAAE;SACb,OAAO,C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) || function (cook
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.GET_ARTICLE_LIST = void 0;
8
8
  var client_1 = require("@apollo/client");
9
- exports.GET_ARTICLE_LIST = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"], ["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"])));
9
+ exports.GET_ARTICLE_LIST = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n updatedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"], ["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n updatedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"])));
10
10
  var templateObject_1;
11
11
  //# sourceMappingURL=getArticleList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getArticleList.js","sourceRoot":"","sources":["../../../../src/rss/queries/getArticleList.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,gBAAgB,OAAG,YAAG,gwCAAA,4rCAiElC,KAAA"}
1
+ {"version":3,"file":"getArticleList.js","sourceRoot":"","sources":["../../../../src/rss/queries/getArticleList.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,gBAAgB,OAAG,YAAG,yxCAAA,qtCAkElC,KAAA"}
@@ -5,7 +5,6 @@ export declare type TiteAttributes = {
5
5
  title: string;
6
6
  link: string;
7
7
  description: string;
8
- lastBuildDate: string;
9
8
  language?: string;
10
9
  updatePeriod?: UpdatePeriod;
11
10
  updateFrequency?: number;
@@ -62,6 +61,7 @@ export declare type Article = {
62
61
  }[];
63
62
  summary?: Summary;
64
63
  publishedDateTime: string;
64
+ updatedDateTime: string;
65
65
  body: Body[];
66
66
  };
67
67
  export declare type ArticleList = Article[];
@@ -1,5 +1,7 @@
1
1
  import { TiteAttributes } from '../types';
2
2
  export declare const domainMock = "https://demo.com";
3
+ export declare const lastBuildDateMock: string;
4
+ export declare const updatedDateTimeMock = "Tue, 12 Apr 2022 11:17:09 GMT";
3
5
  export declare const titeAttributesMock: TiteAttributes;
4
6
  export declare const titeAttributesdefaultMock: TiteAttributes;
5
7
  export declare const articleListMock: ({
@@ -12,6 +14,7 @@ export declare const articleListMock: ({
12
14
  summary: null;
13
15
  publisher: string;
14
16
  publishedDateTime: string;
17
+ updatedDateTime: string;
15
18
  headline: string;
16
19
  id: string;
17
20
  } | {
@@ -28,6 +31,7 @@ export declare const articleListMock: ({
28
31
  };
29
32
  publisher: string;
30
33
  publishedDateTime: string;
34
+ updatedDateTime: string;
31
35
  headline: string;
32
36
  id: string;
33
37
  } | {
@@ -42,6 +46,7 @@ export declare const articleListMock: ({
42
46
  };
43
47
  publisher: string;
44
48
  publishedDateTime: string;
49
+ updatedDateTime: string;
45
50
  headline: string;
46
51
  id: string;
47
52
  })[];
@@ -56,6 +61,7 @@ export declare const articleListWithBodyMock: {
56
61
  summary: null;
57
62
  publisher: string;
58
63
  publishedDateTime: string;
64
+ updatedDateTime: string;
59
65
  headline: string;
60
66
  id: string;
61
67
  body: ({
@@ -1,9 +1,10 @@
1
1
  export var domainMock = 'https://demo.com';
2
+ export var lastBuildDateMock = new Date().toUTCString();
3
+ export var updatedDateTimeMock = 'Tue, 12 Apr 2022 11:17:09 GMT';
2
4
  export var titeAttributesMock = {
3
5
  title: 'Demo Site',
4
6
  link: '/feed',
5
7
  description: 'demo test feed',
6
- lastBuildDate: 'Fri, 01 Apr 2022 13:00:30 GMT',
7
8
  language: 'en-US',
8
9
  updatePeriod: 'hourly',
9
10
  updateFrequency: 1,
@@ -13,7 +14,6 @@ export var titeAttributesdefaultMock = {
13
14
  title: 'Demo Site',
14
15
  link: '/feed',
15
16
  description: 'demo test feed',
16
- lastBuildDate: 'Fri, 01 Apr 2022 13:00:30 GMT',
17
17
  logoUrl: '/demo-icon;w=32',
18
18
  };
19
19
  export var articleListMock = [
@@ -23,6 +23,7 @@ export var articleListMock = [
23
23
  summary: null,
24
24
  publisher: 'VIRGIN',
25
25
  publishedDateTime: '2022-04-04T08:50:29.000Z',
26
+ updatedDateTime: '2022-04-12T11:17:09.000Z',
26
27
  headline: 'It has survived not only five centuries',
27
28
  id: '32596',
28
29
  },
@@ -37,6 +38,7 @@ export var articleListMock = [
37
38
  ],
38
39
  },
39
40
  publisher: 'VIRGIN',
41
+ updatedDateTime: '2022-01-12T01:17:09.000Z',
40
42
  publishedDateTime: '2022-04-04T08:31:44.000Z',
41
43
  headline: 'Testing Image Credits',
42
44
  id: '32594',
@@ -53,6 +55,7 @@ export var articleListMock = [
53
55
  },
54
56
  publisher: 'VIRGIN',
55
57
  publishedDateTime: '2022-03-25T23:59:00.000Z',
58
+ updatedDateTime: '2022-03-30T10:25:09.000Z',
56
59
  headline: 'test publish article after fix deployed',
57
60
  id: '32579',
58
61
  },
@@ -68,11 +71,12 @@ export var articleListMock = [
68
71
  },
69
72
  publisher: 'VIRGIN',
70
73
  publishedDateTime: '2022-03-25T22:59:00.000Z',
74
+ updatedDateTime: '2022-03-28T12:15:09.000Z',
71
75
  headline: 'Another Test Article',
72
76
  id: '32591',
73
77
  },
74
78
  ];
75
- export var rssMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + titeAttributesMock.title + "</title>\n <atom:link href=\"" + domainMock + titeAttributesMock.link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + domainMock + titeAttributesMock.link + "</link>\n <description>" + titeAttributesMock.description + "</description>\n <lastBuildDate>" + titeAttributesMock.lastBuildDate + "</lastBuildDate>\n <language>" + titeAttributesMock.language + "</language>\n <sy:updatePeriod>" + titeAttributesMock.updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + titeAttributesMock.updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + domainMock + titeAttributesMock.logoUrl + "</url>\n <title>" + titeAttributesMock.title + "</title>\n <link>" + domainMock + titeAttributesMock.link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>It has survived not only five centuries</title>\n <link>https://demo.com/entertainment/32596/it-has-survived-not-only-five-centuries</link>\n <pubDate>Mon, 04 Apr 2022 08:50:29 GMT</pubDate>\n <dc:creator><![CDATA[Jim Morrison]]></dc:creator>\n <category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32596 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Image Credits</title>\n <link>https://demo.com/uncategorized/32594/testing-image-credits</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description]]></description>\n <guid isPermaLink=\"false\">Post 32594 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[Some test description 2]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Another Test Article</title>\n <link>https://demo.com/uncategorized/32591/another-test-article</link>\n <pubDate>Fri, 25 Mar 2022 22:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description 3]]></description>\n <guid isPermaLink=\"false\">Post 32591 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n";
79
+ export var rssMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + titeAttributesMock.title + "</title>\n <atom:link href=\"" + domainMock + titeAttributesMock.link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + domainMock + titeAttributesMock.link + "</link>\n <description>" + titeAttributesMock.description + "</description>\n <lastBuildDate>" + lastBuildDateMock + "</lastBuildDate>\n <pubDate>" + updatedDateTimeMock + "</pubDate>\n <language>" + titeAttributesMock.language + "</language>\n <sy:updatePeriod>" + titeAttributesMock.updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + titeAttributesMock.updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + domainMock + titeAttributesMock.logoUrl + "</url>\n <title>" + titeAttributesMock.title + "</title>\n <link>" + domainMock + titeAttributesMock.link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>It has survived not only five centuries</title>\n <link>https://demo.com/entertainment/32596/it-has-survived-not-only-five-centuries</link>\n <pubDate>Mon, 04 Apr 2022 08:50:29 GMT</pubDate>\n <dc:creator><![CDATA[Jim Morrison]]></dc:creator>\n <category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32596 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Image Credits</title>\n <link>https://demo.com/uncategorized/32594/testing-image-credits</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description]]></description>\n <guid isPermaLink=\"false\">Post 32594 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[Some test description 2]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Another Test Article</title>\n <link>https://demo.com/uncategorized/32591/another-test-article</link>\n <pubDate>Fri, 25 Mar 2022 22:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description 3]]></description>\n <guid isPermaLink=\"false\">Post 32591 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n";
76
80
  export var articleListWithBodyMock = [
77
81
  {
78
82
  categories: [{ slug: 'tv-film' }, { slug: 'entertainment' }],
@@ -80,6 +84,7 @@ export var articleListWithBodyMock = [
80
84
  summary: null,
81
85
  publisher: 'VIRGIN',
82
86
  publishedDateTime: '2022-03-25T23:59:00.000Z',
87
+ updatedDateTime: '2022-04-12T11:17:09.000Z',
83
88
  headline: 'test publish article after fix deployed',
84
89
  id: '32579',
85
90
  body: [
@@ -168,5 +173,5 @@ export var articleListWithBodyMock = [
168
173
  ],
169
174
  },
170
175
  ];
171
- export var rssWithBodyMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + titeAttributesMock.title + "</title>\n <atom:link href=\"" + domainMock + titeAttributesMock.link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + domainMock + titeAttributesMock.link + "</link>\n <description>" + titeAttributesMock.description + "</description>\n <lastBuildDate>" + titeAttributesMock.lastBuildDate + "</lastBuildDate>\n <language>" + titeAttributesMock.language + "</language>\n <sy:updatePeriod>" + titeAttributesMock.updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + titeAttributesMock.updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + domainMock + titeAttributesMock.logoUrl + "</url>\n <title>" + titeAttributesMock.title + "</title>\n <link>" + domainMock + titeAttributesMock.link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>\n\n<p>Something was said <a href=\"htttps://somelink\">find ourt what here </a>and then something else</p>\n\n<figure><picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img alt='alt test' src='https://some/image/url' width='500' height='300' /><picture><figcaption>A caption</figcaption><figcredit>A credit</figcredit></figure>\n\n<picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img src='https://some/image/url' width='500' height='300' /><picture>]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n";
176
+ export var rssWithBodyMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + titeAttributesMock.title + "</title>\n <atom:link href=\"" + domainMock + titeAttributesMock.link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + domainMock + titeAttributesMock.link + "</link>\n <description>" + titeAttributesMock.description + "</description>\n <lastBuildDate>" + lastBuildDateMock + "</lastBuildDate>\n <pubDate>" + updatedDateTimeMock + "</pubDate>\n <language>" + titeAttributesMock.language + "</language>\n <sy:updatePeriod>" + titeAttributesMock.updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + titeAttributesMock.updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + domainMock + titeAttributesMock.logoUrl + "</url>\n <title>" + titeAttributesMock.title + "</title>\n <link>" + domainMock + titeAttributesMock.link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>\n\n<p>Something was said <a href=\"htttps://somelink\">find ourt what here </a>and then something else</p>\n\n<figure><picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img alt='alt test' src='https://some/image/url' width='500' height='300' /><picture><figcaption>A caption</figcaption><figcredit>A credit</figcredit></figure>\n\n<picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&amp;strip=all&amp;crop=1\"><img src='https://some/image/url' width='500' height='300' /><picture>]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n";
172
177
  //# sourceMappingURL=mocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mocks.js","sourceRoot":"","sources":["../../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AAI;gBACb,MAAM,EAAE,IAAI;gBACZ,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,KAAK;gBACZ,GAAG,EAAE,wBAAwB;aAC9B;SACF;KACF;CACF,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,uiBAYlB,kBAAkB,CAAC,KAAK,wCACd,UAAU,GAAG,kBAAkB,CAAC,IAAI,mEAC/C,UAAU,GAAG,kBAAkB,CAAC,IAAI,kCAC7B,kBAAkB,CAAC,WAAW,2CAC5B,iBAAiB,uCACvB,mBAAmB,kCAClB,kBAAkB,CAAC,QAAQ,0CACpB,kBAAkB,CAAC,YAAY,oDAC5B,kBAAkB,CAAC,eAAe,oGAG7C,UAAU,GAAG,kBAAkB,CAAC,OAAO,+BACrC,kBAAkB,CAAC,KAAK,gCACzB,UAAU,GAAG,kBAAkB,CAAC,IAAI,w7EAuBnD,CAAA"}
@@ -1,2 +1,2 @@
1
1
  import { TiteAttributes, ArticleList } from '../types';
2
- export declare const createRSSFeed: (domain: string, { title, link, description, lastBuildDate, language, updatePeriod, updateFrequency, logoUrl, imageSourceSizes, }: TiteAttributes, articleList: ArticleList) => string;
2
+ export declare const createRSSFeed: (domain: string, { title, link, description, language, updatePeriod, updateFrequency, logoUrl, imageSourceSizes, }: TiteAttributes, articleList: ArticleList) => string;
@@ -1,6 +1,7 @@
1
1
  import { createRssItems } from './createItems';
2
+ import { getLastUpdated, getLastBuildDate } from '../helpers';
2
3
  export var createRSSFeed = function (domain, _a, articleList) {
3
- var title = _a.title, link = _a.link, description = _a.description, lastBuildDate = _a.lastBuildDate, _b = _a.language, language = _b === void 0 ? 'en-US' : _b, _c = _a.updatePeriod, updatePeriod = _c === void 0 ? 'hourly' : _c, _d = _a.updateFrequency, updateFrequency = _d === void 0 ? 1 : _d, logoUrl = _a.logoUrl, imageSourceSizes = _a.imageSourceSizes;
4
- return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + title + "</title>\n <atom:link href=\"" + domain + link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + domain + link + "</link>\n <description>" + description + "</description>\n <lastBuildDate>" + lastBuildDate + "</lastBuildDate>\n <language>" + language + "</language>\n <sy:updatePeriod>" + updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + domain + logoUrl + "</url>\n <title>" + title + "</title>\n <link>" + domain + link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n " + createRssItems(articleList, domain, title, imageSourceSizes) + "\n</channel>\n</rss>\n";
4
+ var title = _a.title, link = _a.link, description = _a.description, _b = _a.language, language = _b === void 0 ? 'en-US' : _b, _c = _a.updatePeriod, updatePeriod = _c === void 0 ? 'hourly' : _c, _d = _a.updateFrequency, updateFrequency = _d === void 0 ? 1 : _d, logoUrl = _a.logoUrl, imageSourceSizes = _a.imageSourceSizes;
5
+ return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>" + title + "</title>\n <atom:link href=\"" + domain + link + "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>" + domain + link + "</link>\n <description>" + description + "</description>\n <lastBuildDate>" + getLastBuildDate() + "</lastBuildDate>\n <pubDate>" + getLastUpdated(articleList) + "</pubDate>\n <language>" + language + "</language>\n <sy:updatePeriod>" + updatePeriod + "</sy:updatePeriod>\n <sy:updateFrequency>" + updateFrequency + "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>" + domain + logoUrl + "</url>\n <title>" + title + "</title>\n <link>" + domain + link + "</link>\n <width>32</width>\n <height>32</height>\n </image>\n " + createRssItems(articleList, domain, title, imageSourceSizes) + "\n</channel>\n</rss>\n";
5
6
  };
6
7
  //# sourceMappingURL=createRSSFeed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createRSSFeed.js","sourceRoot":"","sources":["../../../../src/rss/contentEncodedUtils/createRSSFeed.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,CAAC,IAAM,aAAa,GAAG,UAC3B,MAAc,EACd,EAUiB,EACjB,WAAwB;QAVtB,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,gBAAkB,EAAlB,QAAQ,mBAAG,OAAO,KAAA,EAClB,oBAAuB,EAAvB,YAAY,mBAAG,QAAQ,KAAA,EACvB,uBAAmB,EAAnB,eAAe,mBAAG,CAAC,KAAA,EACnB,OAAO,aAAA,EACP,gBAAgB,sBAAA;IAGP,OAAA,uiBAYA,KAAK,wCACK,MAAM,GAAG,IAAI,mEACxB,MAAM,GAAG,IAAI,kCACN,WAAW,2CACT,aAAa,wCAClB,QAAQ,0CACD,YAAY,oDACT,eAAe,oGAG1B,MAAM,GAAG,OAAO,+BACd,KAAK,gCACN,MAAM,GAAG,IAAI,2FAIvB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,2BAGjE;AA/BY,CA+BZ,CAAA"}
1
+ {"version":3,"file":"createRSSFeed.js","sourceRoot":"","sources":["../../../../src/rss/contentEncodedUtils/createRSSFeed.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7D,MAAM,CAAC,IAAM,aAAa,GAAG,UAC3B,MAAc,EACd,EASiB,EACjB,WAAwB;QATtB,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,WAAW,iBAAA,EACX,gBAAkB,EAAlB,QAAQ,mBAAG,OAAO,KAAA,EAClB,oBAAuB,EAAvB,YAAY,mBAAG,QAAQ,KAAA,EACvB,uBAAmB,EAAnB,eAAe,mBAAG,CAAC,KAAA,EACnB,OAAO,aAAA,EACP,gBAAgB,sBAAA;IAGP,OAAA,uiBAYA,KAAK,wCACK,MAAM,GAAG,IAAI,mEACxB,MAAM,GAAG,IAAI,kCACN,WAAW,2CACT,gBAAgB,EAAE,uCACxB,cAAc,CAAC,WAAW,CAAC,kCAC1B,QAAQ,0CACD,YAAY,oDACT,eAAe,oGAG1B,MAAM,GAAG,OAAO,+BACd,KAAK,gCACN,MAAM,GAAG,IAAI,2FAIvB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,2BAGjE;AAhCY,CAgCZ,CAAA"}
@@ -3,3 +3,5 @@ export declare const createArticleLink: (id: string | number, headline: string,
3
3
  slug: string;
4
4
  }[]) => string;
5
5
  export declare const getFromDate: (num: number) => string;
6
+ export declare const getLastUpdated: (articleList: any) => string;
7
+ export declare const getLastBuildDate: () => string;
@@ -34,4 +34,11 @@ export var getFromDate = function (num) {
34
34
  var day = ("0" + date.getDate()).slice(-2);
35
35
  return year + "-" + month + "-" + day;
36
36
  };
37
+ export var getLastUpdated = function (articleList) {
38
+ return new Date(Math.max.apply(Math, articleList.map(function (_a) {
39
+ var updatedDateTime = _a.updatedDateTime;
40
+ return new Date(updatedDateTime);
41
+ }))).toUTCString();
42
+ };
43
+ export var getLastBuildDate = function () { return new Date().toUTCString(); };
37
44
  //# sourceMappingURL=articleHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"articleHelper.js","sourceRoot":"","sources":["../../../../src/rss/helpers/articleHelper.ts"],"names":[],"mappings":"AAAA,IAAM,mBAAmB,GAAG,UAAC,KAAa;IACxC,OAAA,KAAK;SACF,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;SAC7B,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;SACtB,WAAW,EAAE;SACb,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;SAClB,IAAI,EAAE;AALT,CAKS,CAAA;AAEX,IAAM,eAAe,GAAG,UAAC,UAA8B;IACrD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;QACvD,OAAO,eAAe,CAAA;IACxB,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,eAAe,CAAA;AAC9C,CAAC,CAAA;AAED,MAAM,CAAC,IAAM,sBAAsB,GAAG,UAAC,UAAiB;IACtD,OAAA,UAAU,CAAC,MAAM,KAAK,CAAC;QACrB,CAAC,CAAC,UAAU;aACP,GAAG,CAAC,UAAC,EAAQ;gBAAN,IAAI,UAAA;YACV,OAAO,IAAI;gBACT,CAAC,CAAC,wBAAsB,IAAI,mBAAgB;gBAC5C,CAAC,CAAC,gDAAgD,CAAA;QACtD,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,CAAC;QACb,CAAC,CAAC,gDAAgD;AARpD,CAQoD,CAAA;AAEtD,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAC/B,EAAmB,EACnB,QAAgB,EAChB,UAA8B;IAE9B,IAAM,QAAQ,GAAG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G,OAAR,IAAI,EACC,WAAW,CAAC,GAAG,CAChB,UAAC,EAA4B;YAA1B,eAAe,qBAAA;QAAgB,OAAA,IAAI,IAAI,CAAC,eAAe,CAAC;IAAzB,CAAyB,CAC5D,EAEJ,CAAC,WAAW,EAAE;AANf,CAMe,CAAA;AAEjB,MAAM,CAAC,IAAM,gBAAgB,GAAG,cAAM,OAAA,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAxB,CAAwB,CAAA"}
@@ -3,6 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import { gql } from '@apollo/client';
6
- export var GET_ARTICLE_LIST = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"], ["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"])));
6
+ export var GET_ARTICLE_LIST = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n updatedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"], ["\n query getArticleList(\n $publisher: Publisher!\n $from: Date\n $to: Date\n $cursor: String\n ) {\n articleList(\n publisher: $publisher\n from: $from\n to: $to\n cursor: $cursor\n limit: 20\n ) {\n pageCursors {\n next\n }\n data {\n categories {\n slug\n }\n bylines {\n ... on AuthorByline {\n name\n }\n }\n publisher\n publishedDateTime\n updatedDateTime\n headline\n id\n body {\n ... on ImageBlock {\n alt\n caption\n credit\n height\n width\n type\n url\n }\n ... on ParagraphBlock {\n children {\n ... on TextBlock {\n bold\n italic\n monospace\n text\n type\n underline\n }\n ... on HyperlinkBlock {\n text\n type\n url\n }\n }\n type\n }\n }\n }\n meta {\n countTotal\n }\n }\n }\n"])));
7
7
  var templateObject_1;
8
8
  //# sourceMappingURL=getArticleList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getArticleList.js","sourceRoot":"","sources":["../../../../src/rss/queries/getArticleList.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,gBAAgB,GAAG,GAAG,+vCAAA,4rCAiElC,IAAA,CAAA"}
1
+ {"version":3,"file":"getArticleList.js","sourceRoot":"","sources":["../../../../src/rss/queries/getArticleList.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,gBAAgB,GAAG,GAAG,wxCAAA,qtCAkElC,IAAA,CAAA"}
@@ -5,7 +5,6 @@ export declare type TiteAttributes = {
5
5
  title: string;
6
6
  link: string;
7
7
  description: string;
8
- lastBuildDate: string;
9
8
  language?: string;
10
9
  updatePeriod?: UpdatePeriod;
11
10
  updateFrequency?: number;
@@ -62,6 +61,7 @@ export declare type Article = {
62
61
  }[];
63
62
  summary?: Summary;
64
63
  publishedDateTime: string;
64
+ updatedDateTime: string;
65
65
  body: Body[];
66
66
  };
67
67
  export declare type ArticleList = Article[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/feed",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Newskit Render - Feed package",
5
5
  "author": "",
6
6
  "module": "dist/esm/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@apollo/client": "3.3.7",
27
- "@newskit-render/api": "^0.24.0",
27
+ "@newskit-render/api": "^0.25.0",
28
28
  "cross-fetch": "3.1.4",
29
29
  "graphql": "15.6.0",
30
30
  "lodash.escape": "4.0.1",