@eventcatalog/core 2.42.7 → 2.42.9

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.
@@ -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.42.7";
40
+ var version = "2.42.9";
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-774S2HDO.js";
4
- import "../chunk-AIFALM4J.js";
3
+ } from "../chunk-OQA3PAMR.js";
4
+ import "../chunk-ISA6KNLN.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.42.7";
109
+ var version = "2.42.9";
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-3HMUTETN.js";
4
- import "../chunk-774S2HDO.js";
5
- import "../chunk-AIFALM4J.js";
3
+ } from "../chunk-4A2C2PVU.js";
4
+ import "../chunk-OQA3PAMR.js";
5
+ import "../chunk-ISA6KNLN.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-774S2HDO.js";
3
+ } from "./chunk-OQA3PAMR.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.42.7";
2
+ var version = "2.42.9";
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-AIFALM4J.js";
3
+ } from "./chunk-ISA6KNLN.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.42.7";
28
+ var version = "2.42.9";
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-AIFALM4J.js";
3
+ } from "./chunk-ISA6KNLN.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.42.7";
160
+ var version = "2.42.9";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -41,6 +41,7 @@ interface Config {
41
41
  landingPage?: string;
42
42
  base?: string;
43
43
  port?: string;
44
+ host?: string;
44
45
  trailingSlash?: boolean;
45
46
  output?: 'server' | 'static';
46
47
  rss?: {
@@ -41,6 +41,7 @@ interface Config {
41
41
  landingPage?: string;
42
42
  base?: string;
43
43
  port?: string;
44
+ host?: string;
44
45
  trailingSlash?: boolean;
45
46
  output?: 'server' | 'static';
46
47
  rss?: {
@@ -6,15 +6,15 @@ import {
6
6
  } from "./chunk-DCLTVJDP.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-3HMUTETN.js";
10
- import "./chunk-774S2HDO.js";
9
+ } from "./chunk-4A2C2PVU.js";
10
+ import "./chunk-OQA3PAMR.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
14
14
  } from "./chunk-SLEMYHTU.js";
15
15
  import {
16
16
  VERSION
17
- } from "./chunk-AIFALM4J.js";
17
+ } from "./chunk-ISA6KNLN.js";
18
18
  import {
19
19
  isBackstagePluginEnabled,
20
20
  isEventCatalogScaleEnabled,
@@ -16,11 +16,12 @@ import expressiveCode from 'astro-expressive-code';
16
16
 
17
17
  const projectDirectory = process.env.PROJECT_DIR || process.cwd();
18
18
  const base = config.base || '/';
19
+ const host = config.host || false;
19
20
 
20
21
  // https://astro.build/config
21
22
  export default defineConfig({
22
23
  base,
23
- server: { port: config.port || 3000 },
24
+ server: { port: config.port || 3000, host: host },
24
25
 
25
26
  // output: config.output || 'static',
26
27
 
@@ -1,7 +1,3 @@
1
1
  #nav-bar-search {
2
2
  margin: 0 10px;
3
3
  }
4
-
5
- .scalar-card-header[data-v-838dc259] {
6
- display: none !important;
7
- }
@@ -29,7 +29,7 @@ export const GET: APIRoute = async ({ params, props }) => {
29
29
  return new Response('llms.txt is not enabled for this Catalog.', { status: 404 });
30
30
  }
31
31
 
32
- const ubiquitousLanguages = await getUbiquitousLanguage(props);
32
+ const ubiquitousLanguages = await getUbiquitousLanguage(props as CollectionEntry<'domains'>);
33
33
  const ubiquitousLanguage = ubiquitousLanguages[0];
34
34
 
35
35
  if (ubiquitousLanguage?.filePath) {
@@ -0,0 +1,40 @@
1
+ import { type CollectionEntry } from 'astro:content';
2
+ import type { APIRoute } from 'astro';
3
+
4
+ import { getServices } from '@utils/collections/services';
5
+
6
+ const services = await getServices();
7
+
8
+ export const GET: APIRoute = async ({ params, request }) => {
9
+ const url = new URL(request.url);
10
+ const baseUrl = process.env.LLMS_TXT_BASE_URL || `${url.origin}`;
11
+
12
+ const formatServiceWithLinks = (service: CollectionEntry<'services'>) => {
13
+ const sends = service.data.sends as unknown as CollectionEntry<'events'>[];
14
+ const receives = service.data.receives as unknown as CollectionEntry<'events'>[];
15
+
16
+ const sendsList =
17
+ sends
18
+ .map(
19
+ (send) =>
20
+ ` - [${send.data.name} - ${send.data.version}](${baseUrl}/docs/events/${send.data.id}/${send.data.version}.mdx) - ${send.data.summary}`
21
+ )
22
+ .join('') || ' - Does not send any messages';
23
+
24
+ const receivesList =
25
+ receives
26
+ .map(
27
+ (receive) =>
28
+ ` - [${receive.data.name} - ${receive.data.version}](${baseUrl}/docs/events/${receive.data.id}/${receive.data.version}.mdx) - ${receive.data.summary}`
29
+ )
30
+ .join('') || ' - Does not receive any messages';
31
+
32
+ return `## [${service.data.name} - ${service.data.version}](${baseUrl}/docs/services/${service.data.id}/${service.data.version}.mdx) - ${service.data.summary}\n ## Sends\n${sendsList}\n ## Receives\n${receivesList}`;
33
+ };
34
+
35
+ const content = ['# Services \n\n', services.map((item) => formatServiceWithLinks(item)).join('\n')].join('\n');
36
+
37
+ return new Response(content, {
38
+ headers: { 'Content-Type': 'text/plain; charset=utf-8' },
39
+ });
40
+ };
@@ -3,7 +3,7 @@ import config from '@config';
3
3
  import type { APIRoute } from 'astro';
4
4
 
5
5
  import { isCustomDocsEnabled } from '@utils/feature';
6
- import { getUbiquitousLanguage, type UbiquitousLanguage } from '@utils/collections/domains';
6
+ import { getUbiquitousLanguage } from '@utils/collections/domains';
7
7
 
8
8
  const events = await getCollection('events');
9
9
  const commands = await getCollection('commands');
@@ -45,7 +45,7 @@ const renderUbiquitousLanguages = (baseUrl: string) => {
45
45
  // @ts-ignore
46
46
  const propertiesList = Object.entries(item.properties)
47
47
  .map(
48
- ([key, value]) =>
48
+ ([key, value]: any) =>
49
49
  ` - [${value.name}: - ${value.summary}](${baseUrl}/docs/domains/${domainId.split('-')[0]}/language.mdx)`
50
50
  )
51
51
  .join('\n');
@@ -78,7 +78,6 @@ const renderEntities = (baseUrl: string) => {
78
78
  .join('\n');
79
79
  };
80
80
 
81
- console.log('PROTOCOL', channels[0]);
82
81
  export const GET: APIRoute = async ({ params, request }) => {
83
82
  const url = new URL(request.url);
84
83
  const baseUrl = process.env.LLMS_TXT_BASE_URL || `${url.origin}`;
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.42.7",
9
+ "version": "2.42.9",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },