@eventcatalog/core 4.7.9 → 4.7.11

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.
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(analytics_exports);
36
36
  var import_os = __toESM(require("os"), 1);
37
37
 
38
38
  // package.json
39
- var version = "4.7.9";
39
+ var version = "4.7.11";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-4MDL35UE.js";
4
- import "../chunk-XJ57UM4O.js";
3
+ } from "../chunk-FNV7TXII.js";
4
+ import "../chunk-6GGS5ZKX.js";
5
5
  export {
6
6
  raiseEvent
7
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.9";
143
+ var version = "4.7.11";
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-LKIDMN7D.js";
4
- import "../chunk-4MDL35UE.js";
3
+ } from "../chunk-SQWXIH42.js";
4
+ import "../chunk-FNV7TXII.js";
5
5
  import "../chunk-K2XIENVT.js";
6
- import "../chunk-XJ57UM4O.js";
6
+ import "../chunk-6GGS5ZKX.js";
7
7
  import "../chunk-6QENHZZP.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-XJ57UM4O.js";
3
+ } from "./chunk-6GGS5ZKX.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 = "4.7.9";
2
+ var version = "4.7.11";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-XJ57UM4O.js";
3
+ } from "./chunk-6GGS5ZKX.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -6,6 +6,7 @@ import {
6
6
  import watcher from "@parcel/watcher";
7
7
  import fs from "fs";
8
8
  import { rimrafSync } from "rimraf";
9
+ var toPosixPath = (p) => p.replace(/\\/g, "/");
9
10
  async function watch(projectDirectory, catalogDirectory, callback = void 0) {
10
11
  const subscription = await watcher.subscribe(
11
12
  projectDirectory,
@@ -60,7 +61,7 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
60
61
  callback
61
62
  ),
62
63
  {
63
- ignore: [`**/${catalogDirectory}/!(${projectDirectory})**`]
64
+ ignore: [`**/${toPosixPath(catalogDirectory)}/!(${toPosixPath(projectDirectory)})**`]
64
65
  }
65
66
  );
66
67
  return () => subscription.unsubscribe();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-LKZNEPD7.js";
3
+ } from "./chunk-45OUURWB.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-4MDL35UE.js";
3
+ } from "./chunk-FNV7TXII.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "4.7.9";
28
+ var version = "4.7.11";
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-XJ57UM4O.js";
3
+ } from "./chunk-6GGS5ZKX.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -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.9";
147
+ var version = "4.7.11";
148
148
 
149
149
  // src/constants.ts
150
150
  var VERSION = version;
@@ -564,6 +564,7 @@ function getRelativeTargetPath(filePath) {
564
564
 
565
565
  // src/watcher.js
566
566
  var import_rimraf = require("rimraf");
567
+ var toPosixPath = (p) => p.replace(/\\/g, "/");
567
568
  async function watch(projectDirectory, catalogDirectory, callback = void 0) {
568
569
  const subscription = await import_watcher.default.subscribe(
569
570
  projectDirectory,
@@ -618,7 +619,7 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
618
619
  callback
619
620
  ),
620
621
  {
621
- ignore: [`**/${catalogDirectory}/!(${projectDirectory})**`]
622
+ ignore: [`**/${toPosixPath(catalogDirectory)}/!(${toPosixPath(projectDirectory)})**`]
622
623
  }
623
624
  );
624
625
  return () => subscription.unsubscribe();
@@ -4,8 +4,8 @@ import {
4
4
  import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  log_build_default
7
- } from "./chunk-LKIDMN7D.js";
8
- import "./chunk-4MDL35UE.js";
7
+ } from "./chunk-SQWXIH42.js";
8
+ import "./chunk-FNV7TXII.js";
9
9
  import "./chunk-K2XIENVT.js";
