@eventcatalog/core 4.0.5 → 4.0.6

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.
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(analytics_exports);
36
36
  var import_os = __toESM(require("os"), 1);
37
37
 
38
38
  // package.json
39
- var version = "4.0.5";
39
+ var version = "4.0.6";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-P4JJRN7P.js";
4
- import "../chunk-3RHS7TFM.js";
3
+ } from "../chunk-FHVBLKWN.js";
4
+ import "../chunk-Z7BGWB5J.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -140,7 +140,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
140
140
  var import_os = __toESM(require("os"), 1);
141
141
 
142
142
  // package.json
143
- var version = "4.0.5";
143
+ var version = "4.0.6";
144
144
 
145
145
  // src/constants.ts
146
146
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-YGSPS7DC.js";
4
- import "../chunk-P4JJRN7P.js";
3
+ } from "../chunk-ZYWUN3T3.js";
4
+ import "../chunk-FHVBLKWN.js";
5
5
  import "../chunk-DAOXTQVS.js";
6
- import "../chunk-3RHS7TFM.js";
6
+ import "../chunk-Z7BGWB5J.js";
7
7
  import "../chunk-6QENHZZP.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-VENVGFLE.js";
3
+ } from "./chunk-ZXAF4JO7.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-3RHS7TFM.js";
3
+ } from "./chunk-Z7BGWB5J.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "4.0.5";
2
+ var version = "4.0.6";
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-3RHS7TFM.js";
3
+ } from "./chunk-Z7BGWB5J.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-P4JJRN7P.js";
3
+ } from "./chunk-FHVBLKWN.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "4.0.5";
28
+ var version = "4.0.6";
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-3RHS7TFM.js";
3
+ } from "./chunk-Z7BGWB5J.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -144,7 +144,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
144
144
  var import_picocolors = __toESM(require("picocolors"), 1);
145
145
 
146
146
  // package.json
147
- var version = "4.0.5";
147
+ var version = "4.0.6";
148
148
 
149
149
  // src/constants.ts
150
150
  var VERSION = version;
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  log_build_default
3
- } from "./chunk-YGSPS7DC.js";
3
+ } from "./chunk-ZYWUN3T3.js";
4
4
  import {
5
5
  runMigrations
6
6
  } from "./chunk-XUAF2H54.js";
7
7
  import "./chunk-CA4U2JP7.js";
8
8
  import {
9
9
  generate
10
- } from "./chunk-KDWSGOTX.js";
10
+ } from "./chunk-7443A7LZ.js";
11
11
  import {
12
12
  logger
13
- } from "./chunk-VENVGFLE.js";
13
+ } from "./chunk-ZXAF4JO7.js";
14
14
  import {
15
15
  resolve_catalog_dependencies_default
16
16
  } from "./chunk-LHR4G2UO.js";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  watch
22
22
  } from "./chunk-O3Y2G6CY.js";
23
- import "./chunk-P4JJRN7P.js";
23
+ import "./chunk-FHVBLKWN.js";
24
24
  import "./chunk-DAOXTQVS.js";
25
25
  import {
26
26
  catalogToAstro
@@ -28,7 +28,7 @@ import {
28
28
  import "./chunk-VC6VUJIX.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-3RHS7TFM.js";
31
+ } from "./chunk-Z7BGWB5J.js";
32
32
  import {
33
33
  linkCoreNodeModules,
34
34
  resolveInstalledCoreNodeModules
package/dist/generate.cjs CHANGED
@@ -108,7 +108,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
108
108
  var import_picocolors = __toESM(require("picocolors"), 1);
109
109
 
110
110
  // package.json
111
- var version = "4.0.5";
111
+ var version = "4.0.6";
112
112
 
113
113
  // src/constants.ts
114
114
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-KDWSGOTX.js";
4
- import "./chunk-VENVGFLE.js";
5
- import "./chunk-3RHS7TFM.js";
3
+ } from "./chunk-7443A7LZ.js";
4
+ import "./chunk-ZXAF4JO7.js";
5
+ import "./chunk-Z7BGWB5J.js";
6
6
  import "./chunk-6QENHZZP.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "4.0.5";
39
+ var version = "4.0.6";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-VENVGFLE.js";
4
- import "../chunk-3RHS7TFM.js";
3
+ } from "../chunk-ZXAF4JO7.js";
4
+ import "../chunk-Z7BGWB5J.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -105,7 +105,8 @@ try {
105
105
 
106
106
  function moveSchemaViewerToPortal(schema) {
107
107
  const schemaViewerContainers = document.querySelectorAll(`[data-schema-viewer-portal-id="${schema.id}"]`);
108
- const schemaViewerContainer = schemaViewerContainers[schema.index];
108
+ const schemaPortalIndex = schemas.slice(0, schema.index).filter((previousSchema) => previousSchema.id === schema.id).length;
109
+ const schemaViewerContainer = schemaViewerContainers[schemaPortalIndex];
109
110
  const schemaViewerClient = document.getElementById(`${schema.id}-${schema.index}-SchemaViewer-client`);
110
111
 
111
112
  if (schemaViewerContainer && schemaViewerClient) {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "4.0.5",
10
+ "version": "4.0.6",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -116,9 +116,9 @@
116
116
  "update-notifier": "^7.3.1",
117
117
  "uuid": "^10.0.0",
118
118
  "zod": "^4.3.6",
119
- "@eventcatalog/linter": "1.1.3",
120
119
  "@eventcatalog/sdk": "2.25.0",
121
- "@eventcatalog/visualiser": "^4.0.0"
120
+ "@eventcatalog/visualiser": "^4.0.0",
121
+ "@eventcatalog/linter": "1.1.3"
122
122
  },
123
123
  "devDependencies": {
124
124
  "@astrojs/check": "^0.9.9",