Versions

  • v4

    10/23/2023
    Open: Version
    Changes from v3 to v4
    +3
    -1
    let getSeattleSubwayInstagramPosts = async (
    request: Request,
    ): Promise<Response> => {
    ⦚ 16 unchanged lines ⦚
    import { fetch } from "https://esm.town/v/std/fetch";

    export let getSeattleSubwayInstagramPosts = async (
    request: Request,
    ): Promise<Response> => {
    ⦚ 16 unchanged lines ⦚
  • v3

    8/31/2023
    Open: Version
    Changes from v2 to v3
    +1
    -1
    ⦚ 14 unchanged lines ⦚
    timestamp,
    }))
    .sort((a, b) => b.created_at.localeCompare(a.timestamp)),
    );
    };
    ⦚ 14 unchanged lines ⦚
    timestamp,
    }))
    .sort((a, b) => b.timestamp.localeCompare(a.timestamp)),
    );
    };
  • v2

    8/31/2023
    Open: Version
    Changes from v1 to v2
    +9
    -7
    ⦚ 6 unchanged lines ⦚
    let jsonData = await data.json();
    return Response.json(
    jsonData.map(({ caption, url, displayUrl, ownerFullName, timestamp }) => ({
    caption,
    url,
    displayUrl,
    ownerFullName,
    timestamp,
    })),
    );
    };
    ⦚ 6 unchanged lines ⦚
    let jsonData = await data.json();
    return Response.json(
    jsonData
    .map(({ caption, url, displayUrl, ownerFullName, timestamp }) => ({
    caption,
    url,
    displayUrl,
    ownerFullName,
    timestamp,
    }))
    .sort((a, b) => b.created_at.localeCompare(a.timestamp)),
    );
    };
  • v1

    8/30/2023
    Open: Version
    Changes from v0 to v1
    +9
    -1
    ⦚ 5 unchanged lines ⦚
    );
    let jsonData = await data.json();
    return Response.json(jsonData);
    };
    ⦚ 5 unchanged lines ⦚
    );
    let jsonData = await data.json();
    return Response.json(
    jsonData.map(({ caption, url, displayUrl, ownerFullName, timestamp }) => ({
    caption,
    url,
    displayUrl,
    ownerFullName,
    timestamp,
    })),
    );
    };
  • v0

    8/30/2023
    Open: Version
    +9
    -0

    let getSeattleSubwayInstagramPosts = async (
    request: Request,
    ): Promise<Response> => {
    let data = await fetch(
    `https://api.apify.com/v2/acts/apify~instagram-post-scraper/runs/last/dataset/items?token=apify_api_wi6mnWH8aJ5yiwv3ePmYV7BI31yTE13ameye`,
    );
    let jsonData = await data.json();
    return Response.json(jsonData);
    };
1
Next