@inversifyjs/apollo-express 0.3.0 → 0.4.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/CHANGELOG.md +6 -0
- package/lib/esm/apollo/models/ApolloServerInjectOptions.d.ts +2 -1
- package/lib/esm/apollo/models/ApolloServerInjectOptions.d.ts.map +1 -1
- package/lib/esm/apollo/modules/ApolloExpressServerContainerModule.js +1 -1
- package/lib/esm/apollo/modules/ApolloExpressServerContainerModule.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type http from 'node:http';
|
|
2
2
|
import { type ApolloServerPlugin, type BaseContext } from '@apollo/server';
|
|
3
3
|
import { type IResolvers, type TypeSource } from '@graphql-tools/utils';
|
|
4
|
+
import { type ServiceIdentifier } from 'inversify';
|
|
4
5
|
export interface ApolloServerInjectOptions<TContext extends BaseContext> {
|
|
5
6
|
http?: {
|
|
6
7
|
createServer?: <TRequest extends typeof http.IncomingMessage = typeof http.IncomingMessage, TResponse extends typeof http.ServerResponse<InstanceType<TRequest>> = typeof http.ServerResponse>(requestListener?: http.RequestListener<TRequest, TResponse>) => http.Server<TRequest, TResponse>;
|
|
7
8
|
};
|
|
8
9
|
plugins?: ApolloServerPlugin<TContext>[] | undefined;
|
|
9
|
-
|
|
10
|
+
resolverServiceIdentifier: ServiceIdentifier<IResolvers<any, TContext>>;
|
|
10
11
|
typeDefs: TypeSource;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=ApolloServerInjectOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApolloServerInjectOptions.d.ts","sourceRoot":"","sources":["../../../../src/apollo/models/ApolloServerInjectOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ApolloServerInjectOptions.d.ts","sourceRoot":"","sources":["../../../../src/apollo/models/ApolloServerInjectOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,MAAM,WAAW,yBAAyB,CAAC,QAAQ,SAAS,WAAW;IACrE,IAAI,CAAC,EAAE;QACL,YAAY,CAAC,EAAE,CACb,QAAQ,SAAS,OAAO,IAAI,CAAC,eAAe,GAC1C,OAAO,IAAI,CAAC,eAAe,EAC7B,SAAS,SAAS,OAAO,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,GAClE,OAAO,IAAI,CAAC,cAAc,EAE5B,eAAe,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,SAAS,CAAC,KACxD,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;KACvC,CAAC;IACF,OAAO,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,GAAG,SAAS,CAAC;IAErD,yBAAyB,EAAE,iBAAiB,CAAC,UAAU,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;IACxE,QAAQ,EAAE,UAAU,CAAC;CACtB"}
|
|
@@ -21,7 +21,7 @@ export default class ApolloExpressServerContainerModule extends ApolloServerCont
|
|
|
21
21
|
], [httpServerServiceIdentifier]);
|
|
22
22
|
options
|
|
23
23
|
.bind(apolloServerResolversServiceIdentifier)
|
|
24
|
-
.
|
|
24
|
+
.toService(serverOptions.resolverServiceIdentifier);
|
|
25
25
|
options
|
|
26
26
|
.bind(apolloServerTypeDefsServiceIdentifier)
|
|
27
27
|
.toConstantValue(serverOptions.typeDefs);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApolloExpressServerContainerModule.js","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloExpressServerContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,sCAAsC,EACtC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAI1E,OAAO,kCAAkC,MAAM,sDAAsD,CAAC;AAGtG,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAEvF,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,2BAA2B;IAClF,MAAM,CAAC,UAAU,CACtB,iBAAiE,EACjE,aAAkD;QAElD,OAAO,IAAI,kCAAkC,CAC3C,CAAC,OAAmC,EAAQ,EAAE;YAC5C,OAAO;iBACJ,IAAI,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,CAAC;iBAC3D,MAAM,EAAE,CAAC;YAEZ,OAAO;iBACJ,IAAI,CAAC,2BAA2B,CAAC;iBACjC,eAAe,CACd,CAAC,WAAgC,EAAE,EAAE,CACnC,CAAC,aAAa,CAAC,IAAI,EAAE,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,CACrD,WAAW,CACZ,EACH,CAAC,gCAAgC,CAAC,CACnC,CAAC;YAEJ,OAAO;iBACJ,IAAI,CAAC,oCAAoC,CAAC;iBAC1C,eAAe,CACd,CAAC,UAAuB,EAAE,EAAE,CAAC;gBAC3B,GAAG,CAAC,aAAa,CAAC,OAAO,IAAI,EAAE,CAAC;gBAChC,iCAAiC,CAAC,EAAE,UAAU,EAAE,CAAC;aAClD,EACD,CAAC,2BAA2B,CAAC,CAC9B,CAAC;YAEJ,OAAO;iBACJ,IAAI,CAAC,sCAAsC,CAAC;iBAC5C,
|
|
1
|
+
{"version":3,"file":"ApolloExpressServerContainerModule.js","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloExpressServerContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,sCAAsC,EACtC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAI1E,OAAO,kCAAkC,MAAM,sDAAsD,CAAC;AAGtG,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAEvF,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,2BAA2B;IAClF,MAAM,CAAC,UAAU,CACtB,iBAAiE,EACjE,aAAkD;QAElD,OAAO,IAAI,kCAAkC,CAC3C,CAAC,OAAmC,EAAQ,EAAE;YAC5C,OAAO;iBACJ,IAAI,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,CAAC;iBAC3D,MAAM,EAAE,CAAC;YAEZ,OAAO;iBACJ,IAAI,CAAC,2BAA2B,CAAC;iBACjC,eAAe,CACd,CAAC,WAAgC,EAAE,EAAE,CACnC,CAAC,aAAa,CAAC,IAAI,EAAE,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,CACrD,WAAW,CACZ,EACH,CAAC,gCAAgC,CAAC,CACnC,CAAC;YAEJ,OAAO;iBACJ,IAAI,CAAC,oCAAoC,CAAC;iBAC1C,eAAe,CACd,CAAC,UAAuB,EAAE,EAAE,CAAC;gBAC3B,GAAG,CAAC,aAAa,CAAC,OAAO,IAAI,EAAE,CAAC;gBAChC,iCAAiC,CAAC,EAAE,UAAU,EAAE,CAAC;aAClD,EACD,CAAC,2BAA2B,CAAC,CAC9B,CAAC;YAEJ,OAAO;iBACJ,IAAI,CAAC,sCAAsC,CAAC;iBAC5C,SAAS,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;YAEtD,OAAO;iBACJ,IAAI,CAAC,qCAAqC,CAAC;iBAC3C,eAAe,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAC7C,CAAC,CACF,CAAC;IACJ,CAAC;CACF"}
|