@envelop/apollo-datasources 1.1.0-alpha-e9434aa.0 → 1.1.0-alpha-05dbec7.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/esm/index.js +3 -7
- package/package.json +2 -2
package/esm/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const apollo_server_caching_1 = require("apollo-server-caching");
|
|
5
|
-
function useApolloDataSources(config) {
|
|
6
|
-
const cache = config.cache || new apollo_server_caching_1.InMemoryLRUCache();
|
|
1
|
+
import { InMemoryLRUCache } from 'apollo-server-caching';
|
|
2
|
+
export function useApolloDataSources(config) {
|
|
3
|
+
const cache = config.cache || new InMemoryLRUCache();
|
|
7
4
|
return {
|
|
8
5
|
async onExecute({ extendContext, args }) {
|
|
9
6
|
const dataSources = config.dataSources();
|
|
@@ -26,4 +23,3 @@ function useApolloDataSources(config) {
|
|
|
26
23
|
},
|
|
27
24
|
};
|
|
28
25
|
}
|
|
29
|
-
exports.useApolloDataSources = useApolloDataSources;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/apollo-datasources",
|
|
3
|
-
"version": "1.1.0-alpha-
|
|
3
|
+
"version": "1.1.0-alpha-05dbec7.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "2.4.0-alpha-
|
|
6
|
+
"@envelop/core": "2.4.0-alpha-05dbec7.0",
|
|
7
7
|
"apollo-datasource": "^3",
|
|
8
8
|
"apollo-server-caching": "^3",
|
|
9
9
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|