@eventcatalog/core 3.31.2 → 3.31.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.
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "3.31.2";
40
+ var version = "3.31.3";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-DL3PF5MS.js";
4
- import "../chunk-UOKUSIKW.js";
3
+ } from "../chunk-VH65Q3HT.js";
4
+ import "../chunk-ZB4D3AZB.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -111,7 +111,7 @@ var import_axios = __toESM(require("axios"), 1);
111
111
  var import_os = __toESM(require("os"), 1);
112
112
 
113
113
  // package.json
114
- var version = "3.31.2";
114
+ var version = "3.31.3";
115
115
 
116
116
  // src/constants.ts
117
117
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-IPGFRHRL.js";
4
- import "../chunk-DL3PF5MS.js";
3
+ } from "../chunk-4BGFG4MW.js";
4
+ import "../chunk-VH65Q3HT.js";
5
5
  import "../chunk-4UVFXLPI.js";
6
- import "../chunk-UOKUSIKW.js";
6
+ import "../chunk-ZB4D3AZB.js";
7
7
  import "../chunk-5T63CXKU.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-DL3PF5MS.js";
3
+ } from "./chunk-VH65Q3HT.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-5VANHNV3.js";
3
+ } from "./chunk-VZ53X73K.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-UOKUSIKW.js";
3
+ } from "./chunk-ZB4D3AZB.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-UOKUSIKW.js";
3
+ } from "./chunk-ZB4D3AZB.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.31.2";
2
+ var version = "3.31.3";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.31.2";
28
+ var version = "3.31.3";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-UOKUSIKW.js";
3
+ } from "./chunk-ZB4D3AZB.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -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.31.2";
117
+ var version = "3.31.3";
118
118
 
119
119
  // src/constants.ts
120
120
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-K3ZVEX2Y.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-IPGFRHRL.js";
10
- import "./chunk-DL3PF5MS.js";
9
+ } from "./chunk-4BGFG4MW.js";
10
+ import "./chunk-VH65Q3HT.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-7FECQ5B3.js";
25
+ } from "./chunk-INJR34TF.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-5VANHNV3.js";
28
+ } from "./chunk-VZ53X73K.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-UOKUSIKW.js";
31
+ } from "./chunk-ZB4D3AZB.js";
32
32
  import {
33
33
  getEventCatalogConfigFile,
34
34
  verifyRequiredFieldsAreInCatalogConfigFile
package/dist/generate.cjs CHANGED
@@ -78,7 +78,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
78
78
  var import_picocolors = __toESM(require("picocolors"), 1);
79
79
 
80
80
  // package.json
81
- var version = "3.31.2";
81
+ var version = "3.31.3";
82
82
 
83
83
  // src/constants.ts
84
84
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-7FECQ5B3.js";
4
- import "./chunk-5VANHNV3.js";
5
- import "./chunk-UOKUSIKW.js";
3
+ } from "./chunk-INJR34TF.js";
4
+ import "./chunk-VZ53X73K.js";
5
+ import "./chunk-ZB4D3AZB.js";
6
6
  import "./chunk-5T63CXKU.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "3.31.2";
39
+ var version = "3.31.3";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-5VANHNV3.js";
4
- import "../chunk-UOKUSIKW.js";
3
+ } from "../chunk-VZ53X73K.js";
4
+ import "../chunk-ZB4D3AZB.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -272,6 +272,20 @@ const nodeGraphPropsForPage = nodeGraphs.find((nodeGraph: any) => nodeGraph.id =
272
272
 
273
273
  const shouldRenderVersionList =
274
274
  shouldRenderSideBarSection(props, 'versions') && props.data.versions && props.data.versions.length > 1;
275
+ const httpOperation =
276
+ ['commands', 'queries'].includes(props.collection) && props.data.operation?.path ? props.data.operation : undefined;
277
+ const httpMethodColors: Record<string, { background: string; color: string }> = {
278
+ GET: { background: 'rgba(34,197,94,0.15)', color: '#22c55e' },
279
+ POST: { background: 'rgba(59,130,246,0.15)', color: '#3b82f6' },
280
+ PUT: { background: 'rgba(245,158,11,0.15)', color: '#f59e0b' },
281
+ PATCH: { background: 'rgba(245,158,11,0.15)', color: '#f59e0b' },
282
+ DELETE: { background: 'rgba(239,68,68,0.15)', color: '#ef4444' },
283
+ OPTIONS: { background: 'rgba(139,92,246,0.15)', color: '#8b5cf6' },
284
+ HEAD: { background: 'rgba(107,114,128,0.15)', color: '#6b7280' },
285
+ };
286
+ const httpMethodStyle = httpOperation?.method
287
+ ? httpMethodColors[httpOperation.method.toUpperCase()] || { background: '#6b7280', color: '#ffffff' }
288
+ : undefined;
275
289
 
276
290
  // This will render the graph for this page
277
291
  nodeGraphs.push({
@@ -343,6 +357,26 @@ nodeGraphs.push({
343
357
  </div>
344
358
 
345
359
  <h2 class="text-base pt-4 text-[rgb(var(--ec-page-text-muted))] font-light">{props.data.summary}</h2>
360
+ {
361
+ httpOperation && (
362
+ <div class="pt-4">
363
+ <div
364
+ class="inline-flex max-w-full items-start gap-2 rounded-lg border border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-content-hover))] px-3 py-2 text-sm text-[rgb(var(--ec-page-text))]"
365
+ aria-label="HTTP path"
366
+ >
367
+ {httpOperation.method && (
368
+ <span
369
+ class="mt-0.5 shrink-0 rounded-md px-2 py-0.5 font-mono text-xs font-semibold"
370
+ style={`background: ${httpMethodStyle?.background}; color: ${httpMethodStyle?.color};`}
371
+ >
372
+ {httpOperation.method}
373
+ </span>
374
+ )}
375
+ <code class="break-all font-mono text-[rgb(var(--ec-page-text))]">{httpOperation.path}</code>
376
+ </div>
377
+ </div>
378
+ )
379
+ }
346
380
  {
347
381
  badges && (
348
382
  <div class="flex flex-wrap gap-3 pt-6 pb-2">
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "3.31.2",
10
+ "version": "3.31.3",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },