Versions

  • v83

    9/21/2023
    Open: Version
    Changes from v82 to v83
    +0
    -0
    ⦚ 25 unchanged lines ⦚
    ⦚ 25 unchanged lines ⦚
  • v82

    9/21/2023
    Open: Version
    Changes from v81 to v82
    +0
    -0
    ⦚ 25 unchanged lines ⦚
    ⦚ 25 unchanged lines ⦚
  • v81

    9/21/2023
    Open: Version
    Changes from v80 to v81
    +0
    -0
    ⦚ 25 unchanged lines ⦚
    ⦚ 25 unchanged lines ⦚
  • v80

    9/21/2023
    Open: Version
    Changes from v79 to v80
    +0
    -0
    ⦚ 25 unchanged lines ⦚
    ⦚ 25 unchanged lines ⦚
  • v79

    9/20/2023
    Open: Version
    Changes from v78 to v79
    +1
    -0
    ⦚ 18 unchanged lines ⦚
    const extendedFeeds = @me.extendFeeds(allNewItems);
    const html = @me.renderFeedsForEmail(extendedFeeds);
    console.email({ subject: "Your Daily RSS Digest", html });
    @me.lastRunAt = Date.now();
    }
    }
    ⦚ 18 unchanged lines ⦚
    const extendedFeeds = @me.extendFeeds(allNewItems);
    const html = @me.renderFeedsForEmail(extendedFeeds);
    console.email(extendedFeeds);
    console.email({ subject: "Your Daily RSS Digest", html });
    @me.lastRunAt = Date.now();
    }
    }
  • v78

    9/20/2023
    Open: Version
    Changes from v77 to v78
    +2
    -1
    export async function pollRSSFeeds() {
    let allNewItems = [];
    await Promise.all(@me.rssFeeds.map(async ({ name, url }) => {
    try {
    let items = await @me.newRSSItems({
    url,
    lastRunAt: @me.lastRunAt,
    });
    ⦚ 15 unchanged lines ⦚
    export async function pollRSSFeeds() {
    let allNewItems = [];
    await Promise.all(@me.rssFeeds.map(async ({ name, url, type }) => {
    try {
    let items = await @me.newRSSItems({
    url,
    type,
    lastRunAt: @me.lastRunAt,
    });
    ⦚ 15 unchanged lines ⦚
  • v77

    9/12/2023
    Open: Version
    Changes from v76 to v77
    +20
    -21
    export async function pollRSSFeeds() {
    console.email("test from pollRSS");
    let allNewItems = [];
    // await Promise.all(@me.rssFeeds.map(async ({ name, url }) => {
    // try {
    // let items = await @me.newRSSItems({
    // url,
    // lastRunAt: @me.lastRunAt,
    // });
    // if (items.length) {
    // allNewItems = [...allNewItems, ...items];
    // }
    // }
    // catch (error) {
    // console.error(`Failed to fetch items for ${name}: ${error.message}`);
    // }
    // }));
    // if (allNewItems.length) {
    // const extendedFeeds = @me.extendFeeds(allNewItems);
    // const html = @me.renderFeedsForEmail(extendedFeeds);
    // console.email({ subject: "Your Daily RSS Digest", html });
    // @me.lastRunAt = Date.now();
    // }
    }
    export async function pollRSSFeeds() {
    let allNewItems = [];
    await Promise.all(@me.rssFeeds.map(async ({ name, url }) => {
    try {
    let items = await @me.newRSSItems({
    url,
    lastRunAt: @me.lastRunAt,
    });
    if (items.length) {
    allNewItems = [...allNewItems, ...items];
    }
    }
    catch (error) {
    console.error(`Failed to fetch items for ${name}: ${error.message}`);
    }
    }));
    if (allNewItems.length) {
    const extendedFeeds = @me.extendFeeds(allNewItems);
    const html = @me.renderFeedsForEmail(extendedFeeds);
    console.email({ subject: "Your Daily RSS Digest", html });
    @me.lastRunAt = Date.now();
    }
    }
  • v76

    9/12/2023
    Open: Version
    Changes from v75 to v76
    +21
    -20
    export async function pollRSSFeeds() {
    let allNewItems = [];
    await Promise.all(@me.rssFeeds.map(async ({ name, url }) => {
    try {
    let items = await @me.newRSSItems({
    url,
    lastRunAt: @me.lastRunAt,
    });
    if (items.length) {
    allNewItems = [...allNewItems, ...items];
    }
    }
    catch (error) {
    console.error(`Failed to fetch items for ${name}: ${error.message}`);
    }
    }));
    if (allNewItems.length) {
    const extendedFeeds = @me.extendFeeds(allNewItems);
    const html = @me.renderFeedsForEmail(extendedFeeds);
    console.email({ subject: "Your Daily RSS Digest", html });
    @me.lastRunAt = Date.now();
    }
    }
    export async function pollRSSFeeds() {
    console.email("test from pollRSS");
    let allNewItems = [];
    // await Promise.all(@me.rssFeeds.map(async ({ name, url }) => {
    // try {
    // let items = await @me.newRSSItems({
    // url,
    // lastRunAt: @me.lastRunAt,
    // });
    // if (items.length) {
    // allNewItems = [...allNewItems, ...items];
    // }
    // }
    // catch (error) {
    // console.error(`Failed to fetch items for ${name}: ${error.message}`);
    // }
    // }));
    // if (allNewItems.length) {
    // const extendedFeeds = @me.extendFeeds(allNewItems);
    // const html = @me.renderFeedsForEmail(extendedFeeds);
    // console.email({ subject: "Your Daily RSS Digest", html });
    // @me.lastRunAt = Date.now();
    // }
    }
  • v75

    9/12/2023
    Open: Version
    +23
    -0

    export async function pollRSSFeeds() {
    let allNewItems = [];
    await Promise.all(@me.rssFeeds.map(async ({ name, url }) => {
    try {
    let items = await @me.newRSSItems({
    url,
    lastRunAt: @me.lastRunAt,
    });
    if (items.length) {
    allNewItems = [...allNewItems, ...items];
    }
    }
    catch (error) {
    console.error(`Failed to fetch items for ${name}: ${error.message}`);
    }
    }));
    if (allNewItems.length) {
    const extendedFeeds = @me.extendFeeds(allNewItems);
    const html = @me.renderFeedsForEmail(extendedFeeds);
    console.email({ subject: "Your Daily RSS Digest", html });
    @me.lastRunAt = Date.now();
    }
    }
Updated: October 23, 2023