@eventcatalog/generator-asyncapi 5.0.0 → 5.0.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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -292,7 +292,7 @@ import path3 from "path";
|
|
|
292
292
|
// package.json
|
|
293
293
|
var package_default = {
|
|
294
294
|
name: "@eventcatalog/generator-asyncapi",
|
|
295
|
-
version: "5.0.
|
|
295
|
+
version: "5.0.1",
|
|
296
296
|
description: "AsyncAPI generator for EventCatalog",
|
|
297
297
|
scripts: {
|
|
298
298
|
build: "tsup",
|
|
@@ -2978,6 +2978,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
2978
2978
|
const isReceived = operation.action() === "receive" || operation.action() === "subscribe";
|
|
2979
2979
|
const isSent = operation.action() === "send" || operation.action() === "publish";
|
|
2980
2980
|
let messageId = options.messages?.id?.lowerCase ? message2.id().toLowerCase() : message2.id();
|
|
2981
|
+
const messageName = messageId;
|
|
2981
2982
|
if (eventType !== "event" && eventType !== "command" && eventType !== "query") {
|
|
2982
2983
|
throw new Error("Invalid message type");
|
|
2983
2984
|
}
|
|
@@ -3000,7 +3001,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
3000
3001
|
let messageBadges = null;
|
|
3001
3002
|
let messageAttachments = null;
|
|
3002
3003
|
console.log(chalk4.blue(`Processing message: ${getMessageName(message2)} (v${messageVersion})`));
|
|
3003
|
-
let messagePath = join(servicePath, folder,
|
|
3004
|
+
let messagePath = join(servicePath, folder, messageName);
|
|
3004
3005
|
if (options.writeFilesToRoot) {
|
|
3005
3006
|
messagePath = messageId;
|
|
3006
3007
|
}
|