@eventcatalog/core 3.15.2 → 3.15.4

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 = "3.15.2";
40
+ var version = "3.15.4";
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-5MHUJJFV.js";
4
- import "../chunk-HXCKYMFO.js";
3
+ } from "../chunk-RZYFKDGH.js";
4
+ import "../chunk-OPW62UE5.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -111,7 +111,7 @@ var import_axios = __toESM(require("axios"), 1);
111
111
  var import_os = __toESM(require("os"), 1);
112
112
 
113
113
  // package.json
114
- var version = "3.15.2";
114
+ var version = "3.15.4";
115
115
 
116
116
  // src/constants.ts
117
117
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-5ADPMBIF.js";
4
- import "../chunk-5MHUJJFV.js";
3
+ } from "../chunk-EOU7GQFX.js";
4
+ import "../chunk-RZYFKDGH.js";
5
5
  import "../chunk-4UVFXLPI.js";
6
- import "../chunk-HXCKYMFO.js";
6
+ import "../chunk-OPW62UE5.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
  raiseEvent
3
- } from "./chunk-5MHUJJFV.js";
3
+ } from "./chunk-RZYFKDGH.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.15.2";
2
+ var version = "3.15.4";
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-U7JM2HXN.js";
3
+ } from "./chunk-VMA4B6WS.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-HXCKYMFO.js";
3
+ } from "./chunk-OPW62UE5.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-HXCKYMFO.js";
3
+ } from "./chunk-OPW62UE5.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.15.2";
28
+ var version = "3.15.4";
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-HXCKYMFO.js";
3
+ } from "./chunk-OPW62UE5.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -34,7 +34,6 @@ var import_node_http = __toESM(require("http"), 1);
34
34
  var import_fs2 = __toESM(require("fs"), 1);
35
35
  var import_node_path8 = __toESM(require("path"), 1);
36
36
  var import_node_url = require("url");
37
- var import_concurrently = __toESM(require("concurrently"), 1);
38
37
 
39
38
  // src/generate.js
40
39
  var import_node_path2 = __toESM(require("path"), 1);
@@ -115,7 +114,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
115
114
  var import_picocolors = __toESM(require("picocolors"), 1);
116
115
 
117
116
  // package.json
118
- var version = "3.15.2";
117
+ var version = "3.15.4";
119
118
 
120
119
  // src/constants.ts
121
120
  var VERSION = version;
@@ -771,11 +770,25 @@ var createAstroLineFilter = () => {
771
770
  return line.includes("[glob-loader]") || /The collection.*does not exist/.test(line);
772
771
  };
773
772
  };
773
+ var createAstroDevLineFilter = () => {
774
+ const shouldFilterAstroLine = createAstroLineFilter();
775
+ return (line) => {
776
+ return shouldFilterAstroLine(line) || line.includes("[router]");
777
+ };
778
+ };
779
+ var replaceAstroReadyVersionLine = (line) => {
780
+ const matches = line.match(/^(\s*)astro(\s+)v\S+(\s+ready.*)$/i);
781
+ if (!matches) {
782
+ return line;
783
+ }
784
+ return `${matches[1]}eventcatalog${matches[2]}v${VERSION}${matches[3]}`;
785
+ };
774
786
  var runCommandWithFilteredOutput = async ({
775
787
  command,
776
788
  cwd,
777
789
  env,
778
- shouldFilterLine
790
+ shouldFilterLine,
791
+ transformLine = (line) => line
779
792
  }) => {
780
793
  await new Promise((resolve2, reject) => {
781
794
  const child = (0, import_node_child_process.spawn)(command, {
@@ -799,7 +812,7 @@ var runCommandWithFilteredOutput = async ({
799
812
  continue;
800
813
  }
801
814
  if (!shouldFilterLine(line)) {
802
- writer.write(`${rawLine}
815
+ writer.write(`${transformLine(rawLine)}
803
816
  `);
804
817
  }
805
818
  }
@@ -928,29 +941,21 @@ program.command("dev").description("Run development server of EventCatalog").opt
928
941
  paths: ["/ping", "/"]
929
942
  });
930
943
  }
931
- const astroCommand = process.platform === "win32" ? `npx astro dev ${args} 2>&1 | findstr /V /C:"[glob-loader]" /C:"The collection" /C:"[router]"` : `npx astro dev ${args} 2>&1 | grep -v -e "\\[glob-loader\\]" -e "The collection.*does not exist" -e "\\[router\\]"`;
932
- const { result } = (0, import_concurrently.default)(
933
- [
934
- {
935
- name: "astro",
936
- command: astroCommand,
937
- cwd: core,
938
- env: {
939
- PROJECT_DIR: dir,
940
- CATALOG_DIR: core,
941
- ENABLE_EMBED: canEmbedPages || isEventCatalogScale,
942
- EVENTCATALOG_STARTER: isEventCatalogStarter,
943
- EVENTCATALOG_SCALE: isEventCatalogScale,
944
- EVENTCATALOG_DEV_MODE: "true",
945
- NODE_NO_WARNINGS: "1"
946
- }
947
- }
948
- ],
949
- {
950
- raw: true
951
- }
952
- );
953
- await result;
944
+ await runCommandWithFilteredOutput({
945
+ command: `npx astro dev ${args}`,
946
+ cwd: core,
947
+ env: {
948
+ PROJECT_DIR: dir,
949
+ CATALOG_DIR: core,
950
+ ENABLE_EMBED: String(canEmbedPages || isEventCatalogScale),
951
+ EVENTCATALOG_STARTER: String(isEventCatalogStarter),
952
+ EVENTCATALOG_SCALE: String(isEventCatalogScale),
953
+ EVENTCATALOG_DEV_MODE: "true",
954
+ NODE_NO_WARNINGS: "1"
955
+ },
956
+ shouldFilterLine: createAstroDevLineFilter(),
957
+ transformLine: replaceAstroReadyVersionLine
958
+ });
954
959
  } catch (err) {
955
960
  console.error(err);
956
961
  } finally {
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-5ADPMBIF.js";
10
- import "./chunk-5MHUJJFV.js";
9
+ } from "./chunk-EOU7GQFX.js";
10
+ import "./chunk-RZYFKDGH.js";
11
11
  import "./chunk-4UVFXLPI.js";
12
12
  import {
13
13
  runMigrations
@@ -22,13 +22,13 @@ import {
22
22
  } from "./chunk-3KXCGYET.js";
23
23
  import {
24
24
  generate
25
- } from "./chunk-Q5VDML6H.js";
25
+ } from "./chunk-PW4FMHFO.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-U7JM2HXN.js";
28
+ } from "./chunk-VMA4B6WS.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-HXCKYMFO.js";
31
+ } from "./chunk-OPW62UE5.js";
32
32
  import {
33
33
  getEventCatalogConfigFile,
34
34
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -42,7 +42,6 @@ import http from "http";
42
42
  import fs from "fs";
43
43
  import path from "path";
44
44
  import { fileURLToPath } from "url";
45
- import concurrently from "concurrently";
46
45
  import boxen from "boxen";
47
46
  import updateNotifier from "update-notifier";
48
47
  import dotenv from "dotenv";
@@ -122,11 +121,25 @@ var createAstroLineFilter = () => {
122
121
  return line.includes("[glob-loader]") || /The collection.*does not exist/.test(line);
123
122
  };
124
123
  };
124
+ var createAstroDevLineFilter = () => {
125
+ const shouldFilterAstroLine = createAstroLineFilter();
126
+ return (line) => {
127
+ return shouldFilterAstroLine(line) || line.includes("[router]");
128
+ };
129
+ };
130
+ var replaceAstroReadyVersionLine = (line) => {
131
+ const matches = line.match(/^(\s*)astro(\s+)v\S+(\s+ready.*)$/i);
132
+ if (!matches) {
133
+ return line;
134
+ }
135
+ return `${matches[1]}eventcatalog${matches[2]}v${VERSION}${matches[3]}`;
136
+ };
125
137
  var runCommandWithFilteredOutput = async ({
126
138
  command,
127
139
  cwd,
128
140
  env,
129
- shouldFilterLine
141
+ shouldFilterLine,
142
+ transformLine = (line) => line
130
143
  }) => {
131
144
  await new Promise((resolve, reject) => {
132
145
  const child = spawn(command, {
@@ -150,7 +163,7 @@ var runCommandWithFilteredOutput = async ({
150
163
  continue;
151
164
  }
152
165
  if (!shouldFilterLine(line)) {
153
- writer.write(`${rawLine}
166
+ writer.write(`${transformLine(rawLine)}
154
167
  `);
155
168
  }
156
169
  }
@@ -279,29 +292,21 @@ program.command("dev").description("Run development server of EventCatalog").opt
279
292
  paths: ["/ping", "/"]
280
293
  });
281
294
  }
282
- const astroCommand = process.platform === "win32" ? `npx astro dev ${args} 2>&1 | findstr /V /C:"[glob-loader]" /C:"The collection" /C:"[router]"` : `npx astro dev ${args} 2>&1 | grep -v -e "\\[glob-loader\\]" -e "The collection.*does not exist" -e "\\[router\\]"`;
283
- const { result } = concurrently(
284
- [
285
- {
286
- name: "astro",
287
- command: astroCommand,
288
- cwd: core,
289
- env: {
290
- PROJECT_DIR: dir,
291
- CATALOG_DIR: core,
292
- ENABLE_EMBED: canEmbedPages || isEventCatalogScale,
293
- EVENTCATALOG_STARTER: isEventCatalogStarter,
294
- EVENTCATALOG_SCALE: isEventCatalogScale,
295
- EVENTCATALOG_DEV_MODE: "true",
296
- NODE_NO_WARNINGS: "1"
297
- }
298
- }
299
- ],
300
- {
301
- raw: true
302
- }
303
- );
304
- await result;
295
+ await runCommandWithFilteredOutput({
296
+ command: `npx astro dev ${args}`,
297
+ cwd: core,
298
+ env: {
299
+ PROJECT_DIR: dir,
300
+ CATALOG_DIR: core,
301
+ ENABLE_EMBED: String(canEmbedPages || isEventCatalogScale),
302
+ EVENTCATALOG_STARTER: String(isEventCatalogStarter),
303
+ EVENTCATALOG_SCALE: String(isEventCatalogScale),
304
+ EVENTCATALOG_DEV_MODE: "true",
305
+ NODE_NO_WARNINGS: "1"
306
+ },
307
+ shouldFilterLine: createAstroDevLineFilter(),
308
+ transformLine: replaceAstroReadyVersionLine
309
+ });
305
310
  } catch (err) {
306
311
  console.error(err);
307
312
  } finally {
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.15.2";
81
+ var version = "3.15.4";
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-Q5VDML6H.js";
4
- import "./chunk-U7JM2HXN.js";
5
- import "./chunk-HXCKYMFO.js";
3
+ } from "./chunk-PW4FMHFO.js";
4
+ import "./chunk-VMA4B6WS.js";
5
+ import "./chunk-OPW62UE5.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.15.2";
39
+ var version = "3.15.4";
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-U7JM2HXN.js";
4
- import "../chunk-HXCKYMFO.js";
3
+ } from "../chunk-VMA4B6WS.js";
4
+ import "../chunk-OPW62UE5.js";
5
5
  export {
6
6
  logger
7
7
  };
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": "3.15.2",
9
+ "version": "3.15.4",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -101,8 +101,8 @@
101
101
  "update-notifier": "^7.3.1",
102
102
  "uuid": "^10.0.0",
103
103
  "zod": "^3.25.0",
104
- "@eventcatalog/linter": "1.0.5",
105
- "@eventcatalog/sdk": "2.14.1",
104
+ "@eventcatalog/sdk": "2.14.2",
105
+ "@eventcatalog/linter": "1.0.6",
106
106
  "@eventcatalog/visualiser": "^3.14.0"
107
107
  },
108
108
  "devDependencies": {