Versions

  • v22

    4/24/2024
    Open: Version
    Changes from v21 to v22
    +2
    -2
    type ReqBody = {
    isBase64: boolean;
    returnBase64: boolean;
    content: string;
    };
    ⦚ 17 unchanged lines ⦚
    type ReqBody = {
    isBase64?: boolean;
    returnBase64?: boolean;
    content: string;
    };
    ⦚ 17 unchanged lines ⦚
  • v21

    4/24/2024
    Open: Version
    Changes from v20 to v21
    +1
    -1
    type ReqBody = {
    isBase64: boolean;
    returnBase6: boolean;
    content: string;
    };
    ⦚ 17 unchanged lines ⦚
    type ReqBody = {
    isBase64: boolean;
    returnBase64: boolean;
    content: string;
    };
    ⦚ 17 unchanged lines ⦚
  • v20

    4/24/2024
    Open: Version
    Changes from v19 to v20
    +1
    -1
    ⦚ 11 unchanged lines ⦚
    }
    try {
    const { isBase64, returnBase64, content } = (await request.json()) as ;

    return Response.json(content);
    ⦚ 6 unchanged lines ⦚
    ⦚ 11 unchanged lines ⦚
    }
    try {
    const { isBase64, returnBase64, content } = (await request.json()) as ReqBody;

    return Response.json(content);
    ⦚ 6 unchanged lines ⦚
  • v19

    4/24/2024
    Open: Version
    Changes from v18 to v19
    +15
    -15
    ⦚ 4 unchanged lines ⦚
    };

    // export default async function handler(request: Request) {
    // if (request.method !== "POST") {
    // return Response.json({ message: "This val responds to POST requests." }, {
    // status: 400,
    // });
    // }
    // try {
    // const { isBase64, returnBase64, content } = (await request.json()) as ;

    // return Response.json(content);
    // } catch (e) {
    // return Response.json({ message: "The body of this request was not JSON-encoded." }, {
    // status: 400,
    // });
    // }
    // }
    ⦚ 4 unchanged lines ⦚
    };

    export default async function handler(request: Request) {
    if (request.method !== "POST") {
    return Response.json({ message: "This val responds to POST requests." }, {
    status: 400,
    });
    }
    try {
    const { isBase64, returnBase64, content } = (await request.json()) as ;

    return Response.json(content);
    } catch (e) {
    return Response.json({ message: "The body of this request was not JSON-encoded." }, {
    status: 400,
    });
    }
    }
  • v18

    4/24/2024
    Open: Version
    Changes from v17 to v18
    +5
    -3
    type ReqBody ={
    isBase64: boolean, returnBase6: boolean, content: string
    // }

    // export default async function handler(request: Request) {
    ⦚ 15 unchanged lines ⦚
    type ReqBody = {
    isBase64: boolean;
    returnBase6: boolean;
    content: string;
    };

    // export default async function handler(request: Request) {
    ⦚ 15 unchanged lines ⦚
  • v17

    4/24/2024
    Open: Version
    Changes from v16 to v17
    +16
    -16
    type ReqBody ={
    isBase64: boolean, returnBase6: boolean, content: string
    }

    export default async function handler(request: Request) {
    if (request.method !== "POST") {
    return Response.json({ message: "This val responds to POST requests." }, {
    status: 400,
    });
    }
    try {
    const { isBase64, returnBase64, content } = (await request.json()) as ;

    return Response.json(content);
    } catch (e) {
    return Response.json({ message: "The body of this request was not JSON-encoded." }, {
    status: 400,
    });
    }
    }
    type ReqBody ={
    isBase64: boolean, returnBase6: boolean, content: string
    // }

    // export default async function handler(request: Request) {
    // if (request.method !== "POST") {
    // return Response.json({ message: "This val responds to POST requests." }, {
    // status: 400,
    // });
    // }
    // try {
    // const { isBase64, returnBase64, content } = (await request.json()) as ;

    // return Response.json(content);
    // } catch (e) {
    // return Response.json({ message: "The body of this request was not JSON-encoded." }, {
    // status: 400,
    // });
    // }
    // }
  • v16

    4/24/2024
    Open: Version
    Changes from v15 to v16
    +1
    -1
    ⦚ 10 unchanged lines ⦚
    try {
    const { isBase64, returnBase64, content } = (await request.json()) as ;
    const md = isBase64
    return Response.json(content);
    } catch (e) {
    ⦚ 5 unchanged lines ⦚
    ⦚ 10 unchanged lines ⦚
    try {
    const { isBase64, returnBase64, content } = (await request.json()) as ;

    return Response.json(content);
    } catch (e) {
    ⦚ 5 unchanged lines ⦚
  • v15

    4/24/2024
    Open: Version
    Changes from v14 to v15
    +1
    -1
    type ReqBody ={
    isBase64: boolean; returnBase6: boolean; content: string
    }

    ⦚ 16 unchanged lines ⦚
    type ReqBody ={
    isBase64: boolean, returnBase6: boolean, content: string
    }

    ⦚ 16 unchanged lines ⦚
  • v14

    4/24/2024
    Open: Version
    +20
    -0

    type ReqBody ={
    isBase64: boolean; returnBase6: boolean; content: string
    }

    export default async function handler(request: Request) {
    if (request.method !== "POST") {
    return Response.json({ message: "This val responds to POST requests." }, {
    status: 400,
    });
    }
    try {
    const { isBase64, returnBase64, content } = (await request.json()) as ;
    const md = isBase64
    return Response.json(content);
    } catch (e) {
    return Response.json({ message: "The body of this request was not JSON-encoded." }, {
    status: 400,
    });
    }
    }
nbbaier-mdconvert.web.val.run
Updated: May 26, 2024