10
10
  import {
11
11
  FederationConflictError,
@@ -31,10 +31,10 @@ import {
31
31
  } from "./chunk-B7HCX5HM.js";
32
32
  import {
33
33
  generate
34
- } from "./chunk-2C5JYUFZ.js";
34
+ } from "./chunk-RD5TL6VE.js";
35
35
  import {
36
36
  logger
37
- } from "./chunk-LKZNEPD7.js";
37
+ } from "./chunk-45OUURWB.js";
38
38
  import {
39
39
  resolve_catalog_dependencies_default
40
40
  } from "./chunk-LHR4G2UO.js";
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-6U72KINX.js";
44
44
  import {
45
45
  watch
46
- } from "./chunk-CAJUIMDJ.js";
46
+ } from "./chunk-KLOHNCNF.js";
47
47
  import {
48
48
  createAstroDevLineFilter,
49
49
  createAstroLineFilter
@@ -54,7 +54,7 @@ import {
54
54
  import "./chunk-W5JQON7Z.js";
55
55
  import {
56
56
  VERSION
57
- } from "./chunk-XJ57UM4O.js";
57
+ } from "./chunk-6GGS5ZKX.js";
58
58
  import {
59
59
  linkCoreNodeModules,
60
60
  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.7.9";
111
+ var version = "4.7.11";
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-2C5JYUFZ.js";
4
- import "./chunk-LKZNEPD7.js";
5
- import "./chunk-XJ57UM4O.js";
3
+ } from "./chunk-RD5TL6VE.js";
4
+ import "./chunk-45OUURWB.js";
5
+ import "./chunk-6GGS5ZKX.js";
6
6
  import "./chunk-6QENHZZP.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 = "4.7.9";
39
+ var version = "4.7.11";
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-LKZNEPD7.js";
4
- import "../chunk-XJ57UM4O.js";
3
+ } from "../chunk-45OUURWB.js";
4
+ import "../chunk-6GGS5ZKX.js";
5
5
  export {
6
6
  logger
7
7
  };
package/dist/watcher.cjs CHANGED
@@ -152,6 +152,7 @@ function getRelativeTargetPath(filePath) {
152
152
 
153
153
  // src/watcher.js
154
154
  var import_rimraf = require("rimraf");
155
+ var toPosixPath = (p) => p.replace(/\\/g, "/");
155
156
  async function watch(projectDirectory, catalogDirectory, callback = void 0) {
156
157
  const subscription = await import_watcher.default.subscribe(
157
158
  projectDirectory,
@@ -206,7 +207,7 @@ async function watch(projectDirectory, catalogDirectory, callback = void 0) {
206
207
  callback
207
208
  ),
208
209
  {
209
- ignore: [`**/${catalogDirectory}/!(${projectDirectory})**`]
210
+ ignore: [`**/${toPosixPath(catalogDirectory)}/!(${toPosixPath(projectDirectory)})**`]
210
211
  }
211
212
  );
212
213
  return () => subscription.unsubscribe();
package/dist/watcher.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  watch
3
- } from "./chunk-CAJUIMDJ.js";
3
+ } from "./chunk-KLOHNCNF.js";
4
4
  import "./chunk-W5JQON7Z.js";
5
5
  export {
6
6
  watch
@@ -336,6 +336,16 @@
336
336
  --tw-prose-td-borders: rgb(33 38 45); /* #21262d */
337
337
  }
338
338
 
339
+ /*
340
+ * Older generated documentation can contain pill markup with hard-coded
341
+ * light-theme Tailwind colors. Keep that content readable without changing
342
+ * the appearance of other custom prose elements.
343
+ */
344
+ :root[data-theme="dark"] .prose .rounded-full.text-gray-900.border-gray-300 {
345
+ color: rgb(var(--ec-page-text));
346
+ border-color: rgb(var(--ec-page-border));
347
+ }
348
+
339
349
  :root[data-theme="dark"] .prose code {
340
350
  background-color: rgb(33 38 45); /* #21262d */
341
351
  border-radius: 0.25rem;
@@ -363,7 +363,11 @@ export const getNodesAndEdges = async ({
363
363
  data: {
364
364
  mode,
365
365
  data: { ...writeTo.data },
366
- contextMenu: buildContextMenuForResource({ collection: 'entities', id: writeTo.data.id, version: writeTo.data.version }),
366
+ contextMenu: buildContextMenuForResource({
367
+ collection: 'containers',
368
+ id: writeTo.data.id,
369
+ version: writeTo.data.version,
370
+ }),
367
371
  },
368
372
  type: 'data',
369
373
  });
@@ -449,7 +453,7 @@ export const getNodesAndEdges = async ({
449
453
  mode,
450
454
  data: { ...readFrom.data },
451
455
  contextMenu: buildContextMenuForResource({
452
- collection: 'entities',
456
+ collection: 'containers',
453
457
  id: readFrom.data.id,
454
458
  version: readFrom.data.version,
455
459
  }),
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.9",
10
+ "version": "4.7.11",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },