@inversifyjs/apollo-express 0.5.0 → 0.6.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.
Files changed (21) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/lib/esm/apollo/controllers/buildApolloServerExpressController.d.ts +3 -3
  3. package/lib/esm/apollo/controllers/buildApolloServerExpressController.d.ts.map +1 -1
  4. package/lib/esm/apollo/controllers/buildApolloServerExpressController.js.map +1 -1
  5. package/lib/esm/apollo/models/ApolloExpressControllerOptions.d.ts +1 -1
  6. package/lib/esm/apollo/models/ApolloExpressControllerOptions.d.ts.map +1 -1
  7. package/lib/esm/apollo/modules/ApolloExpressServerContainerModule.d.ts +2 -2
  8. package/lib/esm/apollo/modules/ApolloExpressServerContainerModule.d.ts.map +1 -1
  9. package/lib/esm/apollo/modules/ApolloExpressServerContainerModule.js +7 -2
  10. package/lib/esm/apollo/modules/ApolloExpressServerContainerModule.js.map +1 -1
  11. package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.d.ts +9 -0
  12. package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.d.ts.map +1 -0
  13. package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.js +18 -0
  14. package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.js.map +1 -0
  15. package/lib/esm/index.d.ts +1 -1
  16. package/lib/esm/index.d.ts.map +1 -1
  17. package/package.json +2 -2
  18. package/lib/esm/apollo/controllers/buildApolloServerExpressController.int.spec.d.ts +0 -2
  19. package/lib/esm/apollo/controllers/buildApolloServerExpressController.int.spec.d.ts.map +0 -1
  20. package/lib/esm/apollo/modules/ApolloExpressServerContainerModule.spec.d.ts +0 -2
  21. package/lib/esm/apollo/modules/ApolloExpressServerContainerModule.spec.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @inversifyjs/apollo-express
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Renamed `ApolloExpressServerContainerModule.forOptions` to `fromOptions`
8
+ - Updated `InversifyApolloProvider` with generic type
9
+ Renamed `ApolloServerExpressControllerOptions` to `ApolloExpressControllerOptions`
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+ - @inversifyjs/apollo-core@0.5.0
15
+
16
+ ## 0.5.1
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @inversifyjs/apollo-core@0.4.0
22
+
3
23
  ## 0.5.0
4
24
 
5
25
  ### Minor Changes
@@ -1,7 +1,7 @@
1
1
  import { type BaseContext } from '@apollo/server';
2
- import { ExpressContextFunctionArgument } from '@as-integrations/express5';
2
+ import { type ExpressContextFunctionArgument } from '@as-integrations/express5';
3
3
  import { ApolloServerController } from '@inversifyjs/apollo-core';
4
4
  import { Newable } from 'inversify';
5
- import { ApolloServerExpressControllerOptions } from '../models/ApolloExpressControllerOptions.js';
6
- export default function buildApolloServerExpressController<TContext extends BaseContext = BaseContext>(options: ApolloServerExpressControllerOptions<TContext>): Newable<ApolloServerController<TContext, [ExpressContextFunctionArgument]>>;
5
+ import { ApolloExpressControllerOptions } from '../models/ApolloExpressControllerOptions.js';
6
+ export default function buildApolloServerExpressController<TContext extends BaseContext = BaseContext>(options: ApolloExpressControllerOptions<TContext>): Newable<ApolloServerController<TContext, [ExpressContextFunctionArgument]>>;
7
7
  //# sourceMappingURL=buildApolloServerExpressController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildApolloServerExpressController.d.ts","sourceRoot":"","sources":["../../../../src/apollo/controllers/buildApolloServerExpressController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EACL,8BAA8B,EAE/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EAEvB,MAAM,0BAA0B,CAAC;AASlC,OAAO,EAAU,OAAO,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AAEnG,MAAM,CAAC,OAAO,UAAU,kCAAkC,CACxD,QAAQ,SAAS,WAAW,GAAG,WAAW,EAE1C,OAAO,EAAE,oCAAoC,CAAC,QAAQ,CAAC,GACtD,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,CAAC,8BAA8B,CAAC,CAAC,CAAC,CAuC7E"}
