Skip to content

Commit

Permalink
Update src/Private/requests.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiefChippy2 authored Feb 21, 2024
1 parent 342f909 commit c9ed223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Private/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Requests {
}
async request(endpoint, options = {}) {
options.headers = { 'API-Key': this.client.key, ...options.headers };
const fetchMethod = requireFetch ? await import('node-fetch').then({default: fetch}=>fetch) : fetch;
const fetchMethod = requireFetch ? await import('node-fetch').then(({default: fetch})=>fetch) : fetch;
/**
* @type {externalFetch.Response|Response}
*/
Expand Down

0 comments on commit c9ed223

Please sign in to comment.