@eventcatalog/generator-openapi 7.4.2 → 7.4.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.
package/dist/index.js CHANGED
@@ -2833,7 +2833,7 @@ var import_node_path = require("path");
2833
2833
  // package.json
2834
2834
  var package_default = {
2835
2835
  name: "@eventcatalog/generator-openapi",
2836
- version: "7.4.2",
2836
+ version: "7.4.3",
2837
2837
  description: "OpenAPI generator for EventCatalog",
2838
2838
  scripts: {
2839
2839
  build: "tsup",
@@ -2897,31 +2897,34 @@ var getInstalledVersionOfPackage = (packageName) => {
2897
2897
  async function checkForPackageUpdate(packageName) {
2898
2898
  const installedVersion = getInstalledVersionOfPackage(packageName);
2899
2899
  if (!installedVersion || installedVersion === "latest") return;
2900
- const pkg = { name: packageName, version: installedVersion };
2901
- const updateNotifierModule = await import("update-notifier");
2902
- const notifier = updateNotifierModule.default({ pkg, updateCheckInterval: 0, shouldNotifyInNpmScript: true });
2903
- const info = await notifier.fetchInfo();
2904
- if (info?.type !== "latest") {
2905
- const message2 = `Package ${packageName} update available ${info.current} \u2192 ${info.latest}
2900
+ try {
2901
+ const pkg = { name: packageName, version: installedVersion };
2902
+ const updateNotifierModule = await import("update-notifier");
2903
+ const notifier = updateNotifierModule.default({ pkg, updateCheckInterval: 0, shouldNotifyInNpmScript: true });
2904
+ const info = await notifier.fetchInfo();
2905
+ if (info?.type !== "latest") {
2906
+ const message2 = `Package ${packageName} update available ${info.current} \u2192 ${info.latest}
2906
2907
  Run npm i ${packageName} to update`;
2907
- console.log(
2908
- boxen(message2, {
2909
- padding: 1,
2910
- margin: 1,
2911
- align: "center",
2912
- borderColor: "yellow",
2913
- borderStyle: {
2914
- topLeft: " ",
2915
- topRight: " ",
2916
- bottomLeft: " ",
2917
- bottomRight: " ",
2918
- right: " ",
2919
- top: "-",
2920
- bottom: "-",
2921
- left: " "
2922
- }
2923
- })
2924
- );
2908
+ console.log(
2909
+ boxen(message2, {
2910
+ padding: 1,
2911
+ margin: 1,
2912
+ align: "center",
2913
+ borderColor: "yellow",
2914
+ borderStyle: {
2915
+ topLeft: " ",
2916
+ topRight: " ",
2917
+ bottomLeft: " ",
2918
+ bottomRight: " ",
2919
+ right: " ",
2920
+ top: "-",
2921
+ bottom: "-",
2922
+ left: " "
2923
+ }
2924
+ })
2925
+ );
2926
+ }
2927
+ } catch (error) {
2925
2928
  }
2926
2929
  }
2927
2930
 
@@ -3066,6 +3069,8 @@ Processing domain: ${domainName} (v${domainVersion})`));
3066
3069
  await writeService(
3067
3070
  {
3068
3071
  ...service,
3072
+ name: serviceSpec.name || service.name,
3073
+ summary: serviceSpec.summary || service.summary,
3069
3074
  badges: serviceBadges || service.badges,
3070
3075
  markdown: serviceMarkdown,
3071
3076
  specifications: serviceSpecifications,