@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.mjs CHANGED
@@ -2822,7 +2822,7 @@ import { join } from "path";
2822
2822
  // package.json
2823
2823
  var package_default = {
2824
2824
  name: "@eventcatalog/generator-openapi",
2825
- version: "7.4.2",
2825
+ version: "7.4.3",
2826
2826
  description: "OpenAPI generator for EventCatalog",
2827
2827
  scripts: {
2828
2828
  build: "tsup",
@@ -2886,31 +2886,34 @@ var getInstalledVersionOfPackage = (packageName) => {
2886
2886
  async function checkForPackageUpdate(packageName) {
2887
2887
  const installedVersion = getInstalledVersionOfPackage(packageName);
2888
2888
  if (!installedVersion || installedVersion === "latest") return;
2889
- const pkg = { name: packageName, version: installedVersion };
2890
- const updateNotifierModule = await import("update-notifier");
2891
- const notifier = updateNotifierModule.default({ pkg, updateCheckInterval: 0, shouldNotifyInNpmScript: true });
2892
- const info = await notifier.fetchInfo();
2893
- if (info?.type !== "latest") {
2894
- const message2 = `Package ${packageName} update available ${info.current} \u2192 ${info.latest}
2889
+ try {
2890
+ const pkg = { name: packageName, version: installedVersion };
2891
+ const updateNotifierModule = await import("update-notifier");
2892
+ const notifier = updateNotifierModule.default({ pkg, updateCheckInterval: 0, shouldNotifyInNpmScript: true });
2893
+ const info = await notifier.fetchInfo();
2894
+ if (info?.type !== "latest") {
2895
+ const message2 = `Package ${packageName} update available ${info.current} \u2192 ${info.latest}
2895
2896
  Run npm i ${packageName} to update`;
2896
- console.log(
2897
- boxen(message2, {
2898
- padding: 1,
2899
- margin: 1,
2900
- align: "center",
2901
- borderColor: "yellow",
2902
- borderStyle: {
2903
- topLeft: " ",
2904
- topRight: " ",
2905
- bottomLeft: " ",
2906
- bottomRight: " ",
2907
- right: " ",
2908
- top: "-",
2909
- bottom: "-",
2910
- left: " "
2911
- }
2912
- })
2913
- );
2897
+ console.log(
2898
+ boxen(message2, {
2899
+ padding: 1,
2900
+ margin: 1,
2901
+ align: "center",
2902
+ borderColor: "yellow",
2903
+ borderStyle: {
2904
+ topLeft: " ",
2905
+ topRight: " ",
2906
+ bottomLeft: " ",
2907
+ bottomRight: " ",
2908
+ right: " ",
2909
+ top: "-",
2910
+ bottom: "-",
2911
+ left: " "
2912
+ }
2913
+ })
2914
+ );
2915
+ }
2916
+ } catch (error) {
2914
2917
  }
2915
2918
  }
2916
2919
 
@@ -3055,6 +3058,8 @@ Processing domain: ${domainName} (v${domainVersion})`));
3055
3058
  await writeService(
3056
3059
  {
3057
3060
  ...service,
3061
+ name: serviceSpec.name || service.name,
3062
+ summary: serviceSpec.summary || service.summary,
3058
3063
  badges: serviceBadges || service.badges,
3059
3064
  markdown: serviceMarkdown,
3060
3065
  specifications: serviceSpecifications,