diff --git a/src/communication/NetworkClient.ts b/src/communication/NetworkClient.ts index 1bce5c44..16af661a 100644 --- a/src/communication/NetworkClient.ts +++ b/src/communication/NetworkClient.ts @@ -16,6 +16,7 @@ import breakUrl from './breakUrl'; import buildUrl, { type SearchParameters } from './buildUrl'; import dromedaryCase from './dromedaryCase'; import { idempotencyHeaderName, ResponseWithIdempotencyKey, retryingFetch } from './makeRetrying'; +import { URL } from 'url'; // This isn't necessary for newer node versions, but it allows us to secretly support node 8. Should we ever drop that completely and move to 10+, we can remove this import. /** * Like `[].map` but with support for non-array inputs, in which case this function behaves as if an array was passed