@envelop/validation-cache 4.4.0-alpha-35741fe.0 → 4.4.0-alpha-c0cc559.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/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const graphql = require('graphql');
|
|
|
7
7
|
|
|
8
8
|
const rawDocumentMap = new WeakMap();
|
|
9
9
|
const useValidationCache = (pluginOptions = {}) => {
|
|
10
|
-
const resultCache =
|
|
10
|
+
const resultCache = pluginOptions.cache != null ? pluginOptions.cache : core.getInMemoryLRUCache();
|
|
11
11
|
return {
|
|
12
12
|
onSchemaChange() {
|
|
13
13
|
resultCache.clear();
|
package/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { print } from 'graphql';
|
|
|
3
3
|
|
|
4
4
|
const rawDocumentMap = new WeakMap();
|
|
5
5
|
const useValidationCache = (pluginOptions = {}) => {
|
|
6
|
-
const resultCache =
|
|
6
|
+
const resultCache = pluginOptions.cache != null ? pluginOptions.cache : getInMemoryLRUCache();
|
|
7
7
|
return {
|
|
8
8
|
onSchemaChange() {
|
|
9
9
|
resultCache.clear();
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/validation-cache",
|
|
3
|
-
"version": "4.4.0-alpha-
|
|
3
|
+
"version": "4.4.0-alpha-c0cc559.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "2.4.0-alpha-
|
|
6
|
+
"@envelop/core": "2.4.0-alpha-c0cc559.0",
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|