aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-03-24 22:15:59 -0500
committermat <27899617+mat-1@users.noreply.github.com>2021-03-24 22:15:59 -0500
commitf3834c6cdef26d15ee50df5859394f5446eb1928 (patch)
treef1d727d57b6549dae58fafb83018f137b9a7a31f
parentaf8096ea8ab7c5570929608bb5662f938c0b65c0 (diff)
downloadskyblock-api-f3834c6cdef26d15ee50df5859394f5446eb1928.tar.gz
skyblock-api-f3834c6cdef26d15ee50df5859394f5446eb1928.tar.bz2
skyblock-api-f3834c6cdef26d15ee50df5859394f5446eb1928.zip
remove console.logs
-rw-r--r--build/mojang.js2
-rw-r--r--src/mojang.ts2
2 files changed, 0 insertions, 4 deletions
diff --git a/build/mojang.js b/build/mojang.js
index 052f813..2348a0a 100644
--- a/build/mojang.js
+++ b/build/mojang.js
@@ -18,7 +18,6 @@ const httpsAgent = new https_1.Agent({
* Get mojang api data from the session server
*/
async function mojangDataFromUuid(uuid) {
- console.log('mojangDataFromUuid', uuid);
const fetchResponse = await node_fetch_1.default(
// using mojang directly is faster than ashcon lol, also mojang removed the ratelimits from here
`https://sessionserver.mojang.com/session/minecraft/profile/${util_1.undashUuid(uuid)}`, { agent: () => httpsAgent });
@@ -30,7 +29,6 @@ async function mojangDataFromUuid(uuid) {
}
exports.mojangDataFromUuid = mojangDataFromUuid;
async function uuidFromUsername(username) {
- console.log('uuidFromUsername', username);
// since we don't care about anything other than the uuid, we can use /uuid/ instead of /user/
const fetchResponse = await node_fetch_1.default(`https://api.ashcon.app/mojang/v2/uuid/${username}`, { agent: () => httpsAgent });
const userUuid = await fetchResponse.text();
diff --git a/src/mojang.ts b/src/mojang.ts
index 7efc4ae..85c0185 100644
--- a/src/mojang.ts
+++ b/src/mojang.ts
@@ -22,7 +22,6 @@ interface MojangApiResponse {
* Get mojang api data from the session server
*/
export async function mojangDataFromUuid(uuid: string): Promise<MojangApiResponse> {
- console.log('mojangDataFromUuid', uuid)
const fetchResponse = await fetch(
// using mojang directly is faster than ashcon lol, also mojang removed the ratelimits from here
`https://sessionserver.mojang.com/session/minecraft/profile/${undashUuid(uuid)}`,
@@ -37,7 +36,6 @@ export async function mojangDataFromUuid(uuid: string): Promise<MojangApiRespons
export async function uuidFromUsername(username: string): Promise<string> {
- console.log('uuidFromUsername', username)
// since we don't care about anything other than the uuid, we can use /uuid/ instead of /user/
const fetchResponse = await fetch(
`https://api.ashcon.app/mojang/v2/uuid/${username}`,