@uipath/case-tool 1.195.0 → 1.196.0

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.
@@ -1758,8 +1758,11 @@ class ToolsFactoryRepository {
1758
1758
  solutionFactory = null;
1759
1759
  registerProjectToolFactory(factory) {
1760
1760
  for (const type of factory.supportedTypes) {
1761
- if (this.projectFactoryMap.has(type)) {
1762
- console.warn(`Tool factory already registered for project type '${type}', skipping.`);
1761
+ const existing = this.projectFactoryMap.get(type);
1762
+ if (existing) {
1763
+ if (existing.constructor?.name !== factory.constructor?.name) {
1764
+ console.warn(`Tool factory conflict for project type '${type}': ` + `'${existing.constructor?.name}' already registered, ` + `ignoring '${factory.constructor?.name}'.`);
1765
+ }
1763
1766
  continue;
1764
1767
  }
1765
1768
  this.projectFactoryMap.set(type, factory);