1
+ {"version":3,"file":"buildApolloServerExpressController.d.ts","sourceRoot":"","sources":["../../../../src/apollo/controllers/buildApolloServerExpressController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EACL,KAAK,8BAA8B,EAEpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EAEvB,MAAM,0BAA0B,CAAC;AASlC,OAAO,EAAU,OAAO,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAE7F,MAAM,CAAC,OAAO,UAAU,kCAAkC,CACxD,QAAQ,SAAS,WAAW,GAAG,WAAW,EAE1C,OAAO,EAAE,8BAA8B,CAAC,QAAQ,CAAC,GAChD,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,CAAC,8BAA8B,CAAC,CAAC,CAAC,CAuC7E"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildApolloServerExpressController.js","sourceRoot":"","sources":["../../../../src/apollo/controllers/buildApolloServerExpressController.ts"],"names":[],"mappings":";AACA,OAAO,EAEL,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EACtB,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,GACT,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAW,MAAM,WAAW,CAAC;AAI5C,MAAM,CAAC,OAAO,UAAU,kCAAkC,CAGxD,OAAuD;IAGvD,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,sBAG3C;QACU,WAAW,CAAyB;QAE7C,YAEE,YAAoC;YAEpC,KAAK,EAAE,CAAC;YAER,IAAI,CAAC,WAAW,GAAG,iBAAiB,CAAW,YAAY,EAAE;gBAC3D,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;aACrC,CAAC,CAAC;QACL,CAAC;QAGY,AAAN,KAAK,CAAC,aAAa,CAExB,GAAoB,EAEpB,GAAqB,EAErB,IAA0B;YAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC1C,CAAC;QAES,KAAK,CAAC,WAAW,CACzB,GAAmC;YAEnC,OAAO,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;KACF,CAAA;IAhBc;QADZ,IAAI,EAAE;QAEJ,WAAA,OAAO,EAAE,CAAA;QAET,WAAA,QAAQ,EAAE,CAAA;QAEV,WAAA,IAAI,EAAE,CAAA;sEAIR;IA3BG,6BAA6B;QADlC,UAAU,CAAC,OAAO,CAAC,iBAAiB,CAAC;QAQjC,WAAA,MAAM,CAAC,6BAA6B,CAAC,CAAA;OAPpC,6BAA6B,CAkClC;IAED,OAAO,6BAA6B,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"buildApolloServerExpressController.js","sourceRoot":"","sources":["../../../../src/apollo/controllers/buildApolloServerExpressController.ts"],"names":[],"mappings":";AACA,OAAO,EAEL,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EACtB,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,GACT,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAW,MAAM,WAAW,CAAC;AAI5C,MAAM,CAAC,OAAO,UAAU,kCAAkC,CAGxD,OAAiD;IAGjD,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,sBAG3C;QACU,WAAW,CAAyB;QAE7C,YAEE,YAAoC;YAEpC,KAAK,EAAE,CAAC;YAER,IAAI,CAAC,WAAW,GAAG,iBAAiB,CAAW,YAAY,EAAE;gBAC3D,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;aACrC,CAAC,CAAC;QACL,CAAC;QAGY,AAAN,KAAK,CAAC,aAAa,CAExB,GAAoB,EAEpB,GAAqB,EAErB,IAA0B;YAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC1C,CAAC;QAES,KAAK,CAAC,WAAW,CACzB,GAAmC;YAEnC,OAAO,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;KACF,CAAA;IAhBc;QADZ,IAAI,EAAE;QAEJ,WAAA,OAAO,EAAE,CAAA;QAET,WAAA,QAAQ,EAAE,CAAA;QAEV,WAAA,IAAI,EAAE,CAAA;sEAIR;IA3BG,6BAA6B;QADlC,UAAU,CAAC,OAAO,CAAC,iBAAiB,CAAC;QAQjC,WAAA,MAAM,CAAC,6BAA6B,CAAC,CAAA;OAPpC,6BAA6B,CAkClC;IAED,OAAO,6BAA6B,CAAC;AACvC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { type BaseContext } from '@apollo/server';
2
2
  import { type ExpressContextFunctionArgument } from '@as-integrations/express5';
3
3
  import { type ControllerOptions } from '@inversifyjs/http-core';
4
- export interface ApolloServerExpressControllerOptions<TContext extends BaseContext> {
4
+ export interface ApolloExpressControllerOptions<TContext extends BaseContext> {
5
5
  controllerOptions?: string | ControllerOptions | undefined;
6
6
  getContext: (arg: ExpressContextFunctionArgument) => Promise<TContext>;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloExpressControllerOptions.d.ts","sourceRoot":"","sources":["../../../../src/apollo/models/ApolloExpressControllerOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,oCAAoC,CACnD,QAAQ,SAAS,WAAW;IAE5B,iBAAiB,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC;IAC3D,UAAU,EAAE,CAAC,GAAG,EAAE,8BAA8B,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CACxE"}
1
+ {"version":3,"file":"ApolloExpressControllerOptions.d.ts","sourceRoot":"","sources":["../../../../src/apollo/models/ApolloExpressControllerOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,8BAA8B,CAAC,QAAQ,SAAS,WAAW;IAC1E,iBAAiB,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC;IAC3D,UAAU,EAAE,CAAC,GAAG,EAAE,8BAA8B,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CACxE"}
@@ -1,8 +1,8 @@
1
1
  import { type BaseContext } from '@apollo/server';
2
2
  import { ApolloServerContainerModule } from '@inversifyjs/apollo-core';
3
- import { ApolloServerExpressControllerOptions } from '../models/ApolloExpressControllerOptions.js';
3
+ import { ApolloExpressControllerOptions } from '../models/ApolloExpressControllerOptions.js';
4
4
  import { ApolloServerInjectOptions } from '../models/ApolloServerInjectOptions.js';
5
5
  export default class ApolloExpressServerContainerModule extends ApolloServerContainerModule {
6
- static forOptions<TContext extends BaseContext>(controllerOptions: ApolloServerExpressControllerOptions<TContext>, serverOptions: ApolloServerInjectOptions<TContext>): ApolloExpressServerContainerModule;
6
+ static fromOptions<TContext extends BaseContext>(controllerOptions: ApolloExpressControllerOptions<TContext>, serverOptions: ApolloServerInjectOptions<TContext>): ApolloExpressServerContainerModule;
7
7
  }
8
8
  //# sourceMappingURL=ApolloExpressServerContainerModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloExpressServerContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloExpressServerContainerModule.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EACL,2BAA2B,EAK5B,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,2BAA2B;WAC3E,UAAU,CAAC,QAAQ,SAAS,WAAW,EACnD,iBAAiB,EAAE,oCAAoC,CAAC,QAAQ,CAAC,EACjE,aAAa,EAAE,yBAAyB,CAAC,QAAQ,CAAC,GACjD,kCAAkC;CAwCtC"}
1
+ {"version":3,"file":"ApolloExpressServerContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloExpressServerContainerModule.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EACL,2BAA2B,EAM5B,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAGnF,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,2BAA2B;WAC3E,WAAW,CAAC,QAAQ,SAAS,WAAW,EACpD,iBAAiB,EAAE,8BAA8B,CAAC,QAAQ,CAAC,EAC3D,aAAa,EAAE,yBAAyB,CAAC,QAAQ,CAAC,GACjD,kCAAkC;CA6CtC"}
@@ -1,10 +1,11 @@
1
1
  import http from 'node:http';
2
2
  import { ApolloServerPluginDrainHttpServer } from '@apollo/server/plugin/drainHttpServer';
3
- import { ApolloServerContainerModule, apolloServerPluginsServiceIdentifier, apolloServerResolversServiceIdentifier, apolloServerTypeDefsServiceIdentifier, httpServerServiceIdentifier, } from '@inversifyjs/apollo-core';
3
+ import { ApolloServerContainerModule, apolloServerPluginsServiceIdentifier, apolloServerResolversServiceIdentifier, apolloServerTypeDefsServiceIdentifier, httpServerServiceIdentifier, inversifyApolloProviderServiceIdentifier, } from '@inversifyjs/apollo-core';
4
4
  import { httpApplicationServiceIdentifier } from '@inversifyjs/http-core';
5
5
  import buildApolloServerExpressController from '../controllers/buildApolloServerExpressController.js';
6
+ import { InversifyApolloProviderImplementation } from './InversifyApolloProviderImplementation.js';
6
7
  export default class ApolloExpressServerContainerModule extends ApolloServerContainerModule {
7
- static forOptions(controllerOptions, serverOptions) {
8
+ static fromOptions(controllerOptions, serverOptions) {
8
9
  return new ApolloExpressServerContainerModule((options) => {
9
10
  options
10
11
  .bind(buildApolloServerExpressController(controllerOptions))
@@ -27,6 +28,10 @@ export default class ApolloExpressServerContainerModule extends ApolloServerCont
27
28
  options
28
29
  .bind(apolloServerTypeDefsServiceIdentifier)
29
30
  .toConstantValue(serverOptions.typeDefs);
31
+ options
32
+ .bind(inversifyApolloProviderServiceIdentifier)
33
+ .to(InversifyApolloProviderImplementation)
34
+ .inSingletonScope();
30
35
  });
31
36
  }
32
37
  }
@@ -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,EACrC,2BAA2B,GAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAI1E,OAAO,kCAAkC,MAAM,sDAAsD,CAAC;AAItG,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;iBACR,gBAAgB,EAAE,CAAC;YAEtB,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;iBACA,gBAAgB,EAAE,CAAC;YAEtB,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;iBACA,gBAAgB,EAAE,CAAC;YAEtB,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"}
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,EACrC,2BAA2B,EAC3B,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAI1E,OAAO,kCAAkC,MAAM,sDAAsD,CAAC;AAGtG,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AAEnG,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,2BAA2B;IAClF,MAAM,CAAC,WAAW,CACvB,iBAA2D,EAC3D,aAAkD;QAElD,OAAO,IAAI,kCAAkC,CAC3C,CAAC,OAAmC,EAAQ,EAAE;YAC5C,OAAO;iBACJ,IAAI,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,CAAC;iBAC3D,MAAM,EAAE;iBACR,gBAAgB,EAAE,CAAC;YAEtB,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;iBACA,gBAAgB,EAAE,CAAC;YAEtB,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;iBACA,gBAAgB,EAAE,CAAC;YAEtB,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;YAE3C,OAAO;iBACJ,IAAI,CAAC,wCAAwC,CAAC;iBAC9C,EAAE,CAAC,qCAAqC,CAAC;iBACzC,gBAAgB,EAAE,CAAC;QACxB,CAAC,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ import type http from 'node:http';
2
+ import { type ApolloServer } from '@apollo/server';
3
+ import { type InversifyApolloProvider } from '@inversifyjs/apollo-core';
4
+ export declare class InversifyApolloProviderImplementation implements InversifyApolloProvider<http.Server> {
5
+ readonly apolloServer: ApolloServer<any>;
6
+ readonly server: http.Server;
7
+ constructor(apolloServer: ApolloServer<any>, server: http.Server);
8
+ }
9
+ //# sourceMappingURL=InversifyApolloProviderImplementation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InversifyApolloProviderImplementation.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/InversifyApolloProviderImplementation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,0BAA0B,CAAC;AAGlC,qBACa,qCAAsC,YAAW,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC;aAG9E,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC;aAE/B,MAAM,EAAE,IAAI,CAAC,MAAM;gBAFnB,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,EAE/B,MAAM,EAAE,IAAI,CAAC,MAAM;CAEtC"}
@@ -0,0 +1,18 @@
1
+ import { __decorate, __param } from "tslib";
2
+ import { apolloServerServiceIdentifier, httpServerServiceIdentifier, } from '@inversifyjs/apollo-core';
3
+ import { inject, injectable } from 'inversify';
4
+ let InversifyApolloProviderImplementation = class InversifyApolloProviderImplementation {
5
+ apolloServer;
6
+ server;
7
+ constructor(apolloServer, server) {
8
+ this.apolloServer = apolloServer;
9
+ this.server = server;
10
+ }
11
+ };
12
+ InversifyApolloProviderImplementation = __decorate([
13
+ injectable(),
14
+ __param(0, inject(apolloServerServiceIdentifier)),
15
+ __param(1, inject(httpServerServiceIdentifier))
16
+ ], InversifyApolloProviderImplementation);
17
+ export { InversifyApolloProviderImplementation };
18
+ //# sourceMappingURL=InversifyApolloProviderImplementation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InversifyApolloProviderImplementation.js","sourceRoot":"","sources":["../../../../src/apollo/modules/InversifyApolloProviderImplementation.ts"],"names":[],"mappings":";AAGA,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,GAE5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGxC,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAG9B;IAEA;IAJlB,YAEkB,YAA+B,EAE/B,MAAmB;QAFnB,iBAAY,GAAZ,YAAY,CAAmB;QAE/B,WAAM,GAAN,MAAM,CAAa;IAClC,CAAC;CACL,CAAA;AAPY,qCAAqC;IADjD,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,6BAA6B,CAAC,CAAA;IAErC,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAJ3B,qCAAqC,CAOjD"}
@@ -1,4 +1,4 @@
1
- export { type ApolloServerExpressControllerOptions } from './apollo/models/ApolloExpressControllerOptions.js';
1
+ export { type ApolloExpressControllerOptions } from './apollo/models/ApolloExpressControllerOptions.js';
2
2
  export { type ApolloServerInjectOptions } from './apollo/models/ApolloServerInjectOptions.js';
3
3
  export { default as ApolloExpressServerContainerModule } from './apollo/modules/ApolloExpressServerContainerModule.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AAC9G,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,wDAAwD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,mDAAmD,CAAC;AACxG,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,wDAAwD,CAAC"}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "InversifyJs GraphQL Apollo express package",
7
7
  "dependencies": {
8
8
  "@as-integrations/express5": "^1.1.2",
9
- "@inversifyjs/apollo-core": "0.3.0"
9
+ "@inversifyjs/apollo-core": "0.5.0"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@inversifyjs/http-express": "4.9.1",
@@ -53,7 +53,7 @@
53
53
  "url": "git+https://github.com/inversify/graphql.git"
54
54
  },
55
55
  "type": "module",
56
- "version": "0.5.0",
56
+ "version": "0.6.0",
57
57
  "scripts": {
58
58
  "build": "tsc",
59
59
  "build:clean": "rimraf lib",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=buildApolloServerExpressController.int.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildApolloServerExpressController.int.spec.d.ts","sourceRoot":"","sources":["../../../../src/apollo/controllers/buildApolloServerExpressController.int.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ApolloExpressServerContainerModule.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApolloExpressServerContainerModule.spec.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloExpressServerContainerModule.spec.ts"],"names":[],"mappings":""}