@nmxjs/app 1.0.19 → 1.0.21
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.
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { DynamicModule } from '@nestjs/common';
|
|
1
2
|
import { IGetGraphQlModuleOptions } from './interfaces';
|
|
2
|
-
export declare const getGraphQlModule: (options?: IGetGraphQlModuleOptions) =>
|
|
3
|
+
export declare const getGraphQlModule: (options?: IGetGraphQlModuleOptions) => DynamicModule;
|
package/dist/getGraphQlModule.js
CHANGED
|
@@ -5,10 +5,10 @@ const graphql_type_json_1 = require("graphql-type-json");
|
|
|
5
5
|
const apollo_1 = require("@nestjs/apollo");
|
|
6
6
|
const utils_1 = require("@nmxjs/utils");
|
|
7
7
|
const types_1 = require("@nmxjs/types");
|
|
8
|
-
const
|
|
8
|
+
const { GraphQLModule } = require('@nestjs/graphql');
|
|
9
9
|
const getGraphQlModule = (options) => {
|
|
10
10
|
var _a, _b;
|
|
11
|
-
return
|
|
11
|
+
return GraphQLModule.forRootAsync(Object.assign(Object.assign(Object.assign({}, (((_a = options === null || options === void 0 ? void 0 : options.inject) === null || _a === void 0 ? void 0 : _a.length) ? { inject: options.inject } : {})), (((_b = options === null || options === void 0 ? void 0 : options.imports) === null || _b === void 0 ? void 0 : _b.length) ? { imports: options.imports } : {})), { driver: apollo_1.ApolloDriver, useFactory: async (...params) => {
|
|
12
12
|
const { origin, resolvers, onSubscriptionConnect, onSubscriptionDisconnect } = (options === null || options === void 0 ? void 0 : options.useFactory)
|
|
13
13
|
? await options.useFactory(...params)
|
|
14
14
|
: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGraphQlModule.js","sourceRoot":"","sources":["../src/getGraphQlModule.ts"],"names":[],"mappings":";;;AAAA,yDAA4C;
|
|
1
|
+
{"version":3,"file":"getGraphQlModule.js","sourceRoot":"","sources":["../src/getGraphQlModule.ts"],"names":[],"mappings":";;;AAA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AC,CAAC;oBACf,GAAG,EAAE,GAAG,CAAC,GAAG;oBACZ,GAAG,EAAE,GAAG,CAAC,GAAG;iBACb,CAAC,IACF;QACJ,CAAC,IACD,CAAA;CAAA,CAAC;AAnDQ,QAAA,gBAAgB,oBAmDxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmxjs/app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@apollo/server": "^4.9.5",
|
|
30
30
|
"@nestjs/apollo": "^10.1.0",
|
|
31
31
|
"@nestjs/typeorm": "^10.0.0",
|
|
32
|
-
"@nmxjs/api": "^1.1.
|
|
33
|
-
"@nmxjs/config": "^1.0.
|
|
34
|
-
"@nmxjs/events": "^1.0.
|
|
35
|
-
"@nmxjs/types": "^1.0.
|
|
32
|
+
"@nmxjs/api": "^1.1.10",
|
|
33
|
+
"@nmxjs/config": "^1.0.5",
|
|
34
|
+
"@nmxjs/events": "^1.0.5",
|
|
35
|
+
"@nmxjs/types": "^1.0.5",
|
|
36
36
|
"apollo-server-express": "^3.10.2",
|
|
37
37
|
"compression": "^1.7.4",
|
|
38
38
|
"graphql": "^16.6.0",
|
|
@@ -40,19 +40,9 @@
|
|
|
40
40
|
"graphql-type-json": "^0.3.2",
|
|
41
41
|
"graphql-ws": "^5.11.2",
|
|
42
42
|
"helmet": "^7.1.0",
|
|
43
|
-
"typeorm": "^0.3.10"
|
|
44
|
-
"@nestjs/graphql": "^10.1.2"
|
|
43
|
+
"typeorm": "^0.3.10"
|
|
45
44
|
},
|
|
46
45
|
"peerDependencies": {
|
|
47
|
-
"@apollo/server": "^4.9.5",
|
|
48
|
-
"@nestjs/apollo": "^10.1.0",
|
|
49
|
-
"@nestjs/typeorm": "^10.0.0",
|
|
50
|
-
"@nmxjs/api": "^1.1.8",
|
|
51
|
-
"@nmxjs/config": "^1.0.4",
|
|
52
|
-
"@nmxjs/events": "^1.0.4",
|
|
53
|
-
"@nmxjs/types": "^1.0.4",
|
|
54
|
-
"apollo-server-express": "^3.10.2",
|
|
55
|
-
"typeorm": "^0.3.10",
|
|
56
46
|
"@nestjs/graphql": "^10.1.2"
|
|
57
47
|
}
|
|
58
48
|
}
|