@tsed/apollo 7.41.2 → 7.42.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/jest.config.js +1 -1
- package/lib/cjs/services/ApolloService.js +13 -6
- package/lib/cjs/services/ApolloService.js.map +1 -1
- package/lib/esm/services/ApolloService.js +15 -8
- package/lib/esm/services/ApolloService.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/interfaces/ApolloSettings.d.ts +8 -2
- package/lib/types/services/ApolloService.d.ts +1 -1
- package/package.json +7 -7
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import type { ApolloServerBase,
|
|
1
|
+
import type { ApolloServerBase, ApolloServerPluginLandingPageGraphQLPlaygroundOptions, Config } from "apollo-server-core";
|
|
2
2
|
export type ApolloMiddlewareOptions = Record<string, any>;
|
|
3
3
|
export type ApolloServer = ApolloServerBase & {
|
|
4
4
|
getMiddleware(settings: ApolloMiddlewareOptions): any;
|
|
5
5
|
};
|
|
6
6
|
export type ApolloCustomServerCB = (config: ApolloConfig) => ApolloServer;
|
|
7
7
|
export type ApolloConfig = Config;
|
|
8
|
-
|
|
8
|
+
declare global {
|
|
9
|
+
namespace TsED {
|
|
10
|
+
interface ApolloSettings {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export interface ApolloSettings extends ApolloConfig, TsED.ApolloSettings {
|
|
9
15
|
path: string;
|
|
10
16
|
server?: ApolloCustomServerCB;
|
|
11
17
|
playground?: boolean | ApolloServerPluginLandingPageGraphQLPlaygroundOptions;
|
|
@@ -20,6 +20,7 @@ export declare class ApolloService {
|
|
|
20
20
|
private app;
|
|
21
21
|
private httpServer;
|
|
22
22
|
private httpsServer;
|
|
23
|
+
private injector;
|
|
23
24
|
constructor(dataSources: any[]);
|
|
24
25
|
createServer(id: string, settings: ApolloSettings): Promise<ApolloServer>;
|
|
25
26
|
/**
|
|
@@ -42,7 +43,6 @@ export declare class ApolloService {
|
|
|
42
43
|
/**
|
|
43
44
|
* create a new dataSources function to use with apollo server config
|
|
44
45
|
* @param dataSources
|
|
45
|
-
* @param serverConfigSources
|
|
46
46
|
*/
|
|
47
47
|
protected createDataSources(dataSources: Function | undefined): () => any;
|
|
48
48
|
private getPlugins;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/apollo",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.42.0",
|
|
4
4
|
"description": "Apollo package for Ts.ED framework",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
},
|
|
26
26
|
"private": false,
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tsed/common": "7.
|
|
29
|
-
"@tsed/core": "7.
|
|
30
|
-
"@tsed/di": "7.
|
|
28
|
+
"@tsed/common": "7.42.0",
|
|
29
|
+
"@tsed/core": "7.42.0",
|
|
30
|
+
"@tsed/di": "7.42.0",
|
|
31
31
|
"@tsed/eslint": "7.39.1",
|
|
32
32
|
"@tsed/logger": ">=6.2.2",
|
|
33
33
|
"@tsed/typescript": "7.39.1",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"graphql": "15.7.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@tsed/common": "^7.
|
|
46
|
-
"@tsed/core": "^7.
|
|
47
|
-
"@tsed/di": "^7.
|
|
45
|
+
"@tsed/common": "^7.42.0",
|
|
46
|
+
"@tsed/core": "^7.42.0",
|
|
47
|
+
"@tsed/di": "^7.42.0",
|
|
48
48
|
"@tsed/logger": ">=6.2.2",
|
|
49
49
|
"apollo-datasource": ">=3.0.0",
|
|
50
50
|
"apollo-datasource-rest": ">=3.0.0",
|