Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanelaf committed Jul 16, 2024
1 parent b37713b commit 61f0e25
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/nomalab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class Nomalab {
}

async getShow(showUuid: string): Promise<Show> {
console.log("GET SHOW");
const response = await this.#fetch(`shows/${showUuid}`, {});
if (!response.ok) {
this.#throwError(
Expand Down Expand Up @@ -400,6 +401,9 @@ export class Nomalab {
`sessionJwt=${optionalArg.cookieHeader["sessionJwt"]}`,
);
}
console.log(
`https://${this.#contextSubDomain()}.nomalab.com/v3/${partialUrl}`,
);
const request = new Request(
`https://${this.#contextSubDomain()}.nomalab.com/v3/${partialUrl}`,
{
Expand All @@ -411,6 +415,9 @@ export class Nomalab {
credentials: "include",
},
);
console.log("REQUEST", request);
console.log("arg", optionalArg);
console.log("headers", myHeaders);
return fetch(request);
}
#contextSubDomain(): string {
Expand Down

0 comments on commit 61f0e25

Please sign in to comment.