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.js
CHANGED
|
@@ -426,11 +426,12 @@ function generateAuxiliarySchemas(schemaKeys, schemas, schemaKeyToVarNameFn, vis
|
|
|
426
426
|
const schema = schemas[key];
|
|
427
427
|
if (!schema) continue;
|
|
428
428
|
const varName = schemaKeyToVarNameFn(key);
|
|
429
|
+
const cyclePath = /* @__PURE__ */ new Set([key]);
|
|
429
430
|
const expr = schemaToZodExpr(
|
|
430
431
|
schema,
|
|
431
432
|
schemas,
|
|
432
433
|
schemaKeyToVarNameFn,
|
|
433
|
-
|
|
434
|
+
cyclePath
|
|
434
435
|
);
|
|
435
436
|
lines.push(`export const ${varName} = ${expr};`);
|
|
436
437
|
}
|