@graphql-mesh/plugin-http-cache 0.105.1 → 0.105.2

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
@@ -106,7 +106,7 @@ function useHTTPCache({ cache, matches, ignores, logger, }) {
106
106
  }
107
107
  : undefined);
108
108
  });
109
- context?.waitUntil(store$);
109
+ context?.waitUntil?.(store$);
110
110
  }
111
111
  if (policy) {
112
112
  const revalidationPolicy = policy.revalidatedPolicy(policyRequest, policyResponse);
@@ -138,7 +138,7 @@ function useHTTPCache({ cache, matches, ignores, logger, }) {
138
138
  pluginLogger?.debug(`Deleting the cache entry for ${url}`);
139
139
  const delete$ = cache.delete(cacheKey);
140
140
  // @ts-expect-error - Promise type mismatch
141
- context?.waitUntil(delete$);
141
+ context?.waitUntil?.(delete$);
142
142
  }
143
143
  }
144
144
  };
package/esm/index.js CHANGED
@@ -102,7 +102,7 @@ export default function useHTTPCache({ cache, matches, ignores, logger, }) {
102
102
  }
103
103
  : undefined);
104
104
  });
105
- context?.waitUntil(store$);
105
+ context?.waitUntil?.(store$);
106
106
  }
107
107
  if (policy) {
108
108
  const revalidationPolicy = policy.revalidatedPolicy(policyRequest, policyResponse);
@@ -134,7 +134,7 @@ export default function useHTTPCache({ cache, matches, ignores, logger, }) {
134
134
  pluginLogger?.debug(`Deleting the cache entry for ${url}`);
135
135
  const delete$ = cache.delete(cacheKey);
136
136
  // @ts-expect-error - Promise type mismatch
137
- context?.waitUntil(delete$);
137
+ context?.waitUntil?.(delete$);
138
138
  }
139
139
  }
140
140
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/plugin-http-cache",
3
- "version": "0.105.1",
3
+ "version": "0.105.2",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"