@eventcatalog/core 4.1.2 → 4.1.3
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/count-resources.cjs +8 -2
- package/dist/analytics/count-resources.js +1 -1
- package/dist/analytics/log-build.cjs +12 -4
- package/dist/analytics/log-build.js +4 -4
- package/dist/{chunk-XDI5KMKL.js → chunk-DDGOJV25.js} +5 -3
- package/dist/{chunk-BAPUZSRK.js → chunk-G3D7IZ67.js} +1 -1
- package/dist/{chunk-DAOXTQVS.js → chunk-K2XIENVT.js} +8 -2
- package/dist/{chunk-6MLMZ7C6.js → chunk-PDQER3NQ.js} +1 -1
- package/dist/{chunk-2HP7DWTG.js → chunk-TUKKXNQR.js} +1 -1
- package/dist/{chunk-UKC6BKFK.js → chunk-WEDJTUSQ.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +12 -4
- package/dist/eventcatalog.js +10 -10
- 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/package.json +3 -3
|
@@ -44,14 +44,20 @@ var RESOURCE_PATTERNS = {
|
|
|
44
44
|
diagrams: ["**/diagrams/**/index.@(md|mdx)"],
|
|
45
45
|
ubiquitousLanguages: ["domains/*/ubiquitous-language.@(md|mdx)", "domains/*/subdomains/*/ubiquitous-language.@(md|mdx)"]
|
|
46
46
|
};
|
|
47
|
+
var CUSTOM_ROUTE_PATTERNS = {
|
|
48
|
+
customPages: ["pages/**/*.astro"],
|
|
49
|
+
customApis: ["pages/**/*.@(ts|js|mjs)"]
|
|
50
|
+
};
|
|
51
|
+
var DEFAULT_IGNORES = ["**/versioned/**", "**/dist/**", "**/node_modules/**"];
|
|
52
|
+
var CUSTOM_ROUTE_IGNORES = [...DEFAULT_IGNORES, "pages/**/_*/**", "pages/**/_*"];
|
|
47
53
|
async function countResources(projectDir) {
|
|
48
54
|
const counts = {};
|
|
49
|
-
for (const [type, patterns] of Object.entries(RESOURCE_PATTERNS)) {
|
|
55
|
+
for (const [type, patterns] of Object.entries({ ...RESOURCE_PATTERNS, ...CUSTOM_ROUTE_PATTERNS })) {
|
|
50
56
|
let total = 0;
|
|
51
57
|
for (const pattern of patterns) {
|
|
52
58
|
const files = await (0, import_glob.glob)(pattern, {
|
|
53
59
|
cwd: projectDir,
|
|
54
|
-
ignore:
|
|
60
|
+
ignore: type in CUSTOM_ROUTE_PATTERNS ? CUSTOM_ROUTE_IGNORES : DEFAULT_IGNORES
|
|
55
61
|
});
|
|
56
62
|
total += files.length;
|
|
57
63
|
}
|
|
@@ -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 = "4.1.
|
|
143
|
+
var version = "4.1.3";
|
|
144
144
|
|
|
145
145
|
// src/constants.ts
|
|
146
146
|
var VERSION = version;
|
|
@@ -197,14 +197,20 @@ var RESOURCE_PATTERNS = {
|
|
|
197
197
|
diagrams: ["**/diagrams/**/index.@(md|mdx)"],
|
|
198
198
|
ubiquitousLanguages: ["domains/*/ubiquitous-language.@(md|mdx)", "domains/*/subdomains/*/ubiquitous-language.@(md|mdx)"]
|
|
199
199
|
};
|
|
200
|
+
var CUSTOM_ROUTE_PATTERNS = {
|
|
201
|
+
customPages: ["pages/**/*.astro"],
|
|
202
|
+
customApis: ["pages/**/*.@(ts|js|mjs)"]
|
|
203
|
+
};
|
|
204
|
+
var DEFAULT_IGNORES = ["**/versioned/**", "**/dist/**", "**/node_modules/**"];
|
|
205
|
+
var CUSTOM_ROUTE_IGNORES = [...DEFAULT_IGNORES, "pages/**/_*/**", "pages/**/_*"];
|
|
200
206
|
async function countResources(projectDir) {
|
|
201
207
|
const counts = {};
|
|
202
|
-
for (const [type, patterns] of Object.entries(RESOURCE_PATTERNS)) {
|
|
208
|
+
for (const [type, patterns] of Object.entries({ ...RESOURCE_PATTERNS, ...CUSTOM_ROUTE_PATTERNS })) {
|
|
203
209
|
let total = 0;
|
|
204
210
|
for (const pattern of patterns) {
|
|
205
211
|
const files = await (0, import_glob.glob)(pattern, {
|
|
206
212
|
cwd: projectDir,
|
|
207
|
-
ignore:
|
|
213
|
+
ignore: type in CUSTOM_ROUTE_PATTERNS ? CUSTOM_ROUTE_IGNORES : DEFAULT_IGNORES
|
|
208
214
|
});
|
|
209
215
|
total += files.length;
|
|
210
216
|
}
|
|
@@ -263,7 +269,9 @@ var toCloudResourceCounts = (counts) => ({
|
|
|
263
269
|
users: counts.users || 0,
|
|
264
270
|
designs: counts.designs || 0,
|
|
265
271
|
diagrams: counts.diagrams || 0,
|
|
266
|
-
ubiquitousLanguages: counts.ubiquitousLanguages || 0
|
|
272
|
+
ubiquitousLanguages: counts.ubiquitousLanguages || 0,
|
|
273
|
+
customPages: counts.customPages || 0,
|
|
274
|
+
customApis: counts.customApis || 0
|
|
267
275
|
});
|
|
268
276
|
var reportCloudResourceInventory = async (configFile, resourceCounts) => {
|
|
269
277
|
const analytics = configFile.cloud?.analytics;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-DDGOJV25.js";
|
|
4
|
+
import "../chunk-PDQER3NQ.js";
|
|
5
|
+
import "../chunk-K2XIENVT.js";
|
|
6
|
+
import "../chunk-G3D7IZ67.js";
|
|
7
7
|
import "../chunk-6QENHZZP.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
raiseEvent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PDQER3NQ.js";
|
|
4
4
|
import {
|
|
5
5
|
countResources,
|
|
6
6
|
serializeCounts
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K2XIENVT.js";
|
|
8
8
|
import {
|
|
9
9
|
getEventCatalogConfigFile,
|
|
10
10
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
@@ -57,7 +57,9 @@ var toCloudResourceCounts = (counts) => ({
|
|
|
57
57
|
users: counts.users || 0,
|
|
58
58
|
designs: counts.designs || 0,
|
|
59
59
|
diagrams: counts.diagrams || 0,
|
|
60
|
-
ubiquitousLanguages: counts.ubiquitousLanguages || 0
|
|
60
|
+
ubiquitousLanguages: counts.ubiquitousLanguages || 0,
|
|
61
|
+
customPages: counts.customPages || 0,
|
|
62
|
+
customApis: counts.customApis || 0
|
|
61
63
|
});
|
|
62
64
|
var reportCloudResourceInventory = async (configFile, resourceCounts) => {
|
|
63
65
|
const analytics = configFile.cloud?.analytics;
|
|
@@ -19,14 +19,20 @@ var RESOURCE_PATTERNS = {
|
|
|
19
19
|
diagrams: ["**/diagrams/**/index.@(md|mdx)"],
|
|
20
20
|
ubiquitousLanguages: ["domains/*/ubiquitous-language.@(md|mdx)", "domains/*/subdomains/*/ubiquitous-language.@(md|mdx)"]
|
|
21
21
|
};
|
|
22
|
+
var CUSTOM_ROUTE_PATTERNS = {
|
|
23
|
+
customPages: ["pages/**/*.astro"],
|
|
24
|
+
customApis: ["pages/**/*.@(ts|js|mjs)"]
|
|
25
|
+
};
|
|
26
|
+
var DEFAULT_IGNORES = ["**/versioned/**", "**/dist/**", "**/node_modules/**"];
|
|
27
|
+
var CUSTOM_ROUTE_IGNORES = [...DEFAULT_IGNORES, "pages/**/_*/**", "pages/**/_*"];
|
|
22
28
|
async function countResources(projectDir) {
|
|
23
29
|
const counts = {};
|
|
24
|
-
for (const [type, patterns] of Object.entries(RESOURCE_PATTERNS)) {
|
|
30
|
+
for (const [type, patterns] of Object.entries({ ...RESOURCE_PATTERNS, ...CUSTOM_ROUTE_PATTERNS })) {
|
|
25
31
|
let total = 0;
|
|
26
32
|
for (const pattern of patterns) {
|
|
27
33
|
const files = await glob(pattern, {
|
|
28
34
|
cwd: projectDir,
|
|
29
|
-
ignore:
|
|
35
|
+
ignore: type in CUSTOM_ROUTE_PATTERNS ? CUSTOM_ROUTE_IGNORES : DEFAULT_IGNORES
|
|
30
36
|
});
|
|
31
37
|
total += files.length;
|
|
32
38
|
}
|
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 = "4.1.
|
|
147
|
+
var version = "4.1.3";
|
|
148
148
|
|
|
149
149
|
// src/constants.ts
|
|
150
150
|
var VERSION = version;
|
|
@@ -295,14 +295,20 @@ var RESOURCE_PATTERNS = {
|
|
|
295
295
|
diagrams: ["**/diagrams/**/index.@(md|mdx)"],
|
|
296
296
|
ubiquitousLanguages: ["domains/*/ubiquitous-language.@(md|mdx)", "domains/*/subdomains/*/ubiquitous-language.@(md|mdx)"]
|
|
297
297
|
};
|
|
298
|
+
var CUSTOM_ROUTE_PATTERNS = {
|
|
299
|
+
customPages: ["pages/**/*.astro"],
|
|
300
|
+
customApis: ["pages/**/*.@(ts|js|mjs)"]
|
|
301
|
+
};
|
|
302
|
+
var DEFAULT_IGNORES = ["**/versioned/**", "**/dist/**", "**/node_modules/**"];
|
|
303
|
+
var CUSTOM_ROUTE_IGNORES = [...DEFAULT_IGNORES, "pages/**/_*/**", "pages/**/_*"];
|
|
298
304
|
async function countResources(projectDir) {
|
|
299
305
|
const counts = {};
|
|
300
|
-
for (const [type, patterns] of Object.entries(RESOURCE_PATTERNS)) {
|
|
306
|
+
for (const [type, patterns] of Object.entries({ ...RESOURCE_PATTERNS, ...CUSTOM_ROUTE_PATTERNS })) {
|
|
301
307
|
let total = 0;
|
|
302
308
|
for (const pattern of patterns) {
|
|
303
309
|
const files = await (0, import_glob.glob)(pattern, {
|
|
304
310
|
cwd: projectDir,
|
|
305
|
-
ignore:
|
|
311
|
+
ignore: type in CUSTOM_ROUTE_PATTERNS ? CUSTOM_ROUTE_IGNORES : DEFAULT_IGNORES
|
|
306
312
|
});
|
|
307
313
|
total += files.length;
|
|
308
314
|
}
|
|
@@ -361,7 +367,9 @@ var toCloudResourceCounts = (counts) => ({
|
|
|
361
367
|
users: counts.users || 0,
|
|
362
368
|
designs: counts.designs || 0,
|
|
363
369
|
diagrams: counts.diagrams || 0,
|
|
364
|
-
ubiquitousLanguages: counts.ubiquitousLanguages || 0
|
|
370
|
+
ubiquitousLanguages: counts.ubiquitousLanguages || 0,
|
|
371
|
+
customPages: counts.customPages || 0,
|
|
372
|
+
customApis: counts.customApis || 0
|
|
365
373
|
});
|
|
366
374
|
var reportCloudResourceInventory = async (configFile, resourceCounts) => {
|
|
367
375
|
const analytics = configFile.cloud?.analytics;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
} from "./chunk-DDGOJV25.js";
|
|
4
|
+
import {
|
|
5
|
+
runMigrations
|
|
6
|
+
} from "./chunk-XUAF2H54.js";
|
|
7
|
+
import "./chunk-CA4U2JP7.js";
|
|
6
8
|
import {
|
|
7
9
|
generate
|
|
8
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WEDJTUSQ.js";
|
|
9
11
|
import {
|
|
10
12
|
logger
|
|
11
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TUKKXNQR.js";
|
|
12
14
|
import {
|
|
13
15
|
resolve_catalog_dependencies_default
|
|
14
16
|
} from "./chunk-LHR4G2UO.js";
|
|
@@ -18,17 +20,15 @@ import {
|
|
|
18
20
|
import {
|
|
19
21
|
watch
|
|
20
22
|
} from "./chunk-CAJUIMDJ.js";
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
} from "./chunk-XUAF2H54.js";
|
|
24
|
-
import "./chunk-CA4U2JP7.js";
|
|
23
|
+
import "./chunk-PDQER3NQ.js";
|
|
24
|
+
import "./chunk-K2XIENVT.js";
|
|
25
25
|
import {
|
|
26
26
|
catalogToAstro
|
|
27
27
|
} from "./chunk-W3SAPOZU.js";
|
|
28
28
|
import "./chunk-W5JQON7Z.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-G3D7IZ67.js";
|
|
32
32
|
import {
|
|
33
33
|
linkCoreNodeModules,
|
|
34
34
|
resolveInstalledCoreNodeModules
|
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 = "4.1.
|
|
111
|
+
var version = "4.1.3";
|
|
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-WEDJTUSQ.js";
|
|
4
|
+
import "./chunk-TUKKXNQR.js";
|
|
5
|
+
import "./chunk-G3D7IZ67.js";
|
|
6
6
|
import "./chunk-6QENHZZP.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "4.1.
|
|
10
|
+
"version": "4.1.3",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
"uuid": "^10.0.0",
|
|
118
118
|
"zod": "^4.3.6",
|
|
119
119
|
"@eventcatalog/linter": "1.1.4",
|
|
120
|
-
"@eventcatalog/
|
|
121
|
-
"@eventcatalog/
|
|
120
|
+
"@eventcatalog/visualiser": "^4.0.1",
|
|
121
|
+
"@eventcatalog/sdk": "2.25.0"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
124
|
"@astrojs/check": "^0.9.9",
|