@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 CHANGED
@@ -303,7 +303,7 @@ var import_path3 = __toESM(require("path"));
303
303
  // package.json
304
304
  var package_default = {
305
305
  name: "@eventcatalog/generator-asyncapi",
306
- version: "5.0.0",
306
+ version: "5.0.1",
307
307
  description: "AsyncAPI generator for EventCatalog",
308
308
  scripts: {
309
309
  build: "tsup",
@@ -2989,6 +2989,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
2989
2989
  const isReceived = operation.action() === "receive" || operation.action() === "subscribe";
2990
2990
  const isSent = operation.action() === "send" || operation.action() === "publish";
2991
2991
  let messageId = options.messages?.id?.lowerCase ? message2.id().toLowerCase() : message2.id();
2992
+ const messageName = messageId;
2992
2993
  if (eventType !== "event" && eventType !== "command" && eventType !== "query") {
2993
2994
  throw new Error("Invalid message type");
2994
2995
  }
@@ -3011,7 +3012,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
3011
3012
  let messageBadges = null;
3012
3013
  let messageAttachments = null;
3013
3014
  console.log(import_chalk4.default.blue(`Processing message: ${getMessageName(message2)} (v${messageVersion})`));
3014
- let messagePath = (0, import_node_path.join)(servicePath, folder, messageId);
3015
+ let messagePath = (0, import_node_path.join)(servicePath, folder, messageName);
3015
3016
  if (options.writeFilesToRoot) {
3016
3017
  messagePath = messageId;
3017
3018
  }