@rxdi/hapi 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.
package/dist/main.js CHANGED
@@ -28,7 +28,6 @@ const server_service_1 = require("./services/server/server.service");
28
28
  const core_1 = require("@rxdi/core");
29
29
  const hapi_module_config_1 = require("./hapi.module.config");
30
30
  const inert_plugin_1 = require("./plugins/inert/inert.plugin");
31
- const open_service_1 = require("./services/open/open.service");
32
31
  let HapiModule = HapiModule_1 = class HapiModule {
33
32
  static forRoot(config) {
34
33
  config = Object.assign({}, config || new hapi_module_config_1.HapiConfigModel());
@@ -53,7 +52,6 @@ let HapiModule = HapiModule_1 = class HapiModule {
53
52
  useValue: config.plugins || []
54
53
  },
55
54
  server_service_1.ServerService,
56
- open_service_1.OpenService
57
55
  ],
58
56
  plugins: [hapi_plugin_1.HapiPlugin, inert_plugin_1.InertPlugin]
59
57
  };
@@ -1,2 +1 @@
1
1
  export * from './server/server.service';
2
- export * from './open/open.service';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./server/server.service"), exports);
18
- __exportStar(require("./open/open.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/hapi",
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/hapi"
@@ -29,11 +29,10 @@
29
29
  "typings": "./dist/main.d.ts",
30
30
  "dependencies": {
31
31
  "@hapi/hapi": "^21.3.2",
32
- "@hapi/inert": "^7.1.0",
33
- "open": "^11.0.0"
32
+ "@hapi/inert": "^7.1.0"
34
33
  },
35
34
  "devDependencies": {
36
- "@rxdi/core": "^0.7.190",
35
+ "@rxdi/core": "^0.7.191-nightly.1",
37
36
  "@types/node": "^25.0.3",
38
37
  "typescript": "^5.9.3"
39
38
  }
@@ -1,8 +0,0 @@
1
- import { Server } from "@hapi/hapi";
2
- export declare class OpenService {
3
- private server;
4
- constructor(server: Server);
5
- openServerPage(): Promise<void>;
6
- openGraphQLPage(): Promise<void>;
7
- openPage(link: any): Promise<void>;
8
- }
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.OpenService = void 0;
25
- const core_1 = require("@rxdi/core");
26
- const open_1 = require("open");
27
- const hapi_module_config_1 = require("../../hapi.module.config");
28
- const hapi_1 = require("@hapi/hapi");
29
- let OpenService = class OpenService {
30
- constructor(server) {
31
- this.server = server;
32
- }
33
- openServerPage() {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- yield (0, open_1.default)(`http://${this.server.info.address}:${this.server.info.port}/public`);
36
- });
37
- }
38
- openGraphQLPage() {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- yield (0, open_1.default)(`http://${this.server.info.address}:${this.server.info.port}/graphiql`);
41
- });
42
- }
43
- openPage(link) {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- yield (0, open_1.default)(link);
46
- });
47
- }
48
- };
49
- exports.OpenService = OpenService;
50
- exports.OpenService = OpenService = __decorate([
51
- (0, core_1.Service)(),
52
- __param(0, (0, core_1.Inject)(hapi_module_config_1.HAPI_SERVER)),
53
- __metadata("design:paramtypes", [hapi_1.Server])
54
- ], OpenService);