@graphql-mesh/plugin-response-cache 0.102.0 → 0.102.1-alpha-20240821072855-dd3e47ab930afa2b421feeb2871eec7b3235a8ca

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/cjs/index.js CHANGED
@@ -73,7 +73,7 @@ function getCacheForResponseCache(meshCache) {
73
73
  const responseIdsToCheckJobs = [];
74
74
  for (const responseId of responseIdsToCheck) {
75
75
  responseIdsToCheckJobs.push(meshCache.getKeysByPrefix(`response-cache:${responseId}:`).then(cacheEntries => {
76
- if (cacheEntries.length === 0) {
76
+ if (cacheEntries.length !== 0) {
77
77
  return meshCache.delete(`response-cache:${responseId}`);
78
78
  }
79
79
  return undefined;
package/esm/index.js CHANGED
@@ -70,7 +70,7 @@ function getCacheForResponseCache(meshCache) {
70
70
  const responseIdsToCheckJobs = [];
71
71
  for (const responseId of responseIdsToCheck) {
72
72
  responseIdsToCheckJobs.push(meshCache.getKeysByPrefix(`response-cache:${responseId}:`).then(cacheEntries => {
73
- if (cacheEntries.length === 0) {
73
+ if (cacheEntries.length !== 0) {
74
74
  return meshCache.delete(`response-cache:${responseId}`);
75
75
  }
76
76
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/plugin-response-cache",
3
- "version": "0.102.0",
3
+ "version": "0.102.1-alpha-20240821072855-dd3e47ab930afa2b421feeb2871eec7b3235a8ca",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@graphql-mesh/cross-helpers": "^0.4.6",