@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2017-2022 FoalTS
3
+ Copyright (c) 2017-2025 FoalTS
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -23,10 +23,9 @@ const core_1 = require("@foal/core");
23
23
  * @class GraphiQLController
24
24
  */
25
25
  class GraphiQLController {
26
- constructor() {
27
- this.options = {};
28
- this.apiEndpoint = '/graphql';
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
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * FoalTS
3
- * Copyright(c) 2017-2022 Loïc Poullain <loic.poullain@centraliens.net>
3
+ * Copyright(c) 2017-2025 Loïc Poullain
4
4
  * Released under the MIT License.
5
5
  */
6
6
  export { GraphiQLController, GraphiQLControllerOptions } from './graphiql.controller';
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * FoalTS
4
- * Copyright(c) 2017-2022 Loïc Poullain <loic.poullain@centraliens.net>
4
+ * Copyright(c) 2017-2025 Loïc Poullain
5
5
  * Released under the MIT License.
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foal/graphiql",
3
- "version": "4.6.0",
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": ">=18.0.0"
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 <loic.poullain@centraliens.net>"
36
+ "Loïc Poullain"
37
37
  ],
38
38
  "license": "MIT",
39
39
  "files": [
40
40
  "lib/"
41
41
  ],
42
42
  "dependencies": {
43
- "@foal/core": "^4.6.0"
43
+ "@foal/core": "^5.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/mocha": "10.0.7",
47
- "@types/node": "18.18.6",
46
+ "@types/mocha": "10.0.10",
47
+ "@types/node": "22.15.21",
48
48
  "graphiql": "~3.1.1",
49
- "mocha": "~10.7.2",
49
+ "mocha": "~11.5.0",
50
50
  "react": "~18.2.0",
51
51
  "react-dom": "~18.2.0",
52
- "rimraf": "~5.0.5",
52
+ "rimraf": "~6.0.1",
53
53
  "ts-node": "~10.9.2",
54
- "typescript": "~4.9.5"
54
+ "typescript": "~5.5.4"
55
55
  },
56
- "gitHead": "fa98f651f9b210cd7961150d79c4ca6c6eb489b3"
56
+ "gitHead": "15714cb6e49a62ef4b33a1eff7c3e6b4c2a2e728"
57
57
  }