diff --git a/src/runtime/node/fetch.ts b/src/runtime/node/fetch.ts index bef1d35093..971622bac4 100644 --- a/src/runtime/node/fetch.ts +++ b/src/runtime/node/fetch.ts @@ -1,5 +1,6 @@ import { get as http } from 'http' import type { ClientRequest } from 'http' +import type { URL as URLtype } from 'url' import { get as https, RequestOptions } from 'https' import type { FetchFunction } from '../interfaces.d' @@ -19,7 +20,7 @@ const fetch: FetchFunction = async (url: URL, timeout: number, options: Accepted } return new Promise((resolve, reject) => { const { agent } = options - protocols[url.protocol](url, { agent, timeout }, async (response) => { + protocols[url.protocol](url, { agent, timeout }, async (response) => { if (response.statusCode !== 200) { reject(new JOSEError('Expected 200 OK from the JSON Web Key Set HTTP response')) } else { diff --git a/src/types.d.ts b/src/types.d.ts index 0d5f4bca5e..4686c28446 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -1,3 +1,5 @@ +/// + /* eslint-disable @typescript-eslint/naming-convention */ import type { KeyObject } from 'crypto' diff --git a/tsconfig/base.json b/tsconfig/base.json index 224e340904..2d78cf7b05 100644 --- a/tsconfig/base.json +++ b/tsconfig/base.json @@ -30,6 +30,7 @@ "../src/util/random.ts" ], "compilerOptions": { + "lib": ["ES6"], "strict": true, "forceConsistentCasingInFileNames": true, "noUnusedLocals": true,