@eventcatalog/core 2.18.1 → 2.18.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.
- 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-ZP7QFMPR.js → chunk-JG77VIA4.js} +1 -1
- package/dist/{chunk-S5LUNNXF.js → chunk-PSMNZFCI.js} +1 -1
- package/dist/{chunk-T4L2ITVE.js → chunk-RF2R7CRK.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/utils/collections/domains.ts +6 -6
- 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-PSMNZFCI.js";
|
|
4
|
+
import "../chunk-JG77VIA4.js";
|
|
5
|
+
import "../chunk-RF2R7CRK.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.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
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-SHCMAL37.js";
|
|
4
4
|
import {
|
|
5
5
|
log_build_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PSMNZFCI.js";
|
|
7
|
+
import "./chunk-JG77VIA4.js";
|
|
8
8
|
import {
|
|
9
9
|
catalogToAstro
|
|
10
10
|
} from "./chunk-WF34R5UT.js";
|
|
11
11
|
import {
|
|
12
12
|
VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RF2R7CRK.js";
|
|
14
14
|
import {
|
|
15
15
|
generate
|
|
16
16
|
} from "./chunk-YEQVKHST.js";
|
|
@@ -20,10 +20,10 @@ let cachedDomains: Record<string, Domain[]> = {
|
|
|
20
20
|
export const getDomains = async ({ getAllVersions = true }: Props = {}): Promise<Domain[]> => {
|
|
21
21
|
const cacheKey = getAllVersions ? 'allVersions' : 'currentVersions';
|
|
22
22
|
|
|
23
|
-
// Check if we have cached domains for this specific getAllVersions value
|
|
24
|
-
if (cachedDomains[cacheKey].length > 0) {
|
|
25
|
-
|
|
26
|
-
}
|
|
23
|
+
// // Check if we have cached domains for this specific getAllVersions value
|
|
24
|
+
// if (cachedDomains[cacheKey].length > 0) {
|
|
25
|
+
// return cachedDomains[cacheKey];
|
|
26
|
+
// }
|
|
27
27
|
|
|
28
28
|
// Get all the domains that are not versioned
|
|
29
29
|
const domains = await getCollection('domains', (domain) => {
|
|
@@ -69,10 +69,10 @@ export const getDomains = async ({ getAllVersions = true }: Props = {}): Promise
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
export const getUbiquitousLanguage = async (domain: Domain): Promise<UbiquitousLanguage[]> => {
|
|
72
|
-
const { collection, data
|
|
72
|
+
const { collection, data } = domain;
|
|
73
73
|
|
|
74
74
|
const ubiquitousLanguages = await getCollection('ubiquitousLanguages', (ubiquitousLanguage) => {
|
|
75
|
-
return ubiquitousLanguage.id.includes(`${collection}/${data.name}
|
|
75
|
+
return ubiquitousLanguage.id.toLowerCase().includes(`${collection}/${data.name}`.toLowerCase());
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
return ubiquitousLanguages;
|