@kubb/plugin-react-query 5.0.0-beta.106 → 5.0.0-beta.109

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/dist/index.cjs CHANGED
@@ -83,7 +83,7 @@ function operationFileEntry(node, name, extname = ".ts") {
83
83
  */
84
84
  function resolveDependencyOperationFile(options) {
85
85
  const { cache, node, resolver, root, output, group } = options;
86
- return cache.getOrSet(`${resolver.pluginName}:operationFile`, () => resolver.file({
86
+ return cache.ensureItem(`${resolver.pluginName}:operationFile`, () => resolver.file({
87
87
  ...operationFileEntry(node, node.operationId),
88
88
  root,
89
89
  output,
@@ -447,7 +447,7 @@ function resolveContractClient(options) {
447
447
  function resolveClientOperation(options) {
448
448
  const { clientPlugin, driver, node, root, output, cache } = options;
449
449
  if (!clientPlugin) return null;
450
- return cache.getOrSet(`${clientPlugin.pluginName}:clientOperation`, () => {
450
+ return cache.ensureItem(`${clientPlugin.pluginName}:clientOperation`, () => {
451
451
  const resolver = driver.getResolver(clientPlugin.pluginName);
452
452
  const plugin = driver.getPlugin(clientPlugin.pluginName);
453
453
  const file = resolver.file({