@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.
@@ -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.18.1";
40
+ var version = "2.18.2";
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-ZP7QFMPR.js";
4
- import "../chunk-T4L2ITVE.js";
3
+ } from "../chunk-JG77VIA4.js";
4
+ import "../chunk-RF2R7CRK.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.18.1";
109
+ var version = "2.18.2";
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-S5LUNNXF.js";
4
- import "../chunk-ZP7QFMPR.js";
5
- import "../chunk-T4L2ITVE.js";
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-T4L2ITVE.js";
3
+ } from "./chunk-RF2R7CRK.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-ZP7QFMPR.js";
3
+ } from "./chunk-JG77VIA4.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.18.1";
2
+ var version = "2.18.2";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.18.1";
28
+ var version = "2.18.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-T4L2ITVE.js";
3
+ } from "./chunk-RF2R7CRK.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
161
161
  var import_os = __toESM(require("os"), 1);
162
162
 
163
163
  // package.json
164
- var version = "2.18.1";
164
+ var version = "2.18.2";
165
165
 
166
166
  // src/constants.ts
167
167
  var VERSION = version;
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-SHCMAL37.js";
4
4
  import {
5
5
  log_build_default
6
- } from "./chunk-S5LUNNXF.js";
7
- import "./chunk-ZP7QFMPR.js";
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-T4L2ITVE.js";
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
- return cachedDomains[cacheKey];
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, slug } = domain;
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;
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.18.1",
9
+ "version": "2.18.2",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },