@eventcatalog/core 4.0.0 → 4.0.2

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.0";
39
+ var version = "4.0.2";
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-UNDBIZWO.js";
4
- import "../chunk-J5YNDRCG.js";
3
+ } from "../chunk-WHYG3GJ7.js";
4
+ import "../chunk-NRGIYMDX.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.0";
143
+ var version = "4.0.2";
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-BN7HYT7S.js";
4
- import "../chunk-UNDBIZWO.js";
3
+ } from "../chunk-URZQEXJ4.js";
4
+ import "../chunk-WHYG3GJ7.js";
5
5
  import "../chunk-DAOXTQVS.js";
6
- import "../chunk-J5YNDRCG.js";
6
+ import "../chunk-NRGIYMDX.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
  VERSION
3
- } from "./chunk-J5YNDRCG.js";
3
+ } from "./chunk-NRGIYMDX.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "4.0.0";
2
+ var version = "4.0.2";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-OHN54GDX.js";
3
+ } from "./chunk-3CI2JSWL.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-UNDBIZWO.js";
3
+ } from "./chunk-WHYG3GJ7.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-J5YNDRCG.js";
3
+ } from "./chunk-NRGIYMDX.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -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.0";
28
+ var version = "4.0.2";
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-J5YNDRCG.js";
3
+ } from "./chunk-NRGIYMDX.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.0";
147
+ var version = "4.0.2";
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-BN7HYT7S.js";
3
+ } from "./chunk-URZQEXJ4.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-T76MLREB.js";
10
+ } from "./chunk-QCK56K3B.js";
11
11
  import {
12
12
  logger
13
- } from "./chunk-OHN54GDX.js";
13
+ } from "./chunk-3CI2JSWL.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-UNDBIZWO.js";
23
+ import "./chunk-WHYG3GJ7.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-J5YNDRCG.js";
31
+ } from "./chunk-NRGIYMDX.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.0";
111
+ var version = "4.0.2";
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-T76MLREB.js";
4
- import "./chunk-OHN54GDX.js";
5
- import "./chunk-J5YNDRCG.js";
3
+ } from "./chunk-QCK56K3B.js";
4
+ import "./chunk-3CI2JSWL.js";
5
+ import "./chunk-NRGIYMDX.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.0";
39
+ var version = "4.0.2";
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-OHN54GDX.js";
4
- import "../chunk-J5YNDRCG.js";
3
+ } from "../chunk-3CI2JSWL.js";
4
+ import "../chunk-NRGIYMDX.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -42,6 +42,11 @@ import { jsx } from 'astro/jsx-runtime';
42
42
  import RemoteSchema from '@components/MDX/RemoteSchema.astro';
43
43
  import Visibility from '@components/MDX/Visibility';
44
44
 
45
+ const getEntityMapCollection = (props: any, mdxProp: any) => {
46
+ const collection = mdxProp.collection ?? props.collection;
47
+ return collection === 'domains' || collection === 'services' ? collection : undefined;
48
+ };
49
+
45
50
  const components = (props: any) => {
46
51
  return {
47
52
  Attachments: (mdxProp: any) => jsx(Attachments, { ...props, ...mdxProp }),
@@ -63,7 +68,7 @@ const components = (props: any) => {
63
68
  ComponentDiagram: (mdxProp: any) => jsx(NodeGraphPortal, { ...props.data, ...mdxProp, props, mdxProp }),
64
69
  ContextDiagram: (mdxProp: any) => jsx(ContextDiagramPortal, { ...props.data, ...mdxProp, props, mdxProp }),
65
70
  SystemContextMap: (mdxProp: any) => jsx(SystemContextMapPortal, { ...mdxProp }),
66
- EntityMap: (mdxProp: any) => jsx(EntityMap, { ...props, ...mdxProp }),
71
+ EntityMap: (mdxProp: any) => jsx(EntityMap, { ...props, ...mdxProp, collection: getEntityMapCollection(props, mdxProp) }),
67
72
  OpenAPI,
68
73
  Prompt: (mdxProp: any) => jsx(Prompt, { ...props, ...mdxProp }),
69
74
  ResourceGroupTable: (mdxProp: any) => jsx(ResourceGroupTable, { ...props, ...mdxProp }),
@@ -0,0 +1,13 @@
1
+ declare module 'picomatch' {
2
+ export interface Options {
3
+ [key: string]: unknown;
4
+ }
5
+
6
+ interface Picomatch {
7
+ (globs: string | string[], options?: Options): (input: string) => boolean;
8
+ isMatch(input: string | string[], glob: string | string[], options?: Options): boolean;
9
+ }
10
+
11
+ const picomatch: Picomatch;
12
+ export default picomatch;
13
+ }
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.0",
10
+ "version": "4.0.2",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -115,7 +115,7 @@
115
115
  "update-notifier": "^7.3.1",
116
116
  "uuid": "^10.0.0",
117
117
  "zod": "^4.3.6",
118
- "@eventcatalog/linter": "1.1.2",
118
+ "@eventcatalog/linter": "1.1.3",
119
119
  "@eventcatalog/visualiser": "^4.0.0",
120
120
  "@eventcatalog/sdk": "2.25.0"
121
121
  },