@eventcatalog/core 3.29.1 → 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.
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-H5UC2A5F.js → chunk-36IA4UE4.js} +1 -1
- package/dist/{chunk-FVKDNLZK.js → chunk-DB4IQ3GB.js} +1 -1
- package/dist/{chunk-24NGK43A.js → chunk-EGQGCB2B.js} +1 -1
- package/dist/{chunk-PLNJC7NZ.js → chunk-K3ZVEX2Y.js} +13 -2
- package/dist/{chunk-4MSAPCV3.js → chunk-MEJOYC5Z.js} +1 -1
- package/dist/{chunk-V4OTI3PF.js → chunk-VEUNSJ6Z.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +14 -3
- package/dist/eventcatalog.js +6 -6
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/dist/watcher.cjs +13 -2
- package/dist/watcher.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-36IA4UE4.js";
|
|
4
|
+
import "../chunk-VEUNSJ6Z.js";
|
|
5
5
|
import "../chunk-4UVFXLPI.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-MEJOYC5Z.js";
|
|
7
7
|
import "../chunk-5T63CXKU.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
|
@@ -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
|
-
|
|
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;
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-WAJIJEI3.js";
|
|
4
4
|
import {
|
|
5
5
|
watch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K3ZVEX2Y.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
25
|
+
} from "./chunk-DB4IQ3GB.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EGQGCB2B.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MEJOYC5Z.js";
|
|
32
32
|
import {
|
|
33
33
|
getEventCatalogConfigFile,
|
|
34
34
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/generate.cjs
CHANGED
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
|
package/dist/utils/cli-logger.js
CHANGED
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
|
-
|
|
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