Skip to content

Commit

Permalink
small fix to secretly support node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
janpaepke committed Sep 10, 2024
1 parent 57c9acf commit 42c7ce3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/communication/NetworkClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42c7ce3

Please sign in to comment.