@tsed/apollo 8.37.0 → 8.38.0-beta.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.
@@ -1,6 +1,6 @@
1
1
  import { APOLLO_CONTEXT, DATASOURCES_PROVIDERS } from "../constants/constants.js";
2
2
  import { ApolloServer } from "@apollo/server";
3
- import { LocalsContainer, constant, context, inject, injectable, injector, logger } from "@tsed/di";
3
+ import { constant, context, inject, injectable, injector, LocalsContainer, logger } from "@tsed/di";
4
4
  import { PlatformApplication } from "@tsed/platform-http";
5
5
  import { $asyncAlter } from "@tsed/hooks";
6
6
  import { ApolloServerPluginDrainHttpServer } from "@apollo/server/plugin/drainHttpServer";
@@ -125,7 +125,7 @@ export class ApolloService {
125
125
  */
126
126
  createContextHandler(server, settings) {
127
127
  const dataSourcesContainer = injector()
128
- .getProviders(DATASOURCES_PROVIDERS)
128
+ .providers.getMany(DATASOURCES_PROVIDERS)
129
129
  .reduce((map, provider) => {
130
130
  let { name } = provider.store.get(DATASOURCES_PROVIDERS);
131
131
  name = name || provider.className;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/apollo",
3
- "version": "8.37.0",
3
+ "version": "8.38.0-beta.1",
4
4
  "description": "Apollo package for Ts.ED framework",
5
5
  "source": "./src/index.ts",
6
6
  "type": "module",
@@ -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.37.0",
36
- "@tsed/core": "8.37.0",
37
- "@tsed/di": "8.37.0",
35
+ "@tsed/barrels": "8.38.0-beta.1",
36
+ "@tsed/core": "8.38.0-beta.1",
37
+ "@tsed/di": "8.38.0-beta.1",
38
38
  "@tsed/logger": "^8.0.0",
39
- "@tsed/platform-http": "8.37.0",
40
- "@tsed/typescript": "8.37.0",
39
+ "@tsed/platform-http": "8.38.0-beta.1",
40
+ "@tsed/typescript": "8.38.0-beta.1",
41
41
  "apollo-datasource-http": "0.21.0",
42
42
  "apollo-server-testing": "2.26.2",
43
43
  "graphql": "16.12.0",
@@ -76,5 +76,8 @@
76
76
  },
77
77
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/graphql/apollo",
78
78
  "author": "Romain Lenzotti",
79
- "license": "MIT"
79
+ "license": "MIT",
80
+ "publishConfig": {
81
+ "tag": "beta"
82
+ }
80
83
  }