@eventcatalog/core 5.0.0-beta.0 → 5.0.0-beta.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.
@@ -36,13 +36,14 @@ module.exports = __toCommonJS(analytics_exports);
36
36
  var import_os = __toESM(require("os"), 1);
37
37
 
38
38
  // package.json
39
- var version = "5.0.0-beta.0";
39
+ var version = "5.0.0-beta.2";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
43
43
 
44
44
  // src/analytics/analytics.js
45
45
  async function raiseEvent(eventData) {
46
+ if (typeof eventData?.command !== "string" || typeof eventData?.cId !== "string") return;
46
47
  const url = "https://queue.simpleanalyticscdn.com/events";
47
48
  const userAgent = `@eventcatalog/eventcatalog@${VERSION} (${import_os.default.platform()}; ${import_os.default.arch()}; Node/${process.version})`;
48
49
  const headers = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-WAIADKQE.js";
4
- import "../chunk-TWN43V4T.js";
3
+ } from "../chunk-XARPIXWF.js";
4
+ import "../chunk-62EV4IJA.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -176,13 +176,14 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
176
176
  var import_os = __toESM(require("os"), 1);
177
177
 
178
178
  // package.json
179
- var version = "5.0.0-beta.0";
179
+ var version = "5.0.0-beta.2";
180
180
 
181
181
  // src/constants.ts
182
182
  var VERSION = version;
183
183
 
184
184
  // src/analytics/analytics.js
185
185
  async function raiseEvent(eventData) {
186
+ if (typeof eventData?.command !== "string" || typeof eventData?.cId !== "string") return;
186
187
  const url = "https://queue.simpleanalyticscdn.com/events";
187
188
  const userAgent = `@eventcatalog/eventcatalog@${VERSION} (${import_os.default.platform()}; ${import_os.default.arch()}; Node/${process.version})`;
188
189
  const headers = {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-LR7AGRHN.js";
3
+ } from "../chunk-KIDISU6X.js";
4
4
  import "../chunk-TQLRG35T.js";
5
5
  import "../chunk-ZAZHAVKB.js";
6
- import "../chunk-WAIADKQE.js";
7
- import "../chunk-TWN43V4T.js";
6
+ import "../chunk-XARPIXWF.js";
7
+ import "../chunk-62EV4IJA.js";
8
8
  import "../chunk-RFIXKATC.js";
9
9
  export {
10
10
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-TWN43V4T.js";
3
+ } from "./chunk-62EV4IJA.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "5.0.0-beta.0";
2
+ var version = "5.0.0-beta.2";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-ZHKEARLJ.js";
3
+ } from "./chunk-4J2ZM2HX.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-ZAZHAVKB.js";
9
9
  import {
10
10
  raiseEvent
11
- } from "./chunk-WAIADKQE.js";
11
+ } from "./chunk-XARPIXWF.js";
12
12
  import {
13
13
  getEventCatalogConfigFile,
14
14
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-TWN43V4T.js";
3
+ } from "./chunk-62EV4IJA.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
7
7
  async function raiseEvent(eventData) {
8
+ if (typeof eventData?.command !== "string" || typeof eventData?.cId !== "string") return;
8
9
  const url = "https://queue.simpleanalyticscdn.com/events";
9
10
  const userAgent = `@eventcatalog/eventcatalog@${VERSION} (${os.platform()}; ${os.arch()}; Node/${process.version})`;
10
11
  const headers = {
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "5.0.0-beta.0";
28
+ var version = "5.0.0-beta.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-TWN43V4T.js";
3
+ } from "./chunk-62EV4IJA.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -181,7 +181,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
181
181
  var import_picocolors = __toESM(require("picocolors"), 1);
182
182
 
183
183
  // package.json
184
- var version = "5.0.0-beta.0";
184
+ var version = "5.0.0-beta.2";
185
185
 
186
186
  // src/constants.ts
187
187
  var VERSION = version;
@@ -305,6 +305,7 @@ var generate = async (PROJECT_DIRECTORY) => {
305
305
  // src/analytics/analytics.js
306
306
  var import_os = __toESM(require("os"), 1);
307
307
  async function raiseEvent(eventData) {
308
+ if (typeof eventData?.command !== "string" || typeof eventData?.cId !== "string") return;
308
309
  const url = "https://queue.simpleanalyticscdn.com/events";
309
310
  const userAgent = `@eventcatalog/eventcatalog@${VERSION} (${import_os.default.platform()}; ${import_os.default.arch()}; Node/${process.version})`;
310
311
  const headers = {
@@ -4,7 +4,7 @@ import {
4
4
  import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  log_build_default
7
- } from "./chunk-LR7AGRHN.js";
7
+ } from "./chunk-KIDISU6X.js";
8
8
  import {
9
9
  getLicenseStatus,
10
10
  printLicenseStatus
@@ -33,10 +33,10 @@ import {
33
33
  } from "./chunk-MDWB5HLO.js";
34
34
  import {
35
35
  generate
36
- } from "./chunk-CR6AK5LR.js";
36
+ } from "./chunk-HGRFXTFC.js";
37
37
  import {
38
38
  logger
39
- } from "./chunk-ZHKEARLJ.js";
39
+ } from "./chunk-4J2ZM2HX.js";
40
40
  import {
41
41
  resolve_catalog_dependencies_default
42
42
  } from "./chunk-36RYTYT5.js";
@@ -50,7 +50,7 @@ import {
50
50
  import {
51
51
  watch
52
52
  } from "./chunk-U63GDPPY.js";
53
- import "./chunk-WAIADKQE.js";
53
+ import "./chunk-XARPIXWF.js";
54
54
  import {
55
55
  getAstroConfigPath
56
56
  } from "./chunk-VIJJ7JKH.js";
@@ -66,7 +66,7 @@ import {
66
66
  } from "./chunk-LFQJXLHG.js";
67
67
  import {
68
68
  VERSION
69
- } from "./chunk-TWN43V4T.js";
69
+ } from "./chunk-62EV4IJA.js";
70
70
  import {
71
71
  getEventCatalogConfigFile,
72
72
  verifyRequiredFieldsAreInCatalogConfigFile
package/dist/generate.cjs CHANGED
@@ -112,7 +112,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
112
112
  var import_picocolors = __toESM(require("picocolors"), 1);
113
113
 
114
114
  // package.json
115
- var version = "5.0.0-beta.0";
115
+ var version = "5.0.0-beta.2";
116
116
 
117
117
  // src/constants.ts
118
118
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-CR6AK5LR.js";
4
- import "./chunk-ZHKEARLJ.js";
5
- import "./chunk-TWN43V4T.js";
3
+ } from "./chunk-HGRFXTFC.js";
4
+ import "./chunk-4J2ZM2HX.js";
5
+ import "./chunk-62EV4IJA.js";
6
6
  import "./chunk-RFIXKATC.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 = "5.0.0-beta.0";
39
+ var version = "5.0.0-beta.2";
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-ZHKEARLJ.js";
4
- import "../chunk-TWN43V4T.js";
3
+ } from "../chunk-4J2ZM2HX.js";
4
+ import "../chunk-62EV4IJA.js";
5
5
  export {
6
6
  logger
7
7
  };