Versions
- Open: VersionChanges 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 commentimport { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";export function createValVersion({ token, valId, code }: {⦚ 34 unchanged lines ⦚ - Open: VersionChanges 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 ⦚ - Open: Version+35-0function 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 }),},);}
Updated: June 27, 2024