@rxdi/graphql 0.7.200 → 0.7.202

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,7 +1,6 @@
1
1
  import { InjectionToken } from '@rxdi/core';
2
2
  import { GraphQLSchema, GraphQLField, GraphQLDirective } from 'graphql';
3
3
  import { Server, ResponseToolkit } from '@hapi/hapi';
4
- import { AltairConfig } from '@rxdi/altair';
5
4
  export interface HapiOptionsFunction {
6
5
  (req?: Request): any | Promise<any>;
7
6
  }
@@ -19,10 +18,6 @@ export interface GRAPHQL_PLUGIN_CONFIG {
19
18
  cors?: boolean;
20
19
  };
21
20
  graphqlOptions?: any;
22
- altair?: {
23
- enabled: boolean;
24
- options?: AltairConfig;
25
- };
26
21
  }
27
22
  export interface GRAPHQL_AUTHENTICATION_FAKE {
28
23
  validateToken(authorization: string): any;
package/dist/index.js CHANGED
@@ -27,11 +27,9 @@ const services_1 = require("./services");
27
27
  const apollo_service_1 = require("./services/apollo.service");
28
28
  const config_tokens_1 = require("./config.tokens");
29
29
  const bootstrap_service_1 = require("./services/bootstrap.service");
30
- const altair_1 = require("@rxdi/altair");
31
30
  const plugin_init_1 = require("./plugin-init");
32
31
  let GraphQLModule = GraphQLModule_1 = class GraphQLModule {
33
32
  static forRoot(config) {
34
- var _a, _b;
35
33
  return {
36
34
  module: GraphQLModule_1,
37
35
  providers: [
@@ -44,9 +42,6 @@ let GraphQLModule = GraphQLModule_1 = class GraphQLModule {
44
42
  bootstrap_service_1.BootstrapService,
45
43
  apollo_service_1.GraphqlService,
46
44
  ],
47
- frameworkImports: [
48
- ...(((_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)] : []),
49
- ],
50
45
  plugins: [plugin_init_1.PluginInit]
51
46
  };
52
47
  }
@@ -46,10 +46,6 @@ export declare const setConfigGraphql: (config?: GRAPHQL_PLUGIN_CONFIG) => {
46
46
  cors?: boolean;
47
47
  };
48
48
  graphqlOptions: any;
49
- altair?: {
50
- enabled: boolean;
51
- options?: import("@rxdi/altair").AltairConfig;
52
- };
53
49
  };
54
50
  export declare const startServer: any;
55
51
  export declare const stopServer: () => never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/graphql",
3
- "version": "0.7.200",
3
+ "version": "0.7.202",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rxdi/graphql"
@@ -30,13 +30,12 @@
30
30
  "module": "./dist/index.js",
31
31
  "typings": "./dist/index.d.ts",
32
32
  "dependencies": {
33
- "@rxdi/altair": "^0.7.199",
34
33
  "apollo-errors": "1.9.0",
35
34
  "@hapi/boom": "^10.0.1"
36
35
  },
37
36
  "devDependencies": {
38
- "@rxdi/core": "^0.7.199",
39
- "@rxdi/hapi": "^0.7.199",
37
+ "@rxdi/core": "^0.7.201",
38
+ "@rxdi/hapi": "^0.7.201",
40
39
  "graphql": "^16.12.0",
41
40
  "@types/graphql": "^14.5.0",
42
41
  "@types/jest": "^24.0.22",