@eventcatalog/core 4.7.7 → 4.7.9
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-QYK2OJMS.js → chunk-2C5JYUFZ.js} +1 -1
- package/dist/{chunk-MQEV3YUV.js → chunk-4MDL35UE.js} +1 -1
- package/dist/{chunk-ZONBICNH.js → chunk-6U72KINX.js} +6 -1
- package/dist/chunk-FV56YFM4.js +7 -0
- package/dist/{chunk-5ASZ2V3F.js → chunk-LKIDMN7D.js} +1 -1
- package/dist/{chunk-AU344G4Q.js → chunk-LKZNEPD7.js} +1 -1
- package/dist/{chunk-MLIR3NL4.js → chunk-U52FCZQ6.js} +1 -1
- package/dist/{chunk-JBNUHFT4.js → chunk-XJ57UM4O.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +10 -5
- package/dist/eventcatalog.config.d.cts +1 -1
- package/dist/eventcatalog.config.d.ts +1 -1
- package/dist/eventcatalog.js +8 -8
- package/dist/federation/entitlement.cjs +1 -1
- package/dist/federation/entitlement.d.cts +3 -3
- package/dist/federation/entitlement.d.ts +3 -3
- package/dist/federation/entitlement.js +1 -1
- package/dist/federation/federate.cjs +1 -1
- package/dist/federation/federate.js +2 -2
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/search-indexer.cjs +6 -1
- package/dist/search-indexer.js +1 -1
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-DDALKGTF.js +0 -7
|
@@ -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.7.
|
|
143
|
+
var version = "4.7.9";
|
|
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-LKIDMN7D.js";
|
|
4
|
+
import "../chunk-4MDL35UE.js";
|
|
5
5
|
import "../chunk-K2XIENVT.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-XJ57UM4O.js";
|
|
7
7
|
import "../chunk-6QENHZZP.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
|
@@ -51,6 +51,10 @@ var valueToSearchText = (value) => {
|
|
|
51
51
|
if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
|
|
52
52
|
return "";
|
|
53
53
|
};
|
|
54
|
+
var getDictionarySearchFields = (dictionary) => {
|
|
55
|
+
if (!Array.isArray(dictionary)) return void 0;
|
|
56
|
+
return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
|
|
57
|
+
};
|
|
54
58
|
var markdownToSearchText = (content) => {
|
|
55
59
|
return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
|
|
56
60
|
const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
|
|
@@ -242,7 +246,8 @@ var collectSearchRecords = async ({
|
|
|
242
246
|
date: parsed.data.date,
|
|
243
247
|
decisionMakers: parsed.data.decisionMakers,
|
|
244
248
|
appliesTo: parsed.data.appliesTo,
|
|
245
|
-
badges: parsed.data.badges
|
|
249
|
+
badges: parsed.data.badges,
|
|
250
|
+
dictionary: getDictionarySearchFields(parsed.data.dictionary)
|
|
246
251
|
});
|
|
247
252
|
const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
|
|
248
253
|
if (!content.trim()) {
|
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.7.
|
|
147
|
+
var version = "4.7.9";
|
|
148
148
|
|
|
149
149
|
// src/constants.ts
|
|
150
150
|
var VERSION = version;
|
|
@@ -412,7 +412,7 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
|
|
|
412
412
|
})
|
|
413
413
|
});
|
|
414
414
|
};
|
|
415
|
-
var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStarterEnabled2, isEventCatalogScaleEnabled:
|
|
415
|
+
var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStarterEnabled2, isEventCatalogScaleEnabled: isEventCatalogScaleEnabled2, isBackstagePluginEnabled }) => {
|
|
416
416
|
try {
|
|
417
417
|
await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
|
|
418
418
|
const configFile = await getEventCatalogConfigFile(projectDir);
|
|
@@ -421,7 +421,7 @@ var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStar
|
|
|
421
421
|
if (isEventCatalogStarterEnabled2) {
|
|
422
422
|
generatorNames.push("@eventcatalog/eventcatalog-starter");
|
|
423
423
|
}
|
|
424
|
-
if (
|
|
424
|
+
if (isEventCatalogScaleEnabled2) {
|
|
425
425
|
generatorNames.push("@eventcatalog/eventcatalog-scale");
|
|
426
426
|
}
|
|
427
427
|
if (isBackstagePluginEnabled) {
|
|
@@ -1568,6 +1568,10 @@ var valueToSearchText = (value) => {
|
|
|
1568
1568
|
if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
|
|
1569
1569
|
return "";
|
|
1570
1570
|
};
|
|
1571
|
+
var getDictionarySearchFields = (dictionary) => {
|
|
1572
|
+
if (!Array.isArray(dictionary)) return void 0;
|
|
1573
|
+
return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
|
|
1574
|
+
};
|
|
1571
1575
|
var markdownToSearchText = (content) => {
|
|
1572
1576
|
return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
|
|
1573
1577
|
const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
|
|
@@ -1759,7 +1763,8 @@ var collectSearchRecords = async ({
|
|
|
1759
1763
|
date: parsed.data.date,
|
|
1760
1764
|
decisionMakers: parsed.data.decisionMakers,
|
|
1761
1765
|
appliesTo: parsed.data.appliesTo,
|
|
1762
|
-
badges: parsed.data.badges
|
|
1766
|
+
badges: parsed.data.badges,
|
|
1767
|
+
dictionary: getDictionarySearchFields(parsed.data.dictionary)
|
|
1763
1768
|
});
|
|
1764
1769
|
const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
|
|
1765
1770
|
if (!content.trim()) {
|
|
@@ -2123,7 +2128,7 @@ var getVisibleFederationDiagnostics = (diagnostics, verbose) => diagnostics.filt
|
|
|
2123
2128
|
|
|
2124
2129
|
// src/federation/entitlement.ts
|
|
2125
2130
|
var import_license = require("@eventcatalog/license");
|
|
2126
|
-
var isFederationEnabled = () => (0, import_license.
|
|
2131
|
+
var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
|
|
2127
2132
|
|
|
2128
2133
|
// src/federation/output-transaction.ts
|
|
2129
2134
|
var import_promises5 = __toESM(require("fs/promises"), 1);
|
|
@@ -404,7 +404,7 @@ interface Config {
|
|
|
404
404
|
integrations?: IntegrationsConfig;
|
|
405
405
|
scalarConfiguration?: ScalarConfiguration;
|
|
406
406
|
generators?: GeneratorConfig[];
|
|
407
|
-
/** Catalogs composed into this catalog by `eventcatalog federate`. */
|
|
407
|
+
/** Catalogs composed into this catalog by `eventcatalog federate`. Requires an offline EventCatalog Enterprise license. */
|
|
408
408
|
federation?: FederationConfig;
|
|
409
409
|
}
|
|
410
410
|
|
|
@@ -404,7 +404,7 @@ interface Config {
|
|
|
404
404
|
integrations?: IntegrationsConfig;
|
|
405
405
|
scalarConfiguration?: ScalarConfiguration;
|
|
406
406
|
generators?: GeneratorConfig[];
|
|
407
|
-
/** Catalogs composed into this catalog by `eventcatalog federate`. */
|
|
407
|
+
/** Catalogs composed into this catalog by `eventcatalog federate`. Requires an offline EventCatalog Enterprise license. */
|
|
408
408
|
federation?: FederationConfig;
|
|
409
409
|
}
|
|
410
410
|
|
package/dist/eventcatalog.js
CHANGED
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import "./chunk-CA4U2JP7.js";
|
|
5
5
|
import {
|
|
6
6
|
log_build_default
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-LKIDMN7D.js";
|
|
8
|
+
import "./chunk-4MDL35UE.js";
|
|
9
9
|
import "./chunk-K2XIENVT.js";
|
|
10
10
|
import {
|
|
11
11
|
FederationConflictError,
|
|
12
12
|
FederationDiagnosticError,
|
|
13
13
|
federateCatalog
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U52FCZQ6.js";
|
|
15
15
|
import "./chunk-WRNH5C3U.js";
|
|
16
16
|
import "./chunk-5EPNFDT5.js";
|
|
17
17
|
import "./chunk-6K7XZAYI.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
getFederationDiagnosticCounts,
|
|
22
22
|
getVisibleFederationDiagnostics
|
|
23
23
|
} from "./chunk-JJPB6EOZ.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-FV56YFM4.js";
|
|
25
25
|
import "./chunk-SDZQJTJW.js";
|
|
26
26
|
import {
|
|
27
27
|
getProjectOutDir,
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
} from "./chunk-B7HCX5HM.js";
|
|
32
32
|
import {
|
|
33
33
|
generate
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2C5JYUFZ.js";
|
|
35
35
|
import {
|
|
36
36
|
logger
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LKZNEPD7.js";
|
|
38
38
|
import {
|
|
39
39
|
resolve_catalog_dependencies_default
|
|
40
40
|
} from "./chunk-LHR4G2UO.js";
|
|
41
41
|
import {
|
|
42
42
|
buildSearchIndex
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6U72KINX.js";
|
|
44
44
|
import {
|
|
45
45
|
watch
|
|
46
46
|
} from "./chunk-CAJUIMDJ.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import "./chunk-W5JQON7Z.js";
|
|
55
55
|
import {
|
|
56
56
|
VERSION
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-XJ57UM4O.js";
|
|
58
58
|
import {
|
|
59
59
|
linkCoreNodeModules,
|
|
60
60
|
resolveInstalledCoreNodeModules
|
|
@@ -24,7 +24,7 @@ __export(entitlement_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(entitlement_exports);
|
|
26
26
|
var import_license = require("@eventcatalog/license");
|
|
27
|
-
var isFederationEnabled = () => (0, import_license.
|
|
27
|
+
var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
|
|
28
28
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29
29
|
0 && (module.exports = {
|
|
30
30
|
isFederationEnabled
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* See /packages/core/src/federation/LICENSE
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Federation is
|
|
7
|
-
* plan-agnostic so
|
|
8
|
-
*
|
|
6
|
+
* Federation is enabled through the Enterprise offline entitlement. Keep
|
|
7
|
+
* callers plan-agnostic so licensing details remain isolated from the
|
|
8
|
+
* federation workflow.
|
|
9
9
|
*/
|
|
10
10
|
declare const isFederationEnabled: () => Promise<boolean>;
|
|
11
11
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* See /packages/core/src/federation/LICENSE
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Federation is
|
|
7
|
-
* plan-agnostic so
|
|
8
|
-
*
|
|
6
|
+
* Federation is enabled through the Enterprise offline entitlement. Keep
|
|
7
|
+
* callers plan-agnostic so licensing details remain isolated from the
|
|
8
|
+
* federation workflow.
|
|
9
9
|
*/
|
|
10
10
|
declare const isFederationEnabled: () => Promise<boolean>;
|
|
11
11
|
|
|
@@ -296,7 +296,7 @@ var getFederationDiagnostics = (graph, rules = {}) => {
|
|
|
296
296
|
|
|
297
297
|
// src/federation/entitlement.ts
|
|
298
298
|
var import_license = require("@eventcatalog/license");
|
|
299
|
-
var isFederationEnabled = () => (0, import_license.
|
|
299
|
+
var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
|
|
300
300
|
|
|
301
301
|
// src/federation/output-transaction.ts
|
|
302
302
|
var import_promises3 = __toESM(require("fs/promises"), 1);
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
FederationConflictError,
|
|
3
3
|
FederationDiagnosticError,
|
|
4
4
|
federateCatalog
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-U52FCZQ6.js";
|
|
6
6
|
import "../chunk-WRNH5C3U.js";
|
|
7
7
|
import "../chunk-5EPNFDT5.js";
|
|
8
8
|
import "../chunk-6K7XZAYI.js";
|
|
9
9
|
import "../chunk-352FGP6W.js";
|
|
10
10
|
import "../chunk-R7Z5ALYI.js";
|
|
11
11
|
import "../chunk-JJPB6EOZ.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-FV56YFM4.js";
|
|
13
13
|
import "../chunk-SDZQJTJW.js";
|
|
14
14
|
import "../chunk-6QENHZZP.js";
|
|
15
15
|
export {
|
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.7.
|
|
111
|
+
var version = "4.7.9";
|
|
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-2C5JYUFZ.js";
|
|
4
|
+
import "./chunk-LKZNEPD7.js";
|
|
5
|
+
import "./chunk-XJ57UM4O.js";
|
|
6
6
|
import "./chunk-6QENHZZP.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/search-indexer.cjs
CHANGED
|
@@ -87,6 +87,10 @@ var valueToSearchText = (value) => {
|
|
|
87
87
|
if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
|
|
88
88
|
return "";
|
|
89
89
|
};
|
|
90
|
+
var getDictionarySearchFields = (dictionary) => {
|
|
91
|
+
if (!Array.isArray(dictionary)) return void 0;
|
|
92
|
+
return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
|
|
93
|
+
};
|
|
90
94
|
var markdownToSearchText = (content) => {
|
|
91
95
|
return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
|
|
92
96
|
const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
|
|
@@ -278,7 +282,8 @@ var collectSearchRecords = async ({
|
|
|
278
282
|
date: parsed.data.date,
|
|
279
283
|
decisionMakers: parsed.data.decisionMakers,
|
|
280
284
|
appliesTo: parsed.data.appliesTo,
|
|
281
|
-
badges: parsed.data.badges
|
|
285
|
+
badges: parsed.data.badges,
|
|
286
|
+
dictionary: getDictionarySearchFields(parsed.data.dictionary)
|
|
282
287
|
});
|
|
283
288
|
const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
|
|
284
289
|
if (!content.trim()) {
|
package/dist/search-indexer.js
CHANGED
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.7.
|
|
10
|
+
"version": "4.7.9",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@asyncapi/parser": "^3.6.0",
|
|
42
42
|
"@asyncapi/react-component": "3.1.0",
|
|
43
43
|
"@auth/core": "^0.41.3",
|
|
44
|
-
"@eventcatalog/license": "^0.0.
|
|
44
|
+
"@eventcatalog/license": "^0.0.8",
|
|
45
45
|
"@fontsource/inter": "^5.2.5",
|
|
46
46
|
"@headlessui/react": "^2.0.3",
|
|
47
47
|
"@heroicons/react": "^2.1.3",
|