From 99508233778e29d41248cd233b2e58a92f4020b8 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Thu, 27 May 2021 17:26:34 -0500 Subject: Profile customization (#46) * add basic discord auth * add uuid dependency * add lastUpdated to sessions * add route to get session from id * add accounts collection * update build * add gm rank * add `customization` url parameter * add customization parameter to /player/:user * add route to get info from discord id * remove a console.log * Update database.js * Update package.json * fix tests * change mainSiteUrl --- build/index.js | 2 +- package-lock.json | 20 ++++++++++---------- src/index.ts | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/build/index.js b/build/index.js index 09ca7d7..0f0b570 100644 --- a/build/index.js +++ b/build/index.js @@ -31,7 +31,7 @@ const discord = __importStar(require("./discord")); const express_1 = __importDefault(require("express")); const app = express_1.default(); exports.debug = false; -const mainSiteUrl = 'http://localhost:8081'; +const mainSiteUrl = 'https://skyblock.matdoes.dev'; // 200 requests over 5 minutes const limiter = express_rate_limit_1.default({ windowMs: 60 * 1000 * 5, diff --git a/package-lock.json b/package-lock.json index 5c5cfd2..eaf9338 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1305,16 +1305,6 @@ "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, "string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -1330,6 +1320,16 @@ } } }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, "strip-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", diff --git a/src/index.ts b/src/index.ts index 3d6bf6f..0937e4e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,7 +9,7 @@ const app = express() export const debug = false -const mainSiteUrl = 'http://localhost:8081' +const mainSiteUrl = 'https://skyblock.matdoes.dev' // 200 requests over 5 minutes const limiter = rateLimit({ -- cgit