mulink 1.2.1 → 1.2.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.
@@ -2639,17 +2639,21 @@ var SchemaGenerator = class {
2639
2639
  otherSchemas.push(schema);
2640
2640
  }
2641
2641
  }
2642
+ const schemaNameToPascalCase = /* @__PURE__ */ new Map();
2642
2643
  for (const schema of [...enumSchemas, ...otherSchemas]) {
2643
- if (!schemaMap.has(schema.name)) {
2644
- schemaMap.set(schema.name, schema);
2645
- dependencyGraph.set(schema.name, /* @__PURE__ */ new Set());
2644
+ const pascalName = toPascalCase(schema.name);
2645
+ if (!schemaMap.has(pascalName)) {
2646
+ schemaMap.set(pascalName, schema);
2647
+ dependencyGraph.set(pascalName, /* @__PURE__ */ new Set());
2648
+ schemaNameToPascalCase.set(schema.name, pascalName);
2646
2649
  }
2647
2650
  }
2648
2651
  for (const schema of [...enumSchemas, ...otherSchemas]) {
2652
+ const schemaPascalName = toPascalCase(schema.name);
2649
2653
  const dependencies = this.findSchemaDependencies(schema);
2650
2654
  for (const dep of dependencies) {
2651
2655
  if (schemaMap.has(dep)) {
2652
- dependencyGraph.get(schema.name).add(dep);
2656
+ dependencyGraph.get(schemaPascalName).add(dep);
2653
2657
  }
2654
2658
  }
2655
2659
  }
@@ -2676,13 +2680,15 @@ var SchemaGenerator = class {
2676
2680
  visited.add(schemaName);
2677
2681
  }, "visit");
2678
2682
  for (const schema of enumSchemas) {
2679
- if (!visited.has(schema.name)) {
2680
- visit(schema.name);
2683
+ const schemaPascalName = toPascalCase(schema.name);
2684
+ if (!visited.has(schemaPascalName)) {
2685
+ visit(schemaPascalName);
2681
2686
  }
2682
2687
  }
2683
2688
  for (const schema of otherSchemas) {
2684
- if (!visited.has(schema.name)) {
2685
- visit(schema.name);
2689
+ const schemaPascalName = toPascalCase(schema.name);
2690
+ if (!visited.has(schemaPascalName)) {
2691
+ visit(schemaPascalName);
2686
2692
  }
2687
2693
  }
2688
2694
  return result;
@@ -2763,9 +2769,10 @@ var SchemaGenerator = class {
2763
2769
  if (def._schemaRef) {
2764
2770
  const refName = def._schemaRef;
2765
2771
  const baseName = refName.replace(/Schema$/, "");
2766
- if (!dependencies.includes(baseName) && !visited.has(baseName)) {
2767
- dependencies.push(baseName);
2768
- visited.add(baseName);
2772
+ const normalizedName = toPascalCase(baseName);
2773
+ if (!dependencies.includes(normalizedName) && !visited.has(normalizedName)) {
2774
+ dependencies.push(normalizedName);
2775
+ visited.add(normalizedName);
2769
2776
  }
2770
2777
  return;
2771
2778
  }
@@ -2821,8 +2828,10 @@ var SchemaGenerator = class {
2821
2828
  const orderedSchemas = this.orderSchemasByDependencies(schemas);
2822
2829
  for (const schema of orderedSchemas) {
2823
2830
  const { definition, exportName } = this.generateSchemaDefinition(schema);
2824
- const dependencies = this.findSchemaDependencies(schema);
2825
- allSchemaDefinitions.push({ definition, exportName, dependencies });
2831
+ const zodDependencies = this.findSchemaDependencies(schema);
2832
+ const stringDependencies = this.extractDependenciesFromDefinition(definition, exportName);
2833
+ const allDependencies = [.../* @__PURE__ */ new Set([...zodDependencies, ...stringDependencies])];
2834
+ allSchemaDefinitions.push({ definition, exportName, dependencies: allDependencies });
2826
2835
  schemaExports.push(exportName);
2827
2836
  }
2828
2837
  for (const endpoint of endpoints) {
@@ -10051,5 +10060,5 @@ ${errorMessages}`,
10051
10060
  };
10052
10061
 
10053
10062
  export { BridgeCore, BridgeError, BridgeLogger, ConfigurationLoader, FileSystemManager, GenerationError, LogLevel, NextJsCodeGenerator, OpenApiSchemaParser, SchemaParseError, ValidationError, VersionChecker, __name, checkAndNotifyUpdates, createBridgeVersionChecker };
10054
- //# sourceMappingURL=chunk-4H6HG3HY.js.map
10055
- //# sourceMappingURL=chunk-4H6HG3HY.js.map
10063
+ //# sourceMappingURL=chunk-NXP26AJR.js.map
10064
+ //# sourceMappingURL=chunk-NXP26AJR.js.map