@tsed/apollo 8.24.2 → 8.25.1

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.
@@ -44,7 +44,7 @@ export class ApolloService {
44
44
  switch (this.platformName) {
45
45
  case "express":
46
46
  // use newer graphql express middleware
47
- const expressVersion = await import("express/package.json").then((pkg) => pkg.default.version);
47
+ const expressVersion = await import("express/package.json", { with: { type: "json" } }).then((pkg) => pkg.default.version);
48
48
  const majorVersion = parseInt(expressVersion.split(".")[0], 10);
49
49
  let expressMiddleware;
50
50
  if (majorVersion >= 5) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/apollo",
3
3
  "description": "Apollo package for Ts.ED framework",
4
4
  "type": "module",
5
- "version": "8.24.2",
5
+ "version": "8.25.1",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -32,12 +32,12 @@
32
32
  "@as-integrations/express5": "1.1.2",
33
33
  "@as-integrations/fastify": "3.1.0",
34
34
  "@as-integrations/koa": "1.1.1",
35
- "@tsed/barrels": "8.24.2",
36
- "@tsed/core": "8.24.2",
37
- "@tsed/di": "8.24.2",
35
+ "@tsed/barrels": "8.25.1",
36
+ "@tsed/core": "8.25.1",
37
+ "@tsed/di": "8.25.1",
38
38
  "@tsed/logger": "^8.0.0",
39
- "@tsed/platform-http": "8.24.2",
40
- "@tsed/typescript": "8.24.2",
39
+ "@tsed/platform-http": "8.25.1",
40
+ "@tsed/typescript": "8.25.1",
41
41
  "apollo-datasource-http": "0.21.0",
42
42
  "apollo-server-testing": "2.26.2",
43
43
  "eslint": "9.12.0",