@kubb/plugin-vue-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.js CHANGED
@@ -55,7 +55,7 @@ function operationFileEntry(node, name, extname = ".ts") {
55
55
  */
56
56
  function resolveDependencyOperationFile(options) {
57
57
  const { cache, node, resolver, root, output, group } = options;
58
- return cache.getOrSet(`${resolver.pluginName}:operationFile`, () => resolver.file({
58
+ return cache.ensureItem(`${resolver.pluginName}:operationFile`, () => resolver.file({
59
59
  ...operationFileEntry(node, node.operationId),
60
60
  root,
61
61
  output,
@@ -801,7 +801,7 @@ function resolveContractClient(options) {
801
801
  function resolveClientOperation(options) {
802
802
  const { clientPlugin, driver, node, root, output, cache } = options;
803
803
  if (!clientPlugin) return null;
804
- return cache.getOrSet(`${clientPlugin.pluginName}:clientOperation`, () => {
804
+ return cache.ensureItem(`${clientPlugin.pluginName}:clientOperation`, () => {
805
805
  const resolver = driver.getResolver(clientPlugin.pluginName);
806
806
  const plugin = driver.getPlugin(clientPlugin.pluginName);
807
807
  const file = resolver.file({