@rxdi/graphql 0.7.191-nightly.0 → 0.7.191-nightly.2

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,12 +1,6 @@
1
1
  import { BootstrapLogger } from '@rxdi/core';
2
- import { OpenService } from '@rxdi/hapi';
3
- import { Server } from '@hapi/hapi';
4
- import { GRAPHQL_PLUGIN_CONFIG } from '../config.tokens';
5
2
  export declare class StartService {
6
- private server;
7
- private config;
8
3
  private logger;
9
- private openService;
10
- constructor(server: Server, config: GRAPHQL_PLUGIN_CONFIG, logger: BootstrapLogger, openService: OpenService);
4
+ constructor(logger: BootstrapLogger);
11
5
  startBrowser(): void;
12
6
  }
@@ -8,35 +8,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var _a;
15
11
  Object.defineProperty(exports, "__esModule", { value: true });
16
12
  exports.StartService = void 0;
17
13
  const core_1 = require("@rxdi/core");
18
- const hapi_1 = require("@rxdi/hapi");
19
- const hapi_2 = require("@hapi/hapi");
20
- const config_tokens_1 = require("../config.tokens");
21
14
  let StartService = class StartService {
22
- constructor(server, config, logger, openService) {
23
- this.server = server;
24
- this.config = config;
15
+ constructor(logger) {
25
16
  this.logger = logger;
26
- this.openService = openService;
27
17
  }
28
18
  startBrowser() {
29
- this.openService.openPage(`http://${this.server.info.address}:${this.server.info.port}/devtools`);
30
- // this.openService.openPage(`http://${this.server.info.address}:${this.server.info.port}/graphiql`);
31
- // this.openService.openPage('http://localhost:4200');
32
- // this.openService.openGraphQLPage();
33
19
  this.logger.log('Browser started!');
34
20
  }
35
21
  };
36
22
  exports.StartService = StartService;
37
23
  exports.StartService = StartService = __decorate([
38
24
  (0, core_1.Service)(),
39
- __param(0, (0, core_1.Inject)(hapi_1.HAPI_SERVER)),
40
- __param(1, (0, core_1.Inject)(config_tokens_1.GRAPHQL_PLUGIN_CONFIG)),
41
- __metadata("design:paramtypes", [hapi_2.Server, Object, core_1.BootstrapLogger, typeof (_a = typeof hapi_1.OpenService !== "undefined" && hapi_1.OpenService) === "function" ? _a : Object])
25
+ __metadata("design:paramtypes", [core_1.BootstrapLogger])
42
26
  ], StartService);
@@ -35,7 +35,14 @@ export declare const DEFAULT_CONFIG: {
35
35
  };
36
36
  };
37
37
  };
38
- export declare const setConfigServer: (config?: HapiConfigModel) => any;
38
+ export declare const setConfigServer: (config?: HapiConfigModel) => {
39
+ randomPort: boolean;
40
+ staticConfig?: import("@hapi/hapi").ServerRoute | import("@hapi/hapi").ServerRoute[];
41
+ hapi: {
42
+ port: number;
43
+ } | import("@hapi/hapi").ServerOptions;
44
+ plugins?: Array<import("@hapi/hapi").PluginBase<any, any> & (import("@hapi/hapi").PluginNameVersion | import("@hapi/hapi").PluginPackage)>;
45
+ };
39
46
  export declare const setConfigGraphql: (config?: GRAPHQL_PLUGIN_CONFIG) => {
40
47
  path: string;
41
48
  initQuery: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/graphql",
3
- "version": "0.7.191-nightly.0",
3
+ "version": "0.7.191-nightly.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rxdi/graphql"
@@ -37,8 +37,8 @@
37
37
  "graphql-tester": "0.0.5"
38
38
  },
39
39
  "devDependencies": {
40
- "@rxdi/core": "^0.7.190",
41
- "@rxdi/hapi": "^0.7.190",
40
+ "@rxdi/core": "^0.7.191-nightly.1",
41
+ "@rxdi/hapi": "^0.7.191-nightly.1",
42
42
  "graphql": "^16.12.0",
43
43
  "@types/graphql": "^14.5.0",
44
44
  "@types/jest": "^24.0.22",