@eventcatalog/core 2.34.6 → 2.34.7

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 = "2.34.6";
40
+ var version = "2.34.7";
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-KATU7H36.js";
4
- import "../chunk-OSGQFZTR.js";
3
+ } from "../chunk-RHCB6E6X.js";
4
+ import "../chunk-F22TOAQN.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.34.6";
109
+ var version = "2.34.7";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-PTBY5DEP.js";
4
- import "../chunk-KATU7H36.js";
5
- import "../chunk-OSGQFZTR.js";
3
+ } from "../chunk-Y6K4D4LS.js";
4
+ import "../chunk-RHCB6E6X.js";
5
+ import "../chunk-F22TOAQN.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.34.6";
2
+ var version = "2.34.7";
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-OSGQFZTR.js";
3
+ } from "./chunk-F22TOAQN.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-KATU7H36.js";
3
+ } from "./chunk-RHCB6E6X.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,7 +1,8 @@
1
1
  // src/features.ts
2
2
  import boxen from "boxen";
3
3
  var isBackstagePluginEnabled = async (licenseKey) => {
4
- const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || null;
4
+ const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || process.env.EVENTCATALOG_SCALE_LICENSE_KEY || null;
5
+ const acceptedPlugins = ["@eventcatalog/backstage-plugin-eventcatalog", "@eventcatalog/eventcatalog-scale"];
5
6
  if (!LICENSE_KEY) {
6
7
  return false;
7
8
  }
@@ -20,7 +21,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
20
21
  }
21
22
  if (response.status === 200) {
22
23
  const data = await response.json();
23
- if ("@eventcatalog/backstage-plugin-eventcatalog" !== data.plugin) {
24
+ if (!acceptedPlugins.includes(data.plugin)) {
24
25
  console.log(
25
26
  "\nInvalid license key for backstage integration, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
26
27
  );
@@ -35,7 +36,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
35
36
  padding: 1,
36
37
  margin: 1,
37
38
  borderColor: "green",
38
- title: "@eventcatalog/backstage-plugin-eventcatalog",
39
+ title: data.plugin,
39
40
  titleAlignment: "center"
40
41
  })
41
42
  );
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.34.6";
28
+ var version = "2.34.7";
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-OSGQFZTR.js";
3
+ } from "./chunk-F22TOAQN.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
157
157
  var import_os = __toESM(require("os"), 1);
158
158
 
159
159
  // package.json
160
- var version = "2.34.6";
160
+ var version = "2.34.7";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -474,7 +474,8 @@ var import_boxen2 = __toESM(require("boxen"), 1);
474
474
  // src/features.ts
475
475
  var import_boxen = __toESM(require("boxen"), 1);
476
476
  var isBackstagePluginEnabled = async (licenseKey) => {
477
- const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || null;
477
+ const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || process.env.EVENTCATALOG_SCALE_LICENSE_KEY || null;
478
+ const acceptedPlugins = ["@eventcatalog/backstage-plugin-eventcatalog", "@eventcatalog/eventcatalog-scale"];
478
479
  if (!LICENSE_KEY) {
479
480
  return false;
480
481
  }
@@ -493,7 +494,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
493
494
  }
494
495
  if (response.status === 200) {
495
496
  const data = await response.json();
496
- if ("@eventcatalog/backstage-plugin-eventcatalog" !== data.plugin) {
497
+ if (!acceptedPlugins.includes(data.plugin)) {
497
498
  console.log(
498
499
  "\nInvalid license key for backstage integration, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
499
500
  );
@@ -508,7 +509,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
508
509
  padding: 1,
509
510
  margin: 1,
510
511
  borderColor: "green",
511
- title: "@eventcatalog/backstage-plugin-eventcatalog",
512
+ title: data.plugin,
512
513
  titleAlignment: "center"
513
514
  })
514
515
  );
@@ -6,20 +6,20 @@ import {
6
6
  } from "./chunk-UKJ7F5WR.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-PTBY5DEP.js";
10
- import "./chunk-KATU7H36.js";
9
+ } from "./chunk-Y6K4D4LS.js";
10
+ import "./chunk-RHCB6E6X.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
14
14
  } from "./chunk-7SI5EVOX.js";
15
15
  import {
16
16
  VERSION
17
- } from "./chunk-OSGQFZTR.js";
17
+ } from "./chunk-F22TOAQN.js";
18
18
  import {
19
19
  isBackstagePluginEnabled,
20
20
  isEventCatalogScaleEnabled,
21
21
  isEventCatalogStarterEnabled
22
- } from "./chunk-ZIZUBYNO.js";
22
+ } from "./chunk-ZPWE3CVX.js";
23
23
  import {
24
24
  generate
25
25
  } from "./chunk-YEQVKHST.js";
package/dist/features.cjs CHANGED
@@ -37,7 +37,8 @@ __export(features_exports, {
37
37
  module.exports = __toCommonJS(features_exports);
38
38
  var import_boxen = __toESM(require("boxen"), 1);
39
39
  var isBackstagePluginEnabled = async (licenseKey) => {
40
- const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || null;
40
+ const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_BACKSTAGE || process.env.EVENTCATALOG_SCALE_LICENSE_KEY || null;
41
+ const acceptedPlugins = ["@eventcatalog/backstage-plugin-eventcatalog", "@eventcatalog/eventcatalog-scale"];
41
42
  if (!LICENSE_KEY) {
42
43
  return false;
43
44
  }
@@ -56,7 +57,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
56
57
  }
57
58
  if (response.status === 200) {
58
59
  const data = await response.json();
59
- if ("@eventcatalog/backstage-plugin-eventcatalog" !== data.plugin) {
60
+ if (!acceptedPlugins.includes(data.plugin)) {
60
61
  console.log(
61
62
  "\nInvalid license key for backstage integration, please check your license key or purchase a license at https://eventcatalog.cloud/\n"
62
63
  );
@@ -71,7 +72,7 @@ var isBackstagePluginEnabled = async (licenseKey) => {
71
72
  padding: 1,
72
73
  margin: 1,
73
74
  borderColor: "green",
74
- title: "@eventcatalog/backstage-plugin-eventcatalog",
75
+ title: data.plugin,
75
76
  titleAlignment: "center"
76
77
  })
77
78
  );
package/dist/features.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  isBackstagePluginEnabled,
3
3
  isEventCatalogScaleEnabled,
4
4
  isEventCatalogStarterEnabled
5
- } from "./chunk-ZIZUBYNO.js";
5
+ } from "./chunk-ZPWE3CVX.js";
6
6
  export {
7
7
  isBackstagePluginEnabled,
8
8
  isEventCatalogScaleEnabled,
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "2.34.6",
9
+ "version": "2.34.7",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },