@eventcatalog/core 2.61.2 → 2.61.3
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/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-BYJ6RQTT.js → chunk-BMTNHR7C.js} +1 -1
- package/dist/{chunk-RQJ7FPSK.js → chunk-EICO7E3X.js} +1 -1
- package/dist/{chunk-PN45L4LR.js → chunk-LLJZTUOG.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/enterprise/eventcatalog-chat/providers/ai-provider.ts +8 -1
- package/eventcatalog/src/utils/url-builder.ts +1 -8
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-EICO7E3X.js";
|
|
4
|
+
import "../chunk-BMTNHR7C.js";
|
|
5
|
+
import "../chunk-LLJZTUOG.js";
|
|
6
6
|
import "../chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-EICO7E3X.js";
|
|
10
|
+
import "./chunk-BMTNHR7C.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import "./chunk-55D645EH.js";
|
|
16
16
|
import {
|
|
17
17
|
VERSION
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LLJZTUOG.js";
|
|
19
19
|
import {
|
|
20
20
|
getProjectOutDir,
|
|
21
21
|
isAuthEnabled,
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { getBaseURL } from '@utils/url-builder';
|
|
2
1
|
import { streamText, tool, type LanguageModel, type UIMessage, stepCountIs, convertToModelMessages } from 'ai';
|
|
3
2
|
import { z } from 'astro/zod';
|
|
3
|
+
import config from '@config';
|
|
4
|
+
|
|
5
|
+
const getBaseURL = () => {
|
|
6
|
+
if (import.meta.env.MODE === 'development') {
|
|
7
|
+
return `http://localhost:${config.port || 3000}`;
|
|
8
|
+
}
|
|
9
|
+
return config.homepageLink || 'https://eventcatalog.dev/';
|
|
10
|
+
};
|
|
4
11
|
|
|
5
12
|
export const getEventCatalogResources = async () => {
|
|
6
13
|
const baseUrl = process.env.EVENTCATALOG_URL || getBaseURL();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import config
|
|
1
|
+
// Don't import config here, as it breaks in the client, as path cannot be resolved.
|
|
2
2
|
|
|
3
3
|
const cleanUrl = (url: string) => {
|
|
4
4
|
return url.replace(/\/+/g, '/');
|
|
@@ -62,10 +62,3 @@ export const toMarkdownUrl = (url: string) => {
|
|
|
62
62
|
|
|
63
63
|
return url + '.mdx';
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
export const getBaseURL = () => {
|
|
67
|
-
if (import.meta.env.MODE === 'development') {
|
|
68
|
-
return `http://localhost:${config.port || 3000}`;
|
|
69
|
-
}
|
|
70
|
-
return config.homepageLink || 'https://eventcatalog.dev/';
|
|
71
|
-
};
|