@eventcatalog/sdk 2.6.3 → 2.6.4
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/channels.js +1 -1
- package/dist/channels.js.map +1 -1
- package/dist/channels.mjs +1 -1
- package/dist/channels.mjs.map +1 -1
- package/dist/eventcatalog.js +2 -2
- package/dist/eventcatalog.js.map +1 -1
- package/dist/eventcatalog.mjs +2 -2
- package/dist/eventcatalog.mjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/messages.js.map +1 -1
- package/dist/messages.mjs.map +1 -1
- package/dist/services.js +1 -1
- package/dist/services.js.map +1 -1
- package/dist/services.mjs +1 -1
- package/dist/services.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -525,7 +525,7 @@ var addMessageToService = (directory) => async (id, direction, event, version) =
|
|
|
525
525
|
if (!existingResource) {
|
|
526
526
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
527
527
|
}
|
|
528
|
-
const path4 = existingResource.split(
|
|
528
|
+
const path4 = existingResource.split(/[\\/]+services/)[0];
|
|
529
529
|
const pathToResource = (0, import_node_path5.join)(path4, "services");
|
|
530
530
|
await rmServiceById(directory)(id, version);
|
|
531
531
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
@@ -666,7 +666,7 @@ var addMessageToChannel = (directory, collection) => async (id, _message, versio
|
|
|
666
666
|
if (!existingResource) {
|
|
667
667
|
throw new Error(`Cannot find message ${id} in the catalog`);
|
|
668
668
|
}
|
|
669
|
-
const path4 = existingResource.split(
|
|
669
|
+
const path4 = existingResource.split(`/[\\/]+${collection}`)[0];
|
|
670
670
|
const pathToResource = (0, import_node_path7.join)(path4, collection);
|
|
671
671
|
await rmMessageById(directory)(_message.id, _message.version, true);
|
|
672
672
|
await writeMessage(pathToResource)(message, { format: extension === ".md" ? "md" : "mdx" });
|