@akanjs/server 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -57
- package/src/boot.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,60 +9,5 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/akan-team/akanjs.git",
|
|
11
11
|
"directory": "pkgs/@akanjs/server"
|
|
12
|
-
}
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@apollo/server": "4.11.2",
|
|
15
|
-
"@inquirer/prompts": "7.2.1",
|
|
16
|
-
"@nestjs/apollo": "12.2.2",
|
|
17
|
-
"@nestjs/bull": "10.2.3",
|
|
18
|
-
"@nestjs/common": "10.4.15",
|
|
19
|
-
"@nestjs/core": "10.4.15",
|
|
20
|
-
"@nestjs/graphql": "12.2.2",
|
|
21
|
-
"@nestjs/mongoose": "10.1.0",
|
|
22
|
-
"@nestjs/passport": "10.0.3",
|
|
23
|
-
"@nestjs/platform-express": "10.4.15",
|
|
24
|
-
"@nestjs/platform-socket.io": "10.4.15",
|
|
25
|
-
"@nestjs/schedule": "4.1.2",
|
|
26
|
-
"@nestjs/websockets": "10.4.15",
|
|
27
|
-
"@socket.io/redis-adapter": "8.3.0",
|
|
28
|
-
"@urql/core": "5.1.0",
|
|
29
|
-
"apple-signin": "1.0.9",
|
|
30
|
-
"body-parser": "1.20.3",
|
|
31
|
-
"bull": "4.16.5",
|
|
32
|
-
"class-transformer": "0.5.1",
|
|
33
|
-
"class-validator": "0.14.1",
|
|
34
|
-
"cookie-parser": "1.4.7",
|
|
35
|
-
"dataloader": "2.2.3",
|
|
36
|
-
"dayjs": "1.11.13",
|
|
37
|
-
"express": "4.21.2",
|
|
38
|
-
"graphql": "16.10.0",
|
|
39
|
-
"graphql-type-json": "0.3.2",
|
|
40
|
-
"graphql-upload": "12.0.0",
|
|
41
|
-
"iap": "1.1.1",
|
|
42
|
-
"immer": "10.1.1",
|
|
43
|
-
"jsonwebtoken": "9.0.2",
|
|
44
|
-
"lodash": "4.17.21",
|
|
45
|
-
"meilisearch": "0.47.0",
|
|
46
|
-
"mongoose": "8.9.3",
|
|
47
|
-
"next": "15.1.3",
|
|
48
|
-
"passport": "0.7.0",
|
|
49
|
-
"passport-apple": "2.0.2",
|
|
50
|
-
"passport-facebook": "3.0.0",
|
|
51
|
-
"passport-github": "1.1.0",
|
|
52
|
-
"passport-google-oauth20": "2.0.0",
|
|
53
|
-
"passport-kakao": "1.0.1",
|
|
54
|
-
"passport-naver": "1.0.6",
|
|
55
|
-
"picocolors": "1.1.1",
|
|
56
|
-
"pluralize": "8.0.0",
|
|
57
|
-
"react": "18.2.0",
|
|
58
|
-
"react-dom": "18.2.0",
|
|
59
|
-
"redis": "4.7.0",
|
|
60
|
-
"reflect-metadata": "0.2.2",
|
|
61
|
-
"rxjs": "7.8.1",
|
|
62
|
-
"socket.io": "4.8.1",
|
|
63
|
-
"socket.io-client": "4.8.1",
|
|
64
|
-
"tunnel-ssh": "5.2.0",
|
|
65
|
-
"ua-parser-js": "1.0.40"
|
|
66
|
-
},
|
|
67
|
-
"main": "./index.js"
|
|
12
|
+
}
|
|
68
13
|
}
|
package/src/boot.js
CHANGED
|
@@ -57,6 +57,7 @@ var import_meilisearch = require("meilisearch");
|
|
|
57
57
|
var import_path = require("path");
|
|
58
58
|
var import_redis = require("redis");
|
|
59
59
|
var import_gql = require("./gql");
|
|
60
|
+
var import_module = require("./module");
|
|
60
61
|
var import_searchDaemon = require("./searchDaemon");
|
|
61
62
|
const createNestApp = async ({
|
|
62
63
|
registerModules,
|
|
@@ -144,6 +145,9 @@ const createNestApp = async ({
|
|
|
144
145
|
useFactory: () => ({ uri: mongoUri, autoIndex: import_base.baseEnv.environment !== "main" })
|
|
145
146
|
}),
|
|
146
147
|
SubDatabaseModule,
|
|
148
|
+
(0, import_module.useGlobals)({
|
|
149
|
+
injects: { SearchClient: import_nest.SearchClient, DatabaseClient: import_nest.DatabaseClient, CacheClient: import_nest.CacheClient }
|
|
150
|
+
}),
|
|
147
151
|
...["batch", "all"].includes(serverMode) && import_base.baseEnv.operationMode !== "edge" ? [import_searchDaemon.SearchDaemonModule] : [],
|
|
148
152
|
...registerModules(env),
|
|
149
153
|
...serverMode === "federation" || !registerBatches ? [] : registerBatches(env)
|