Versions

  • v4

    6/27/2024
    Open: Version
    Changes from v3 to v4
    +2
    -1
    import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";

    export function createValVersion({ token, valId, code }: {
    ⦚ 34 unchanged lines ⦚
    // my inserted comment
    import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";

    export function createValVersion({ token, valId, code }: {
    ⦚ 34 unchanged lines ⦚
  • v3

    10/23/2023
    Open: Version
    Changes from v0 to v3
    +4
    -2
    function createValVersion({ token, valId, code }: {
    token: string;
    valId: string;
    ⦚ 19 unchanged lines ⦚
    referenceCount: number;
    }> {
    return @stevekrouse.fetchJSON(
    `https://api.val.town/v1/vals/${valId}/versions`,
    {
    ⦚ 8 unchanged lines ⦚
    import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";

    export function createValVersion({ token, valId, code }: {
    token: string;
    valId: string;
    ⦚ 19 unchanged lines ⦚
    referenceCount: number;
    }> {
    return fetchJSON(
    `https://api.val.town/v1/vals/${valId}/versions`,
    {
    ⦚ 8 unchanged lines ⦚
  • v0

    8/25/2023
    Open: Version
    +35
    -0

    function createValVersion({ token, valId, code }: {
    token: string;
    valId: string;
    code: string;
    }): Promise<{
    id: string;
    author: {
    id: string;
    username: string;
    };
    name: string;
    code: string;
    public: boolean;
    privacy: "public" | "private";
    version: number;
    runEndAt: string;
    runStartAt: string;
    logs: any[];
    output: object;
    error: object | null;
    readme: string | null;
    likeCount: number;
    referenceCount: number;
    }> {
    return @stevekrouse.fetchJSON(
    `https://api.val.town/v1/vals/${valId}/versions`,
    {
    headers: {
    Authorization: `Bearer ${token}`,
    },
    method: "POST",
    body: JSON.stringify({ code }),
    },
    );
    }
1
Next
Updated: June 27, 2024