@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 +30 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -25
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +2 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
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
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
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,
|