@rxdi/hapi 0.7.168 → 0.7.170-next-0
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/hapi.module.config.d.ts +3 -3
- package/dist/main.js +1 -1
- package/dist/plugins/inert/inert.plugin.d.ts +1 -1
- package/dist/plugins/inert/inert.plugin.js +2 -2
- package/dist/services/open/open.service.d.ts +1 -1
- package/dist/services/open/open.service.js +1 -1
- package/dist/services/server/server.service.d.ts +3 -3
- package/dist/services/server/server.service.js +1 -1
- package/package.json +5 -6
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { InjectionToken } from "@rxdi/core";
|
|
2
|
-
import { PluginNameVersion, PluginBase, PluginPackage, ServerOptions, ServerRoute } from 'hapi';
|
|
2
|
+
import { PluginNameVersion, PluginBase, PluginPackage, ServerOptions, ServerRoute } from '@hapi/hapi';
|
|
3
3
|
export declare class HapiConfigModel {
|
|
4
4
|
randomPort?: boolean;
|
|
5
5
|
staticConfig?: ServerRoute | ServerRoute[];
|
|
6
6
|
hapi?: ServerOptions;
|
|
7
|
-
plugins?: Array<PluginBase<any> & (PluginNameVersion | PluginPackage)>;
|
|
7
|
+
plugins?: Array<PluginBase<any, any> & (PluginNameVersion | PluginPackage)>;
|
|
8
8
|
}
|
|
9
9
|
export declare const HAPI_CONFIG: InjectionToken<HapiConfigModel>;
|
|
10
10
|
export declare const HAPI_SERVER: InjectionToken<any>;
|
|
11
|
-
export declare const HAPI_PLUGINS: InjectionToken<(PluginBase<any> & (PluginNameVersion | PluginPackage))[]>;
|
|
11
|
+
export declare const HAPI_PLUGINS: InjectionToken<(PluginBase<any, any> & (PluginNameVersion | PluginPackage))[]>;
|
|
12
12
|
export declare const Route: ({ method, path }: {
|
|
13
13
|
path: string;
|
|
14
14
|
method: string;
|
package/dist/main.js
CHANGED
|
@@ -18,7 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
var HapiModule_1;
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.HapiModule = void 0;
|
|
21
|
-
const hapi_1 = require("hapi");
|
|
21
|
+
const hapi_1 = require("@hapi/hapi");
|
|
22
22
|
const hapi_plugin_1 = require("./plugins/hapi.plugin");
|
|
23
23
|
const server_service_1 = require("./services/server/server.service");
|
|
24
24
|
const core_1 = require("@rxdi/core");
|
|
@@ -24,8 +24,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
exports.InertPlugin = void 0;
|
|
25
25
|
const core_1 = require("@rxdi/core");
|
|
26
26
|
const hapi_module_config_1 = require("../../hapi.module.config");
|
|
27
|
-
const hapi_1 = require("hapi");
|
|
28
|
-
const inert = require("inert");
|
|
27
|
+
const hapi_1 = require("@hapi/hapi");
|
|
28
|
+
const inert = require("@hapi/inert");
|
|
29
29
|
let InertPlugin = class InertPlugin {
|
|
30
30
|
constructor(server, config) {
|
|
31
31
|
this.server = server;
|
|
@@ -25,7 +25,7 @@ exports.OpenService = void 0;
|
|
|
25
25
|
const core_1 = require("@rxdi/core");
|
|
26
26
|
const open = require("opn");
|
|
27
27
|
const hapi_module_config_1 = require("../../hapi.module.config");
|
|
28
|
-
const hapi_1 = require("hapi");
|
|
28
|
+
const hapi_1 = require("@hapi/hapi");
|
|
29
29
|
let OpenService = class OpenService {
|
|
30
30
|
constructor(server) {
|
|
31
31
|
this.server = server;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BootstrapLogger, ExitHandlerService } from "@rxdi/core";
|
|
2
|
-
import { Server, PluginBase, PluginNameVersion, PluginPackage } from "hapi";
|
|
3
|
-
export declare type PluginType<T> = (PluginBase<T> & (PluginNameVersion | PluginPackage))[];
|
|
2
|
+
import { Server, PluginBase, PluginNameVersion, PluginPackage } from "@hapi/hapi";
|
|
3
|
+
export declare type PluginType<T> = (PluginBase<T, any> & (PluginNameVersion | PluginPackage))[];
|
|
4
4
|
export declare class ServerService {
|
|
5
5
|
private server;
|
|
6
6
|
private plugins;
|
|
@@ -8,5 +8,5 @@ export declare class ServerService {
|
|
|
8
8
|
private exitHandler;
|
|
9
9
|
constructor(server: Server, plugins: PluginType<any>, logger: BootstrapLogger, exitHandler: ExitHandlerService);
|
|
10
10
|
start(): Promise<void>;
|
|
11
|
-
registerPlugins<T>(plugins: PluginType<T>): Promise<
|
|
11
|
+
registerPlugins<T>(plugins: PluginType<T>): Promise<any[]>;
|
|
12
12
|
}
|
|
@@ -24,7 +24,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
exports.ServerService = void 0;
|
|
25
25
|
const core_1 = require("@rxdi/core");
|
|
26
26
|
const hapi_module_config_1 = require("../../hapi.module.config");
|
|
27
|
-
const hapi_1 = require("hapi");
|
|
27
|
+
const hapi_1 = require("@hapi/hapi");
|
|
28
28
|
let ServerService = class ServerService {
|
|
29
29
|
constructor(server, plugins, logger, exitHandler) {
|
|
30
30
|
this.server = server;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdi/hapi",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.170-next-0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/rxdi/hapi"
|
|
@@ -28,14 +28,13 @@
|
|
|
28
28
|
"module": "./dist/main.js",
|
|
29
29
|
"typings": "./dist/main.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"hapi": "^
|
|
32
|
-
"inert": "^
|
|
31
|
+
"@hapi/hapi": "^21.3.2",
|
|
32
|
+
"@hapi/inert": "^7.1.0",
|
|
33
33
|
"opn": "^6.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@rxdi/core": "^0.7.
|
|
37
|
-
"@types/hapi": "^18.0.4",
|
|
36
|
+
"@rxdi/core": "^0.7.170",
|
|
38
37
|
"@types/node": "^12.0.10",
|
|
39
38
|
"typescript": "^4.3.5"
|
|
40
39
|
}
|
|
41
|
-
}
|
|
40
|
+
}
|