@eventcatalog/sdk 2.23.0 → 2.23.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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1843,7 +1843,7 @@ var addMessageToChannel = (directory, collection) => async (id, _message, versio
|
|
|
1843
1843
|
if (!existingResource) {
|
|
1844
1844
|
throw new Error(`Cannot find message ${id} in the catalog`);
|
|
1845
1845
|
}
|
|
1846
|
-
const path8 = existingResource.split(
|
|
1846
|
+
const path8 = existingResource.split(new RegExp(`[\\\\/]+${collection}`))[0];
|
|
1847
1847
|
const pathToResource = join9(path8, collection);
|
|
1848
1848
|
await rmMessageById(directory)(_message.id, _message.version, true);
|
|
1849
1849
|
await writeMessage(pathToResource)(message, { format: extension === ".md" ? "md" : "mdx" });
|