@eventcatalog/core 3.41.1 → 3.41.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.
@@ -33,11 +33,10 @@ __export(analytics_exports, {
33
33
  raiseEvent: () => raiseEvent
34
34
  });
35
35
  module.exports = __toCommonJS(analytics_exports);
36
- var import_axios = __toESM(require("axios"), 1);
37
36
  var import_os = __toESM(require("os"), 1);
38
37
 
39
38
  // package.json
40
- var version = "3.41.1";
39
+ var version = "3.41.3";
41
40
 
42
41
  // src/constants.ts
43
42
  var VERSION = version;
@@ -61,7 +60,14 @@ async function raiseEvent(eventData) {
61
60
  ua: userAgent
62
61
  };
63
62
  try {
64
- await import_axios.default.post(url, payload, { headers });
63
+ const response = await fetch(url, {
64
+ method: "POST",
65
+ headers,
66
+ body: JSON.stringify(payload)
67
+ });
68
+ if (!response.ok) {
69
+ throw new Error(`Failed to raise analytics event: ${response.status}`);
70
+ }
65
71
  } catch (error) {
66
72
  }
67
73
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-6C2H2YLW.js";
4
- import "../chunk-X5JM6SAH.js";
3
+ } from "../chunk-OAKTA2TK.js";
4
+ import "../chunk-Z5FOJKNW.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -107,11 +107,10 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
107
107
  };
108
108
 
109
109
  // src/analytics/analytics.js
110
- var import_axios = __toESM(require("axios"), 1);
111
110
  var import_os = __toESM(require("os"), 1);
112
111
 
113
112
  // package.json
114
- var version = "3.41.1";
113
+ var version = "3.41.3";
115
114
 
116
115
  // src/constants.ts
117
116
  var VERSION = version;
@@ -135,7 +134,14 @@ async function raiseEvent(eventData) {
135
134
  ua: userAgent
136
135
  };
137
136
  try {
138
- await import_axios.default.post(url, payload, { headers });
137
+ const response = await fetch(url, {
138
+ method: "POST",
139
+ headers,
140
+ body: JSON.stringify(payload)
141
+ });
142
+ if (!response.ok) {
143
+ throw new Error(`Failed to raise analytics event: ${response.status}`);
144
+ }
139
145
  } catch (error) {
140
146
  }
141
147
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-UGNBEYJJ.js";
4
- import "../chunk-6C2H2YLW.js";
3
+ } from "../chunk-LDIQOYHO.js";
4
+ import "../chunk-OAKTA2TK.js";
5
5
  import "../chunk-3DVHEVHQ.js";
6
- import "../chunk-X5JM6SAH.js";
6
+ import "../chunk-Z5FOJKNW.js";
7
7
  import "../chunk-5T63CXKU.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-X5JM6SAH.js";
3
+ } from "./chunk-Z5FOJKNW.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-6C2H2YLW.js";
3
+ } from "./chunk-OAKTA2TK.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,9 +1,8 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-X5JM6SAH.js";
3
+ } from "./chunk-Z5FOJKNW.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
- import axios from "axios";
7
6
  import os from "os";
8
7
  async function raiseEvent(eventData) {
9
8
  const url = "https://queue.simpleanalyticscdn.com/events";
@@ -23,7 +22,14 @@ async function raiseEvent(eventData) {
23
22
  ua: userAgent
24
23
  };
25
24
  try {
26
- await axios.post(url, payload, { headers });
25
+ const response = await fetch(url, {
26
+ method: "POST",
27
+ headers,
28
+ body: JSON.stringify(payload)
29
+ });
30
+ if (!response.ok) {
31
+ throw new Error(`Failed to raise analytics event: ${response.status}`);
32
+ }
27
33
  } catch (error) {
28
34
  }
29
35
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-GNLFCESR.js";
3
+ } from "./chunk-IDDIDORN.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.41.1";
2
+ var version = "3.41.3";
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 = "3.41.1";
28
+ var version = "3.41.3";
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-X5JM6SAH.js";
3
+ } from "./chunk-Z5FOJKNW.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -114,7 +114,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
114
114
  var import_picocolors = __toESM(require("picocolors"), 1);
115
115
 
116
116
  // package.json
117
- var version = "3.41.1";
117
+ var version = "3.41.3";
118
118
 
119
119
  // src/constants.ts
120
120
  var VERSION = version;
@@ -210,7 +210,6 @@ var generate = async (PROJECT_DIRECTORY) => {
210
210
  };
211
211
 
212
212
  // src/analytics/analytics.js
213
- var import_axios = __toESM(require("axios"), 1);
214
213
  var import_os = __toESM(require("os"), 1);
215
214
  async function raiseEvent(eventData) {
216
215
  const url = "https://queue.simpleanalyticscdn.com/events";
@@ -230,7 +229,14 @@ async function raiseEvent(eventData) {
230
229
  ua: userAgent
231
230
  };
232
231
  try {
233
- await import_axios.default.post(url, payload, { headers });
232
+ const response = await fetch(url, {
233
+ method: "POST",
234
+ headers,
235
+ body: JSON.stringify(payload)
236
+ });
237
+ if (!response.ok) {
238
+ throw new Error(`Failed to raise analytics event: ${response.status}`);
239
+ }
234
240
  } catch (error) {
235
241
  }
236
242
  }
@@ -13,8 +13,8 @@ import {
13
13
  } from "./chunk-3H2RT3CM.js";
14
14
  import {
15
15
  log_build_default
16
- } from "./chunk-UGNBEYJJ.js";
17
- import "./chunk-6C2H2YLW.js";
16
+ } from "./chunk-LDIQOYHO.js";
17
+ import "./chunk-OAKTA2TK.js";
18
18
  import "./chunk-3DVHEVHQ.js";
19
19
  import {
20
20
  catalogToAstro
@@ -28,13 +28,13 @@ import {
28
28
  } from "./chunk-ULZYHF3V.js";
29
29
  import {
30
30
  generate
31
- } from "./chunk-Z5A2F2DN.js";
31
+ } from "./chunk-R6N3LSL4.js";
32
32
  import {
33
33
  logger
34
- } from "./chunk-GNLFCESR.js";
34
+ } from "./chunk-IDDIDORN.js";
35
35
  import {
36
36
  VERSION
37
- } from "./chunk-X5JM6SAH.js";
37
+ } from "./chunk-Z5FOJKNW.js";
38
38
  import {
39
39
  getEventCatalogConfigFile,
40
40
  verifyRequiredFieldsAreInCatalogConfigFile
package/dist/generate.cjs CHANGED
@@ -78,7 +78,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
78
78
  var import_picocolors = __toESM(require("picocolors"), 1);
79
79
 
80
80
  // package.json
81
- var version = "3.41.1";
81
+ var version = "3.41.3";
82
82
 
83
83
  // src/constants.ts
84
84
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-Z5A2F2DN.js";
4
- import "./chunk-GNLFCESR.js";
5
- import "./chunk-X5JM6SAH.js";
3
+ } from "./chunk-R6N3LSL4.js";
4
+ import "./chunk-IDDIDORN.js";
5
+ import "./chunk-Z5FOJKNW.js";
6
6
  import "./chunk-5T63CXKU.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 = "3.41.1";
39
+ var version = "3.41.3";
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-GNLFCESR.js";
4
- import "../chunk-X5JM6SAH.js";
3
+ } from "../chunk-IDDIDORN.js";
4
+ import "../chunk-Z5FOJKNW.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -1,7 +1,7 @@
1
1
  const NodeGraphPortal = (props: any) => {
2
2
  return (
3
3
  <div
4
- className="h-[30em] my-6 mb-12 w-full relative border! border-[rgb(var(--ec-page-border))]! rounded-md overflow-hidden"
4
+ className="not-prose h-[30em] my-6 mb-12 w-full relative border! border-[rgb(var(--ec-page-border))]! rounded-md overflow-hidden"
5
5
  id={`${props.id}-portal`}
6
6
  style={{
7
7
  maxHeight: props.maxHeight ? `${props.maxHeight}em` : `30em`,
@@ -215,7 +215,7 @@ export const getNodesAndEdges = async ({
215
215
  const sendsRaw = service?.data.sends || [];
216
216
  const writesToRaw = service?.data.writesTo || [];
217
217
  const readsFromRaw = service?.data.readsFrom || [];
218
- const toolsRaw = collection === 'agents' ? (service?.data as any).tools || [] : [];
218
+ const toolsRaw: any[] = collection === 'agents' ? (service?.data as any).tools || [] : [];
219
219
 
220
220
  const receivesHydrated = receivesRaw
221
221
  .map((message) => findInMap(messageMap, message.id, message.version))
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "3.41.1",
10
+ "version": "3.41.3",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -63,7 +63,6 @@
63
63
  "astro-expressive-code": "^0.41.7",
64
64
  "astro-seo": "^0.8.4",
65
65
  "auth-astro": "^4.2.0",
66
- "axios": "^1.15.2",
67
66
  "boxen": "^8.0.1",
68
67
  "commander": "^12.1.0",
69
68
  "concurrently": "^8.2.2",
@@ -114,8 +113,8 @@
114
113
  "uuid": "^10.0.0",
115
114
  "zod": "^4.3.6",
116
115
  "@eventcatalog/linter": "1.0.26",
117
- "@eventcatalog/sdk": "2.23.0",
118
- "@eventcatalog/visualiser": "^3.22.0"
116
+ "@eventcatalog/visualiser": "^3.22.1",
117
+ "@eventcatalog/sdk": "2.23.0"
119
118
  },
120
119
  "devDependencies": {
121
120
  "@astrojs/check": "^0.9.9",