@eventcatalog/core 3.47.2 → 3.47.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.
- 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/catalog-to-astro-content-directory.cjs +17 -0
- package/dist/catalog-to-astro-content-directory.js +2 -2
- package/dist/{chunk-JJXPDJAK.js → chunk-DFGDA5Y7.js} +1 -1
- package/dist/{chunk-XORTIVNN.js → chunk-FLHJWTY2.js} +1 -1
- package/dist/{chunk-7QEB6VKU.js → chunk-K2RCQSFM.js} +1 -1
- package/dist/{chunk-3H2RT3CM.js → chunk-O3Y2G6CY.js} +1 -1
- package/dist/{chunk-IR4IAKWS.js → chunk-VC6VUJIX.js} +6 -0
- package/dist/{chunk-4SMA4HQ3.js → chunk-WQNKHIDM.js} +12 -1
- package/dist/{chunk-Y7XPSO3E.js → chunk-XIXRWB3Y.js} +1 -1
- package/dist/{chunk-Y7YNYWYT.js → chunk-ZW5UIHAH.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +18 -1
- package/dist/eventcatalog.js +8 -8
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/map-catalog-to-astro.cjs +6 -0
- package/dist/map-catalog-to-astro.js +1 -1
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/dist/watcher.cjs +6 -0
- package/dist/watcher.js +2 -2
- package/eventcatalog/src/plugins/likec4.ts +3 -3
- package/package.json +5 -5
|
@@ -140,7 +140,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
140
140
|
var import_os = __toESM(require("os"), 1);
|
|
141
141
|
|
|
142
142
|
// package.json
|
|
143
|
-
var version = "3.47.
|
|
143
|
+
var version = "3.47.4";
|
|
144
144
|
|
|
145
145
|
// src/constants.ts
|
|
146
146
|
var VERSION = version;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-DFGDA5Y7.js";
|
|
4
|
+
import "../chunk-K2RCQSFM.js";
|
|
5
5
|
import "../chunk-DAOXTQVS.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-ZW5UIHAH.js";
|
|
7
7
|
import "../chunk-6QENHZZP.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
|
@@ -165,6 +165,9 @@ var COLLECTION_KEYS = [
|
|
|
165
165
|
];
|
|
166
166
|
function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
|
|
167
167
|
const relativeFilePath = removeBasePath(filePath, projectDir);
|
|
168
|
+
if (isLikeC4Source(relativeFilePath)) {
|
|
169
|
+
return [];
|
|
170
|
+
}
|
|
168
171
|
if (!isCatalogRelated(relativeFilePath)) {
|
|
169
172
|
return [];
|
|
170
173
|
}
|
|
@@ -179,6 +182,9 @@ function removeBasePath(fullPath, basePath) {
|
|
|
179
182
|
function isCollectionKey(key) {
|
|
180
183
|
return COLLECTION_KEYS.includes(key);
|
|
181
184
|
}
|
|
185
|
+
function isLikeC4Source(filePath) {
|
|
186
|
+
return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
|
|
187
|
+
}
|
|
182
188
|
function isCatalogRelated(filePath) {
|
|
183
189
|
const filePathArr = filePath.split(import_node_path2.default.sep).filter(Boolean);
|
|
184
190
|
if ([
|
|
@@ -266,6 +272,16 @@ var copyFiles = async (source, target) => {
|
|
|
266
272
|
});
|
|
267
273
|
}
|
|
268
274
|
};
|
|
275
|
+
var removeGeneratedLikeC4Sources = async (target) => {
|
|
276
|
+
const generatedDir = path3.join(target, "public", "generated");
|
|
277
|
+
const files = await (0, import_glob.glob)(path3.join(generatedDir, "**/*.{c4,likec4}"), {
|
|
278
|
+
nodir: true,
|
|
279
|
+
windowsPathsNoEscape: import_node_os2.default.platform() == "win32"
|
|
280
|
+
});
|
|
281
|
+
for (const file of files) {
|
|
282
|
+
import_fs.default.rmSync(file);
|
|
283
|
+
}
|
|
284
|
+
};
|
|
269
285
|
var catalogToAstro = async (source, astroDir) => {
|
|
270
286
|
const astroContentDir = path3.join(astroDir, "src/content/");
|
|
271
287
|
if (import_fs.default.existsSync(astroContentDir)) import_fs.default.rmSync(astroContentDir, { recursive: true });
|
|
@@ -274,6 +290,7 @@ var catalogToAstro = async (source, astroDir) => {
|
|
|
274
290
|
if (!import_fs.default.existsSync(path3.join(source, "eventcatalog.styles.css"))) {
|
|
275
291
|
import_fs.default.writeFileSync(path3.join(source, "eventcatalog.styles.css"), "");
|
|
276
292
|
}
|
|
293
|
+
await removeGeneratedLikeC4Sources(astroDir);
|
|
277
294
|
await copyFiles(source, astroDir);
|
|
278
295
|
};
|
|
279
296
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -16,6 +16,9 @@ var COLLECTION_KEYS = [
|
|
|
16
16
|
];
|
|
17
17
|
function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
|
|
18
18
|
const relativeFilePath = removeBasePath(filePath, projectDir);
|
|
19
|
+
if (isLikeC4Source(relativeFilePath)) {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
19
22
|
if (!isCatalogRelated(relativeFilePath)) {
|
|
20
23
|
return [];
|
|
21
24
|
}
|
|
@@ -30,6 +33,9 @@ function removeBasePath(fullPath, basePath) {
|
|
|
30
33
|
function isCollectionKey(key) {
|
|
31
34
|
return COLLECTION_KEYS.includes(key);
|
|
32
35
|
}
|
|
36
|
+
function isLikeC4Source(filePath) {
|
|
37
|
+
return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
|
|
38
|
+
}
|
|
33
39
|
function isCatalogRelated(filePath) {
|
|
34
40
|
const filePathArr = filePath.split(path.sep).filter(Boolean);
|
|
35
41
|
if ([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mapCatalogToAstro
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VC6VUJIX.js";
|
|
4
4
|
import {
|
|
5
5
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
6
6
|
} from "./chunk-6QENHZZP.js";
|
|
@@ -40,6 +40,16 @@ var copyFiles = async (source, target) => {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
+
var removeGeneratedLikeC4Sources = async (target) => {
|
|
44
|
+
const generatedDir = path.join(target, "public", "generated");
|
|
45
|
+
const files = await glob(path.join(generatedDir, "**/*.{c4,likec4}"), {
|
|
46
|
+
nodir: true,
|
|
47
|
+
windowsPathsNoEscape: os.platform() == "win32"
|
|
48
|
+
});
|
|
49
|
+
for (const file of files) {
|
|
50
|
+
fs.rmSync(file);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
43
53
|
var catalogToAstro = async (source, astroDir) => {
|
|
44
54
|
const astroContentDir = path.join(astroDir, "src/content/");
|
|
45
55
|
if (fs.existsSync(astroContentDir)) fs.rmSync(astroContentDir, { recursive: true });
|
|
@@ -48,6 +58,7 @@ var catalogToAstro = async (source, astroDir) => {
|
|
|
48
58
|
if (!fs.existsSync(path.join(source, "eventcatalog.styles.css"))) {
|
|
49
59
|
fs.writeFileSync(path.join(source, "eventcatalog.styles.css"), "");
|
|
50
60
|
}
|
|
61
|
+
await removeGeneratedLikeC4Sources(astroDir);
|
|
51
62
|
await copyFiles(source, astroDir);
|
|
52
63
|
};
|
|
53
64
|
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
144
144
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
145
145
|
|
|
146
146
|
// package.json
|
|
147
|
-
var version = "3.47.
|
|
147
|
+
var version = "3.47.4";
|
|
148
148
|
|
|
149
149
|
// src/constants.ts
|
|
150
150
|
var VERSION = version;
|
|
@@ -429,6 +429,9 @@ var COLLECTION_KEYS = [
|
|
|
429
429
|
];
|
|
430
430
|
function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
|
|
431
431
|
const relativeFilePath = removeBasePath(filePath, projectDir);
|
|
432
|
+
if (isLikeC4Source(relativeFilePath)) {
|
|
433
|
+
return [];
|
|
434
|
+
}
|
|
432
435
|
if (!isCatalogRelated(relativeFilePath)) {
|
|
433
436
|
return [];
|
|
434
437
|
}
|
|
@@ -443,6 +446,9 @@ function removeBasePath(fullPath, basePath) {
|
|
|
443
446
|
function isCollectionKey(key) {
|
|
444
447
|
return COLLECTION_KEYS.includes(key);
|
|
445
448
|
}
|
|
449
|
+
function isLikeC4Source(filePath) {
|
|
450
|
+
return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
|
|
451
|
+
}
|
|
446
452
|
function isCatalogRelated(filePath) {
|
|
447
453
|
const filePathArr = filePath.split(import_node_path3.default.sep).filter(Boolean);
|
|
448
454
|
if ([
|
|
@@ -626,6 +632,16 @@ var copyFiles = async (source, target) => {
|
|
|
626
632
|
});
|
|
627
633
|
}
|
|
628
634
|
};
|
|
635
|
+
var removeGeneratedLikeC4Sources = async (target) => {
|
|
636
|
+
const generatedDir = path4.join(target, "public", "generated");
|
|
637
|
+
const files = await (0, import_glob2.glob)(path4.join(generatedDir, "**/*.{c4,likec4}"), {
|
|
638
|
+
nodir: true,
|
|
639
|
+
windowsPathsNoEscape: import_node_os2.default.platform() == "win32"
|
|
640
|
+
});
|
|
641
|
+
for (const file of files) {
|
|
642
|
+
import_fs.default.rmSync(file);
|
|
643
|
+
}
|
|
644
|
+
};
|
|
629
645
|
var catalogToAstro = async (source, astroDir) => {
|
|
630
646
|
const astroContentDir = path4.join(astroDir, "src/content/");
|
|
631
647
|
if (import_fs.default.existsSync(astroContentDir)) import_fs.default.rmSync(astroContentDir, { recursive: true });
|
|
@@ -634,6 +650,7 @@ var catalogToAstro = async (source, astroDir) => {
|
|
|
634
650
|
if (!import_fs.default.existsSync(path4.join(source, "eventcatalog.styles.css"))) {
|
|
635
651
|
import_fs.default.writeFileSync(path4.join(source, "eventcatalog.styles.css"), "");
|
|
636
652
|
}
|
|
653
|
+
await removeGeneratedLikeC4Sources(astroDir);
|
|
637
654
|
await copyFiles(source, astroDir);
|
|
638
655
|
};
|
|
639
656
|
|
package/dist/eventcatalog.js
CHANGED
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
} from "./chunk-ZONBICNH.js";
|
|
11
11
|
import {
|
|
12
12
|
watch
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-O3Y2G6CY.js";
|
|
14
14
|
import {
|
|
15
15
|
log_build_default
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-DFGDA5Y7.js";
|
|
17
|
+
import "./chunk-K2RCQSFM.js";
|
|
18
18
|
import "./chunk-DAOXTQVS.js";
|
|
19
19
|
import {
|
|
20
20
|
catalogToAstro
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-WQNKHIDM.js";
|
|
22
|
+
import "./chunk-VC6VUJIX.js";
|
|
23
23
|
import {
|
|
24
24
|
getProjectOutDir,
|
|
25
25
|
isAuthEnabled,
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
} from "./chunk-B7HCX5HM.js";
|
|
29
29
|
import {
|
|
30
30
|
generate
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FLHJWTY2.js";
|
|
32
32
|
import {
|
|
33
33
|
logger
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XIXRWB3Y.js";
|
|
35
35
|
import {
|
|
36
36
|
VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZW5UIHAH.js";
|
|
38
38
|
import {
|
|
39
39
|
getEventCatalogConfigFile,
|
|
40
40
|
verifyRequiredFieldsAreInCatalogConfigFile
|
package/dist/generate.cjs
CHANGED
|
@@ -108,7 +108,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
108
108
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
109
109
|
|
|
110
110
|
// package.json
|
|
111
|
-
var version = "3.47.
|
|
111
|
+
var version = "3.47.4";
|
|
112
112
|
|
|
113
113
|
// src/constants.ts
|
|
114
114
|
var VERSION = version;
|
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-FLHJWTY2.js";
|
|
4
|
+
import "./chunk-XIXRWB3Y.js";
|
|
5
|
+
import "./chunk-ZW5UIHAH.js";
|
|
6
6
|
import "./chunk-6QENHZZP.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
|
@@ -50,6 +50,9 @@ var COLLECTION_KEYS = [
|
|
|
50
50
|
];
|
|
51
51
|
function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
|
|
52
52
|
const relativeFilePath = removeBasePath(filePath, projectDir);
|
|
53
|
+
if (isLikeC4Source(relativeFilePath)) {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
53
56
|
if (!isCatalogRelated(relativeFilePath)) {
|
|
54
57
|
return [];
|
|
55
58
|
}
|
|
@@ -64,6 +67,9 @@ function removeBasePath(fullPath, basePath) {
|
|
|
64
67
|
function isCollectionKey(key) {
|
|
65
68
|
return COLLECTION_KEYS.includes(key);
|
|
66
69
|
}
|
|
70
|
+
function isLikeC4Source(filePath) {
|
|
71
|
+
return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
|
|
72
|
+
}
|
|
67
73
|
function isCatalogRelated(filePath) {
|
|
68
74
|
const filePathArr = filePath.split(import_node_path.default.sep).filter(Boolean);
|
|
69
75
|
if ([
|
package/dist/utils/cli-logger.js
CHANGED
package/dist/watcher.cjs
CHANGED
|
@@ -54,6 +54,9 @@ var COLLECTION_KEYS = [
|
|
|
54
54
|
];
|
|
55
55
|
function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
|
|
56
56
|
const relativeFilePath = removeBasePath(filePath, projectDir);
|
|
57
|
+
if (isLikeC4Source(relativeFilePath)) {
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
57
60
|
if (!isCatalogRelated(relativeFilePath)) {
|
|
58
61
|
return [];
|
|
59
62
|
}
|
|
@@ -68,6 +71,9 @@ function removeBasePath(fullPath, basePath) {
|
|
|
68
71
|
function isCollectionKey(key) {
|
|
69
72
|
return COLLECTION_KEYS.includes(key);
|
|
70
73
|
}
|
|
74
|
+
function isLikeC4Source(filePath) {
|
|
75
|
+
return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
|
|
76
|
+
}
|
|
71
77
|
function isCatalogRelated(filePath) {
|
|
72
78
|
const filePathArr = filePath.split(import_node_path.default.sep).filter(Boolean);
|
|
73
79
|
if ([
|
package/dist/watcher.js
CHANGED
|
@@ -16,9 +16,9 @@ const likeC4InstallMessage = `LikeC4 diagrams were found, but LikeC4 is not inst
|
|
|
16
16
|
|
|
17
17
|
Install LikeC4 in your EventCatalog project:
|
|
18
18
|
|
|
19
|
-
npm install --save-dev likec4@
|
|
20
|
-
pnpm add -D likec4@
|
|
21
|
-
yarn add -D likec4@
|
|
19
|
+
npm install --save-dev likec4@1.55.1 @likec4/icons@1.46.4
|
|
20
|
+
pnpm add -D likec4@1.55.1 @likec4/icons@1.46.4
|
|
21
|
+
yarn add -D likec4@1.55.1 @likec4/icons@1.46.4`;
|
|
22
22
|
|
|
23
23
|
export const eventCatalogLikeC4 = async (workspaceDir: string): Promise<Plugin[]> => {
|
|
24
24
|
const enabled = hasLikeC4Sources(workspaceDir);
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "3.47.
|
|
10
|
+
"version": "3.47.4",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"gray-matter": "^4.0.3",
|
|
76
76
|
"hono": "4.12.21",
|
|
77
77
|
"html-to-image": "^1.11.11",
|
|
78
|
-
"js-yaml": "^4.
|
|
78
|
+
"js-yaml": "^4.2.0",
|
|
79
79
|
"jsonpath-plus": "^10.4.0",
|
|
80
80
|
"jsonwebtoken": "^9.0.2",
|
|
81
81
|
"lodash.debounce": "^4.0.8",
|
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
"update-notifier": "^7.3.1",
|
|
112
112
|
"uuid": "^10.0.0",
|
|
113
113
|
"zod": "^4.3.6",
|
|
114
|
-
"@eventcatalog/linter": "1.0
|
|
115
|
-
"@eventcatalog/
|
|
116
|
-
"@eventcatalog/
|
|
114
|
+
"@eventcatalog/linter": "1.1.0",
|
|
115
|
+
"@eventcatalog/sdk": "2.24.1",
|
|
116
|
+
"@eventcatalog/visualiser": "^3.22.1"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
119
|
"@astrojs/check": "^0.9.9",
|