mobx-tanstack-query-api 0.38.1 → 0.38.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/cli.cjs +2 -1
- package/cli.cjs.map +1 -1
- package/cli.js +2 -1
- package/cli.js.map +1 -1
- package/package.json +2 -2
package/cli.cjs
CHANGED
|
@@ -429,11 +429,12 @@ function generateAuxiliarySchemas(schemaKeys, schemas, schemaKeyToVarNameFn, vis
|
|
|
429
429
|
const schema = schemas[key];
|
|
430
430
|
if (!schema) continue;
|
|
431
431
|
const varName = schemaKeyToVarNameFn(key);
|
|
432
|
+
const cyclePath = /* @__PURE__ */ new Set([key]);
|
|
432
433
|
const expr = schemaToZodExpr(
|
|
433
434
|
schema,
|
|
434
435
|
schemas,
|
|
435
436
|
schemaKeyToVarNameFn,
|
|
436
|
-
|
|
437
|
+
cyclePath
|
|
437
438
|
);
|
|
438
439
|
lines.push(`export const ${varName} = ${expr};`);
|
|
439
440
|
}
|