@rxdi/graphql 0.7.196 → 0.7.197
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/dist/config.tokens.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as GraphiQL from 'apollo-server-module-graphiql';
|
|
|
3
3
|
import { GraphQLSchema, GraphQLField, GraphQLDirective } from 'graphql';
|
|
4
4
|
import { Server, ResponseToolkit } from '@hapi/hapi';
|
|
5
5
|
import { RenderPageOptions } from 'graphql-playground-html';
|
|
6
|
+
import { AltairConfig } from '@rxdi/altair';
|
|
6
7
|
export interface HapiOptionsFunction {
|
|
7
8
|
(req?: Request): any | Promise<any>;
|
|
8
9
|
}
|
|
@@ -34,6 +35,10 @@ export interface GRAPHQL_PLUGIN_CONFIG {
|
|
|
34
35
|
graphqlOptions?: any;
|
|
35
36
|
graphiqlOptions?: GraphiQL.GraphiQLData;
|
|
36
37
|
graphiqlPlaygroundConfig?: RenderPageOptions;
|
|
38
|
+
altair?: {
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
options: AltairConfig;
|
|
41
|
+
};
|
|
37
42
|
}
|
|
38
43
|
export interface GRAPHQL_AUTHENTICATION_FAKE {
|
|
39
44
|
validateToken(authorization: string): any;
|
package/dist/index.js
CHANGED
|
@@ -30,9 +30,11 @@ const bootstrap_service_1 = require("./services/bootstrap.service");
|
|
|
30
30
|
const graphiql_service_1 = require("./services/graphiql.service");
|
|
31
31
|
const start_service_1 = require("./services/start.service");
|
|
32
32
|
const playground_1 = require("@gapi/playground");
|
|
33
|
+
const altair_1 = require("@rxdi/altair");
|
|
33
34
|
const plugin_init_1 = require("./plugin-init");
|
|
34
35
|
let GraphQLModule = GraphQLModule_1 = class GraphQLModule {
|
|
35
36
|
static forRoot(config) {
|
|
37
|
+
var _a, _b;
|
|
36
38
|
config.graphiqlPlaygroundConfig = config.graphiqlPlaygroundConfig || {};
|
|
37
39
|
config.graphiqlPlaygroundConfig.subscriptionEndpoint =
|
|
38
40
|
config.graphiqlOptions.subscriptionsEndpoint ||
|
|
@@ -52,6 +54,7 @@ let GraphQLModule = GraphQLModule_1 = class GraphQLModule {
|
|
|
52
54
|
start_service_1.StartService
|
|
53
55
|
],
|
|
54
56
|
frameworkImports: [
|
|
57
|
+
...(((_a = config.altair) === null || _a === void 0 ? void 0 : _a.enabled) ? [altair_1.AltairModule.forRoot((_b = config.altair) === null || _b === void 0 ? void 0 : _b.options)] : []),
|
|
55
58
|
playground_1.PlaygroundModule.forRoot(Object.assign(Object.assign({ path: config.graphiQlPath || '/graphiql', endpoint: config.path || '/graphql', version: '1.7.1' }, config.graphiqlPlaygroundConfig), { graphiqlPlayground: config.graphiQlPlayground }))
|
|
56
59
|
],
|
|
57
60
|
plugins: [services_1.ServerPushPlugin, plugin_init_1.PluginInit]
|
|
@@ -69,6 +69,10 @@ export declare const setConfigGraphql: (config?: GRAPHQL_PLUGIN_CONFIG) => {
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
graphiqlPlaygroundConfig?: import("graphql-playground-html").RenderPageOptions;
|
|
72
|
+
altair?: {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
options: import("@rxdi/altair").AltairConfig;
|
|
75
|
+
};
|
|
72
76
|
};
|
|
73
77
|
export declare const startServer: any;
|
|
74
78
|
export declare const stopServer: () => never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdi/graphql",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.197",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/rxdi/graphql"
|
|
@@ -30,15 +30,16 @@
|
|
|
30
30
|
"module": "./dist/index.js",
|
|
31
31
|
"typings": "./dist/index.d.ts",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@gapi/playground": "^1.8.
|
|
33
|
+
"@gapi/playground": "^1.8.172",
|
|
34
|
+
"@rxdi/altair": "^0.7.195",
|
|
34
35
|
"apollo-errors": "1.9.0",
|
|
35
36
|
"apollo-server-module-graphiql": "1.4.0",
|
|
36
37
|
"@hapi/boom": "^10.0.1",
|
|
37
38
|
"graphql-tester": "0.0.5"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@rxdi/core": "^0.7.
|
|
41
|
-
"@rxdi/hapi": "^0.7.
|
|
41
|
+
"@rxdi/core": "^0.7.196",
|
|
42
|
+
"@rxdi/hapi": "^0.7.196",
|
|
42
43
|
"graphql": "^16.12.0",
|
|
43
44
|
"@types/graphql": "^14.5.0",
|
|
44
45
|
"@types/jest": "^24.0.22",
|