@eventcatalog/core 5.0.0-beta.8 → 5.0.0-beta.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/LICENSE +227 -128
- package/dist/analytics/analytics.cjs +18 -3
- package/dist/analytics/analytics.d.cts +1 -1
- package/dist/analytics/analytics.d.ts +1 -1
- package/dist/analytics/analytics.js +3 -2
- package/dist/analytics/log-build.cjs +68 -34
- package/dist/analytics/log-build.js +5 -4
- package/dist/analytics/telemetry.cjs +42 -0
- package/dist/analytics/telemetry.d.cts +20 -0
- package/dist/analytics/telemetry.d.ts +20 -0
- package/dist/analytics/telemetry.js +8 -0
- package/dist/{chunk-C6T2AAFR.js → chunk-4CFZUHGG.js} +9 -3
- package/dist/chunk-CPW6G62V.js +17 -0
- package/dist/{chunk-RDIZJ7UT.js → chunk-EUNQJO3J.js} +1 -1
- package/dist/{chunk-PU25TOOJ.js → chunk-GAHKCOQM.js} +1 -1
- package/dist/{chunk-4W55ZOOS.js → chunk-JQMYHZWI.js} +58 -35
- package/dist/{chunk-T4G3VVZ4.js → chunk-TZVDMWQX.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +70 -34
- package/dist/eventcatalog.config.d.cts +8 -0
- package/dist/eventcatalog.config.d.ts +8 -0
- package/dist/eventcatalog.js +14 -13
- package/dist/federation/federate.js +4 -4
- 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
- package/dist/{chunk-AYNZXUB5.js → chunk-ZEY2XUJN.js} +7 -7
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/analytics/telemetry.ts
|
|
21
|
+
var telemetry_exports = {};
|
|
22
|
+
__export(telemetry_exports, {
|
|
23
|
+
TELEMETRY_REQUEST_TIMEOUT_MS: () => TELEMETRY_REQUEST_TIMEOUT_MS,
|
|
24
|
+
isTelemetryDisabled: () => isTelemetryDisabled
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(telemetry_exports);
|
|
27
|
+
var TELEMETRY_REQUEST_TIMEOUT_MS = 2e3;
|
|
28
|
+
var isOptOutEnvValue = (value) => {
|
|
29
|
+
if (typeof value !== "string") return false;
|
|
30
|
+
const normalized = value.trim().toLowerCase();
|
|
31
|
+
return normalized === "1" || normalized === "true";
|
|
32
|
+
};
|
|
33
|
+
var isTelemetryDisabled = (config, env) => {
|
|
34
|
+
if (isOptOutEnvValue(env.EVENTCATALOG_TELEMETRY_DISABLED)) return true;
|
|
35
|
+
if (isOptOutEnvValue(env.DO_NOT_TRACK)) return true;
|
|
36
|
+
return config?.telemetry === false;
|
|
37
|
+
};
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
TELEMETRY_REQUEST_TIMEOUT_MS,
|
|
41
|
+
isTelemetryDisabled
|
|
42
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** How long a telemetry request may take before it is aborted. */
|
|
2
|
+
declare const TELEMETRY_REQUEST_TIMEOUT_MS = 2000;
|
|
3
|
+
type TelemetryConfig = {
|
|
4
|
+
telemetry?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type TelemetryEnv = {
|
|
7
|
+
EVENTCATALOG_TELEMETRY_DISABLED?: string;
|
|
8
|
+
DO_NOT_TRACK?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Anonymous telemetry is on unless the catalog opts out.
|
|
12
|
+
* Opt out with EVENTCATALOG_TELEMETRY_DISABLED or DO_NOT_TRACK set to "1" or "true"
|
|
13
|
+
* (any case), or with telemetry: false in eventcatalog.config.js.
|
|
14
|
+
*
|
|
15
|
+
* packages/create-eventcatalog/templates/telemetry.ts copies the env rules and
|
|
16
|
+
* TELEMETRY_REQUEST_TIMEOUT_MS. Keep that copy in sync.
|
|
17
|
+
*/
|
|
18
|
+
declare const isTelemetryDisabled: (config: TelemetryConfig | null | undefined, env: TelemetryEnv) => boolean;
|
|
19
|
+
|
|
20
|
+
export { TELEMETRY_REQUEST_TIMEOUT_MS, isTelemetryDisabled };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** How long a telemetry request may take before it is aborted. */
|
|
2
|
+
declare const TELEMETRY_REQUEST_TIMEOUT_MS = 2000;
|
|
3
|
+
type TelemetryConfig = {
|
|
4
|
+
telemetry?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type TelemetryEnv = {
|
|
7
|
+
EVENTCATALOG_TELEMETRY_DISABLED?: string;
|
|
8
|
+
DO_NOT_TRACK?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Anonymous telemetry is on unless the catalog opts out.
|
|
12
|
+
* Opt out with EVENTCATALOG_TELEMETRY_DISABLED or DO_NOT_TRACK set to "1" or "true"
|
|
13
|
+
* (any case), or with telemetry: false in eventcatalog.config.js.
|
|
14
|
+
*
|
|
15
|
+
* packages/create-eventcatalog/templates/telemetry.ts copies the env rules and
|
|
16
|
+
* TELEMETRY_REQUEST_TIMEOUT_MS. Keep that copy in sync.
|
|
17
|
+
*/
|
|
18
|
+
declare const isTelemetryDisabled: (config: TelemetryConfig | null | undefined, env: TelemetryEnv) => boolean;
|
|
19
|
+
|
|
20
|
+
export { TELEMETRY_REQUEST_TIMEOUT_MS, isTelemetryDisabled };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TELEMETRY_REQUEST_TIMEOUT_MS,
|
|
3
|
+
isTelemetryDisabled
|
|
4
|
+
} from "./chunk-CPW6G62V.js";
|
|
1
5
|
import {
|
|
2
6
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EUNQJO3J.js";
|
|
4
8
|
|
|
5
9
|
// src/analytics/analytics.js
|
|
6
10
|
import os from "os";
|
|
7
|
-
async function raiseEvent(eventData) {
|
|
11
|
+
async function raiseEvent(eventData, config) {
|
|
12
|
+
if (isTelemetryDisabled(config, process.env)) return;
|
|
8
13
|
if (typeof eventData?.command !== "string" || typeof eventData?.cId !== "string") return;
|
|
9
14
|
const url = "https://queue.simpleanalyticscdn.com/events";
|
|
10
15
|
const userAgent = `@eventcatalog/eventcatalog@${VERSION} (${os.platform()}; ${os.arch()}; Node/${process.version})`;
|
|
@@ -26,7 +31,8 @@ async function raiseEvent(eventData) {
|
|
|
26
31
|
const response = await fetch(url, {
|
|
27
32
|
method: "POST",
|
|
28
33
|
headers,
|
|
29
|
-
body: JSON.stringify(payload)
|
|
34
|
+
body: JSON.stringify(payload),
|
|
35
|
+
signal: AbortSignal.timeout(TELEMETRY_REQUEST_TIMEOUT_MS)
|
|
30
36
|
});
|
|
31
37
|
if (!response.ok) {
|
|
32
38
|
throw new Error(`Failed to raise analytics event: ${response.status}`);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/analytics/telemetry.ts
|
|
2
|
+
var TELEMETRY_REQUEST_TIMEOUT_MS = 2e3;
|
|
3
|
+
var isOptOutEnvValue = (value) => {
|
|
4
|
+
if (typeof value !== "string") return false;
|
|
5
|
+
const normalized = value.trim().toLowerCase();
|
|
6
|
+
return normalized === "1" || normalized === "true";
|
|
7
|
+
};
|
|
8
|
+
var isTelemetryDisabled = (config, env) => {
|
|
9
|
+
if (isOptOutEnvValue(env.EVENTCATALOG_TELEMETRY_DISABLED)) return true;
|
|
10
|
+
if (isOptOutEnvValue(env.DO_NOT_TRACK)) return true;
|
|
11
|
+
return config?.telemetry === false;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
TELEMETRY_REQUEST_TIMEOUT_MS,
|
|
16
|
+
isTelemetryDisabled
|
|
17
|
+
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
raiseEvent
|
|
3
|
+
} from "./chunk-4CFZUHGG.js";
|
|
4
4
|
import {
|
|
5
5
|
countResources,
|
|
6
6
|
hashCatalogContent,
|
|
7
7
|
serializeCounts
|
|
8
8
|
} from "./chunk-ZAZHAVKB.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
TELEMETRY_REQUEST_TIMEOUT_MS,
|
|
11
|
+
isTelemetryDisabled
|
|
12
|
+
} from "./chunk-CPW6G62V.js";
|
|
13
|
+
import {
|
|
14
|
+
getLicenseAnalytics
|
|
15
|
+
} from "./chunk-AWOO63ME.js";
|
|
12
16
|
import {
|
|
13
17
|
getEventCatalogConfigFile,
|
|
14
18
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
@@ -69,50 +73,69 @@ var toCloudResourceCounts = (counts) => ({
|
|
|
69
73
|
customPages: counts.customPages || 0,
|
|
70
74
|
customApis: counts.customApis || 0
|
|
71
75
|
});
|
|
72
|
-
var
|
|
76
|
+
var getEnabledCloudAnalytics = (configFile) => {
|
|
73
77
|
const analytics = configFile.cloud?.analytics;
|
|
74
|
-
if (!analytics?.enabled || !analytics.trackingId || !analytics.writeKey) return;
|
|
78
|
+
if (!analytics?.enabled || !analytics.trackingId || !analytics.writeKey) return null;
|
|
79
|
+
return analytics;
|
|
80
|
+
};
|
|
81
|
+
var reportCloudResourceInventory = async (configFile, resourceCounts) => {
|
|
82
|
+
const analytics = getEnabledCloudAnalytics(configFile);
|
|
83
|
+
if (!analytics) return;
|
|
75
84
|
const endpoint = analytics.endpoint || CLOUD_ANALYTICS_ENDPOINT;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
try {
|
|
86
|
+
await fetch(endpoint, {
|
|
87
|
+
method: "POST",
|
|
88
|
+
headers: {
|
|
89
|
+
"Content-Type": "application/json",
|
|
90
|
+
"X-EventCatalog-Analytics-Key": analytics.writeKey
|
|
91
|
+
},
|
|
92
|
+
body: JSON.stringify({
|
|
93
|
+
trackingId: analytics.trackingId,
|
|
94
|
+
event: "catalog.resource_inventory_reported",
|
|
95
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
96
|
+
counts: toCloudResourceCounts(resourceCounts)
|
|
97
|
+
}),
|
|
98
|
+
signal: AbortSignal.timeout(TELEMETRY_REQUEST_TIMEOUT_MS)
|
|
99
|
+
});
|
|
100
|
+
} catch {
|
|
101
|
+
}
|
|
89
102
|
};
|
|
90
103
|
var main = async (projectDir, { command = "build", license } = {}) => {
|
|
91
104
|
try {
|
|
92
105
|
await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
|
|
93
106
|
const configFile = await getEventCatalogConfigFile(projectDir);
|
|
107
|
+
if (isTelemetryDisabled(configFile, process.env)) {
|
|
108
|
+
if (getEnabledCloudAnalytics(configFile)) {
|
|
109
|
+
const resourceCounts2 = await countResources(projectDir);
|
|
110
|
+
await reportCloudResourceInventory(configFile, resourceCounts2);
|
|
111
|
+
}
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
94
114
|
const { cId, tsd, organizationName, generators = [] } = configFile;
|
|
95
115
|
const generatorNames = generators.length > 0 ? generators.map((generator) => generator[0]) : ["none"];
|
|
96
116
|
const features = await getFeatures(configFile);
|
|
97
117
|
const resourceCounts = await countResources(projectDir);
|
|
98
118
|
const contentHash = await hashCatalogContent(projectDir);
|
|
99
119
|
await reportCloudResourceInventory(configFile, resourceCounts);
|
|
100
|
-
await raiseEvent(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
120
|
+
await raiseEvent(
|
|
121
|
+
{
|
|
122
|
+
command,
|
|
123
|
+
org: organizationName,
|
|
124
|
+
cId,
|
|
125
|
+
// Trial start date (unix ms) from eventcatalog.config.js
|
|
126
|
+
tsd,
|
|
127
|
+
// Commercial license or trial, and when each expires (unix ms)
|
|
128
|
+
...getLicenseAnalytics(license, tsd),
|
|
129
|
+
// CI redeploys and human-run builds are different signals; tag rather than suppress
|
|
130
|
+
ci: process.env.CI ? "true" : "false",
|
|
131
|
+
contentHash,
|
|
132
|
+
generators: generatorNames.toString(),
|
|
133
|
+
features: Object.keys(features).map((feature) => `${feature}:${features[feature]}`).join(","),
|
|
134
|
+
directorySources: serializeDirectorySources(configFile),
|
|
135
|
+
resources: serializeCounts(resourceCounts)
|
|
136
|
+
},
|
|
137
|
+
configFile
|
|
138
|
+
);
|
|
116
139
|
} catch (error) {
|
|
117
140
|
}
|
|
118
141
|
};
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -181,7 +181,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
181
181
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
182
182
|
|
|
183
183
|
// package.json
|
|
184
|
-
var version = "5.0.0-beta.
|
|
184
|
+
var version = "5.0.0-beta.9";
|
|
185
185
|
|
|
186
186
|
// src/constants.ts
|
|
187
187
|
var VERSION = version;
|
|
@@ -304,7 +304,23 @@ var generate = async (PROJECT_DIRECTORY) => {
|
|
|
304
304
|
|
|
305
305
|
// src/analytics/analytics.js
|
|
306
306
|
var import_os = __toESM(require("os"), 1);
|
|
307
|
-
|
|
307
|
+
|
|
308
|
+
// src/analytics/telemetry.ts
|
|
309
|
+
var TELEMETRY_REQUEST_TIMEOUT_MS = 2e3;
|
|
310
|
+
var isOptOutEnvValue = (value) => {
|
|
311
|
+
if (typeof value !== "string") return false;
|
|
312
|
+
const normalized = value.trim().toLowerCase();
|
|
313
|
+
return normalized === "1" || normalized === "true";
|
|
314
|
+
};
|
|
315
|
+
var isTelemetryDisabled = (config, env) => {
|
|
316
|
+
if (isOptOutEnvValue(env.EVENTCATALOG_TELEMETRY_DISABLED)) return true;
|
|
317
|
+
if (isOptOutEnvValue(env.DO_NOT_TRACK)) return true;
|
|
318
|
+
return config?.telemetry === false;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
// src/analytics/analytics.js
|
|
322
|
+
async function raiseEvent(eventData, config) {
|
|
323
|
+
if (isTelemetryDisabled(config, process.env)) return;
|
|
308
324
|
if (typeof eventData?.command !== "string" || typeof eventData?.cId !== "string") return;
|
|
309
325
|
const url = "https://queue.simpleanalyticscdn.com/events";
|
|
310
326
|
const userAgent = `@eventcatalog/eventcatalog@${VERSION} (${import_os.default.platform()}; ${import_os.default.arch()}; Node/${process.version})`;
|
|
@@ -326,7 +342,8 @@ async function raiseEvent(eventData) {
|
|
|
326
342
|
const response = await fetch(url, {
|
|
327
343
|
method: "POST",
|
|
328
344
|
headers,
|
|
329
|
-
body: JSON.stringify(payload)
|
|
345
|
+
body: JSON.stringify(payload),
|
|
346
|
+
signal: AbortSignal.timeout(TELEMETRY_REQUEST_TIMEOUT_MS)
|
|
330
347
|
});
|
|
331
348
|
if (!response.ok) {
|
|
332
349
|
throw new Error(`Failed to raise analytics event: ${response.status}`);
|
|
@@ -679,50 +696,69 @@ var toCloudResourceCounts = (counts) => ({
|
|
|
679
696
|
customPages: counts.customPages || 0,
|
|
680
697
|
customApis: counts.customApis || 0
|
|
681
698
|
});
|
|
682
|
-
var
|
|
699
|
+
var getEnabledCloudAnalytics = (configFile) => {
|
|
683
700
|
const analytics = configFile.cloud?.analytics;
|
|
684
|
-
if (!analytics?.enabled || !analytics.trackingId || !analytics.writeKey) return;
|
|
701
|
+
if (!analytics?.enabled || !analytics.trackingId || !analytics.writeKey) return null;
|
|
702
|
+
return analytics;
|
|
703
|
+
};
|
|
704
|
+
var reportCloudResourceInventory = async (configFile, resourceCounts) => {
|
|
705
|
+
const analytics = getEnabledCloudAnalytics(configFile);
|
|
706
|
+
if (!analytics) return;
|
|
685
707
|
const endpoint = analytics.endpoint || CLOUD_ANALYTICS_ENDPOINT;
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
708
|
+
try {
|
|
709
|
+
await fetch(endpoint, {
|
|
710
|
+
method: "POST",
|
|
711
|
+
headers: {
|
|
712
|
+
"Content-Type": "application/json",
|
|
713
|
+
"X-EventCatalog-Analytics-Key": analytics.writeKey
|
|
714
|
+
},
|
|
715
|
+
body: JSON.stringify({
|
|
716
|
+
trackingId: analytics.trackingId,
|
|
717
|
+
event: "catalog.resource_inventory_reported",
|
|
718
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
719
|
+
counts: toCloudResourceCounts(resourceCounts)
|
|
720
|
+
}),
|
|
721
|
+
signal: AbortSignal.timeout(TELEMETRY_REQUEST_TIMEOUT_MS)
|
|
722
|
+
});
|
|
723
|
+
} catch {
|
|
724
|
+
}
|
|
699
725
|
};
|
|
700
726
|
var main = async (projectDir, { command = "build", license } = {}) => {
|
|
701
727
|
try {
|
|
702
728
|
await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
|
|
703
729
|
const configFile = await getEventCatalogConfigFile(projectDir);
|
|
730
|
+
if (isTelemetryDisabled(configFile, process.env)) {
|
|
731
|
+
if (getEnabledCloudAnalytics(configFile)) {
|
|
732
|
+
const resourceCounts2 = await countResources(projectDir);
|
|
733
|
+
await reportCloudResourceInventory(configFile, resourceCounts2);
|
|
734
|
+
}
|
|
735
|
+
return;
|
|
736
|
+
}
|
|
704
737
|
const { cId, tsd, organizationName, generators = [] } = configFile;
|
|
705
738
|
const generatorNames = generators.length > 0 ? generators.map((generator) => generator[0]) : ["none"];
|
|
706
739
|
const features = await getFeatures(configFile);
|
|
707
740
|
const resourceCounts = await countResources(projectDir);
|
|
708
741
|
const contentHash = await hashCatalogContent(projectDir);
|
|
709
742
|
await reportCloudResourceInventory(configFile, resourceCounts);
|
|
710
|
-
await raiseEvent(
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
743
|
+
await raiseEvent(
|
|
744
|
+
{
|
|
745
|
+
command,
|
|
746
|
+
org: organizationName,
|
|
747
|
+
cId,
|
|
748
|
+
// Trial start date (unix ms) from eventcatalog.config.js
|
|
749
|
+
tsd,
|
|
750
|
+
// Commercial license or trial, and when each expires (unix ms)
|
|
751
|
+
...getLicenseAnalytics(license, tsd),
|
|
752
|
+
// CI redeploys and human-run builds are different signals; tag rather than suppress
|
|
753
|
+
ci: process.env.CI ? "true" : "false",
|
|
754
|
+
contentHash,
|
|
755
|
+
generators: generatorNames.toString(),
|
|
756
|
+
features: Object.keys(features).map((feature) => `${feature}:${features[feature]}`).join(","),
|
|
757
|
+
directorySources: serializeDirectorySources(configFile),
|
|
758
|
+
resources: serializeCounts(resourceCounts)
|
|
759
|
+
},
|
|
760
|
+
configFile
|
|
761
|
+
);
|
|
726
762
|
} catch (error) {
|
|
727
763
|
}
|
|
728
764
|
};
|
|
@@ -457,6 +457,14 @@ interface Config {
|
|
|
457
457
|
queries?: {
|
|
458
458
|
tableConfiguration?: TableConfiguration;
|
|
459
459
|
};
|
|
460
|
+
/**
|
|
461
|
+
* Anonymous telemetry for `eventcatalog dev` and `eventcatalog build`.
|
|
462
|
+
* On by default. Set to false to opt out.
|
|
463
|
+
* `EVENTCATALOG_TELEMETRY_DISABLED` or `DO_NOT_TRACK` set to `1` or `true` also opts out.
|
|
464
|
+
* `cloud.analytics` stays its own opt-in for EventCatalog Cloud.
|
|
465
|
+
* @default true
|
|
466
|
+
*/
|
|
467
|
+
telemetry?: boolean;
|
|
460
468
|
cloud?: EventCatalogCloudConfig;
|
|
461
469
|
integrations?: IntegrationsConfig;
|
|
462
470
|
scalarConfiguration?: ScalarConfiguration;
|
|
@@ -457,6 +457,14 @@ interface Config {
|
|
|
457
457
|
queries?: {
|
|
458
458
|
tableConfiguration?: TableConfiguration;
|
|
459
459
|
};
|
|
460
|
+
/**
|
|
461
|
+
* Anonymous telemetry for `eventcatalog dev` and `eventcatalog build`.
|
|
462
|
+
* On by default. Set to false to opt out.
|
|
463
|
+
* `EVENTCATALOG_TELEMETRY_DISABLED` or `DO_NOT_TRACK` set to `1` or `true` also opts out.
|
|
464
|
+
* `cloud.analytics` stays its own opt-in for EventCatalog Cloud.
|
|
465
|
+
* @default true
|
|
466
|
+
*/
|
|
467
|
+
telemetry?: boolean;
|
|
460
468
|
cloud?: EventCatalogCloudConfig;
|
|
461
469
|
integrations?: IntegrationsConfig;
|
|
462
470
|
scalarConfiguration?: ScalarConfiguration;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
log_build_default
|
|
3
|
+
} from "./chunk-JQMYHZWI.js";
|
|
4
|
+
import "./chunk-4CFZUHGG.js";
|
|
5
|
+
import "./chunk-ZAZHAVKB.js";
|
|
6
|
+
import "./chunk-CPW6G62V.js";
|
|
1
7
|
import {
|
|
2
8
|
runMigrations
|
|
3
9
|
} from "./chunk-XUAF2H54.js";
|
|
4
10
|
import "./chunk-CA4U2JP7.js";
|
|
5
|
-
import {
|
|
6
|
-
log_build_default
|
|
7
|
-
} from "./chunk-4W55ZOOS.js";
|
|
8
11
|
import {
|
|
9
12
|
getLicenseStatus,
|
|
10
13
|
printLicenseStatus
|
|
11
14
|
} from "./chunk-AWOO63ME.js";
|
|
12
|
-
import "./chunk-ZAZHAVKB.js";
|
|
13
15
|
import {
|
|
14
16
|
FederationConflictError,
|
|
15
17
|
FederationDiagnosticError,
|
|
16
18
|
federateCatalog
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-5EPNFDT5.js";
|
|
19
|
-
import "./chunk-A2RZR3U4.js";
|
|
20
|
-
import "./chunk-R7Z5ALYI.js";
|
|
19
|
+
} from "./chunk-ZEY2XUJN.js";
|
|
21
20
|
import {
|
|
22
21
|
getFederationDiagnosticCounts,
|
|
23
22
|
getVisibleFederationDiagnostics
|
|
24
23
|
} from "./chunk-JJPB6EOZ.js";
|
|
24
|
+
import "./chunk-WRNH5C3U.js";
|
|
25
|
+
import "./chunk-5EPNFDT5.js";
|
|
26
|
+
import "./chunk-A2RZR3U4.js";
|
|
25
27
|
import "./chunk-SDZQJTJW.js";
|
|
26
28
|
import "./chunk-352FGP6W.js";
|
|
27
|
-
import "./chunk-WRNH5C3U.js";
|
|
28
29
|
import {
|
|
29
30
|
getProjectOutDir,
|
|
30
31
|
isAuthEnabled,
|
|
@@ -34,10 +35,10 @@ import {
|
|
|
34
35
|
} from "./chunk-ENAG6UH7.js";
|
|
35
36
|
import {
|
|
36
37
|
generate
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-TZVDMWQX.js";
|
|
38
39
|
import {
|
|
39
40
|
logger
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GAHKCOQM.js";
|
|
41
42
|
import {
|
|
42
43
|
resolve_catalog_dependencies_default
|
|
43
44
|
} from "./chunk-36RYTYT5.js";
|
|
@@ -51,7 +52,7 @@ import {
|
|
|
51
52
|
import {
|
|
52
53
|
watch
|
|
53
54
|
} from "./chunk-U63GDPPY.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-R7Z5ALYI.js";
|
|
55
56
|
import {
|
|
56
57
|
getAstroConfigPath
|
|
57
58
|
} from "./chunk-VIJJ7JKH.js";
|
|
@@ -67,7 +68,7 @@ import {
|
|
|
67
68
|
} from "./chunk-LFQJXLHG.js";
|
|
68
69
|
import {
|
|
69
70
|
VERSION
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-EUNQJO3J.js";
|
|
71
72
|
import {
|
|
72
73
|
getEventCatalogConfigFile,
|
|
73
74
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
FederationConflictError,
|
|
3
3
|
FederationDiagnosticError,
|
|
4
4
|
federateCatalog
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ZEY2XUJN.js";
|
|
6
|
+
import "../chunk-JJPB6EOZ.js";
|
|
7
|
+
import "../chunk-WRNH5C3U.js";
|
|
6
8
|
import "../chunk-5EPNFDT5.js";
|
|
7
9
|
import "../chunk-A2RZR3U4.js";
|
|
8
|
-
import "../chunk-R7Z5ALYI.js";
|
|
9
|
-
import "../chunk-JJPB6EOZ.js";
|
|
10
10
|
import "../chunk-SDZQJTJW.js";
|
|
11
11
|
import "../chunk-352FGP6W.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-R7Z5ALYI.js";
|
|
13
13
|
import "../chunk-RFIXKATC.js";
|
|
14
14
|
export {
|
|
15
15
|
FederationConflictError,
|
package/dist/generate.cjs
CHANGED
|
@@ -112,7 +112,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
112
112
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
113
113
|
|
|
114
114
|
// package.json
|
|
115
|
-
var version = "5.0.0-beta.
|
|
115
|
+
var version = "5.0.0-beta.9";
|
|
116
116
|
|
|
117
117
|
// src/constants.ts
|
|
118
118
|
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-TZVDMWQX.js";
|
|
4
|
+
import "./chunk-GAHKCOQM.js";
|
|
5
|
+
import "./chunk-EUNQJO3J.js";
|
|
6
6
|
import "./chunk-RFIXKATC.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": "BUSL-1.1",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "5.0.0-beta.
|
|
10
|
+
"version": "5.0.0-beta.9",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
"yjs": "^13.6.33",
|
|
142
142
|
"zod": "^4.3.6",
|
|
143
143
|
"@eventcatalog/sdk": "2.30.0-beta.1",
|
|
144
|
-
"@eventcatalog/
|
|
145
|
-
"@eventcatalog/
|
|
144
|
+
"@eventcatalog/linter": "1.2.0-beta.2",
|
|
145
|
+
"@eventcatalog/visualiser": "^5.0.0-beta.4"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
148
|
"@astrojs/check": "^0.9.10",
|