@eventcatalog/generator-asyncapi 6.3.0 → 6.3.1
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/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1538,7 +1538,7 @@ import path3 from "path";
|
|
|
1538
1538
|
// package.json
|
|
1539
1539
|
var package_default = {
|
|
1540
1540
|
name: "@eventcatalog/generator-asyncapi",
|
|
1541
|
-
version: "6.3.
|
|
1541
|
+
version: "6.3.1",
|
|
1542
1542
|
description: "AsyncAPI generator for EventCatalog",
|
|
1543
1543
|
scripts: {
|
|
1544
1544
|
build: "tsup",
|
|
@@ -4168,10 +4168,12 @@ var consolidateMessages = (array) => {
|
|
|
4168
4168
|
const existing = map.get(key);
|
|
4169
4169
|
if (existing) {
|
|
4170
4170
|
if (item.to) {
|
|
4171
|
-
|
|
4171
|
+
const merged = [...existing.to || [], ...item.to];
|
|
4172
|
+
existing.to = merged.filter((ch, i, arr) => i === arr.findIndex((c) => c.id === ch.id));
|
|
4172
4173
|
}
|
|
4173
4174
|
if (item.from) {
|
|
4174
|
-
|
|
4175
|
+
const merged = [...existing.from || [], ...item.from];
|
|
4176
|
+
existing.from = merged.filter((ch, i, arr) => i === arr.findIndex((c) => c.id === ch.id));
|
|
4175
4177
|
}
|
|
4176
4178
|
} else {
|
|
4177
4179
|
map.set(key, { ...item });
|