From 1423dbf13303a08e38ebb7fad3eca49fd3d9006f Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 13 Jul 2023 19:26:57 +0300 Subject: [PATCH] Update dependencies --- package.json | 2 +- src/server/Server.ts | 5 ++++- src/util/Util.ts | 1 - yarn.lock | 10 +++++----- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 841521c..f958032 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@navy.gif/commandparser": "^1.5.2", "@navy.gif/logger": "^2.4.0", "@navy.gif/passport-discord": "^0.2.2-b", - "@navy.gif/wrappers": "^1.3.21", + "@navy.gif/wrappers": "^1.5.2", "@types/cors": "^2.8.13", "@types/express-fileupload": "^1.4.1", "@types/express-session": "^1.17.7", diff --git a/src/server/Server.ts b/src/server/Server.ts index 4668490..7219b9b 100644 --- a/src/server/Server.ts +++ b/src/server/Server.ts @@ -16,7 +16,7 @@ import DiscordStrategy from '@navy.gif/passport-discord'; import { MariaDB, MessageBroker, MongoDB } from '@navy.gif/wrappers'; // Local -import { Util } from '../util/index.js'; +import { PermissionManager, Util } from '../util/index.js'; import { Registry, UserDatabase } from './components/index.js'; import { Authenticator, RateLimiter } from './middleware/index.js'; import { UserDatabaseInterface } from './interfaces/index.js'; @@ -261,6 +261,9 @@ class Server extends EventEmitter this.#_server = http.createServer(this.#_options.http, this.app).listen(this.port); this.#_ready = true; + this.#logger.debug('Registered permissions:'); + this.#logger.debug(PermissionManager.DefaultPermissions); + this.#logger.status(`Server created, took ${Date.now() - start} ms, listening on port ${this.port}`); if (process.send) process.send({ _ready: true }); diff --git a/src/util/Util.ts b/src/util/Util.ts index 4180e8a..57c0969 100644 --- a/src/util/Util.ts +++ b/src/util/Util.ts @@ -2,7 +2,6 @@ // const path = require('node:path'); // const { scryptSync, createCipheriv, randomFillSync, createDecipheriv, randomUUID } = require('node:crypto'); - import fs from 'node:fs'; import path from 'node:path'; import { scryptSync, createCipheriv, randomFillSync, createDecipheriv, randomUUID } from 'node:crypto'; diff --git a/yarn.lock b/yarn.lock index 4138bab..341f995 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1773,15 +1773,15 @@ __metadata: languageName: node linkType: hard -"@navy.gif/wrappers@npm:^1.3.21": - version: 1.3.21 - resolution: "@navy.gif/wrappers@npm:1.3.21" +"@navy.gif/wrappers@npm:^1.5.2": + version: 1.5.2 + resolution: "@navy.gif/wrappers@npm:1.5.2" dependencies: amqp-connection-manager: ^4.1.12 amqplib: ^0.10.3 mongodb: ^5.2.0 mysql: ^2.18.1 - checksum: 69eb5285cb12aa55baa04e315d8ce0f987bb51a68ef3ebbb928dee84ccc347974c56aa6ad154b2995bc655652bf3267160784e8ec56cb225503b3ff47e442be5 + checksum: a20c8b970622ee9e720fd588d5ed35939a67f0be286333f1e4c9c7fdaa5769b606138cd35935e2b886266beef0219a514b79c1ab6b269cfdaccd7275bdfd3882 languageName: node linkType: hard @@ -7038,7 +7038,7 @@ __metadata: "@navy.gif/commandparser": ^1.5.2 "@navy.gif/logger": ^2.4.0 "@navy.gif/passport-discord": ^0.2.2-b - "@navy.gif/wrappers": ^1.3.21 + "@navy.gif/wrappers": ^1.5.2 "@types/cors": ^2.8.13 "@types/express-fileupload": ^1.4.1 "@types/express-session": ^1.17.7