diff options
author | mat <github@matdoes.dev> | 2021-06-02 20:48:11 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-06-02 20:48:11 -0500 |
commit | b479701eada6dc2beb8018e768e109b687a9fc1d (patch) | |
tree | 66c9958207d204d2ecd453a0beba56ec629a48bc | |
parent | d202ebeaa39f4422da975cf678d571dc8071b439 (diff) | |
download | skyblock-api-b479701eada6dc2beb8018e768e109b687a9fc1d.tar.gz skyblock-api-b479701eada6dc2beb8018e768e109b687a9fc1d.tar.bz2 skyblock-api-b479701eada6dc2beb8018e768e109b687a9fc1d.zip |
remove a console.log
-rw-r--r-- | build/mojang.js | 3 | ||||
-rw-r--r-- | src/mojang.ts | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/build/mojang.js b/build/mojang.js index dac5789..e5b6ee6 100644 --- a/build/mojang.js +++ b/build/mojang.js @@ -60,10 +60,9 @@ async function profileFromUsername(username) { data = JSON.parse(rawData); } catch { } - console.log('mojang returned', rawData); if (!(data === null || data === void 0 ? void 0 : data.id)) { - console.log('mojang api failed, trying ashcon as backup'); return { uuid: null, username: null }; + // console.log('mojang api failed, trying ashcon as backup') // return await profileFromUsernameAlternative(username) } return { diff --git a/src/mojang.ts b/src/mojang.ts index 2e88dbd..2560c77 100644 --- a/src/mojang.ts +++ b/src/mojang.ts @@ -73,11 +73,10 @@ export async function profileFromUsername(username: string): Promise<MojangApiRe data = JSON.parse(rawData) } catch {} - console.log('mojang returned', rawData) if (!data?.id) { - console.log('mojang api failed, trying ashcon as backup') return { uuid: null, username: null } + // console.log('mojang api failed, trying ashcon as backup') // return await profileFromUsernameAlternative(username) } return { |