@gapi/playground 1.8.145 → 1.8.146
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,9 +1,9 @@
|
|
|
1
|
-
import { Request, ResponseToolkit, Server } from 'hapi';
|
|
1
|
+
import { Request, ResponseToolkit, Server } from '@hapi/hapi';
|
|
2
2
|
import { PlaygroundConfig } from '../palyground.config';
|
|
3
3
|
export declare class GraphiQLPlaygroundPlugin {
|
|
4
4
|
private server;
|
|
5
5
|
private config;
|
|
6
6
|
constructor(server: Server, config: PlaygroundConfig);
|
|
7
7
|
register(): Promise<void>;
|
|
8
|
-
handler(request: Request, h: ResponseToolkit): Promise<import("hapi").ResponseObject>;
|
|
8
|
+
handler(request: Request, h: ResponseToolkit): Promise<import("@hapi/hapi").ResponseObject>;
|
|
9
9
|
}
|
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.GraphiQLPlaygroundPlugin = void 0;
|
|
25
|
+
const hapi_1 = require("@hapi/hapi");
|
|
25
26
|
const core_1 = require("@rxdi/core");
|
|
26
|
-
const
|
|
27
|
+
const hapi_2 = require("@rxdi/hapi");
|
|
27
28
|
const graphql_playground_html_1 = require("graphql-playground-html");
|
|
28
|
-
const hapi_2 = require("hapi");
|
|
29
29
|
const palyground_config_1 = require("../palyground.config");
|
|
30
30
|
let GraphiQLPlaygroundPlugin = class GraphiQLPlaygroundPlugin {
|
|
31
31
|
constructor(server, config) {
|
|
@@ -51,8 +51,8 @@ let GraphiQLPlaygroundPlugin = class GraphiQLPlaygroundPlugin {
|
|
|
51
51
|
};
|
|
52
52
|
GraphiQLPlaygroundPlugin = __decorate([
|
|
53
53
|
core_1.Plugin(),
|
|
54
|
-
__param(0, core_1.Inject(
|
|
54
|
+
__param(0, core_1.Inject(hapi_2.HAPI_SERVER)),
|
|
55
55
|
__param(1, core_1.Inject(palyground_config_1.PLAYGROUND_CONFIG)),
|
|
56
|
-
__metadata("design:paramtypes", [
|
|
56
|
+
__metadata("design:paramtypes", [hapi_1.Server, Object])
|
|
57
57
|
], GraphiQLPlaygroundPlugin);
|
|
58
58
|
exports.GraphiQLPlaygroundPlugin = GraphiQLPlaygroundPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gapi/playground",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.146",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/Stradivario/gapi-playground"
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"graphql-playground-html": "1.6.13"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@rxdi/core": "^0.7.
|
|
39
|
-
"@rxdi/hapi": "^0.7.
|
|
38
|
+
"@rxdi/core": "^0.7.172",
|
|
39
|
+
"@rxdi/hapi": "^0.7.172",
|
|
40
40
|
"@types/hapi": "^18.0.2",
|
|
41
41
|
"@types/node": "^13.11.1",
|
|
42
42
|
"typescript": "^3.8.3"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Request, ResponseToolkit, Server } from '@hapi/hapi';
|
|
1
2
|
import { Inject, Plugin } from '@rxdi/core';
|
|
2
3
|
import { HAPI_SERVER } from '@rxdi/hapi';
|
|
3
4
|
import { renderPlaygroundPage } from 'graphql-playground-html';
|
|
4
|
-
import { Request, ResponseToolkit, Server } from 'hapi';
|
|
5
5
|
|
|
6
6
|
import { PLAYGROUND_CONFIG, PlaygroundConfig } from '../palyground.config';
|
|
7
7
|
|