@eventcatalog/core 2.65.0-beta.4 → 2.65.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.
- package/README.md +1 -1
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-EXJB4PZB.js → chunk-BMDTX5IN.js} +1 -1
- package/dist/{chunk-SDRVO5WD.js → chunk-IJRFYF4B.js} +1 -1
- package/dist/{chunk-Q2QEOUZY.js → chunk-NK6OYMRD.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/utils/node-graphs/message-node-graph.ts +8 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IJRFYF4B.js";
|
|
4
|
+
import "../chunk-NK6OYMRD.js";
|
|
5
|
+
import "../chunk-BMDTX5IN.js";
|
|
6
6
|
import "../chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-IJRFYF4B.js";
|
|
10
|
+
import "./chunk-NK6OYMRD.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrations
|
|
13
13
|
} from "./chunk-BH3JMNAV.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import "./chunk-55D645EH.js";
|
|
20
20
|
import {
|
|
21
21
|
VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BMDTX5IN.js";
|
|
23
23
|
import {
|
|
24
24
|
getProjectOutDir,
|
|
25
25
|
isAuthEnabled,
|
|
@@ -476,8 +476,8 @@ export const getNodesAndEdgesForConsumedMessage = ({
|
|
|
476
476
|
id: generatedIdForEdge(message, target) + '-warning',
|
|
477
477
|
source: messageId,
|
|
478
478
|
target: generateIdForNode(target),
|
|
479
|
-
label:
|
|
480
|
-
data: { customColor: getColorFromString(message.data.id),
|
|
479
|
+
label: getEdgeLabelForMessageAsSource(message),
|
|
480
|
+
data: { customColor: getColorFromString(message.data.id), rootSourceAndTarget },
|
|
481
481
|
})
|
|
482
482
|
);
|
|
483
483
|
}
|
|
@@ -512,7 +512,7 @@ export const getNodesAndEdgesForConsumedMessage = ({
|
|
|
512
512
|
createNode({
|
|
513
513
|
id: channelId,
|
|
514
514
|
type: channel.collection,
|
|
515
|
-
data: { mode, channel: { ...channel.data, ...channel } },
|
|
515
|
+
data: { mode, channel: { ...channel.data, ...channel, id: channel.data.id } },
|
|
516
516
|
position: { x: 0, y: 0 },
|
|
517
517
|
})
|
|
518
518
|
);
|
|
@@ -523,8 +523,8 @@ export const getNodesAndEdgesForConsumedMessage = ({
|
|
|
523
523
|
id: generatedIdForEdge(channel, target),
|
|
524
524
|
source: channelId,
|
|
525
525
|
target: generateIdForNode(target),
|
|
526
|
-
label:
|
|
527
|
-
data: { customColor: getColorFromString(message.data.id),
|
|
526
|
+
label: getEdgeLabelForMessageAsSource(message),
|
|
527
|
+
data: { customColor: getColorFromString(message.data.id), rootSourceAndTarget },
|
|
528
528
|
})
|
|
529
529
|
);
|
|
530
530
|
|
|
@@ -537,18 +537,8 @@ export const getNodesAndEdgesForConsumedMessage = ({
|
|
|
537
537
|
id: generatedIdForEdge(message, channel),
|
|
538
538
|
source: messageId,
|
|
539
539
|
target: channelId,
|
|
540
|
-
label:
|
|
541
|
-
data: { customColor: getColorFromString(message.data.id),
|
|
542
|
-
markerEnd: {
|
|
543
|
-
type: MarkerType.ArrowClosed,
|
|
544
|
-
width: 40,
|
|
545
|
-
height: 40,
|
|
546
|
-
color: 'red',
|
|
547
|
-
},
|
|
548
|
-
style: {
|
|
549
|
-
strokeWidth: 5,
|
|
550
|
-
stroke: 'red',
|
|
551
|
-
},
|
|
540
|
+
label: 'routes to',
|
|
541
|
+
data: { customColor: getColorFromString(message.data.id), rootSourceAndTarget },
|
|
552
542
|
})
|
|
553
543
|
);
|
|
554
544
|
}
|
|
@@ -827,7 +817,7 @@ export const getNodesAndEdgesForProducedMessage = ({
|
|
|
827
817
|
createNode({
|
|
828
818
|
id: channelId,
|
|
829
819
|
type: channel.collection,
|
|
830
|
-
data: { mode, channel: { ...channel.data, ...channel, mode } },
|
|
820
|
+
data: { mode, channel: { ...channel.data, ...channel, mode, id: channel.data.id } },
|
|
831
821
|
position: { x: 0, y: 0 },
|
|
832
822
|
})
|
|
833
823
|
);
|