From 85ac6b4c63ff16ad05512f2873673fd75d033d2a Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 18 Apr 2021 14:23:44 +0200 Subject: [PATCH] :heavy_minus_sign: remove lambert-db --- package-lock.json | 83 ++++++++++++++++++++++++++++++++--------------- package.json | 1 - src/Server.ts | 2 +- 3 files changed, 57 insertions(+), 29 deletions(-) diff --git a/package-lock.json b/package-lock.json index d889138e..2aec0f0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,9 +13,9 @@ "erlpack": "^0.1.3", "fosscord-server-util": "github:fosscord/fosscord-server-util", "jsonwebtoken": "^8.5.1", - "lambert-db": "^1.1.8", "lambert-server": "^1.1.7", "missing-native-js-functions": "^1.2.3", + "mongoose-autopopulate": "^0.12.3", "node-fetch": "^2.6.1", "typescript": "^4.2.3", "uuid": "^8.3.2", @@ -23,6 +23,7 @@ }, "devDependencies": { "@types/jsonwebtoken": "^8.5.0", + "@types/mongoose-autopopulate": "^0.10.1", "@types/uuid": "^8.3.0", "@types/ws": "^7.4.0" } @@ -53,6 +54,25 @@ "@types/node": "*" } }, + "node_modules/@types/mongoose": { + "version": "5.10.5", + "resolved": "https://registry.npmjs.org/@types/mongoose/-/mongoose-5.10.5.tgz", + "integrity": "sha512-37QMIA954T3n+HSksSNLlxZsqF8fMJu5S4dyPBod6gRxGtsXlQ9jUtL8BE8Seimv99u79eLXI3bggoCnSQ/fxQ==", + "dev": true, + "dependencies": { + "@types/mongodb": "*", + "@types/node": "*" + } + }, + "node_modules/@types/mongoose-autopopulate": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@types/mongoose-autopopulate/-/mongoose-autopopulate-0.10.1.tgz", + "integrity": "sha512-L67MAIE3WEoTtt7a7/spRYk+76lgp67FAP6I38Y9NcC1kQuzwqnukTaJzodfb8180wxHZM4qt68u6x6ptuDRaQ==", + "dev": true, + "dependencies": { + "@types/mongoose": "*" + } + }, "node_modules/@types/node": { "version": "14.14.25", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.25.tgz", @@ -554,7 +574,6 @@ "license": "ISC", "dependencies": { "jsonwebtoken": "^8.5.1", - "lambert-db": "^1.1.7", "missing-native-js-functions": "^1.2.2", "mongodb": "^3.6.6", "mongoose": "^5.12.3" @@ -771,18 +790,7 @@ "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz", "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==" }, - "node_modules/lambert-db": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/lambert-db/-/lambert-db-1.1.8.tgz", - "integrity": "sha512-EyIEYLppS54tXsxIXGuS0l/0c+tF86KvaXRR92yRcGp5CHWRxPfUqV0KX/Ft7OkqtRTK5tDuJ/Bb4kUCXh2VUg==", - "dependencies": { - "missing-native-js-functions": "^1.1.8", - "mongodb": "^3.6.2", - "mongodb-memory-server": "^6.9.2", - "mongoose": "^5.11.8", - "rethinkdb-ts": "^2.4.5" - } - }, + "node_modules/lambert-server": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/lambert-server/-/lambert-server-1.1.7.tgz", @@ -1144,6 +1152,14 @@ "url": "https://opencollective.com/mongoose" } }, + "node_modules/mongoose-autopopulate": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/mongoose-autopopulate/-/mongoose-autopopulate-0.12.3.tgz", + "integrity": "sha512-yNmYsfi6OpS/GQ+48mkB0KQ199ExHmmPrt3wt3fyxPHPMtEBGts7yq3wBQR6VgKCPOQaKvCI1URbJCPOtrPeLw==", + "peerDependencies": { + "mongoose": "4.x || 5.x" + } + }, "node_modules/mongoose-legacy-pluralize": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz", @@ -1842,6 +1858,25 @@ "@types/node": "*" } }, + "@types/mongoose": { + "version": "5.10.5", + "resolved": "https://registry.npmjs.org/@types/mongoose/-/mongoose-5.10.5.tgz", + "integrity": "sha512-37QMIA954T3n+HSksSNLlxZsqF8fMJu5S4dyPBod6gRxGtsXlQ9jUtL8BE8Seimv99u79eLXI3bggoCnSQ/fxQ==", + "dev": true, + "requires": { + "@types/mongodb": "*", + "@types/node": "*" + } + }, + "@types/mongoose-autopopulate": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@types/mongoose-autopopulate/-/mongoose-autopopulate-0.10.1.tgz", + "integrity": "sha512-L67MAIE3WEoTtt7a7/spRYk+76lgp67FAP6I38Y9NcC1kQuzwqnukTaJzodfb8180wxHZM4qt68u6x6ptuDRaQ==", + "dev": true, + "requires": { + "@types/mongoose": "*" + } + }, "@types/node": { "version": "14.14.25", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.25.tgz", @@ -2242,7 +2277,6 @@ "from": "fosscord-server-util@github:fosscord/fosscord-server-util", "requires": { "jsonwebtoken": "^8.5.1", - "lambert-db": "^1.1.7", "missing-native-js-functions": "^1.2.2", "mongodb": "^3.6.6", "mongoose": "^5.12.3" @@ -2405,18 +2439,7 @@ "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz", "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==" }, - "lambert-db": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/lambert-db/-/lambert-db-1.1.8.tgz", - "integrity": "sha512-EyIEYLppS54tXsxIXGuS0l/0c+tF86KvaXRR92yRcGp5CHWRxPfUqV0KX/Ft7OkqtRTK5tDuJ/Bb4kUCXh2VUg==", - "requires": { - "missing-native-js-functions": "^1.1.8", - "mongodb": "^3.6.2", - "mongodb-memory-server": "^6.9.2", - "mongoose": "^5.11.8", - "rethinkdb-ts": "^2.4.5" - } - }, + "lambert-server": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/lambert-server/-/lambert-server-1.1.7.tgz", @@ -2691,6 +2714,12 @@ } } }, + "mongoose-autopopulate": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/mongoose-autopopulate/-/mongoose-autopopulate-0.12.3.tgz", + "integrity": "sha512-yNmYsfi6OpS/GQ+48mkB0KQ199ExHmmPrt3wt3fyxPHPMtEBGts7yq3wBQR6VgKCPOQaKvCI1URbJCPOtrPeLw==", + "requires": {} + }, "mongoose-legacy-pluralize": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz", diff --git a/package.json b/package.json index f3fd3362..9f6d9fd5 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "erlpack": "^0.1.3", "fosscord-server-util": "github:fosscord/fosscord-server-util", "jsonwebtoken": "^8.5.1", - "lambert-db": "^1.1.8", "lambert-server": "^1.1.7", "missing-native-js-functions": "^1.2.3", "mongoose-autopopulate": "^0.12.3", diff --git a/src/Server.ts b/src/Server.ts index f49b5a00..feab8051 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -35,6 +35,6 @@ export class Server { await this.setupSchema(); console.log("[DB] connected"); await Config.init(); - console.log("[Gateway] online"); + console.log(`[Gateway] online ${port}`); } }