@foal/graphiql 4.6.0 → 5.0.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/LICENSE +1 -1
- package/lib/graphiql.controller.js +4 -5
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +10 -10
package/LICENSE
CHANGED
|
@@ -23,10 +23,9 @@ const core_1 = require("@foal/core");
|
|
|
23
23
|
* @class GraphiQLController
|
|
24
24
|
*/
|
|
25
25
|
class GraphiQLController {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
26
|
+
options = {};
|
|
27
|
+
apiEndpoint = '/graphql';
|
|
28
|
+
cssThemeURL;
|
|
30
29
|
async index(ctx) {
|
|
31
30
|
if (!ctx.request.path.endsWith('/')) {
|
|
32
31
|
return new core_1.HttpResponseMovedPermanently(ctx.request.path + '/');
|
|
@@ -60,6 +59,7 @@ class GraphiQLController {
|
|
|
60
59
|
.setHeader('Content-Length', stats.size.toString());
|
|
61
60
|
}
|
|
62
61
|
}
|
|
62
|
+
exports.GraphiQLController = GraphiQLController;
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, core_1.Get)('/'),
|
|
65
65
|
__metadata("design:type", Function),
|
|
@@ -90,4 +90,3 @@ __decorate([
|
|
|
90
90
|
__metadata("design:paramtypes", []),
|
|
91
91
|
__metadata("design:returntype", void 0)
|
|
92
92
|
], GraphiQLController.prototype, "getGraphiqlJs", null);
|
|
93
|
-
exports.GraphiQLController = GraphiQLController;
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foal/graphiql",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "GraphiQL integration for FoalTS",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/sponsors/LoicPoullain"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
17
|
+
"node": ">=22.0.0"
|
|
18
18
|
},
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
@@ -33,25 +33,25 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/FoalTS",
|
|
35
35
|
"contributors": [
|
|
36
|
-
"Loïc Poullain
|
|
36
|
+
"Loïc Poullain"
|
|
37
37
|
],
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"files": [
|
|
40
40
|
"lib/"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@foal/core": "^
|
|
43
|
+
"@foal/core": "^5.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/mocha": "10.0.
|
|
47
|
-
"@types/node": "
|
|
46
|
+
"@types/mocha": "10.0.10",
|
|
47
|
+
"@types/node": "22.15.21",
|
|
48
48
|
"graphiql": "~3.1.1",
|
|
49
|
-
"mocha": "~
|
|
49
|
+
"mocha": "~11.5.0",
|
|
50
50
|
"react": "~18.2.0",
|
|
51
51
|
"react-dom": "~18.2.0",
|
|
52
|
-
"rimraf": "~
|
|
52
|
+
"rimraf": "~6.0.1",
|
|
53
53
|
"ts-node": "~10.9.2",
|
|
54
|
-
"typescript": "~
|
|
54
|
+
"typescript": "~5.5.4"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "15714cb6e49a62ef4b33a1eff7c3e6b4c2a2e728"
|
|
57
57
|
}
|