Skip to content

Commit

Permalink
styles(prettier)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Feb 21, 2024
1 parent ee05c10 commit a5633e9
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 8 deletions.
86 changes: 81 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Private/requests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable require-jsdoc */
const requireFetch = !globalThis.fetch;
const externalFetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
const externalFetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const fetch = requireFetch ? externalFetch : globalThis.fetch;
const BASE_URL = 'https://api.hypixel.net/v2';
const Errors = require('../Errors');
Expand Down
2 changes: 1 addition & 1 deletion src/Private/updater.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable require-jsdoc */
/* eslint-disable no-console */
const requireFetch = !globalThis.fetch;
const externalFetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
const externalFetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const fetch = requireFetch ? externalFetch : globalThis.fetch;
const Errors = require('../Errors');
class Updater {
Expand Down
2 changes: 1 addition & 1 deletion src/Private/uuidCache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable require-jsdoc */
const requireFetch = !globalThis.fetch;
const externalFetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
const externalFetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const fetch = requireFetch ? externalFetch : globalThis.fetch;
const cachedUuids = new Map();

Expand Down

0 comments on commit a5633e9

Please sign in to comment.