1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-23 19:02:37 +01:00

npm i @fosscord/server-util@1.3.3

This commit is contained in:
Flam3rboy 2021-05-25 01:11:16 +02:00
parent 094ec2449e
commit aa602fcace
4 changed files with 14 additions and 9 deletions

4
.env.example Normal file
View File

@ -0,0 +1,4 @@
MONGO_URL=mongodb://localhost/fosscord
PORT=3002
PRODUCTION=TRUE
THREADS=# automatically use all available cores, only available if production = true

14
package-lock.json generated
View File

@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@fosscord/server-util": "^1.3.2", "@fosscord/server-util": "^1.3.3",
"ajv": "^8.5.0", "ajv": "^8.5.0",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"jsonwebtoken": "^8.5.1", "jsonwebtoken": "^8.5.1",
@ -31,9 +31,9 @@
} }
}, },
"node_modules/@fosscord/server-util": { "node_modules/@fosscord/server-util": {
"version": "1.3.2", "version": "1.3.3",
"resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.2.tgz", "resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.3.tgz",
"integrity": "sha512-OsrmWDVHzHedGMdas7M02jPM7yzP++M3rlzESNJA4uf19Pnp66Gqs1vQ9ls/QJsmC7Lzk9zczEW3XP9G+O0p3A==", "integrity": "sha512-fiEQQ93kOLXSTQBOW6PB5Th6ZHH1ozMP1nWeTjdnmr32g7X8BWJkmDMXWfKuR2PNuNr0eNJG4j1lbhIqefDqUA==",
"dependencies": { "dependencies": {
"@types/jsonwebtoken": "^8.5.0", "@types/jsonwebtoken": "^8.5.0",
"@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-autopopulate": "^0.10.1",
@ -2217,9 +2217,9 @@
}, },
"dependencies": { "dependencies": {
"@fosscord/server-util": { "@fosscord/server-util": {
"version": "1.3.2", "version": "1.3.3",
"resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.2.tgz", "resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.3.tgz",
"integrity": "sha512-OsrmWDVHzHedGMdas7M02jPM7yzP++M3rlzESNJA4uf19Pnp66Gqs1vQ9ls/QJsmC7Lzk9zczEW3XP9G+O0p3A==", "integrity": "sha512-fiEQQ93kOLXSTQBOW6PB5Th6ZHH1ozMP1nWeTjdnmr32g7X8BWJkmDMXWfKuR2PNuNr0eNJG4j1lbhIqefDqUA==",
"requires": { "requires": {
"@types/jsonwebtoken": "^8.5.0", "@types/jsonwebtoken": "^8.5.0",
"@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-autopopulate": "^0.10.1",

View File

@ -13,7 +13,7 @@
"author": "Fosscord", "author": "Fosscord",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@fosscord/server-util": "^1.3.2", "@fosscord/server-util": "^1.3.3",
"ajv": "^8.5.0", "ajv": "^8.5.0",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"jsonwebtoken": "^8.5.1", "jsonwebtoken": "^8.5.1",

View File

@ -1,7 +1,7 @@
import "missing-native-js-functions"; import "missing-native-js-functions";
import dotenv from "dotenv"; import dotenv from "dotenv";
dotenv.config(); dotenv.config();
import { db } from "@fosscord/server-util"; import { Config, db } from "@fosscord/server-util";
import { Server as WebSocketServer } from "ws"; import { Server as WebSocketServer } from "ws";
import { Connection } from "./events/Connection"; import { Connection } from "./events/Connection";
@ -36,6 +36,7 @@ export class Server {
// @ts-ignore // @ts-ignore
await (db as Promise<Connection>); await (db as Promise<Connection>);
await this.setupSchema(); await this.setupSchema();
await Config.init();
console.log("[DB] connected"); console.log("[DB] connected");
console.log(`[Gateway] online on 0.0.0.0:${port}`); console.log(`[Gateway] online on 0.0.0.0:${port}`);
} }