@eventcatalog/core 2.54.4 → 2.54.5

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 CHANGED
@@ -34,7 +34,7 @@
34
34
  <h4>Features: Documentation for Event Driven Architectures, Integration with any broker, Generator from your OpenAPI and AsyncAPI documents, Docs and Code, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
35
35
 
36
36
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
37
- [![All Contributors](https://img.shields.io/badge/all_contributors-55-orange.svg?style=flat-square)](#contributors-)
37
+ [![All Contributors](https://img.shields.io/badge/all_contributors-56-orange.svg?style=flat-square)](#contributors-)
38
38
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
39
39
 
40
40
  [Read the Docs](https://www.eventcatalog.dev/docs/development/getting-started/introduction) | [View Demo](https://demo.eventcatalog.dev)
@@ -257,6 +257,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
257
257
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/ababilone"><img src="https://avatars.githubusercontent.com/u/925013?v=4?s=100" width="100px;" alt="Arnaud Babilone"/><br /><sub><b>Arnaud Babilone</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=ababilone" title="Code">💻</a></td>
258
258
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/alexanderhorner"><img src="https://avatars.githubusercontent.com/u/18349361?v=4?s=100" width="100px;" alt="Alexander Horner"/><br /><sub><b>Alexander Horner</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=alexanderhorner" title="Code">💻</a></td>
259
259
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/simonwfarrow"><img src="https://avatars.githubusercontent.com/u/3245908?v=4?s=100" width="100px;" alt="simonwfarrow"/><br /><sub><b>simonwfarrow</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=simonwfarrow" title="Code">💻</a></td>
260
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/augusto-romero-arango"><img src="https://avatars.githubusercontent.com/u/142316821?v=4?s=100" width="100px;" alt="Augusto Romero Arango"/><br /><sub><b>Augusto Romero Arango</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=augusto-romero-arango" title="Code">💻</a></td>
260
261
  </tr>
261
262
  </tbody>
262
263
  </table>
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "2.54.4";
40
+ var version = "2.54.5";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-QTOY4HR4.js";
4
- import "../chunk-ILYNXPYT.js";
3
+ } from "../chunk-SMAVC5E6.js";
4
+ import "../chunk-KKHBA3ZL.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.54.4";
109
+ var version = "2.54.5";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-RSPVRELK.js";
4
- import "../chunk-QTOY4HR4.js";
5
- import "../chunk-ILYNXPYT.js";
3
+ } from "../chunk-4LDH2Z7T.js";
4
+ import "../chunk-SMAVC5E6.js";
5
+ import "../chunk-KKHBA3ZL.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-QTOY4HR4.js";
3
+ } from "./chunk-SMAVC5E6.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.54.4";
2
+ var version = "2.54.5";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-ILYNXPYT.js";
3
+ } from "./chunk-KKHBA3ZL.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.54.4";
28
+ var version = "2.54.5";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-ILYNXPYT.js";
3
+ } from "./chunk-KKHBA3ZL.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
157
157
  var import_os = __toESM(require("os"), 1);
158
158
 
159
159
  // package.json
160
- var version = "2.54.4";
160
+ var version = "2.54.5";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-XE6PFSH5.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-RSPVRELK.js";
10
- import "./chunk-QTOY4HR4.js";
9
+ } from "./chunk-4LDH2Z7T.js";
10
+ import "./chunk-SMAVC5E6.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
@@ -15,7 +15,7 @@ import {
15
15
  import "./chunk-LDBRNJIL.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-ILYNXPYT.js";
18
+ } from "./chunk-KKHBA3ZL.js";
19
19
  import {
20
20
  getProjectOutDir,
21
21
  isAuthEnabled,
@@ -12,12 +12,18 @@ export const resolveProjectPath = (filePath: string, projectDir: string = proces
12
12
  const projectDirName = path.basename(projectDir);
13
13
  const projectParentName = path.basename(path.dirname(projectDir));
14
14
 
15
- if (pathAfterDotDot.startsWith(`${projectParentName}/${projectDirName}/`)) {
16
- const remainingPath = pathAfterDotDot.substring(`${projectParentName}/${projectDirName}/`.length);
15
+ // Normalize path separators for cross-platform compatibility
16
+ const normalizedPathAfterDotDot = pathAfterDotDot.replace(/[/\\]/g, path.sep);
17
+ const expectedPattern = `${projectParentName}${path.sep}${projectDirName}${path.sep}`;
18
+
19
+ if (normalizedPathAfterDotDot.startsWith(expectedPattern)) {
20
+ const remainingPath = normalizedPathAfterDotDot.substring(expectedPattern.length);
17
21
  return path.join(projectDir, remainingPath);
18
22
  } else {
19
- const projectParent = path.dirname(projectDir);
20
- return path.join(projectParent, pathAfterDotDot);
23
+ // Instead of going to parent directory, resolve relative to current project directory
24
+ // This fixes the issue where ../ paths were incorrectly resolved outside the project
25
+ // Normalize the path separators before joining
26
+ return path.join(projectDir, normalizedPathAfterDotDot);
21
27
  }
22
28
  }
23
29
  return path.join(projectDir, filePath);
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "2.54.4",
9
+ "version": "2.54.5",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },