@eventcatalog/core 3.29.0 → 3.29.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 = "3.29.0";
40
+ var version = "3.29.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-XN2XNAOY.js";
4
- import "../chunk-ZY6MUMIK.js";
3
+ } from "../chunk-VEUNSJ6Z.js";
4
+ import "../chunk-MEJOYC5Z.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.29.0";
114
+ var version = "3.29.2";
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-NKN2LYFC.js";
4
- import "../chunk-XN2XNAOY.js";
3
+ } from "../chunk-36IA4UE4.js";
4
+ import "../chunk-VEUNSJ6Z.js";
5
5
  import "../chunk-4UVFXLPI.js";
6
- import "../chunk-ZY6MUMIK.js";
6
+ import "../chunk-MEJOYC5Z.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-XN2XNAOY.js";
3
+ } from "./chunk-VEUNSJ6Z.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-B3DM4RWS.js";
3
+ } from "./chunk-EGQGCB2B.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-ZY6MUMIK.js";
3
+ } from "./chunk-MEJOYC5Z.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -21,6 +21,9 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
21
21
  }
22
22
  for (let event of events) {
23
23
  const { path: filePath, type } = event;
24
+ if (filePath.endsWith(".lock")) {
25
+ continue;
26
+ }
24
27
  if ((filePath.endsWith(".mdx") || filePath.endsWith(".md")) && !filePath.includes("snippets")) {
25
28
  continue;
26
29
  }
@@ -32,13 +35,21 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
32
35
  for (const astroPath of astroPaths) {
33
36
  switch (type) {
34
37
  case "create":
35
- case "update":
36
- if (fs.statSync(filePath).isDirectory()) {
38
+ case "update": {
39
+ let stat;
40
+ try {
41
+ stat = fs.statSync(filePath);
42
+ } catch (err2) {
43
+ if (err2.code === "ENOENT") break;
44
+ throw err2;
45
+ }
46
+ if (stat.isDirectory()) {
37
47
  fs.mkdirSync(astroPath, { recursive: true });
38
48
  } else {
39
49
  retryEPERM(fs.cpSync)(filePath, astroPath);
40
50
  }
41
51
  break;
52
+ }
42
53
  case "delete":
43
54
  retryEPERM(rimrafSync)(astroPath);
44
55
  break;
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.29.0";
2
+ var version = "3.29.2";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-ZY6MUMIK.js";
3
+ } from "./chunk-MEJOYC5Z.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.29.0";
28
+ var version = "3.29.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-ZY6MUMIK.js";
3
+ } from "./chunk-MEJOYC5Z.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.29.0";
117
+ var version = "3.29.2";
118
118
 
119
119
  // src/constants.ts
120
120
  var VERSION = version;
@@ -422,6 +422,9 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
422
422
  }
423
423
  for (let event of events) {
424
424
  const { path: filePath, type } = event;
425
+ if (filePath.endsWith(".lock")) {
426
+ continue;
427
+ }
425
428
  if ((filePath.endsWith(".mdx") || filePath.endsWith(".md")) && !filePath.includes("snippets")) {
426
429
  continue;
427
430
  }
@@ -433,13 +436,21 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
433
436
  for (const astroPath of astroPaths) {
434
437
  switch (type) {
435
438
  case "create":
436
- case "update":
437
- if (import_node_fs2.default.statSync(filePath).isDirectory()) {
439
+ case "update": {
440
+ let stat;
441
+ try {
442
+ stat = import_node_fs2.default.statSync(filePath);
443
+ } catch (err2) {
444
+ if (err2.code === "ENOENT") break;
445
+ throw err2;
446
+ }
447
+ if (stat.isDirectory()) {
438
448
  import_node_fs2.default.mkdirSync(astroPath, { recursive: true });
439
449
  } else {
440
450
  retryEPERM(import_node_fs2.default.cpSync)(filePath, astroPath);
441
451
  }
442
452
  break;
453
+ }
443
454
  case "delete":
444
455
  retryEPERM(import_rimraf.rimrafSync)(astroPath);
445
456
  break;
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-WAJIJEI3.js";
4
4
  import {
5
5
  watch
6
- } from "./chunk-PLNJC7NZ.js";
6
+ } from "./chunk-K3ZVEX2Y.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-NKN2LYFC.js";
10
- import "./chunk-XN2XNAOY.js";
9
+ } from "./chunk-36IA4UE4.js";
10
+ import "./chunk-VEUNSJ6Z.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-3YZL6CMP.js";
25
+ } from "./chunk-DB4IQ3GB.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-B3DM4RWS.js";
28
+ } from "./chunk-EGQGCB2B.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-ZY6MUMIK.js";
31
+ } from "./chunk-MEJOYC5Z.js";
32
32
  import {
33
33
  getEventCatalogConfigFile,
34
34
  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.29.0";
81
+ var version = "3.29.2";
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-3YZL6CMP.js";
4
- import "./chunk-B3DM4RWS.js";
5
- import "./chunk-ZY6MUMIK.js";
3
+ } from "./chunk-DB4IQ3GB.js";
4
+ import "./chunk-EGQGCB2B.js";
5
+ import "./chunk-MEJOYC5Z.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.29.0";
39
+ var version = "3.29.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-B3DM4RWS.js";
4
- import "../chunk-ZY6MUMIK.js";
3
+ } from "../chunk-EGQGCB2B.js";
4
+ import "../chunk-MEJOYC5Z.js";
5
5
  export {
6
6
  logger
7
7
  };
package/dist/watcher.cjs CHANGED
@@ -141,6 +141,9 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
141
141
  }
142
142
  for (let event of events) {
143
143
  const { path: filePath, type } = event;
144
+ if (filePath.endsWith(".lock")) {
145
+ continue;
146
+ }
144
147
  if ((filePath.endsWith(".mdx") || filePath.endsWith(".md")) && !filePath.includes("snippets")) {
145
148
  continue;
146
149
  }
@@ -152,13 +155,21 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
152
155
  for (const astroPath of astroPaths) {
153
156
  switch (type) {
154
157
  case "create":
155
- case "update":
156
- if (import_node_fs.default.statSync(filePath).isDirectory()) {
158
+ case "update": {
159
+ let stat;
160
+ try {
161
+ stat = import_node_fs.default.statSync(filePath);
162
+ } catch (err2) {
163
+ if (err2.code === "ENOENT") break;
164
+ throw err2;
165
+ }
166
+ if (stat.isDirectory()) {
157
167
  import_node_fs.default.mkdirSync(astroPath, { recursive: true });
158
168
  } else {
159
169
  retryEPERM(import_node_fs.default.cpSync)(filePath, astroPath);
160
170
  }
161
171
  break;
172
+ }
162
173
  case "delete":
163
174
  retryEPERM(import_rimraf.rimrafSync)(astroPath);
164
175
  break;
package/dist/watcher.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  watch
3
- } from "./chunk-PLNJC7NZ.js";
3
+ } from "./chunk-K3ZVEX2Y.js";
4
4
  import "./chunk-55D645EH.js";
5
5
  export {
6
6
  watch
@@ -16,7 +16,8 @@ type AllowedCollections =
16
16
  | 'channels'
17
17
  | 'entities'
18
18
  | 'flows'
19
- | 'containers';
19
+ | 'containers'
20
+ | 'resourceDocs';
20
21
 
21
22
  const events = await getCollection('events');
22
23
  const commands = await getCollection('commands');
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "3.29.0",
10
+ "version": "3.29.2",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -104,8 +104,8 @@
104
104
  "uuid": "^10.0.0",
105
105
  "zod": "^4.3.6",
106
106
  "@eventcatalog/linter": "1.0.21",
107
- "@eventcatalog/sdk": "2.20.0",
108
- "@eventcatalog/visualiser": "^3.19.0"
107
+ "@eventcatalog/visualiser": "^3.19.0",
108
+ "@eventcatalog/sdk": "2.20.0"
109
109
  },
110
110
  "devDependencies": {
111
111
  "@astrojs/check": "^0.9.8",