@inversifyjs/apollo-core 0.4.0 → 0.5.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/inversifyApolloProviderServiceIdentifier.d.ts +1 -1
- package/lib/esm/apollo/models/inversifyApolloProviderServiceIdentifier.d.ts.map +1 -1
- package/lib/esm/apollo/models/inversifyApolloProviderServiceIdentifier.js.map +1 -1
- package/lib/esm/apollo/modules/ApolloServerContainerModule.d.ts.map +1 -1
- package/lib/esm/apollo/modules/ApolloServerContainerModule.js +0 -6
- package/lib/esm/apollo/modules/ApolloServerContainerModule.js.map +1 -1
- package/lib/esm/apollo/modules/InversifyApolloProvider.d.ts +2 -3
- package/lib/esm/apollo/modules/InversifyApolloProvider.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.d.ts +0 -9
- package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.d.ts.map +0 -1
- package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.js +0 -19
- package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ServiceIdentifier } from 'inversify';
|
|
2
2
|
import { type InversifyApolloProvider } from '../modules/InversifyApolloProvider.js';
|
|
3
|
-
export declare const inversifyApolloProviderServiceIdentifier: ServiceIdentifier<InversifyApolloProvider
|
|
3
|
+
export declare const inversifyApolloProviderServiceIdentifier: ServiceIdentifier<InversifyApolloProvider<any>>;
|
|
4
4
|
//# sourceMappingURL=inversifyApolloProviderServiceIdentifier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inversifyApolloProviderServiceIdentifier.d.ts","sourceRoot":"","sources":["../../../../src/apollo/models/inversifyApolloProviderServiceIdentifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAErF,eAAO,MAAM,wCAAwC,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"inversifyApolloProviderServiceIdentifier.d.ts","sourceRoot":"","sources":["../../../../src/apollo/models/inversifyApolloProviderServiceIdentifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAErF,eAAO,MAAM,wCAAwC,EAAE,iBAAiB,CAEtE,uBAAuB,CAAC,GAAG,CAAC,CACoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inversifyApolloProviderServiceIdentifier.js","sourceRoot":"","sources":["../../../../src/apollo/models/inversifyApolloProviderServiceIdentifier.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,wCAAwC,
|
|
1
|
+
{"version":3,"file":"inversifyApolloProviderServiceIdentifier.js","sourceRoot":"","sources":["../../../../src/apollo/models/inversifyApolloProviderServiceIdentifier.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,wCAAwC,GAGjD,MAAM,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApolloServerContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloServerContainerModule.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,KAAK,0BAA0B,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ApolloServerContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloServerContainerModule.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,KAAK,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAQ7E,qBAAa,2BAA4B,SAAQ,eAAe;gBAE5D,IAAI,CAAC,EACD,CAAC,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAC/D,SAAS;CA2ChB"}
|
|
@@ -6,8 +6,6 @@ import { apolloServerPluginsServiceIdentifier } from '../models/apolloServerPlug
|
|
|
6
6
|
import { apolloServerResolversServiceIdentifier } from '../models/apolloServerResolversServiceIdentifier.js';
|
|
7
7
|
import { apolloServerServiceIdentifier } from '../models/apolloServerServiceIdentifier.js';
|
|
8
8
|
import { apolloServerTypeDefsServiceIdentifier } from '../models/apolloServerTypeDefsServiceIdentifier.js';
|
|
9
|
-
import { inversifyApolloProviderServiceIdentifier } from '../models/inversifyApolloProviderServiceIdentifier.js';
|
|
10
|
-
import { InversifyApolloProviderImplementation } from './InversifyApolloProviderImplementation.js';
|
|
11
9
|
export class ApolloServerContainerModule extends ContainerModule {
|
|
12
10
|
constructor(load) {
|
|
13
11
|
super((options) => {
|
|
@@ -35,10 +33,6 @@ export class ApolloServerContainerModule extends ContainerModule {
|
|
|
35
33
|
apolloServerGraphqlServiceIdentifier,
|
|
36
34
|
])
|
|
37
35
|
.inSingletonScope();
|
|
38
|
-
options
|
|
39
|
-
.bind(inversifyApolloProviderServiceIdentifier)
|
|
40
|
-
.to(InversifyApolloProviderImplementation)
|
|
41
|
-
.inSingletonScope();
|
|
42
36
|
return load?.(options);
|
|
43
37
|
});
|
|
44
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApolloServerContainerModule.js","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloServerContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,EAAE,eAAe,EAAmC,MAAM,WAAW,CAAC;AAE7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,sCAAsC,EAAE,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,qCAAqC,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"ApolloServerContainerModule.js","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloServerContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,EAAE,eAAe,EAAmC,MAAM,WAAW,CAAC;AAE7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,sCAAsC,EAAE,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,qCAAqC,EAAE,MAAM,oDAAoD,CAAC;AAE3G,MAAM,OAAO,2BAA4B,SAAQ,eAAe;IAC9D,YACE,IAEa;QAEb,KAAK,CAAC,CAAC,OAAmC,EAAwB,EAAE;YAClE,OAAO;iBACJ,IAAI,CAAC,oCAAoC,CAAC;iBAC1C,eAAe,CACd,CAAC,SAAqB,EAAE,QAAoB,EAAiB,EAAE,CAC7D,oBAAoB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAC/C;gBACE,sCAAsC;gBACtC,qCAAqC;aACtC,CACF;iBACA,gBAAgB,EAAE,CAAC;YACtB,OAAO;iBACJ,IAAI,CAAC,6BAA6B,CAAC;iBACnC,eAAe,CACd,KAAK,EACH,OAA+B,EAC/B,MAAqB,EACE,EAAE;gBACzB,MAAM,YAAY,GAAiB,IAAI,YAAY,CAAC;oBAClD,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE;oBACvB,MAAM;iBACP,CAAC,CAAC;gBAEH,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;gBAE3B,OAAO,YAAY,CAAC;YACtB,CAAC,EACD;gBACE;oBACE,UAAU,EAAE,IAAI;oBAChB,iBAAiB,EAAE,oCAAoC;iBACxD;gBACD,oCAAoC;aACrC,CACF;iBACA,gBAAgB,EAAE,CAAC;YAEtB,OAAO,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type http from 'node:http';
|
|
2
1
|
import { type ApolloServer } from '@apollo/server';
|
|
3
|
-
export interface InversifyApolloProvider {
|
|
2
|
+
export interface InversifyApolloProvider<TServer> {
|
|
4
3
|
readonly apolloServer: ApolloServer<any>;
|
|
5
|
-
readonly
|
|
4
|
+
readonly server: TServer;
|
|
6
5
|
}
|
|
7
6
|
//# sourceMappingURL=InversifyApolloProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InversifyApolloProvider.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/InversifyApolloProvider.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"InversifyApolloProvider.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/InversifyApolloProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,uBAAuB,CAAC,OAAO;IAE9C,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAEzC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B"}
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type http from 'node:http';
|
|
2
|
-
import { type ApolloServer } from '@apollo/server';
|
|
3
|
-
import { type InversifyApolloProvider } from './InversifyApolloProvider.js';
|
|
4
|
-
export declare class InversifyApolloProviderImplementation implements InversifyApolloProvider {
|
|
5
|
-
readonly apolloServer: ApolloServer<any>;
|
|
6
|
-
readonly httpServer: http.Server;
|
|
7
|
-
constructor(apolloServer: ApolloServer<any>, httpServer: http.Server);
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=InversifyApolloProviderImplementation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAKnD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,qBACa,qCAAsC,YAAW,uBAAuB;aAGjE,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC;aAE/B,UAAU,EAAE,IAAI,CAAC,MAAM;gBAFvB,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,EAE/B,UAAU,EAAE,IAAI,CAAC,MAAM;CAE1C"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from "tslib";
|
|
2
|
-
import { inject, injectable } from 'inversify';
|
|
3
|
-
import { apolloServerServiceIdentifier } from '../models/apolloServerServiceIdentifier.js';
|
|
4
|
-
import { httpServerServiceIdentifier } from '../models/httpServerServiceIdentifier.js';
|
|
5
|
-
let InversifyApolloProviderImplementation = class InversifyApolloProviderImplementation {
|
|
6
|
-
apolloServer;
|
|
7
|
-
httpServer;
|
|
8
|
-
constructor(apolloServer, httpServer) {
|
|
9
|
-
this.apolloServer = apolloServer;
|
|
10
|
-
this.httpServer = httpServer;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
InversifyApolloProviderImplementation = __decorate([
|
|
14
|
-
injectable(),
|
|
15
|
-
__param(0, inject(apolloServerServiceIdentifier)),
|
|
16
|
-
__param(1, inject(httpServerServiceIdentifier))
|
|
17
|
-
], InversifyApolloProviderImplementation);
|
|
18
|
-
export { InversifyApolloProviderImplementation };
|
|
19
|
-
//# sourceMappingURL=InversifyApolloProviderImplementation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InversifyApolloProviderImplementation.js","sourceRoot":"","sources":["../../../../src/apollo/modules/InversifyApolloProviderImplementation.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAIhF,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAG9B;IAEA;IAJlB,YAEkB,YAA+B,EAE/B,UAAuB;QAFvB,iBAAY,GAAZ,YAAY,CAAmB;QAE/B,eAAU,GAAV,UAAU,CAAa;IACtC,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"}
|