Skip to content

Commit

Permalink
Try to fix implicit any issue in dependent project.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnspurlock-skymethod committed Mar 16, 2022
1 parent f45f95a commit 2fbd9bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export type UserAgentOptions = { origin?: string, fetcher?: Fetcher };
export function computeMinipubUserAgent(opts: UserAgentOptions = {}) {
const { origin } = opts;
const pieces: string[] = [];
const denoVersion = globalThis && globalThis.Deno && globalThis.Deno.version && typeof globalThis.Deno.version.deno === 'string' ? globalThis.Deno.version.deno : undefined;
// deno-lint-ignore no-explicit-any
const globalThisAny = globalThis as any;
const denoVersion = globalThisAny && globalThisAny.Deno && globalThisAny.Deno.version && typeof globalThisAny.Deno.version.deno === 'string' ? globalThisAny.Deno.version.deno : undefined;
if (denoVersion) pieces.push(`Deno/${denoVersion}`);
if (origin) pieces.push(`+${origin}`);
return `minipub/${MINIPUB_VERSION} (${pieces.join('; ')})`;
Expand Down

0 comments on commit 2fbd9bc

Please sign in to comment.