@kubb/core
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -276,7 +276,11 @@ import { createRequire } from 'module'; | ||
}); | ||
return; | ||
} | ||
if (exists && Array.isArray(curr.name)) { | ||
exists.name = uniq([...exists.name, ...curr.name]); | ||
if (exists && !Array.isArray(exists.name) && exists.name !== curr.name) { | ||
imports.push(curr); | ||
} | ||
if (exists && Array.isArray(exists.name)) { | ||
if (Array.isArray(curr.name)) { | ||
exists.name = uniq([...exists.name, ...curr.name]); | ||
} | ||
} | ||
}); | ||
@@ -283,0 +287,0 @@ const importSource = imports.reduce((prev, curr) => { |
{ | ||
"name": "@kubb/core", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"description": "Generator core", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -52,8 +52,13 @@ import uniq from 'lodash.uniq' | ||
}) | ||
return | ||
} | ||
if (exists && Array.isArray(curr.name)) { | ||
exists.name = uniq([...exists.name, ...curr.name]) | ||
if (exists && !Array.isArray(exists.name) && exists.name !== curr.name) { | ||
imports.push(curr) | ||
} | ||
if (exists && Array.isArray(exists.name)) { | ||
if (Array.isArray(curr.name)) { | ||
exists.name = uniq([...exists.name, ...curr.name]) | ||
} | ||
} | ||
}) | ||
@@ -60,0 +65,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
190225
2973