@gapi/playground 1.8.169 → 1.8.171
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/index.js
CHANGED
|
@@ -28,9 +28,9 @@ let PlaygroundModule = PlaygroundModule_1 = class PlaygroundModule {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
PlaygroundModule =
|
|
32
|
-
|
|
31
|
+
exports.PlaygroundModule = PlaygroundModule;
|
|
32
|
+
exports.PlaygroundModule = PlaygroundModule = PlaygroundModule_1 = __decorate([
|
|
33
|
+
(0, core_1.Module)({
|
|
33
34
|
plugins: [plugins_1.GraphiQLPlaygroundPlugin],
|
|
34
35
|
})
|
|
35
36
|
], PlaygroundModule);
|
|
36
|
-
exports.PlaygroundModule = PlaygroundModule;
|
|
@@ -45,14 +45,14 @@ let GraphiQLPlaygroundPlugin = class GraphiQLPlaygroundPlugin {
|
|
|
45
45
|
}
|
|
46
46
|
handler(request, h) {
|
|
47
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
return h.response(graphql_playground_html_1.renderPlaygroundPage(this.config)).type('text/html');
|
|
48
|
+
return h.response((0, graphql_playground_html_1.renderPlaygroundPage)(this.config)).type('text/html');
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
GraphiQLPlaygroundPlugin =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
__param(
|
|
52
|
+
exports.GraphiQLPlaygroundPlugin = GraphiQLPlaygroundPlugin;
|
|
53
|
+
exports.GraphiQLPlaygroundPlugin = GraphiQLPlaygroundPlugin = __decorate([
|
|
54
|
+
(0, core_1.Plugin)(),
|
|
55
|
+
__param(0, (0, core_1.Inject)(hapi_2.HAPI_SERVER)),
|
|
56
|
+
__param(1, (0, core_1.Inject)(palyground_config_1.PLAYGROUND_CONFIG)),
|
|
56
57
|
__metadata("design:paramtypes", [hapi_1.Server, Object])
|
|
57
58
|
], GraphiQLPlaygroundPlugin);
|
|
58
|
-
exports.GraphiQLPlaygroundPlugin = GraphiQLPlaygroundPlugin;
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
8
12
|
}));
|
|
9
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
15
|
};
|
|
12
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
17
|
__exportStar(require("./graphiql.plugin"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
2
|
+
import tsParser from '@typescript-eslint/parser';
|
|
3
|
+
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
4
|
+
import prettierPlugin from 'eslint-plugin-prettier';
|
|
5
|
+
import simpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
6
|
+
import prettierConfig from 'eslint-config-prettier';
|
|
7
|
+
|
|
8
|
+
export default defineConfig([
|
|
9
|
+
globalIgnores(['dist']),
|
|
10
|
+
{
|
|
11
|
+
files: ['./src/**/*.ts', './src/**/*.tsx'],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parser: tsParser,
|
|
14
|
+
ecmaVersion: 2018,
|
|
15
|
+
sourceType: 'module',
|
|
16
|
+
},
|
|
17
|
+
plugins: {
|
|
18
|
+
'@typescript-eslint': tsPlugin,
|
|
19
|
+
prettier: prettierPlugin,
|
|
20
|
+
'simple-import-sort': simpleImportSort, // ✅ MUST MATCH RULE PREFIX
|
|
21
|
+
},
|
|
22
|
+
rules: {
|
|
23
|
+
...tsPlugin.configs.recommended.rules,
|
|
24
|
+
...prettierConfig.rules,
|
|
25
|
+
|
|
26
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
27
|
+
'@typescript-eslint/camelcase': 'off',
|
|
28
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
29
|
+
|
|
30
|
+
'simple-import-sort/imports': 'error',
|
|
31
|
+
'simple-import-sort/exports': 'error',
|
|
32
|
+
'sort-imports': 'off',
|
|
33
|
+
'import/order': 'off',
|
|
34
|
+
|
|
35
|
+
'prettier/prettier': 'error',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gapi/playground",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.171",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/Stradivario/gapi-playground"
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"graphql-playground-html": "1.6.13"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@rxdi/core": "^0.7.
|
|
40
|
-
"@rxdi/hapi": "^0.7.
|
|
39
|
+
"@rxdi/core": "^0.7.194",
|
|
40
|
+
"@rxdi/hapi": "^0.7.194",
|
|
41
41
|
"@types/hapi": "^18.0.2",
|
|
42
|
-
"@types/node": "^
|
|
43
|
-
"typescript": "^
|
|
42
|
+
"@types/node": "^25.0.3",
|
|
43
|
+
"typescript": "^5.9.3"
|
|
44
44
|
}
|
|
45
45
|
}
|
package/src/palyground.config.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { PLAYGROUND_CONFIG, PlaygroundConfig } from '../palyground.config';
|
|
|
9
9
|
export class GraphiQLPlaygroundPlugin {
|
|
10
10
|
constructor(
|
|
11
11
|
@Inject(HAPI_SERVER) private server: Server,
|
|
12
|
-
@Inject(PLAYGROUND_CONFIG) private config: PlaygroundConfig
|
|
12
|
+
@Inject(PLAYGROUND_CONFIG) private config: PlaygroundConfig,
|
|
13
13
|
) {}
|
|
14
14
|
|
|
15
15
|
async register() {
|